Update: Chili v2.1 (faster than light)

Update: Chili v2.1 (faster than light)

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

Moderator: Moderators

User avatar
jK
Spring Developer
Posts: 2299
Joined: 28 Jun 2007, 07:30

Update: Chili v2.1 (faster than light)

Post by jK »

changelog:
  • upped version to v2.1
  • added RenderToTexture
  • ! note gl state of DrawControl changed (self.xy translation isn't needed anymore), when any widgets are affected in your code you get a warning and a bw support is enabled
  • example of speedup 335fps -> 470fps (static view)
  • another example of speedup 25fps -> 70fps (with a label that changes each drawframe and some heavy load in bg)
  • scrolling in ScrollPanel is now `for free`
  • same as moving windows
the commit: https://github.com/jk3064/chiliui/commi ... d231c5f5d8 FOR OUR WIN-USERS: DON'T `DOWNLOAD ZIP` FROM THAT URL!!!
For windows ppl who don't want to use msys-git, use this URL to download chili: https://github.com/jk3064/chiliui/archive/master.zip
Last edited by jK on 28 Oct 2013, 00:05, edited 1 time in total.
User avatar
smoth
Posts: 22309
Joined: 13 Jan 2005, 00:46

Re: Update: Chili v2.1 (faster than light)

Post by smoth »

fuck yeah! thanks jk!
User avatar
FLOZi
MC: Legacy & Spring 1944 Developer
Posts: 6240
Joined: 29 Apr 2005, 01:14

Re: Update: Chili v2.1 (faster than light)

Post by FLOZi »

:o
User avatar
smoth
Posts: 22309
Joined: 13 Jan 2005, 00:46

Re: Update: Chili v2.1 (faster than light)

Post by smoth »

[f=0000000] Error in DrawScreen(): [string "LuaUI/Widgets/gui_chili_docking.lua"]:137: stack overflow

getting this and when I click on a window say my version of chili chat..
[f=0000336] [Chili] Error: in `Chili Chat`:chat : [string "LuaUI/Widgets/gui_chili_docking.lua"]:397: attempt to index local 'lp' (a nil value)
[f=0000336] [Chili] Error: stacktrace:
[string "LuaUI/Widgets/gui_chili_docking.lua"]:397: in eventListener
[string "LuaUI/Widgets/chili/controls/object.lua"]:594: in CallListeners
[string "LuaUI/Widgets/chili/controls/control.lua"]:345: in UpdateClientArea
[string "LuaUI/Widgets/chili/controls/control.lua"]:510: in SetPos
...
(tail call): in [?]
(tail call): in [?]
[f=0000336] [Chili] Error: Removed widget: Chili Chat
is this new or an issue you have seen before in the new version?
User avatar
KingRaptor
Zero-K Developer
Posts: 838
Joined: 14 Mar 2007, 03:44

Re: Update: Chili v2.1 (faster than light)

Post by KingRaptor »

smoth wrote:
[f=0000000] Error in DrawScreen(): [string "LuaUI/Widgets/gui_chili_docking.lua"]:137: stack overflow

getting this and when I click on a window say my version of chili chat..
[f=0000336] [Chili] Error: in `Chili Chat`:chat : [string "LuaUI/Widgets/gui_chili_docking.lua"]:397: attempt to index local 'lp' (a nil value)
[f=0000336] [Chili] Error: stacktrace:
[string "LuaUI/Widgets/gui_chili_docking.lua"]:397: in eventListener
[string "LuaUI/Widgets/chili/controls/object.lua"]:594: in CallListeners
[string "LuaUI/Widgets/chili/controls/control.lua"]:345: in UpdateClientArea
[string "LuaUI/Widgets/chili/controls/control.lua"]:510: in SetPos
...
(tail call): in [?]
(tail call): in [?]
[f=0000336] [Chili] Error: Removed widget: Chili Chat
is this new or an issue you have seen before in the new version?
I actually didn't update the Docking widget in ZK due to this bug.
User avatar
jK
Spring Developer
Posts: 2299
Joined: 28 Jun 2007, 07:30

Re: Update: Chili v2.1 (faster than light)

Post by jK »

Yeah, KR reported that already ages ago, didn't came yet to trace it down (I hate recursion bugs).
User avatar
Forboding Angel
Evolution RTS Developer
Posts: 14673
Joined: 17 Nov 2005, 02:43

Re: Update: Chili v2.1 (faster than light)

Post by Forboding Angel »

I would like to update evo to this, but I don't know how. Help?

Evo uses more or less the same as zk chili, atm.

I also don't know how to tell internal chili version.
User avatar
Licho
Zero-K Developer
Posts: 3803
Joined: 19 May 2006, 19:13

Re: Update: Chili v2.1 (faster than light)

Post by Licho »

Atm GUI is invisible on my ati randomly with this chili.
So be careful FA.
User avatar
Forboding Angel
Evolution RTS Developer
Posts: 14673
Joined: 17 Nov 2005, 02:43

Re: Update: Chili v2.1 (faster than light)

Post by Forboding Angel »

Crap, ok thanks. In evo on my laptop that has an HD 7600, evo currently displays correctly.

What model is your ati?

Kmar has a 4600 and integral in evo completely bombs for him, but it doesn't in zk. That's messed up because the one in evo is the same as the one in zk.
User avatar
Funkencool
Posts: 542
Joined: 02 Dec 2011, 22:31

Re: Update: Chili v2.1 (faster than light)

Post by Funkencool »

BAR's chili UI shows up fine but all the font shadows are tranparent and the window/control becomes transparent directly behind them as well. Its hard to tell but I think the font also becomes slightly translucent. I had other problems as well but the fixes after initial post have fixed those. I should maybe mention I'm on AMD as well.
User avatar
Licho
Zero-K Developer
Posts: 3803
Joined: 19 May 2006, 19:13

Re: Update: Chili v2.1 (faster than light)

Post by Licho »

I got 5850
User avatar
jK
Spring Developer
Posts: 2299
Joined: 28 Jun 2007, 07:30

Re: Update: Chili v2.1 (faster than light)

Post by jK »

Forboding Angel wrote:I would like to update evo to this, but I don't know how. Help?

Evo uses more or less the same as zk chili, atm.

I also don't know how to tell internal chili version.
FTL needs 95, there was a font issue I wasn't able to workaround :/
User avatar
smoth
Posts: 22309
Joined: 13 Jan 2005, 00:46

Re: Update: Chili v2.1 (faster than light)

Post by smoth »

jk, what version of the docking widget do you recommend that I try?
gajop
Moderator
Posts: 3051
Joined: 05 Aug 2009, 20:42

Re: Update: Chili v2.1 (faster than light)

Post by gajop »

I'm having this issue with it (updated it up in my Toolbox).
User avatar
jK
Spring Developer
Posts: 2299
Joined: 28 Jun 2007, 07:30

Re: Update: Chili v2.1 (faster than light)

Post by jK »

jK wrote:FTL needs 95
gajop
Moderator
Posts: 3051
Joined: 05 Aug 2009, 20:42

Re: Update: Chili v2.1 (faster than light)

Post by gajop »

ah, ok, what's the last working commit that works on 94?
gajop
Moderator
Posts: 3051
Joined: 05 Aug 2009, 20:42

Re: Update: Chili v2.1 (faster than light)

Post by gajop »

k, works for me
dizekat
Posts: 438
Joined: 07 Dec 2007, 12:10

Re: Update: Chili v2.1 (faster than light)

Post by dizekat »

A stupid noob question: what do I download to get recent UI (I suppose it would be Chili based) with in game settable widget options and the like in BA? I'm testing my old widgets, and i haven't been following anything so I've no idea what most people use for UI in what ever is the most played mod, if anything.
User avatar
Beherith
Posts: 5145
Joined: 26 Oct 2007, 16:21

Re: Update: Chili v2.1 (faster than light)

Post by Beherith »

Dizekat, BAR has Chili, thanks to Funkencool.
It is located here: http://imolarpg.dyndns.org/trac/balates ... anches/BAR
You can also get it from rapid by joining the Polonium autohost.
Post Reply

Return to “Lua Scripts”