Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Steeper roofs mod guide
- I figured out a simple way to add new roofs to the game, for all of us who desperately want to make better looking roofs.
- Its as simple as editing a json file, I will provide my edited one below but I will also explain it here for those who want to modify it a bit more or dont trust my downloaded file. I would turn it into a downloadable mod for nexus but I have no clue how to do that
- First open the Roofs.json file, this is located in "Going Medieval\Going Medieval_Data\StreamingAssets\Constructables"
- (I recommend notepad++ or any other editor that can read json)
- In this file theres a lot of stuff about roofs, basically the way to change it is to just copy the part of for example the hay_roof_whole (from the { to the }, check my edited file for the exact part as I cant paste it here due to message length limits)
- copy it and paste it after the }; right before the next roof item gets declared in there, you should have an extra roof now
- However this is still just the exact same roof as the base game, theres some stuff we need to edit:
- "id":
- by default this is just "hay_roof_whole" or whatever your variant is, I renamed mine to "hay_roof_steep" so it gets a unique name in game
- iconPath is unchanged for me as I couldnt figure out where they were stored, so no custom icons 😦
- "buildTime" is pretty self-explanatory, I left mine at the default of 4 (for hay) but you can change that if you feel like it should take longer to build
- "buildingCategoryUI": 1,
- "buildingSubCategoryUI": 10,
- "soundMaterialCategory": 5,
- this should be changed, the categoryUI should be left at 1 for it to stay in the same tab, but the subcategory I changed to 10, so its a separate icon
- -
- "materials": {
- "keys": [
- "hay"
- ],
- "values": [
- 14
- ]
- },
- here you can change the materials needed for the roof, I changed mine to 14 hay to make it slightly more expensive
- the main part will be in
- "heightScaling": {
- "keys": [
- 2,
- 5,
- 8,
- 12
- ],
- "values": [
- 2,
- 4,
- 6,
- 8
- ]
- },
- for mine to work I didnt touch the keys, only values
- default is 1,2,3,4, mine are doubled so the roof is twice as steep
- im currently testing out different values and trying to add the rest of the roofs in the same category, feel free to try as well and let me know if it works. I didnt see any issues with the mesh or the textures, it looked very nice.
Advertisement
Add Comment
Please, Sign In to add comment