Jump to content

Recommended Posts

I'm having an issue when I try to use my custom mod. I'm still working on it but every time I try to create a new world, or load an old one, using the character it generates the world but crashes before it actually gets to the game.

I feel like it going to be something silly like I miss named something, but i've gone through the files several times and would like someone else's view.

Mod and log.txt are attached.

 

Thanks :grin:

log.txt

wel.zip

@NoxuTheAutomaton

Your log says,

...apps/common/dont_starve/data/../mods/wel/modmain.lua:31: attempt to index global 'STRINGS' (a nil value)

You can not access global variables such as STRINGS normally from your modmain, you must use the GLOBAL table. Simple put this code on the top of your modmain:

STRINGS = GLOBAL.STRINGS

Alternately, you can also use GLOBAL.STRINGS instead of just STRINGS wherever you access it.

 

You'll need to do this for any global variables you used, such as TheInput, GetPlayer, TUNING, etc.

@NoxuTheAutomaton, please upload your log or quote it directly, it's hard to determine what's wrong without it.

From what you said, I can assume it's a mismatched file path, a corrupted prefab animation, a misspelled word, a logical error in how the prefab is declared, etc. Asking you to check all of those would take all week.

 

If you're interested, have a look at this guide on reading logs.

@NoxuTheAutomaton, please upload your log or quote it directly, it's hard to determine what's wrong without it.

From what you said, I can assume it's a mismatched file path, a corrupted prefab animation, a misspelled word, a logical error in how the prefab is declared, etc. Asking you to check all of those would take all week.

 

If you're interested, have a look at this guide on reading logs.

 

Thanks, i'll have another look through my files, and read through the guide.

 

You've been a great help :) .

 

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