Page 2 of 2

Re: Cutscenes funcion in zero-K mission editor

Posted: 10 Jan 2013, 22:29
by gajop
seems to me like it's getting loaded, try copying the demo widgets to see if it works and how to use it

Re: Cutscenes funcion in zero-K mission editor

Posted: 10 Jan 2013, 22:48
by daryl
gajop wrote:seems to me like it's getting loaded, try copying the demo widgets to see if it works and how to use it

sorry, what mean you for demo widgets???

Re: Cutscenes funcion in zero-K mission editor

Posted: 10 Jan 2013, 23:49
by gajop
daryl wrote:
gajop wrote:seems to me like it's getting loaded, try copying the demo widgets to see if it works and how to use it

sorry, what mean you for demo widgets???
https://github.com/jk3064/chiliui/blob/ ... uidemo.lua

Re: Cutscenes funcion in zero-K mission editor

Posted: 11 Jan 2013, 03:55
by Forboding Angel
Chili by default doesn't have any widgets... those you have to add yourself. Most of us generally get ours from ZK and then do our own edits to them.

Re: Cutscenes funcion in zero-K mission editor

Posted: 11 Jan 2013, 05:27
by luckywaldo7
Right, you can't really think of it as a user interface for spring, but as an interface toolkit for spring game developers.

Re: Cutscenes funcion in zero-K mission editor

Posted: 11 Jan 2013, 08:53
by gajop
Forboding Angel wrote:Chili by default doesn't have any widgets... those you have to add yourself. Most of us generally get ours from ZK and then do our own edits to them.
it has the demo widget(s) which is what i was asking him to copy and test to see if they work

Re: Cutscenes funcion in zero-K mission editor

Posted: 11 Jan 2013, 14:00
by daryl
gajop wrote:
Forboding Angel wrote:Chili by default doesn't have any widgets... those you have to add yourself. Most of us generally get ours from ZK and then do our own edits to them.
it has the demo widget(s) which is what i was asking him to copy and test to see if they work
aah i understood all now...
so the .zip that i downloaded from github contain all of the instruments to create Chili Interface, but a people as me that don't know lua scripting, is not able to create a GUI :)

this evening i will try to see the demo file, i will put the file "gui_chiliguidemo.lua" in the LuaUI/widgets folder and i will see if i'm lucky and i can modify something ... :)
if not... i will use ICE UI...

so there are other "ready" interface??
i'm a 3d modeler and graphic but i don't know lua. There are other way to do GUI ???

Re: Cutscenes funcion in zero-K mission editor

Posted: 11 Jan 2013, 19:10
by gajop
daryl wrote:
gajop wrote:
Forboding Angel wrote:Chili by default doesn't have any widgets... those you have to add yourself. Most of us generally get ours from ZK and then do our own edits to them.
it has the demo widget(s) which is what i was asking him to copy and test to see if they work
aah i understood all now...
so the .zip that i downloaded from github contain all of the instruments to create Chili Interface, but a people as me that don't know lua scripting, is not able to create a GUI :)

this evening i will try to see the demo file, i will put the file "gui_chiliguidemo.lua" in the LuaUI/widgets folder and i will see if i'm lucky and i can modify something ... :)
if not... i will use ICE UI...

so there are other "ready" interface??
i'm a 3d modeler and graphic but i don't know lua. There are other way to do GUI ???
There is currently no way to create spring GUI with chili using a graphical builder like you can with windows forms. However, using Chili components to just display something isn't that hard. Btw, if you have any problems, please also post your infolog.txt if you want us to help you out.

PS: May want to stop using so many question marks per sentence :)

Re: Cutscenes funcion in zero-K mission editor

Posted: 11 Jan 2013, 19:19
by daryl
gajop wrote:
Forboding Angel wrote:Chili by default doesn't have any widgets... those you have to add yourself. Most of us generally get ours from ZK and then do our own edits to them.
it has the demo widget(s) which is what i was asking him to copy and test to see if they work

hii!!
yes the chili now work!!...
buy it's difficult create a chili GUI??

