This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Last revision Both sides next revision
adding_an_item_to_a_spawner [2019/01/08 00:25]
adding_an_item_to_a_spawner [2019/02/09 08:01]
Line 8: Line 8:
 ===== Editing the Spawner Descriptor ===== ===== Editing the Spawner Descriptor =====
-First of all locate your spawners directory in your new mod:+First of all create a spawners directory in your new mod:
   C:​\Users\{YOUR USERNAME}\AppData\LocalLow\RadicalFiction\HARDTIMES\Mods\MyMod_MODPKG\Spawners   C:​\Users\{YOUR USERNAME}\AppData\LocalLow\RadicalFiction\HARDTIMES\Mods\MyMod_MODPKG\Spawners
-The we will edit the trashbin.json file to add our object to the spawnables array:+Inside it we will have to create the Sprites folder which will hold all the spawners sprites 
 +  C:​\Users\{YOUR USERNAME}\AppData\LocalLow\RadicalFiction\HARDTIMES\Mods\MyMod_MODPKG\Spawners\Sprites 
 +Then we have to edit our mod descriptor file spawnersFolder property to let him know that there are spawners to load in this mod: 
 +  C:​\Users\{YOUR USERNAME}\AppData\LocalLow\RadicalFiction\HARDTIMES\Mods\MyMod_MODPKG\Descriptor.json 
 +   "​modName":​ "​MyMod_MODPKG",​ 
 +   "​author":​ "​RadicalFiction",​ 
 +   "​gameVersion":​ "",​ 
 +   "​langFolder":​ "​Lang",​ 
 +   "​itemsFolder":​ "​Items",​ 
 +   "​shopsFolder":​ "​Shops",​ 
 +   "​spawnersFolder":​ "​Spawners"​ 
 +Then we will create ​the trashbin.json file to add our object to the spawnables array:
   C:​\Users\{YOUR USERNAME}\AppData\LocalLow\RadicalFiction\HARDTIMES\Mods\MyMod_MODPKG\Spawners\trashbin.json   C:​\Users\{YOUR USERNAME}\AppData\LocalLow\RadicalFiction\HARDTIMES\Mods\MyMod_MODPKG\Spawners\trashbin.json
 +Please note that this will overwrite the trashbin.json file present in the vanilla game mod.
 Edit the file that should look something like this: Edit the file that should look something like this:
  {  {
Line 345: Line 360:
    ]    ]
  }  }
 +Now we have to provide the sprites referenced in the json file to have our spawners properly rendered in game. Just save them both in 
 +  C:​\Users\{YOUR USERNAME}\AppData\LocalLow\RadicalFiction\HARDTIMES\Mods\MyMod_MODPKG\Spawners\Sprites 
 +{{ :​thrashbin_empty.png?​direct |}} \\ 
 +{{ :​thrashbin_full.png?​direct |}} \\ 
 ==== TEST IT OUT ==== ==== TEST IT OUT ====
  • adding_an_item_to_a_spawner.txt
  • Last modified: 2019/02/09 08:02
  • by thorfinio