Chili exploration
Moderator: Moderators
-
- Posts: 31
- Joined: 25 Jun 2010, 20:16
Re: UI how to start ?
Guys,
first, please give me a link where I can found this ChiliUI. Even S44 don't want chili, for me that's can be a good start to see how stuff works. I search how to start an UI, I found threads related to ICEui, here people said forget it and use Chili, now you speak about new widgethandler.
second, tell me more about the new widgethandler, where i can get information, like a TODO, where i can get documentation how to use it (Doxygen or something like),...
third, it would be cool for people who can to write tutorials in the wiki :
- Hello world
- adding picture
- adding button
- link basic command to a button
- etc.
first, please give me a link where I can found this ChiliUI. Even S44 don't want chili, for me that's can be a good start to see how stuff works. I search how to start an UI, I found threads related to ICEui, here people said forget it and use Chili, now you speak about new widgethandler.
second, tell me more about the new widgethandler, where i can get information, like a TODO, where i can get documentation how to use it (Doxygen or something like),...
third, it would be cool for people who can to write tutorials in the wiki :
- Hello world
- adding picture
- adding button
- link basic command to a button
- etc.
Re: UI how to start ?
download and extract Zero-K or GundamRTS both use chili
Re: UI how to start ?
FLOZi wrote:S44 won't be getting a chilli gui until the new widgethandler is ready.
^This doesn't mean you can't try writing one btw, just that it won't be released in S44 main archive.
Re: UI how to start ?
FFS, not every one is YOU, and a lot of people like the SC2 UI.Forboding Angel wrote:Edit: Also, take it from an sc2 player... the sc2 ui is shit. Don't try to emulate it. Players will hate it.
- Forboding Angel
- Evolution RTS Developer
- Posts: 14673
- Joined: 17 Nov 2005, 02:43
Re: UI how to start ?
Read the entire post, ass.
@shrapnel, same goes for you.
@shrapnel, same goes for you.
Re: UI how to start ?
this is not really true; although you make a point here about clickable aspect it the offset angle of the camera from 90 degrees (which gives you a roughly square region of the battlefield on a widescreen monitor)Forboding Angel wrote:horizontal maneuver zone is 1/3rd bigger than your vertical maneuver zone
anyways. not a critique thread. lets help him with his gui
Re: UI how to start ?
shrap, from memory...
\luaui\widgets\chili\*.*
\luaui\widgets\api_chili.lua
and pretty much every .lua file in
\luaui\
\luaui\widgets\chili\*.*
\luaui\widgets\api_chili.lua
and pretty much every .lua file in
\luaui\
-
- Posts: 31
- Joined: 25 Jun 2010, 20:16
Re: UI how to start ?
what i did, but I still have same problem that with iceUI : I don't see Chili in the widget menu (F11). I would like to make a mutator for s44 but I need documentation I don't know which file call wich file and fucntion.. I don't know where I have to say to spring which UI to use etc.. so there is a documentation somewhere ?
-
- Posts: 31
- Joined: 25 Jun 2010, 20:16
Re: UI how to start ?
here the trick :
I got chili from zerok, but the folder widget in zerok is written with a small 'w' And spring needs a folder with a cap 'W'. So after renamed
Now when i click on they turn in yellow but don't appear on the screen.
I got chili from zerok, but the folder widget in zerok is written with a small 'w' And spring needs a folder with a cap 'W'. So after renamed
- /home/user/.spring/LuaUI/widgets
- /home/user/.spring/LuaUI/Widgets
Now when i click on they turn in yellow but don't appear on the screen.
-
- Posts: 31
- Joined: 25 Jun 2010, 20:16
Re: UI how to start ?
ok always caps problem i renamed :
- Controls
Handlers
Skins
Headers
Themes
- /home/user/.spring/LuaUI/Widgets/chili
Code: Select all
[f=0001499] Loading: LuaUI/Widgets/gui_chili_facbar.lua
[f=0001499] false
[f=0001499] Error in Initialize(): [string "LuaUI/Widgets/gui_chili_facbar.lua"]:281: attempt to call field 'GetBuildIconFrame' (a nil value)
[f=0001499] Removed widget: Chili FactoryBar
[f=0001593] Loading: LuaUI/Widgets/gui_chili_minimap.lua
[f=0001593] false
[f=0001593] Error in Initialize(): [string "LuaUI/Widgets/gui_chili_minimap.lua"]:125: attempt to index field 'crude' (a nil value)
[f=0001593] Removed widget: Chili Minimap
-
- Posts: 31
- Joined: 25 Jun 2010, 20:16
Re: UI how to start ?
I found a way to work ChiliFactory Bar by replacing
with
in gui_chili_facbar.lua like someone did in gui_chili_radial_buildmenu.lua
i commented from line 120 to line 126 in gui_chili_minimap.lua and Chiliminimap works but not properly :

As you can see I don't have comands menu...
Code: Select all
file2 = WG.GetBuildIconFrame(ud),
Code: Select all
file2 = 'LuaUI/Images/nested_buildmenu/frame_Fac.png',
i commented from line 120 to line 126 in gui_chili_minimap.lua and Chiliminimap works but not properly :

