DibbzTheLoner Posted July 3, 2014 Share Posted July 3, 2014 First mod I've tried to make for this game, but I'm quite familiar with modding in general and have made mods for many other games, so I'm just still trying to figure this one out. I really don't know where I'm going wrong.I used the [Tutorial] The Artist's Guide To Character/item Modding thread as a guide and various mods I had already downloaded as templates, but the game crashes upon starting the world. I've attached a screenshot of the crashlog, as well as a zip of the entire mod below (it's very small, just adds 2 new items) Can anyone give a hint as to where I've made a mistake? I've been messing around with the files for a couple of hours now and am not making progress.Compost.zip Link to comment https://forums.kleientertainment.com/forums/topic/38006-cant-figure-out-what-ive-messed-up/ Share on other sites More sharing options...
Mobbstar Posted July 3, 2014 Share Posted July 3, 2014 (edited) the last recipe about guano is the baddie here Also, your mod is incompatible with vanilla, since you call wathgringblah, who is not avaible.Furthermore, you cannot give one thing two recipes it seems. The second one overwrites the other. Edited July 3, 2014 by Mobbstar Link to comment https://forums.kleientertainment.com/forums/topic/38006-cant-figure-out-what-ive-messed-up/#findComment-506636 Share on other sites More sharing options...
leemuar Posted July 3, 2014 Share Posted July 3, 2014 (edited) It's pretty easy:Recipe("guano", {Ingredient("nitre", 1), Ingredient("poop", 3)}, RECIPETABS.FOOD, TECH.SCIENCE_TWO,nil,nil,nil,4)there is no RECIPETABS.FOOD, it should be RECIPETABS.FARM.See scripts/constants.lua line #535 for details Edited July 3, 2014 by leemuar Link to comment https://forums.kleientertainment.com/forums/topic/38006-cant-figure-out-what-ive-messed-up/#findComment-506647 Share on other sites More sharing options...
leemuar Posted July 3, 2014 Share Posted July 3, 2014 Also, as Mobbstar correctly mentioned, your mod has some bugs: 1) The game will report error on vanilla clients because of WATHGRITHR related strings. You should first perform a check for this character enabled and then add these strings to the STRINGS table 2) You can not have 2 recipes for 1 item. So the last recipe definition will overwrite all others with the same recipe name. You can use cookpot-like behaviour to achieve creation of one item from multiple ingridients. 3) You do not have images for your recipes, so your new recipes get the image from the last item of recipe tab viewed (see screenshots) Link to comment https://forums.kleientertainment.com/forums/topic/38006-cant-figure-out-what-ive-messed-up/#findComment-506649 Share on other sites More sharing options...
Mobbstar Posted July 3, 2014 Share Posted July 3, 2014 (edited) there is no RECIPETABS.FOOD, it should be RECIPETABS.FARM.See scripts/constants.lua line #535 for details Yeah, I suspected that, but irl stuff kept me from checking. Thanks for doing it EDIT: The tabs can also be seen in recipes.lua which is where I look them up Edited July 3, 2014 by Mobbstar Link to comment https://forums.kleientertainment.com/forums/topic/38006-cant-figure-out-what-ive-messed-up/#findComment-506676 Share on other sites More sharing options...
DibbzTheLoner Posted July 3, 2014 Author Share Posted July 3, 2014 Oh wow, I made more mistakes than I thought XDNow I feel embarrassed. Thanks a lot for the detailed responses guys. Furthermore, you cannot give one thing two recipes it seems. The second one overwrites the other. Oh, interesting. I swore I saw a mod that had 2 recipes for the same item... I guess I'll have to check how they went about doing it, although I suspect it was probably done by just making a duplicate pair that were identical as far as the player could discern. Link to comment https://forums.kleientertainment.com/forums/topic/38006-cant-figure-out-what-ive-messed-up/#findComment-506716 Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now