Page 1 of 1

Prospector broken?

Posted: 08 Jan 2010, 19:44
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?

Re: Prospector broken?

Posted: 08 Jan 2010, 19:55
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 :?

Re: Prospector broken?

Posted: 08 Jan 2010, 19:59
by Caydr
Crepe. I must have something conflicting with it after all. Nevermind...

Re: Prospector broken?

Posted: 09 Jan 2010, 01:04
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.