Noxu Posted February 3, 2015 Share Posted February 3, 2015 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 log.txtwel.zip Link to comment https://forums.kleientertainment.com/forums/topic/50483-custom-character-mod-error/ Share on other sites More sharing options...
Blueberrys Posted February 3, 2015 Share Posted February 3, 2015 @NoxuTheAutomatonYour 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.STRINGSAlternately, 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. Link to comment https://forums.kleientertainment.com/forums/topic/50483-custom-character-mod-error/#findComment-609501 Share on other sites More sharing options...
Noxu Posted February 4, 2015 Author Share Posted February 4, 2015 Thank you i,ll sort the out right away. Link to comment https://forums.kleientertainment.com/forums/topic/50483-custom-character-mod-error/#findComment-609750 Share on other sites More sharing options...
Noxu Posted February 4, 2015 Author Share Posted February 4, 2015 Hmm tried copy the code, but my game still crashes. In the log it says it can't find my prefab. Could this be causing a problem? Link to comment https://forums.kleientertainment.com/forums/topic/50483-custom-character-mod-error/#findComment-609769 Share on other sites More sharing options...
Blueberrys Posted February 4, 2015 Share Posted February 4, 2015 @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. Link to comment https://forums.kleientertainment.com/forums/topic/50483-custom-character-mod-error/#findComment-609835 Share on other sites More sharing options...
Noxu Posted February 5, 2015 Author Share Posted February 5, 2015 @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 . Link to comment https://forums.kleientertainment.com/forums/topic/50483-custom-character-mod-error/#findComment-610094 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