adding_an_item_to_a_shop

Differences

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

Link to this comparison view

Both sides previous revision Previous revision
adding_an_item_to_a_shop [2019/01/08 00:24]
thorfinio
adding_an_item_to_a_shop [2019/02/09 07:50] (current)
thorfinio
Line 6: Line 6:
 ===== Editing the Shop Descriptor ===== ===== Editing the Shop Descriptor =====
  
-First of all locate your shops directory in your new mod:+First of all create a shops directory in your new mod:
   C:​\Users\{YOUR USERNAME}\AppData\LocalLow\RadicalFiction\HARDTIMES\Mods\MyMod_MODPKG\Shops   C:​\Users\{YOUR USERNAME}\AppData\LocalLow\RadicalFiction\HARDTIMES\Mods\MyMod_MODPKG\Shops
-For simplicity we will add our item to the MetroShop, the shop inside metro stations. Se it will be easily accessible from any zone:+Inside the Shops folder we will create a Sprites folder to hold all the shops sprites: 
 +  C:​\Users\{YOUR USERNAME}\AppData\LocalLow\RadicalFiction\HARDTIMES\Mods\MyMod_MODPKG\Shops\Sprites 
 +Inside this folder we will have to place the sprites referenced in the shops descriptions. So lets save this file int the sprotes folder: 
 +{{ :​shop.png?​direct |}} 
 +Save it as 
 +  C:​\Users\{YOUR USERNAME}\AppData\LocalLow\RadicalFiction\HARDTIMES\Mods\MyMod_MODPKG\Shops\Sprites\shop.png 
 +We will also have to add the "​shopsFolder"​ property to our mod descriptor file to let it know there are shops to load. So edit the descriptor file of the mod in: 
 +  C:​\Users\{YOUR USERNAME}\AppData\LocalLow\RadicalFiction\HARDTIMES\Mods\MyMod_MODPKG\Descriptor.json 
 +And lets add the proper entry: 
 +
 +   "​modName":​ "​MyMod_MODPKG",​ 
 +   "​author":​ "​RadicalFiction",​ 
 +   "​gameVersion":​ "",​ 
 +   "​langFolder":​ "​Lang",​ 
 +   "​itemsFolder":​ "​Items",​ 
 +   "​shopsFolder":​ "​Shops"​ 
 +
 +For simplicity we will add our item to the MetroShop, the shop inside metro stations. Se it will be easily accessible from any zone. So create the file in your shops directory
   C:​\Users\{YOUR USERNAME}\AppData\LocalLow\RadicalFiction\HARDTIMES\Mods\MyMod_MODPKG\Shops\metro_shop.json   C:​\Users\{YOUR USERNAME}\AppData\LocalLow\RadicalFiction\HARDTIMES\Mods\MyMod_MODPKG\Shops\metro_shop.json
 +Please note that this will overwrite the corresponding shop in the Vanilla game. Take a look in the vanilla'​s shops folder to see all the available shops in the base game. 
 Edit the file that should look like this: Edit the file that should look like this:
  {  {
  • adding_an_item_to_a_shop.txt
  • Last modified: 2019/02/09 07:50
  • by thorfinio