Bug in chili framework

Bug in chili framework

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

Moderator: Moderators

Post Reply
User avatar
Forboding Angel
Evolution RTS Developer
Posts: 14673
Joined: 17 Nov 2005, 02:43

Bug in chili framework

Post by Forboding Angel »

Code: Select all

[f=0037438] <smuwf> some bug about silo texture popped up
[f=0037915] <TehNewGuy> oh yeah, it's bitching abou tit's radar icon
[f=0038265] <TehNewGuy> which if you look you can see is working fine
[f=0038430] <TehNewGuy> it's a big biohazard symbol
[f=0038847] <TehNewGuy> engine being dumb
[f=0039141] <TehNewGuy> gunship drones incoming now :-)
[f=0039887] Error in Update(): [string "LuaUI/Widgets/chili/Controls/font.lua"]:117: attempt to use a deleted font
[f=0039887] Removed widget: Chili Framework
[f=0039898] <TehNewGuy> heh that didn't last long
[f=0039917] Chili-Error in `Chili Framework`:screen0 : [string "LuaUI/Widgets/chili/Controls/object.lua"]:219: Chili: There is already a control with the name `unit` in `screen0`!
[f=0039917] stacktrace:
	[C]: in error
	[string "LuaUI/Widgets/chili/Controls/object.lua"]:219
	(tail call): in [?]
	(tail call): in [?]
	...
	[string "-------------------------------------------..."]:102
	[string "LuaUI/Widgets/gui_chilicursortip_2.lua"]:867: in BuildTooltip2
[f=0039917] Removed widget: Chili Framework
Anyone know how to maek fixie?
User avatar
smoth
Posts: 22309
Joined: 13 Jan 2005, 00:46

Re: Bug in chili framework

Post by smoth »

bug in widget, crashing framework.
User avatar
Forboding Angel
Evolution RTS Developer
Posts: 14673
Joined: 17 Nov 2005, 02:43

Re: Bug in chili framework

Post by Forboding Angel »

Yep, apparently google fixed it long ago (occurred to me to check zk sauce for commit logs).

http://code.google.com/p/zero-k/source/ ... .lua&old=3
User avatar
jK
Spring Developer
Posts: 2299
Joined: 28 Jun 2007, 07:30

Re: Bug in chili framework

Post by jK »

No, that's something totally different.
And no, it's not a bug in chili, it's a bug in one of your chili client widgets.

Code: Select all

Chili-Error in `Chili Framework`:screen0 : [string "LuaUI/Widgets/chili/Controls/object.lua"]:219: Chili: There is already a control with the name `unit` in `screen0`!
You tried to add multiple chili objects with the same `name`:

Code: Select all

local lable = Chili.Label:New{..., name="MAHNAME",...}
local lable_2nd = Chili.Label:New{..., name="MAHNAME",...} <- crash
chili obj names are unique! this is cause you can use their name for easy finding an obj, e.g. local obj = screen0:FindObject("MAHNAME");
Note, in case you don't need such a functionality you don't have to define the `name` at all (in that case it uses autonameing like this "label0", "label1", "label2", ...)
User avatar
Forboding Angel
Evolution RTS Developer
Posts: 14673
Joined: 17 Nov 2005, 02:43

Re: Bug in chili framework

Post by Forboding Angel »

I don't have anything other than default chili.
User avatar
jK
Spring Developer
Posts: 2299
Joined: 28 Jun 2007, 07:30

Re: Bug in chili framework

Post by jK »

[string "LuaUI/Widgets/gui_chilicursortip_2.lua"]:867: in BuildTooltip2
Google_Frog
Moderator
Posts: 2464
Joined: 12 Oct 2007, 09:24

Re: Bug in chili framework

Post by Google_Frog »

The widgets in ZK are not 'default chili'.
Pako
Posts: 174
Joined: 12 Jul 2009, 18:57

Re: Bug in chili framework

Post by Pako »

Chili framework is fairly stable and bug free but there is a huge flaw that any Chili widget can crash the whole GUI drawing.
User avatar
CarRepairer
Cursed Zero-K Developer
Posts: 3359
Joined: 07 Nov 2007, 21:48

Re: Bug in chili framework

Post by CarRepairer »

Cursortip2 is way old. Get selections_and_cursortip. And delete selections also.
User avatar
Forboding Angel
Evolution RTS Developer
Posts: 14673
Joined: 17 Nov 2005, 02:43

Re: Bug in chili framework

Post by Forboding Angel »

Sigh.

Thanks for the help.
Post Reply

Return to “Lua Scripts”