Kingnuclearo Posted February 21, 2015 Share Posted February 21, 2015 This is the error that comes up if the line GLOBAL.STRINGS.CHARACTERS.WADE = require "speech_wade" is placed into the modmain.lua (which I've attached to this post) ...pps/common/dont_starve/data/../mods/wade/modmain.lua:36: attempt to call global 'require' (a nil value)LUA ERROR stack traceback: F:/Steam/steamapps/common/dont_starve/data/../mods/wade/modmain.lua(36,1) in main chunk =[C] in function 'xpcall' F:/Steam/steamapps/common/dont_starve/data/scripts/util.lua(439,1) in function 'RunInEnvironment' F:/Steam/steamapps/common/dont_starve/data/scripts/mods.lua(190,1) in function 'InitializeModMain' F:/Steam/steamapps/common/dont_starve/data/scripts/mods.lua(171,1) in function 'LoadMods' scripts/main.lua(229,1) in function 'ModSafeStartup' If that aforementioned line of code is placed into the wade.lua file in my prefabs, the game simply freezes on launch or mod activation. I would love some help here as I have yet to find a solution that has worked for this.modmain.lua Link to comment https://forums.kleientertainment.com/forums/topic/51274-custom-speech-either-causes-mod-to-crash-or-game-to-freeze/ Share on other sites More sharing options...
Kingnuclearo Posted February 22, 2015 Author Share Posted February 22, 2015 Upon further review. It wasn't the .lua file. Rather it was an error in the speech file that caused the issue.Welp now who plays the fool? Link to comment https://forums.kleientertainment.com/forums/topic/51274-custom-speech-either-causes-mod-to-crash-or-game-to-freeze/#findComment-615390 Share on other sites More sharing options...
Blueberrys Posted February 22, 2015 Share Posted February 22, 2015 @Kingnuclearo Put this at the top of the file.require = GLOBAL.requiremodmain has limits on how it can access global variables. Link to comment https://forums.kleientertainment.com/forums/topic/51274-custom-speech-either-causes-mod-to-crash-or-game-to-freeze/#findComment-615402 Share on other sites More sharing options...
Kingnuclearo Posted February 22, 2015 Author Share Posted February 22, 2015 Thank you! I added that and it's working fine now. I appreciate it! Link to comment https://forums.kleientertainment.com/forums/topic/51274-custom-speech-either-causes-mod-to-crash-or-game-to-freeze/#findComment-615406 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