50 cookies to the first person who can implement chilli... - Page 2

50 cookies to the first person who can implement chilli...

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

Moderator: Moderators

Regret
Posts: 2086
Joined: 18 Aug 2007, 19:04

Re: 50 cookies to the first person who can implement chilli...

Post by Regret »

CarRepairer wrote:It means I copy files with important sounding names from CA until Chili finally works.
Good approach. :regret:
Google_Frog
Moderator
Posts: 2464
Joined: 12 Oct 2007, 09:24

Re: 50 cookies to the first person who can implement chilli...

Post by Google_Frog »

I prefer to copy over everything that sounds like it may be vaguely relevant and delete non-important sounding files until it doesn't work. When it doesn't work I add the thing that made it not work and delete something else. This way I am sure I only have the important files.
User avatar
Forboding Angel
Evolution RTS Developer
Posts: 14673
Joined: 17 Nov 2005, 02:43

Re: 50 cookies to the first person who can implement chilli...

Post by Forboding Angel »

Sounds good. And yes, evo doesn't so much block local widgets from being used as much as VFS isn't even aware that the users local widgets directory even exists. So yes it is a custom widget handler (if you can call it that), so if that changes I need to know, but otherwise, lets do eet! :-)
User avatar
CarRepairer
Cursed Zero-K Developer
Posts: 3359
Joined: 07 Nov 2007, 21:48

Re: 50 cookies to the first person who can implement chilli...

Post by CarRepairer »

I put chili in evo and said I would document what I did, but I have no idea what I did. I just kept adding files from CA and removing files from evo until the errors stopped screaming at me.
User avatar
Forboding Angel
Evolution RTS Developer
Posts: 14673
Joined: 17 Nov 2005, 02:43

Re: 50 cookies to the first person who can implement chilli...

Post by Forboding Angel »

Yeah, I noticed that my widget handler is now been replaced by the one from CA. No big deal really, I can fix that fairly easily once I get the time to screw with it, but priority of changing the vfs stuff is pretty low. I cannot thank you enough for getting in in there. I have already done TONS of stuff with it, and I'm planning quite a bit more. Chilli really is a quite excellent framework.

And for you good sir, a cookie mountain:

Image
User avatar
oksnoop2
Posts: 1207
Joined: 29 Aug 2009, 20:12

Re: 50 cookies to the first person who can implement chilli...

Post by oksnoop2 »

CarRepairer wrote:I put chili in evo and said I would document what I did, but I have no idea what I did. I just kept adding files from CA and removing files from evo until the errors stopped screaming at me.
Aw.. No tutorial is on the way.
User avatar
Niobium
Posts: 456
Joined: 07 Dec 2008, 02:35

Re: 50 cookies to the first person who can implement chilli...

Post by Niobium »

I was pretty shocked at chilli being so hard to integrate, given that a lot of it is well written. So I tried implemented it myself, here are the steps:

Step 1) Copy in LuaUI\Widgets\api_chili.lua and LuaUI\Widgets\chilli folder.
Step 2) Add 'newproxy = newproxy,' to the 'System' table in LuaUI\system.lua

Done. At least the simple chilli_selections widget works with chilli-style window/bars/etc showing up perfectly.
Post Reply

Return to “Lua Scripts”