quihyr Posted April 7, 2025 Report Posted April 7, 2025 (edited) [ { "op": "add", "path": "/variantgroups/0/states/7", "value": "rhizome", "file": "game:itemtypes/food/bread.json", "side": "Server" } ] This created a new bread-type, and it functions, including the new shape I had made. I initially added a shape to the VS files as well before extracting the mod from the ModMaker. Upon loading the mod through the mods folder and having returned the VS files to their original state the mod worked, but lacked the shapes and thus also the textures. How do I go about fixing it?. rhizometest.zip Edited April 7, 2025 by quihyr
Brady_The Posted April 7, 2025 Report Posted April 7, 2025 (edited) 1 hour ago, quihyr said: How do I go about fixing it? Your folder structure is messed up. "game" is used for all Vanilla folders, you don't need to specify directories in subfolders. Texture do not show up because none are included in the version of the mod you attached to your post. Btw, it's better practice to add array entries to the end. This way you can ensure compatibility with mods which edit the same files as your mod. ModMaker is a bit flawed in this aspect. You do that by replacing the number 7 in your case with "-" (/variantgroups/0/states/-). Edited April 7, 2025 by Brady_The 1
quihyr Posted April 7, 2025 Author Report Posted April 7, 2025 6 minutes ago, Brady_The said: Your folder structure is messed up. "game" is used for all Vanilla folders, you don't need to specify directories in subfolders. Texture do not show up because none are included in the version of the mod you attached to your post. Btw, it's better practice to add array entries to the end. This way you can ensure compatibility with mods which edit the same files as your mod. ModMaker is a bit flawed in this aspect. You do that by replacing the number 7 in your case with "-" (/variantgroups/0/states/-). Thanks for the tip on adding array entries to the end, will do that. Though on the shape I'm still stuck. Placing the shapes map in "rhizometest" map doesn't seem to work either. I might should mention I'm new to modding and learning as I go
Brady_The Posted April 7, 2025 Report Posted April 7, 2025 (edited) 23 minutes ago, quihyr said: I might should mention I'm new to modding and learning as I go Don't worry about it. I felt my brain stop working when writing that explanation, so it wasn't as good as it could have been. Compare your with my fixed version. It's a very good idea to have the log files opened while working on and testing a mod. They are a good source for finding out if something is wrong. Particularly client-main and server-main are very informative. They can be found in "%AppData%\VintagestoryData\Logs". Note: Of course the textures I added are only placeholders. rhizometest.zip Edited April 7, 2025 by Brady_The 1
quihyr Posted April 7, 2025 Author Report Posted April 7, 2025 (edited) Much appreciate you help and explanations so far, and not to forget your time spent. So thank you, Brady. I've just compared your version to mine and came to the conclusion that the only thing that caused the shapes to not apply was the "survival" folder, which came from the ModMaker's initial creation of the mod.. How very interesting! But your help has solved my mystery, and has helped me learn. I'll be able to achieve now what I had in mind. Thank you once again. Edited April 7, 2025 by quihyr 1
Recommended Posts