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 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 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 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 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.
Please be aware that the content of this thread may be outdated and no longer applicable.