Jump to content

Recommended Posts

Okay so, forgive my noobishness. I have only been messing around with modding in this game for around a week and have spent days reading forums, pulling apart other people's mods and examining the base games .lua files to get a better understanding of what I'm doing but I have run into a problem I can not seem to get my head around.

The problem seems to occur when I try to add more than one custom recipe to the modmain.lua.
I'm currently working with two recipes, each for it's own seperate item and each works seperately without the other but for whatever reason when I try to have both it causes the game to crash when testing. That is to say that the game crashes when loading the world.

I'm sure I've done something foolish but I can't seem to figure out what that something is and examining other people's mods hasn't really helped. I've attached my modmain.lua for reference. Any help with this matter would be greatly appreciated.

modmain.lua

if game crashes, you have to look in the logfile to find out what went wrong ;)

C:\Users\Serpens\Documents\Klei\DoNotStarveTogether\client_log.txt
Search this log for "error" and you will find most likey a lua error, which is telling you the line of your script where you made a mistake ;)

 

From a short look at your modmain I can tell you that in line 85 and 88 is sth wrong. Remove the "," at the end of these lines ;)
If it still crashes, take a look at client_log ;)

Edited by Serpens

Hahaha I knew it would be something stupid and easy to overlook like a comma. The client_log wasn't helping at all. Everything is working fine now. Thank you so much!

Edited by sockrocker86
Typo.

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
  • Create New...