SiderisAnon Posted January 15, 2015 Share Posted January 15, 2015 I am working on a mod right now. Is there a way that I have missed to reload the mod's LUA code while within a Project Zomboid game? Right now, I have been doing:Exit to the main menu. Go into the Mods menu. Turn off the mod. Return to the main menu. Wait for the "reloading LUA" message to fade. Go into the Mods menu. Turn back on the mod. Return to the main menu. Wait for the "reloading LUA" message to fade. Load the game again for testing. This all takes a bit of time, especially on my less than current PC, so I'm hoping there's a faster way to do this that I have somehow missed. Quote Link to comment Share on other sites More sharing options...
EnigmaGrey Posted January 15, 2015 Share Posted January 15, 2015 Open the batfile in Notepad. Add -Ddebug to the list of arguments just after -Xmn and -Xmx. Hold left shift while launching the game.Then you can just press F12 to reload scripts from within the game. Quote Link to comment Share on other sites More sharing options...
SiderisAnon Posted January 15, 2015 Author Share Posted January 15, 2015 Thank you very much. Somehow I missed the -Ddebug option and was just pressing the "Toggle LUA Debuger" key to try and enter the debug mode in a normal game. Now that I've got a BAT file with the -Ddebug, I can press F11, see a list of all the LUA files, choose mine, and reload it right there. So very helpful and so very much faster than exiting to the main menu every time! Quote Link to comment Share on other sites More sharing options...
Zyme Posted March 25, 2015 Share Posted March 25, 2015 How do you reload the file? Hitting F12 does nothing for me. I can see my mod file in the list, but there is no reload option? Quote Link to comment Share on other sites More sharing options...
SiderisAnon Posted March 28, 2015 Author Share Posted March 28, 2015 How do you reload the file? Hitting F12 does nothing for me. I can see my mod file in the list, but there is no reload option? Select your mod LUA file in the list by double clicking it. Then there is a button just above the list labeled something like "Experimental Mod Reload". Hit that and the mod file you have selected will reload. Make sure it is the LUA you want to reload that is shown in the top right window. I've sometimes ended up reloading the wrong LUA file because I hadn't properly selected my file. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.