Where'd my stuff go?

Where'd my stuff go?

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

Moderator: Moderators

Post Reply

Has this happened to you?

Yes
3
33%
No
6
67%
 
Total votes: 9

User avatar
Zoy64
Posts: 454
Joined: 12 Nov 2006, 00:30

Where'd my stuff go?

Post by Zoy64 »

When i turn the widgets on, i lose my Resource Bar and my messages. Where'd they go?
And how do i make the things i want work, i.e. i'll get the Ice stuff, but it's not there.
User avatar
KDR_11k
Game Developer
Posts: 8293
Joined: 25 Jun 2006, 08:44

Post by KDR_11k »

I've had those disappear in midgame in Gundam twice, some widget crashed out with a nullpointer exception and killed the whole Lua UI.
User avatar
Zoy64
Posts: 454
Joined: 12 Nov 2006, 00:30

Post by Zoy64 »

no, i mean that they were gone at the beginning of the game
chlue
Posts: 101
Joined: 28 Dec 2005, 20:48

Post by chlue »

The usual reason for that, I encounterd during scripting on the idlebuilder2 widget was, that a widget has an error and creates a lot of error messages.

I you encounter this problem, open the file infolog.txt in your spring directory after the game. Look for lines like this:

Code: Select all

LuaUI: error = 1, DrawScreenItems, [string "LuaUI\Widgets\UnitGroups3.lua"]:659: attempt to call field `UnitDef' (a nil value)
(this error happends if your use the current widget with an svn build)

You can see the widget with the filename UnitGroups3.lua caused an error in line 659. Usually this errors ocour multiple times a second and the file infolog.txt can be very big.

You should disable the widget (either ingame or if you have trouble with that change the file \LuaUI\Config\widget_order.lua. A Zero means the widget is disabled) AND contact the author of the widget by either writing a post in this Forum or at least leaving a note on uf. This way the widget can be fixed. Don't forget to include a short descrition how to reproduce the error or, if you understand it, tell what is wrong.
User avatar
Zoy64
Posts: 454
Joined: 12 Nov 2006, 00:30

Post by Zoy64 »

i just dont know what widget is causing this, it just happened. Like it's a part of the LUA thing in general
chlue
Posts: 101
Joined: 28 Dec 2005, 20:48

Post by chlue »

chlue wrote:I you encounter this problem, open the file infolog.txt in your spring directory after the game. Look for lines like this: ...
Did you tried this?
User avatar
Zoy64
Posts: 454
Joined: 12 Nov 2006, 00:30

Post by Zoy64 »

Code: Select all

Using script GlobalAI test (AAI.dll)
Map: SpeedMetal.smf
Mod: "XTA v8.1" from XTAPE.sd7
You are missing an OpenGL extension needed to use shadowmaps (fragment_program_shadow)
Number of damage types: 5
Spring 0.74b3
Reloaded ctrlpanel with: LuaUI/ctrlpanel.txt
LuaUI: bound F11 to the widget selector
LuaUI: bound CTRL+F11 to tweak mode
LuaUI v0.1
Player no name joined as 0
AI\Bot-libs\AAI.dll has C++ interface
GlobalAI1: land map detected
GlobalAI1: AAI loaded
User exited
Path cache hits 0 0%
Path cache hits 0 0%
all i got was this
(dont mind the AI :wink: )
Post Reply

Return to “Lua Scripts”