Page 1 of 1
Model causing healthbar and xp lua to crash...
Posted: 27 Oct 2007, 07:41
by Forboding Angel
What is causing this?
.give 1 storage @2075,341,1766
[string "LuaUI\Widgets\gui_xp.lua"]:92: attempt to perform arithmetic on field 'power_xp_coeffient' (a nil value)
Removed widget: Rank Icons
Giving 1 storage to team 0
gl.DrawFuncAtUnit: error(2) = [string "LuaUI\Widgets\unit_healthbarsnew.lua"]:255: Incorrect arguments to gl.Translate(x, y, z) [string "LuaUI\Widgets\unit_healthbarsnew.lua"]:255: Incorrect arguments to gl.Translate(x, y, z)
Removed widget: HealthBarsNew
[string "LuaUI/Widgets/unit_healthbars.lua"]:414: attempt to perform arithmetic on field 'height' (a nil value)
Removed widget: HealthBars

Posted: 27 Oct 2007, 09:12
by rattle
If it's the model file try Save As to clean it up.
well
Posted: 27 Oct 2007, 15:37
by rcdraco
Texture Mapping / Show UV mapping / Edit / Flip UV's
The Edit is in the top left of the new window, it shows up eventually.
Posted: 27 Oct 2007, 17:21
by Forboding Angel
OMFG way to pay attention...
.give 1 storage @2075,341,1766
[string "LuaUI\Widgets\gui_xp.lua"]:92: attempt to perform arithmetic on field 'power_xp_coeffient' (a nil value)
Removed widget: Rank Icons
Giving 1 storage to team 0
gl.DrawFuncAtUnit: error(2) = [string "LuaUI\Widgets\unit_healthbarsnew.lua"]:255: Incorrect arguments to gl.Translate(x, y, z) [string "LuaUI\Widgets\unit_healthbarsnew.lua"]:255: Incorrect arguments to gl.Translate(x, y, z)
Removed widget: HealthBarsNew
[string "LuaUI/Widgets/unit_healthbars.lua"]:414: attempt to perform arithmetic on field 'height' (a nil value)
Removed widget: HealthBars
^^ that's the problem. THe model is fine, I flip my uv's instead of flipping the texture.
Posted: 28 Oct 2007, 00:02
by Death Dragon
If the thread had a better name they'd know what the problem is.
Edit:
Looks like the name is better now.
Posted: 28 Oct 2007, 00:38
by rattle
I was not refering to the textures, I know why they're flipped. If some values (such as height) may have gone corrupted a clean s3o (as produced by Save As) might solve this, other than that no idea.
Posted: 28 Oct 2007, 03:33
by Forboding Angel
rattle wrote:I was not refering to the textures, I know why they're flipped. If some values (such as height) may have gone corrupted a clean s3o (as produced by Save As) might solve this, other than that no idea.
crap, doesn't work

Posted: 28 Oct 2007, 07:46
by Forboding Angel
Fixed btw, had to reimport the obj and redo the s3o.
Is there a good and very stable upspring out there with no noticeable quirks?
Posted: 29 Oct 2007, 07:12
by Pressure Line
*edit* actually forget it. i give up.