Advertisement
StealthyExpertX

GRF File Format

Oct 16th, 2017
404
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 10.39 KB | None | 0 0
  1. (THE GRF FILE FORMAT) Compiled by StealthyExpert, & iPxD Mods & NobleDez & Silverstonery &A Cynodont & OpryzeLP
  2.  
  3. This is just A starter page that will be updated when new information is discovered also everything will getting notes and details at A later date this is just to give the community something to go with and start messing around if you learn anything please contact
  4. @RedstonerLabs on twitter and this pastebin will be updated with any new variables or info regarding the grf file format.
  5.  
  6. ============================================================================================
  7. (FUNCTIONS/CONTAINERS)
  8.  
  9.  
  10. PopulateContainer
  11. __ROOT__
  12. LayerSize
  13. StartFeature
  14. ShaftsTheme
  15. ApplySchematic
  16. AnyCombinationOf
  17. FilterTheme
  18. Variations
  19. SimplePatchesTheme
  20. BasicPatchesTheme
  21. WarpedLayerFill
  22. LayerTheme
  23. MushroomBlockTheme
  24. RainbowTheme
  25. BlockDef
  26. RingShape
  27. CollectItem
  28. CompleteAll
  29. LinearBlendSize
  30. LayerShape
  31. ApplySchematic
  32. GenerateStructure
  33. GenerateBox
  34. PlaceBlock
  35. PlaceContainer
  36. PlaceSpawner
  37. AddItem
  38. AddEnchantment
  39. BasicShape
  40. AnyCombinationOf
  41. AddItem
  42. GrantPermissions
  43. FunctionPatchesTheme
  44. WeightedTresureItem
  45. TargetArea
  46. TargetVolume
  47. OnInitialiseWorld
  48. Checkpoint
  49. PlayerBoundsVolume
  50. ActiveChunkArea
  51. LevelRules
  52. WorldPosition
  53. DistributeItems
  54. CurvedLayerFill
  55. MapOptions
  56. GameRules
  57. CustomBeacon
  58. UpdatePlayer
  59. CollectItem
  60. PlaceContainer
  61. ThermalArea
  62.  
  63. ============================================================================================
  64. (VARIABLES/PARAMETERS)
  65.  
  66.  
  67. worldPreviewImage
  68. descriptionName
  69. LevelGeneration
  70. RoundSpawn
  71. upper
  72. lower
  73. blockAux
  74. blockId
  75. NullTheme
  76. enchantmentId
  77. enchantmentLevel
  78. Destroy
  79. goalType
  80. type
  81. isTutorial
  82. Lights
  83. square
  84. circle
  85. ReverseCone
  86. for
  87. func
  88. freq
  89. scale
  90. Leave
  91. startHeight
  92. Snowlayer
  93. StarShape
  94. OnlyTopLayer
  95. holeSize
  96. orientation
  97. WholeLevel
  98. Middle
  99. dY
  100. pass
  101. Look
  102. blockId
  103. align
  104. promptName
  105. feature
  106. dataTag
  107. entity
  108. rot
  109. filename
  110. chunkZ
  111. itemId
  112. auxValue
  113. chunkX
  114. targetHeight
  115. CloudHeight
  116. liftForceModifier
  117. staticLift
  118. bowl
  119. thickness
  120. dome
  121. cloudHeight
  122. z0
  123. y0
  124. x0
  125. z1
  126. y1
  127. x1
  128. method
  129. speedBoost
  130. xRot
  131. MaxPlayerBounds
  132. KillVolume1
  133. yRot
  134. ruleType
  135. themeId
  136. mapSize
  137. baseSaveName
  138. worldDescription
  139. worldName
  140. StartItems
  141. id
  142. x
  143. y
  144. z
  145. OuterItems
  146. HVItems
  147. flatworld
  148. seed
  149. name
  150. quantity
  151. primary
  152. points
  153. dimension
  154. beam_direction
  155. beam_length
  156. xmlns
  157. boostDirection
  158. omni_minus_x
  159. omni_minus_x
  160.  
  161. plus_y = to (at y coordinate) to world limit = 256 its gets the coordinate then adds ++ this was seen in an Example in
  162. the Glide grf files in custom beacons is what it was used for.
  163.  
  164. ActiveArea
  165. spawnZ
  166. hasBeenInCreative
  167. spawnY
  168. themeId
  169. ruleType
  170. spawnX
  171. plus_x
  172. false
  173. dayTime
  174. true
  175. texturePackId
  176. mapSize
  177.  
  178. ============================================================================================
  179. (DESCRIPTION/MESSAGE IDS)
  180.  
  181.  
  182. IDS_CAVERN_DESCRIPTION
  183. IDS_SHRUNK_DESCRIPTION
  184. IDS_DIG_DESCRIPTION
  185. IDS_FRONTIER_DESCRIPTION
  186. IDS_BASIC_ARENA_DESCRIPTION
  187.  
  188. ============================================================================================
  189. (NAME/MESSAGE IDS)
  190.  
  191.  
  192. IDS_DIG_WORLD_NAME
  193. IDS_SHRUNK_WORLD_NAME
  194. IDS_FRONTIER_WORLD_NAME
  195. IDS_BASIC_ARENA_WORLD_NAME
  196.  
  197. ============================================================================================
  198. (GLIDE/RING IDS)
  199.  
  200.  
  201. Ring_D_01
  202. Ring_D_02
  203. Ring_D_03
  204. Ring_D_04
  205. Ring_D_05
  206. Ring_D_06
  207. Ring_D_07
  208. Ring_D_08
  209. Ring_D_09
  210. Ring_D_10
  211. Ring_D_11
  212. Ring_D_12
  213. Ring_D_13
  214. Ring_D_14
  215. Ring_D_15
  216. Ring_D_16
  217. Ring_G_01
  218. Ring_G_02
  219. Ring_G_03
  220. Ring_G_04
  221. Ring_G_05
  222. Ring_G_06
  223. Ring_G_07
  224. Ring_G_08
  225. Ring_G_09
  226. Ring_G_10
  227. Ring_G_11
  228. Ring_G_12
  229. Ring_G_13
  230. Ring_G_14
  231. Ring_G_15
  232. Ring_G_16
  233. Ring_G_17
  234. Ring_G_18
  235. Ring_G_19
  236. Ring_G_20
  237. Ring_E_01
  238. Ring_E_02
  239. Ring_E_03
  240. Ring_E_04
  241. Ring_E_05
  242. Ring_E_06
  243. Ring_E_07
  244. Ring_E_08
  245. Ring_E_09
  246. Ring_E_10
  247. Ring_E_11
  248. Ring_E_12
  249. Ring_E_13
  250. Ring_E_14
  251. Ring_E_15
  252. Ring_E_16
  253. Ring_E_17
  254. Ring_E_18
  255. Ring_E_19
  256. Ring_E_20
  257. Ring_E_21
  258. Ring_E_22
  259. Ring_E_23
  260. Ring_E_24
  261. Ring_E_26
  262. Ring_E_27
  263. Ring_E_28
  264. Ring_E_29
  265.  
  266. ============================================================================================
  267. (IMAGES/ICONS)
  268.  
  269. WorldSave/Dig.png
  270. WorldSave/Shrunk.png
  271. WorldSave/Cavern.png
  272. WorldSave/BasicArena.png
  273. WorldSave/Frontier.png
  274.  
  275. ============================================================================================
  276. (FILES/SCHEMATICS)
  277.  
  278.  
  279. DigLarge_MG01.mcs
  280. ShrunkLarge_MG01.mcs
  281. Cavern_MG03.mcs
  282. BasicArena_MG02.mcs
  283. FrontierLarge_MG01.mcs
  284. skyrim.mcs
  285. Tutorial.mcs
  286.  
  287. ============================================================================================
  288. (IDS/MESSAGE IDS)
  289.  
  290.  
  291. IDS_COLLECTED_MUSIC_DISCS
  292.  
  293. IDS_TP_DESCRIPTION
  294.  
  295. IDS_WORLD_NAME
  296.  
  297. IDS_SAVE_NAME
  298.  
  299. IDS_DISPLAY_NAME
  300.  
  301. ============================================================================================
  302. (NAMED/AREA IDS)
  303.  
  304.  
  305. tutorialArea
  306. minecartArea
  307. boatArea
  308. fishingArea
  309. portalArea
  310. brewingArea
  311. enchantingArea
  312. farmingArea
  313. breedingArea
  314. anvilArea
  315. tradingArea
  316. fireworksArea
  317. beaconArea
  318. hopperArea
  319.  
  320. ============================================================================================
  321. (MESSAGE/ICONS VARIBLES)
  322.  
  323. These are for grf messages use them inside of
  324. grf messages to display the following icons.
  325.  
  326. {*ICON_SHANK_01*} = One Hunger Bar Icon
  327.  
  328. {*ICON_SHANK_03*} = Three Hunger Bars Icon
  329.  
  330. {*ICON_ARMOR_01*} = One Armor Bar Icon
  331.  
  332. {*EXIT_PICTURE*} = Tutorial End/Trial Photo Icon
  333.  
  334. {*CONTROLLER_VK_X*} = X Button Icon
  335.  
  336. {*CONTROLLER_VK_A*} = A Button Icon
  337.  
  338. {*CONTROLLER_VK_Y*} = Y Button Icon
  339.  
  340. {*CONTROLLER_VK_B*} = B Button Icon
  341.  
  342. {*CONTROLLER_VK_RB*} = RB Bumper Button Icon
  343.  
  344. {*CONTROLLER_VK_LB*} = LB Bumper Button Icon
  345.  
  346. {*CONTROLLER_ACTION_DPAD_RIGHT*} = D-Pad Right Icon
  347.  
  348. {*CONTROLLER_ACTION_DPAD_LEFT*} = D-Pad Left Icon
  349.  
  350. {*CONTROLLER_ACTION_DPAD_DOWN*} = D-Pad Down Icon
  351.  
  352. {*CONTROLLER_ACTION_DPAD_UP*} = D-Pad Up Icon
  353.  
  354. {*CONTROLLER_ACTION_USE*} = Left Trigger Icon
  355.  
  356. {*CONTROLLER_ACTION_RIGHT_SCROLL*} = RB Bumper Icon
  357.  
  358. {*CONTROLLER_ACTION_LEFT_SCROLL*} = LB Bumper Icon
  359.  
  360. {*CONTROLLER_ACTION_MOVE*} = Left Stick Icon
  361.  
  362. {*CONTROLLER_ACTION_CRAFTING*} = X Button Icon
  363.  
  364. {*CONTROLLER_ACTION_DISMOUNT*} = Push down on Right Stick Icon
  365.  
  366. {*CONTROLLER_ACTION_INVENTORY*} = Y Button Icon
  367.  
  368. {*CONTROLLER_ACTION_JUMP*} = A Button Icon
  369.  
  370. {*CONTROLLER_MENU_NAVIGATE*} = Left Stick Icon
  371.  
  372. {*CONTROLLER_ACTION_MENU_PAGEDOWN*} = Right Trigger Icon
  373.  
  374. {*CONTROLLER_ACTION_SNEAK*} = Push Down Right Stick Icon
  375.  
  376. {*CONTROLLER_ACTION_DROP*} = B Button Icon
  377.  
  378. {*CONTROLLER_ACTION_SPECTATE_NOISE*} = Right Stick Icon
  379.  
  380. {*CONTROLLER_ACTION_CAMERA*} = D-Pad Down Icon
  381.  
  382. {*CONTROLLER_ACTION_RESTART_RACE*} = B Button Icon
  383.  
  384. {*CONTROLLER_ACTION_READY*} = X Button Icon
  385.  
  386. {*CONTROLLER_ACTION_RESTART_SECTION*} = X Button Icon
  387.  
  388. ============================================================================================
  389. (COLOR/MESSAGE VARIBLES)
  390.  
  391. These are for grf messages use them inside of
  392. grf messages in the front of text to change how it displays either in color, blankspace,
  393. also to end formating.
  394.  
  395. {*EF*} = End Format
  396.  
  397. {*ETW*} End The Width
  398.  
  399. {*B*} = Break Line
  400.  
  401.   = Blank Space
  402.  
  403. {*C0*} = Black
  404.  
  405. {*C1*} = Dark Blue
  406.  
  407. {*C2*} = Dark Green
  408.  
  409. {*C3*} = Dark Aqua
  410.  
  411. {*C4*} = Dark Red
  412.  
  413. {*C5*} = Dark Purple
  414.  
  415. {*C6*} = Gold
  416.  
  417. {*C7*} = Gray
  418.  
  419. {*C8*} = Dark Grey
  420.  
  421. {*C9*} = Blue
  422.  
  423. {*CA*} = Light Green
  424.  
  425. {*CB*} = Light Aqua
  426.  
  427. {*CC*} = Light Red
  428.  
  429. {*CD*} = Light Purple
  430.  
  431. {*CE*} = Yellow
  432.  
  433. {*CF*} = White
  434.  
  435. {*T1*} = Red
  436.  
  437. {*T2*} = Aqua
  438.  
  439. {*T3*} = Green
  440.  
  441. ============================================================================================
  442. (UNKNOWN/UNTESTED VARIABLES)
  443.  
  444. These are untested in the grf file in general these need to be tested in messages and in the grf file
  445. as variables to see what values they return.
  446.  
  447. %d
  448. %dX
  449. {*BannerIcon*}
  450. {*ICON*}355{*/ICON*}
  451. {*BoatIcon*}
  452. {*PlanksIcon*}
  453. {*FurnaceIcon*}
  454. {*ToolsIcon*}
  455. {*CraftingTableIcon*}
  456. {*SticksIcon*}
  457. {*TorchIcon*}
  458. {*CONTROLLER_ACTION_MENU_PAGEDOWN*}
  459. {*ElytraIcon*}
  460. {*ICON*}351:15{*/ICON*}
  461. {*FishingRodIcon*}
  462. {*FishIcon*}
  463. {*StoneIcon*}
  464. {*PoweredRailIcon*}
  465. {*SlimeBlockIcon*}
  466. {*VILLAGER_TYPE*}
  467. {*NOISE*}
  468. r%s
  469. %s
  470. [{*PLAYER*} : {*COMMAND*}]
  471. {*DIFFICULTY*}
  472. {*PLAYER*}
  473. {*DESTINATION*}
  474. {*ITEM*}
  475. {*SOURCE*}
  476. {*COST*}
  477. {*LEVEL*}
  478. {*DISABLES_ACHIEVEMENTS*}
  479. {*BACK_BUTTON*}
  480. {*KICK_PLAYER_DESCRIPTION*}
  481. {*CONTROLLER_ACTION_READY*}
  482. {*CONTROLLER_ACTION_RESTART_SECTION*}
  483. {*CONTROLLER_ACTION_RESTART_RACE*}
  484. {*CONTROLLER_ACTION_CAMERA*}
  485. {*CREATURE*}
  486. {*BLOCKS*}
  487. {*NUMBER*}
  488. {*DAMAGE*}
  489. {*DELTA*}
  490. {*TEAM*}
  491. {*QUANTITY*}
  492. {*MINUTES*}
  493. {*SECONDS*}
  494. {*ROUNDS*}
  495. {*EVENT*}
  496. {*OBJECT*}
  497. {*COUNT*}
  498. {*SIZE*}
  499. {*QUANTITY*}
  500. {*OBJECT*}
  501. {*MEDAL*}
  502. {*CONTROLLER_ACTION_SPECTATE_NEXT*}
  503. {*CONTROLLER_ACTION_SPECTATE_PREV*}
  504. {*CONTROLLER_ACTION_SPECTATE_NOISE*}
  505. {*CONTROLLER_ACTION_SPECTATE_CANCEL*}
  506. ({*COUNT*} of {*MAX_COUNT*})
  507. {*MAX_COUNT*}
  508. {*PLAYER2*}
  509. {GAME_STATE}
  510. {*CONTROLLER_ACTION_ACTION*}
  511. {*WoodenShovelIcon*}
  512. {*MODE*}
  513.  
  514.  
  515. ============================================================================
  516.  
  517. ALL THESE apear blank/dont render in grf messages meaning they arent supported by the grf message or cant be called directly in grf messages
  518. poiisble can be called via diffrent method forcing A render in A grf message
  519. {*BannerIcon*}
  520. {*BoatIcon*}
  521. {*PlanksIcon*}
  522. {*FurnaceIcon*}
  523. {*ToolsIcon*}
  524. {*CraftingTableIcon*}
  525. {*SticksIcon*}
  526. {*TorchIcon*}
  527. {*ElytraIcon*}
  528. {*FishingRodIcon*}
  529. {*FishIcon*}
  530. {*StoneIcon*}
  531. {*PoweredRailIcon*}
  532. {*SlimeBlockIcon*}
  533.  
  534. These rendered as normal text meaning that these most likly
  535. return diffrent values and may not be supported in grf messages directly.
  536. maybe by other means you can get these to return values or functions in the grf file.
  537. #NOTE: Grf variables may have to be lower case in order to work its worth testing....
  538. in grf messages.
  539. {*NOISE*}
  540. r%s
  541. %s
  542. [{*PLAYER*} : {*COMMAND*}]
  543. {*DIFFICULTY*}
  544. {*PLAYER*}
  545. {*DESTINATION*}
  546. {*ITEM*}
  547. {*SOURCE*}
  548. {*COST*}
  549. {*LEVEL*}
  550. {*DISABLES_ACHIEVEMENTS*}
  551. {*BACK_BUTTON*}
  552. {*KICK_PLAYER_DESCRIPTION*}
  553. {*CREATURE*}
  554. {*BLOCKS*}
  555. {*NUMBER*}
  556. {*DAMAGE*}
  557. {*DELTA*}
  558. {*TEAM*}
  559. {*QUANTITY*}
  560. {*MINUTES*}
  561. {*SECONDS*}
  562. {*ROUNDS*}
  563. {*EVENT*}
  564. {*OBJECT*}
  565. {*COUNT*}
  566. {*SIZE*}
  567. {*QUANTITY*}
  568. {*OBJECT*}
  569. {*MEDAL*}
  570.  
  571. These rendered as normal text but I belive these varibles may be diffrent in might need to be called into the grf message by maybe editing its / directory path or maybe the path name is diffrent per device meaning it may not be the same WIIU VS XBOX360.
  572.  
  573. {*ICON*}355{*/ICON*}
  574. {*ICON*}351:15{*/ICON*}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement