I have created a custom item and weaver recipe to practice basic modding, but when I tried to open the game nothing happened. As far as I’m aware I followed all the instructions. I opened the log file and got this message:
2014-Aug-10 16:46:34.486990logger initialized
2014-Aug-10 16:46:34.486990 | 1 | app | Stonehearth Version 0.1.0.114
2014-Aug-10 16:46:34.830191 | 1 | resources | error looking for manifest in stonehearth: invalid file path ‘stonehearth/manifest.json’.
2014-Aug-10 16:46:34.830191 | 1 | resources | error looking for manifest in stonehearth_mod: invalid file path ‘stonehearth_mod/manifest.json’.
2014-Aug-10 16:46:34.830191 | 1 | app | Running Stonehearth server on port 62013
Can you explain what you did exactly (especially if you have created new folders and moved existing ones)? It seems like you have done something with the manifest.json file which you should not have done ;-).
file is assuming them to be in the same folder, which isn’t the case. Either use /stonehearth_mod/entities/furniture/... or write them into the stonehearth_mod/manifest.json, which is a more proper way to do it.
Yes, if you use it properly. “file()” is a “magic function” that works relative to wherever it was written in. I’ve written a description of it long ago:
Sadly, Steve messed it a bit up and used the not-quite-so-clear version. To validate your paths and all that stuff, you can use
which would tell you that the files “/stonehearth/entities/furniture/…” do not exist.
Also, of course you will run into trouble if you keep both the .smod and the directory and especially if you rename them. The game will prefer .smods over directories and if you have a stonehearth_mod/ and a stonehearth.smod, it will load both - which is a bad thing (and won’t do what you expect either).
Use either or the other, rename the stonehearth.smod to something like stonehearth.smod.disabled. In any case, use Jofferson to validate your installation - it will tell you what’s wrong.
The huge issue I think here is that your trying to mod the stonehearth.smod. It’s so much easier to make your own mod folder and mixinto the recipe files for the crafters. So you can’t just take the stonehearth.smod and rename it because like @RepeatPan said the game is hardcoded to require that on launch.
OK. It said “manifest missing”. I looked into the files and it was like this: stonehearth\stonehearth\[all the files] when it should normally be: stonehearth\[all the files]
At least I think that is the problem.
Edit: By the way, I have a back-up of the original stonehearth.smod file so I can still play by using that.