As you can see I don't have comands menu...
-
- Posts: 1398
- Joined: 17 Sep 2008, 04:36
Re: UI how to start ?
You will need a lot of stuff from 'zk/LuaUI/Images', maybe just copy the whole folder maybe to (You will probably end up using mostly your images in the end anyway).
There is also some necessary files in 'zk/LuaUI/Configs', just take whatever mentions chili.
Not things needed by the chili framework itself but by the various chili widgets that zk packages.
There is also some necessary files in 'zk/LuaUI/Configs', just take whatever mentions chili.
Not things needed by the chili framework itself but by the various chili widgets that zk packages.
-
- Posts: 31
- Joined: 25 Jun 2010, 20:16
Re: UI how to start ?
i think you right, moreover after scrolling in infologs, i saw that i need luarules too. Now I have other errors... well i take a break!
horror movie & coffee time

-
- Posts: 31
- Joined: 25 Jun 2010, 20:16
Re: UI how to start ?
Well, i just saw that some lua files use a directory called images and some other use a directory called Images such things should not hapen! I know that windows don't take care about sensitive but linux does! so you should take a decision about caps or not and respect it every where.
-
- Posts: 31
- Joined: 25 Jun 2010, 20:16
Re: UI how to start ?
about that i just read :EatMyShrapnel wrote:I found a way to work ChiliFactory Bar by replacingCode: Select all
file2 = WG.GetBuildIconFrame(ud),
Code: Select all
NOTE FOR OTHER GAME DEVS:
ZK uses WG.GetBuildIconFrame to draw the unit type border around buildpics.
If you're not using them (likely), remove all lines containing that function.
-
- Posts: 31
- Joined: 25 Jun 2010, 20:16
Re: Chili exploration
many things works now :

I had to change several stuffs.
Now I have some problem with tooltip if someone can explains to me what do these lines in gui_chili_tip.lua:
that can maybe help me. Here the error msg in infologs.txt :
Other problem, when I start the game some chili widgets are in yellow in the widget selector, if i click on to activate them they works. In infologs.txt I have no information about any error or stop. They appear loaded at the start in infolog.txt
another coffee & horror movie break

I had to change several stuffs.
Now I have some problem with tooltip if someone can explains to me what do these lines in gui_chili_tip.lua:
Code: Select all
local function GetUnitIcon(ud)
if not ud then return false end
return icontypes
and icontypes[(ud and ud.iconType or "default")].bitmap
or 'icons/'.. ud.iconType ..iconFormat
end
Code: Select all
[f=0040418] Loading: LuaUI/Widgets/gui_chili_selections_and_cursortip.lua
[f=0040566] false
[f=0040566] Error in Update(): [string "LuaUI/Widgets/gui_chili_tip.lua"]:872: attempt to index field '?' (a nil value)
[f=0040566] Removed widget: Chili Cursor Tip 3
another coffee & horror movie break
-
- Posts: 1398
- Joined: 17 Sep 2008, 04:36
Re: Chili exploration
That looks like it gets the strategic icon of the unit to use in the tooltip:
-
- Posts: 31
- Joined: 25 Jun 2010, 20:16
Re: Chili exploration
thx, with your help i fixed the problem :

when I start the game some chili widgets are in yellow in the widget selector, if i click on to activate them they works. In infologs.txt I have no information about any error or stop. They appear loaded at the start in infolog.txt. I did some interesting test :
if I load any chili widget before Chili framework, the widget don't work, this is correct. I think I have to load the framework beofre any widget, but I don't know how to do that

when I start the game some chili widgets are in yellow in the widget selector, if i click on to activate them they works. In infologs.txt I have no information about any error or stop. They appear loaded at the start in infolog.txt. I did some interesting test :
if I load any chili widget before Chili framework, the widget don't work, this is correct. I think I have to load the framework beofre any widget, but I don't know how to do that
Re: Chili exploration
That's why chili needs currently a modified widgetHandler. Chili defines `api=true` in its GetInfo() and CA/ZK's widgetHandler loads those before all others.EatMyShrapnel wrote:when I start the game some chili widgets are in yellow in the widget selector, if i click on to activate them they works. In infologs.txt I have no information about any error or stop. They appear loaded at the start in infolog.txt. I did some interesting test :
if I load any chili widget before Chili framework, the widget don't work, this is correct. I think I have to load the framework beofre any widget, but I don't know how to do that
(BTW the new widgetHandler will support a much more selective dependency method, similar to the one in gentoo's init.d scripts)
-
- Posts: 31
- Joined: 25 Jun 2010, 20:16
Re: Chili exploration
I see :
but infologs doesn't tell me from which file you specify to load the framework before other widget. I tried to find api_chili.lua in any file but I failed. So please tell me how to say to spring to load the framework before widget
Code: Select all
[f=0000000] Loaded API widget: Shared Functions <api_shared_functions.lua>
[f=0000000] Loaded API widget: Modular Comm Info <api_modularcomms.lua>
[f=0000000] Loaded API widget: Chili Framework <api_chili.lua>
[f=0000000] Loaded API widget: Lups <lups_wrapper.lua>
[f=0000000] Set UnitIconDist to 250
[f=0000000] Ground decals are enabled
[f=0000000] Advanced shading enabled
[f=0000000] Set maximum particles to: 20000
[f=0000000] Loaded widget: EPIC Menu <gui_epicmenu.lua>