Re: Cutscenes funcion in zero-K mission editor

Posted: 11 Jan 2013, 19:38
by knorke
there is a little tutorial on using chili:
http://springrts.com/wiki/UI:Development

Re: Cutscenes funcion in zero-K mission editor

Posted: 11 Jan 2013, 20:00
by gajop
Not sure what you want to do, but I suggest looking at the demo widget to see how certain things can be done. Otherwise look into zk or toolbox to see how certain elements can be achieved...

Re: Cutscenes funcion in zero-K mission editor

Posted: 12 Jan 2013, 03:51
by Forboding Angel
Guys, he simply needs to put Chili in BA, not to make his own gui. Just tell him where to get the needed elements.

Re: Cutscenes funcion in zero-K mission editor

Posted: 12 Jan 2013, 04:40
by luckywaldo7
I would start at the chili branch of BA:
http://imolarpg.dyndns.org/trac/balates ... ches/chili

Note: some of the lua widgets also require files found in luaui/configs

Re: Cutscenes funcion in zero-K mission editor

Posted: 12 Jan 2013, 11:49
by daryl
gajop wrote:Not sure what you want to do, but I suggest looking at the demo widget to see how certain things can be done. Otherwise look into zk or toolbox to see how certain elements can be achieved...
hola.....
so i tried to run CHILI demo file again...
but now spring give me an error :

Code: Select all

[f=0000000] Reloaded ctrlpanel from file: LuaUI/ctrlpanel.txt
[f=0000000] LuaUI: bound F11 to the widget selector
[f=0000000] LuaUI: bound CTRL+F11 to tweak mode
[f=0000000] [widgets.lua] Error: Error in Shutdown()
[f=0000000] [widgets.lua] Error: false
[f=0000000] [widgets.lua] Error: Error in Shutdown(): [string "LuaUI/Widgets/gui_chiliguidemo.lua"]:330: attempt to index upvalue 'window0' (a nil value)
[f=0000000] [widgets.lua] Error: Removed widget: chiliGUIDemo
[f=0000000] [widgets.lua] Error: false
[f=0000000] [widgets.lua] Error: Error in Initialize(): [string "LuaUI/Widgets/gui_chiliguidemo.lua"]:66: attempt to index global 'Chili' (a nil value)
[f=0000000] [widgets.lua] Error: Removed widget: chiliGUIDemo
[f=0000000] [widgets.lua] Error: Error in Shutdown()
[f=0000000] [widgets.lua] Error: false
[f=0000000] [widgets.lua] Error: Error in Shutdown(): [string "LuaUI/Widgets/dbg_chili_inspector.lua"]:152: attempt to index upvalue 'window0' (a nil value)
[f=0000000] [widgets.lua] Error: Removed widget: ChiliInspector
[f=0000000] LuaUI v0.3
[f=0000000] Finalizing
[f=0000000] Connection attempt from UnnamedPlayer
[f=0000000]  -> Version: 91.0
[f=0000000]  -> Connection established (given id 0)
[f=0000000] Player UnnamedPlayer finished loading and is now ingame
[f=0000000] GameID: 063ef15076b9726cb9a35c571cdf4421
[f=0000209] image selected , 1, false
[f=0000222] Chili-Error in `chiliGUIDemo`:scrollpanel0 : [string "LuaUI/Widgets/chili/headers/util.lua"]:10: attempt to index local 't' (a nil value)
[f=0000222] stacktrace:
	[string "LuaUI/Widgets/chili/headers/util.lua"
i tried to clean widget folder and reinstall chili files (downloaded from github) and in game activate "chili demo"... but doesn't work...
what i wrong?

Re: Cutscenes funcion in zero-K mission editor

Posted: 02 Mar 2013, 12:11
by SpliFF
I've just run into this too. The widget works inside zk so my suspicion is the script relies on something that isn't included in the chilliui-master.zip file with the demo script. It's hard to debug because the error is being thrown in the chili skinutils script, not the demo widget. Best guess is the demo widget is passing nil's or other bad data but there isn't much in the error to go on other than it occurs in a scrollpanel.