Jump to content

Recommended Posts

Posted (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 by quihyr
Posted (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 by Brady_The
  • Like 1
Posted
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 :D

Posted (edited)
23 minutes ago, quihyr said:

I might should mention I'm new to modding and learning as I go :D

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".

2689_q3dzAtzO8A9ra3kLLe8x.png.2a39c12747309910d4aeaee9a282d35e.png

Note: Of course the textures I added are only placeholders.

rhizometest.zip

Edited by Brady_The
  • Like 1
Posted (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 by quihyr
  • Like 1
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.