Need help modding

Hi I’m in the process of making a mod. I know some basic C++, and I think I can make it work by editing the stonehearth.smod file.
But is there a way to have a separate file from stonehearth.smod that I can drop next to it and that it will still work. So I don’t have to redo all my work every time an update comes out. And that it will be easier to update and share.

I searched the discourse only I couldn’t find out how to do this. Most topics are tutorials on how to edit the stonehearth.smod file. But this I already know.
Can someone point me in the right direction or explain how to do this.

Thanks in advance

I don’t know exactly how to explain this, but here goes:

  • The base engine is written in C++, but almost all gameplay is written in Lua. Mods are no different.
  • For simple items, you may not need code. You do still need data. Data is stored in JSON, so go read the super-short documentation for it if you’re not familiar with it.
    It’s a simple format, but make sure to validate it always.
  • Yes, mods are supposed to be in a seperate file. You use mixins / mixintos [help, modders! I have no clue what I'm saying here] to add stuff from your mod into the game.
  • You can also use overrides to change some built-in stuff, but this may cause compatibility issues - also, apparently never override Lua. [@RepeatPan, could you tell me why again?]
  • Manifests, aliases, and file structures are very important for some reason, though I can't remember how or why. The answers given here by @honestabelink explain it better.

Thanks for the help guys!

I think ill manage from here.
I googled mixintos and found this development blog post that also helped.
ill link it should other see this post and want it too.


Also this one!


now : Desktop Tuesday: Farming and Other Mysteries – Stonehearth