The present Gnomoria modding permits only adding new contents to the game, and perform some balancing changes, like create a new furtiture, new workshop, alter creature status, initial itens and stuff like that.
THERE'S NOT MECHANICAL MODDING, so you can't add new comportaments, like gnomes mooding, flying enemies, etc...
Due the forum limits, I upload the zip images to my Google Drive: https://drive.google.com/file/d/0B_-EF-KogAjHdU1lWWFNbjJpbVk
And make a Gloogle Document with the same contant of this post, if you prefer: https://docs.google.com/document/d/162wtTHXiIhBUcEeXSmXvV_Eac1JV4FaVgqyaM2C7Z9I
(or any other text editor)
The Gnomoria modding files are in you game installation path, usually in:C:\Program Files (x86)\Steam\steamapps\common\Gnomoria\Mod Filesmod001.jpg
Theres two main folder: Data
, the first one contains the base data of Gnomoria, the other one, the spritesheet.
The files inside this folders containts the base for a new mod!
To create a new mod, first you need to create a New Folder inside the folder "Mods
". Let's name it "MyMod
The next step is important:
Copy & Paste the contents of "Mod Files
" folder to "MyMod
" folders. We gonna edit this files to make our new content.
So, to our mod we gonna make a Rock Chest! That works exactly like a wood Crate, but is a chest!
Open the Notepad++ (or other text program).mod003.jpg
We will use the "Find In Files
" (CTRL+F) function to look for every file related to the Crate's data. To copy it, edit and make our Chest.
- Search for "crate"
- The folder of out mod (with the base data files already copied)
- Uncheck "Match Case", to hit "Crate" and "crate"
- Check the "In all sub-folder", to search across all files
- Hit "Find All"
: If you aren't using Notepad++, you can use Windows Search too!)mod004.jpg
I got 35
hits in 11
Not all files will need modification, for example:
This file contains the word "desecrate
", so match our search, but isn't related to our road on making the Rock Chest Mod.
Let's start the edition (I will follow the logical path of data, rather then the search results order).
You will need the rockchest png file https://drive.google.com/file/d/0B_-EF-KogAjHd29LbFgzTC1UdGM
inside the Sprites folder. (I know! It's not a EXACTLY chest! But don't judge me! I'm not a pixel artist!
We will start adding the reference for the rockchest sprite. Add the Item tag for our chest next to the Crate item tag.
(TIP: There's Robob0b commentaries in start of each file to help you understand the data, always read that!)File "Data\Objects\items.xml"mod007.jpg
Define the new item "Chest", applying the "Storage" effect of 64, so the game can understand that item is a storage and have a 64 itens capacity. Also associates the right SpriteId to our item.File "Data\Objects\itemsettings.xml"mod008.jpg
Map our ItemID (key) to a StorageID (value) in the list of storages, see the next file.File "Data\Objects\storage.xml"mod009.jpg
Here we can see the StorageID that we associeted in the previous list. This file shows the list of itens that are allowed in our chest (in this case, I choose only food just for fun).File "Data\Objects\construction.xml"mod010.jpg
This file have lots of other options for the "constructables" itens, read the commentary to learn more advancing options, for now, we just need copy the Crate tag and edit.File "Data\Objects\constructionsettings.xml"mod011.jpg
In the previous file we say to game that have a new type of constrution, now we say that construction is a storage (again).File "Data\jobsettings.xml"mod012.jpg
Put the construtionID from previous file here under "BuildContainers" tag to ensure that gnomes can have a "build" job associated with the chest.File "Data\UI\rightclickmenusettings.xml"mod013.jpg
In the previous file we defined a new build job, now we make it available in the game menu, just adding few lines and pay attention do assign the right jobID.File "Data\Objects\workshops.xml"mod014.jpg
Finnaly, after define our Rock Chest is time to say where e how we build one.
You must pay attention to put the CraftableItem tag under the right workshop (you don't wanna will our rock chest being constructed in Tailor Shop.
Here you can define the ingredients for the item and what skill is required for the gnome do the job, and witch gnome attribute will impact in the item quality.Conclusion
This is a simple starter tutorial. Thereís in game screenshoots in the zip, to show the results.
Fell free to add comentaries, sugestions and critics. This is my first tutorial, I hope you enjoy and help me to improve it.
And remember: IíM NOT A NATIVE ENGLISH
, sorry about gramatical mistakes!
Thanks to Robob0b
for such amazing game.
Thanks to Aavak
for amazing gameplays on Youtube!
Thanks to all users of Gnomoria Forum. You guys are a incredible community.