# Server side modding ## Mod installations Place mods as directory inside `src/mods`. The mod directory must contain `manifest.xml` file in the first directory tree level. For example: `src/mods/MyFirstMod/manifest.xml` ## `manifest.xml` syntax Root node for `manifest.xml` is ``. It can contain child nodes: * `` - item database manipulation * `` - store database manipulation (not implemented yet) * ... ### item database manipulation `` may contain may `` child nodes. Each of them define one item modification. Modification type can be specified by `action` attribute, supported values: * `add` - add new item * default when no `action` attribute * `remove` - remove item * `replace` - replace item definition for existed item id `` node may contains subnodes: * `` - specify item id * if not used item id will be read from item definition in `` * `` - specify store id to add item to them * can occur multiple times * if not used item will be not added to any store * `` - item definition (syntax like `` node in [src/Resources/items.xml](../Resources/items.xml)) * can be committed in `remove` action` #### Example * remove Toothless ticket item (item id `8034`) * add Night Furry Egg item (item id `29999`) and add it to store (store id `92`, for store description see comment in [src/Resources/store.xml](../Resources/store.xml). * item id (for new items) should be unique to avoid mod collision, recommended format to use: `prefix * 10000 + private_id`, where: * `prefix` must be grater than 2 to avoid collision with original game and official SoDOff items * `prefix` is unique mod author prefix (see SoDOff discord for details) * `private_id` is for digit number (0-9999) to free use by the this author * for example for `prefix = 789` and `private_id = 13` item id will be `7890013` ``` 8034 92 RS_DATA/DragonEgg.unity3d/PfEggDevilishDervish PetTypeID 17 29999 456 Dragons Dragon Egg 29999 550 Strike Class Eggs 29999 0 250 0 Tame the cunning and mischievous Night Furry in your stables RS_DATA/DragonEgg.unity3d/IcoEggDevilishDervish -1 29999 Night Furry Egg false false false 10 -1 0 0 ```