Can sombody make this widget?

Can sombody make this widget?

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

Moderator: Moderators

Post Reply
User avatar
MR.D
Posts: 1527
Joined: 06 Aug 2005, 13:15

Can sombody make this widget?

Post by MR.D »

Need a widget that detects when Luaui Fails, and does a /luaui reload command on that failure.

I'm getting really frustrated with this version of spring and the constant Luaui failures and possible crashes.

I haven't finished a single game yet without a Luaui error, and about 25% of the games it occurs in, crashes..

Please sombody make a widget to fix this bug.
User avatar
KDR_11k
Game Developer
Posts: 8293
Joined: 25 Jun 2006, 08:44

Post by KDR_11k »

A widget cannot do that for obvious reasons, when LuaUI fails all widgets are shut down.
User avatar
Pendrokar
Posts: 658
Joined: 30 May 2007, 10:45

Post by Pendrokar »

KDR_11k wrote:A widget cannot do that for obvious reasons, when LuaUI fails all widgets are shut down.
But there could be a script made in the engine, but it could need some conditions when to do it (like a lua widget crashes then Engine reloads Lua exept the lua widget that did it(If that widget crashes two times in a game))!
User avatar
LordMatt
Posts: 3393
Joined: 15 May 2005, 04:26

Post by LordMatt »

Add this to your uikeys.txt:

Code: Select all

unbind      Any+backspace  mousestate
bind backspace luaui reload
I doubt anyone uses backspace for mousestate ;)
User avatar
TechnoTone
Posts: 165
Joined: 23 Aug 2005, 22:02

Post by TechnoTone »

LordMatt wrote:I doubt anyone uses backspace for mousestate ;)
Actually - it's the only way I do it. Is there another way?
User avatar
LordMatt
Posts: 3393
Joined: 15 May 2005, 04:26

Post by LordMatt »

What does it do? Oo
User avatar
TechnoTone
Posts: 165
Joined: 23 Aug 2005, 22:02

Post by TechnoTone »

It toggles between mouse and crosshair. Try it and see. It's especially useful when using some of the other views.
User avatar
AF
AI Developer
Posts: 20687
Joined: 14 Sep 2004, 11:32

Post by AF »

middle click si already bound to the 'j' button
Post Reply

Return to “Lua Scripts”