Prospector broken?

Prospector broken?

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

Moderator: Moderators

Post Reply
User avatar
Caydr
Omnidouche
Posts: 7179
Joined: 16 Oct 2004, 19:40

Prospector broken?

Post by Caydr »

Hi, I noticed today that the "prospector" (display metal income) widget doesn't seem to be working for me.

I figured that there must've been an engine update so I copied the version that the latest XTA uses. Still, same error message:

Code: Select all

[      0] Error in Initialize(): [string "LuaUI/Widgets/gui_prospector_xta.lua"]:115: attempt to index local 'unitDef' (a nil value)
[      0] Removed widget: Prospector - XTA
Then tried the latest BA one. Same error.

Any idea what I might be doing wrong?
User avatar
Jazcash
Posts: 5309
Joined: 08 Dec 2007, 17:39

Re: Prospector broken?

Post by Jazcash »

Caydr wrote:Hi, I noticed today that the "prospector" (display metal income) widget doesn't seem to be working for me.

I figured that there must've been an engine update so I copied the version that the latest XTA uses. Still, same error message:

Code: Select all

[      0] Error in Initialize(): [string "LuaUI/Widgets/gui_prospector_xta.lua"]:115: attempt to index local 'unitDef' (a nil value)
[      0] Removed widget: Prospector - XTA
Then tried the latest BA one. Same error.

Any idea what I might be doing wrong?
It's working ok for me :?
User avatar
Caydr
Omnidouche
Posts: 7179
Joined: 16 Oct 2004, 19:40

Re: Prospector broken?

Post by Caydr »

Crepe. I must have something conflicting with it after all. Nevermind...
User avatar
zwzsg
Kernel Panic Co-Developer
Posts: 7052
Joined: 16 Nov 2004, 13:08

Re: Prospector broken?

Post by zwzsg »

Read the message error: attempt to index local 'unitDef' (a nil value)

Then find out the line that goes:
local unitDef = something

Then track down that something to find out why it's not.
Post Reply

Return to “Lua Scripts”