Restart LuaUI?

Restart LuaUI?

Discuss Lua based Spring scripts (LuaUI widgets, mission scripts, gaia scripts, mod-rules scripts, scripted keybindings, etc...)

Moderator: Moderators

Post Reply
User avatar
KDR_11k
Game Developer
Posts: 8293
Joined: 25 Jun 2006, 08:44

Restart LuaUI?

Post by KDR_11k »

Is there a way to restart the LuaUI if it has crashed? Since it's unsynced code it should not have trouble with being restarted mid-game, right? It's damn annoying when some error kills the whole LuaUI, even worse if you're using some IceUI stuff that replaces some standard screen element because then you'll play the rest of the game without a resource bar (THE reason I'm not using any alternative resource bars).
trepan
Former Engine Dev
Posts: 1200
Joined: 17 Nov 2005, 00:52

Post by trepan »

/luaui reload

The synced scripts can also be reloaded by the host (.cheat must be enabled):
.luarules reload
.luagaia reload
.luacob reload

The 'disable' keyword also works for all of those scripts.
User avatar
KDR_11k
Game Developer
Posts: 8293
Joined: 25 Jun 2006, 08:44

Post by KDR_11k »

Cool, many thanks.
User avatar
Noruas
XTA Developer
Posts: 1269
Joined: 24 Feb 2005, 02:58

Post by Noruas »

I notice sometimes it likes to crash when i reload, epically playing ba or ca, with icexuicks wanabe lua.
Post Reply

Return to “Lua Scripts”