Way to refresh lua file changes whilst in game?

ww2commander

Emperor
Joined
Aug 23, 2003
Messages
1,243
Location
Australia
Is there a simple/reliable way to refresh only LUA file changes without having to constantly start and exit the game?

I have spent half my modding life waiting for the game to reload to test/retest simple lua fixes and or nil error issues.

EDIT: I should have mentioned that I am using ModBuddy to code everything.
 
There's a tutorial waaay back on the tutorials pages that discusses methods for this sort of thing. But I usually just use a text editor to make changes to my lua file in the "built" version of the mod, exit to the game's main menu, and reload by going through MODS, etc., from there. This of course requires strict adherence to always copying that changed file from the "built" version of the mod (ie, the one in the ~CIV5/MODS folder) to the Modbuddy working version of the file (ie, the one in ~/Documents/Firaxis ModBuddy/My Mod's Name/My Mod's Name folder).
 
Lua files end up in the VFS, and once there the only way to get changes made to the actual disk based file back into the game, is to force the mod to reload. So you don't need to exit the game, but you do need to exit the session back to the main menu
 
Thanks gents.

I guess a reload at main menu is better than a complete restart.
 
You can directly edit the Lua files in your mod's folder inside the game's MODS directory. All it then takes is a reload of the game save; no exiting to main menu or exiting the game is required.

The only issue with this is that it can be very easy to forget to copy your changes back to your Projects folder. Ask me how many times I've done that!
 
Back
Top Bottom