[Updated] Chili Endgame Stats v1.0

[Updated] Chili Endgame Stats v1.0

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

Moderators: Moderators, Moderators

User avatar
Funkencool
Posts: 542
Joined: 02 Dec 2011, 22:31

[Updated] Chili Endgame Stats v1.0

Post by Funkencool »

I have it integrated with my menu in BAR
Image

But it will work without it..
Image
The tooltip is set according to mouse position but I'm not sure any other tooltip widgets handle it like mine does, so mileage may very as far as that goes.

I'll try my best to keep this post updated if I make any changes, otherwise it should be mostly up to date in the BAR repo.
Let me know if there's something you want that's missing or a bug and I'll see what I can do.
gui_chili_funks_endgraph.lua
(12.84 KiB) Downloaded 41 times
Last edited by Funkencool on 04 Feb 2014, 13:59, edited 6 times in total.
0 x

Google_Frog
Moderator
Posts: 2445
Joined: 12 Oct 2007, 09:24

Re: Chili Endgame Stats

Post by Google_Frog »

Nice. This should be very useful.
0 x

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

Re: Chili Endgame Stats

Post by Forboding Angel »

Image

It seems that sometimes numbers can be so far apart that the ones on the bottom get shoved halfway out of view.

Also, it seems that numbers will cover each other up in certain circumstances.

Suggestion: Display the total game time in the bottom right of the graph, and maybe even have markers as 5 minutes intervals so that you can see roughly what that line was at at X gametime?
0 x

User avatar
Funkencool
Posts: 542
Joined: 02 Dec 2011, 22:31

Re: Chili Endgame Stats

Post by Funkencool »

Updated OP with latest version. It's still WIP but it's coming along nicely (i actually haven't worked on it for quite awhile :regret: ).

My next step is non-engine stats, so... let's see some ideas for interesting stats people might want to see. (And yes, It's probably been discussed many times before but that was before anyone actually lua'd a widget so on with it)
0 x

User avatar
Jools
XTA Developer
Posts: 2806
Joined: 23 Feb 2009, 16:29

Re: [WIP]Chili Endgame Stats

Post by Jools »

Yes, I think having the normal graph is better than the cumulative one. In standard end screen everybody looks at the cumulative one, but I think that's only because the normal one is so cluttered.

About some stats to have: how about weighting the number of units killed by their hp? It's still better to kill a Sumo than a Flea...

On the other hand, a life is a life.
0 x

User avatar
PicassoCT
Journeywar Developer & Mapper
Posts: 10276
Joined: 24 Jan 2006, 21:12

Re: [WIP]Chili Endgame Stats

Post by PicassoCT »

I would luve a cause-effect-effectiveness graph..

Basically how many click had to be invested per minute, to how much action happening on screen (action beeing stuff builded, ressources, gathered, units blown to narnia)
0 x

User avatar
Beherith
Moderator
Posts: 4934
Joined: 26 Oct 2007, 16:21

Re: [WIP]Chili Endgame Stats

Post by Beherith »

Goddamn that is beautiful. Great job!
0 x

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

Re: [WIP]Chili Endgame Stats

Post by Forboding Angel »

If a player resigns from the game, their name is not displayed at the end of the game, instead it reads as "No-Text".

Image
0 x

User avatar
Funkencool
Posts: 542
Joined: 02 Dec 2011, 22:31

Re: [WIP]Chili Endgame Stats

Post by Funkencool »

I think I've knocked out all of the bugs I know of (including yours). I'll link or attach the new one when I finish up on a few things. Right now I have it tied to my menu system (barely), but I'll implement a check to use it's own window when needed. Besides that, right now I'm working on toggling players being graphed or not.

PS: The newest one should always be in the BAR repo, unless I branch it locally (like now). Plus it's probably best to wait for this version.
Last edited by Funkencool on 04 Feb 2014, 13:50, edited 1 time in total.
0 x

dansan
Server Owner & Developer
Posts: 1193
Joined: 29 May 2010, 23:40

Re: [WIP]Chili Endgame Stats

Post by dansan »

These are great!

Can you add game time labels to the x axis?
0 x

User avatar
Funkencool
Posts: 542
Joined: 02 Dec 2011, 22:31

Re: [WIP]Chili Endgame Stats

Post by Funkencool »

dansan wrote:These are great!

Can you add game time labels to the x axis?
I threw some in there, but my end goal is to also add a small tooltip to show the time and approximate score of anywhere on the graph. Then you can be really exact if you see something interest.
0 x

dansan
Server Owner & Developer
Posts: 1193
Joined: 29 May 2010, 23:40

Re: [WIP]Chili Endgame Stats

Post by dansan »

Whoa - very nice!!
0 x

User avatar
Funkencool
Posts: 542
Joined: 02 Dec 2011, 22:31

Re: [Updated] Chili Endgame Stats v1.0

Post by Funkencool »

Finally got to updating OP with my recent version. I messaged Forb with a link a few days ago and haven't heard anything so I'll assume that's a good sign it's mostly bug free.
0 x

User avatar
Jools
XTA Developer
Posts: 2806
Joined: 23 Feb 2009, 16:29

Re: [Updated] Chili Endgame Stats v1.0

Post by Jools »

Image

Any chance to replace this checkbox with something else? It looks like what you see if you lift your cat's tail and look at what's underneath.

Otherwise the widget looks nice.
0 x

User avatar
Funkencool
Posts: 542
Joined: 02 Dec 2011, 22:31

Re: [Updated] Chili Endgame Stats v1.0

Post by Funkencool »

Thanks and I can but so can anyone, it just depends what skin chili is using. Look at the second image for example.
I'll keep that in mind though :regret:
0 x

luckywaldo7
Posts: 1397
Joined: 17 Sep 2008, 04:36

Re: [Updated] Chili Endgame Stats v1.0

Post by luckywaldo7 »

Jools wrote:Image

Any chance to replace this checkbox with something else? It looks like what you see if you lift your cat's tail and look at what's underneath.

Otherwise the widget looks nice.
Chili skins are stupidly easy to make; just go download the source and replace the corresponding png files with your own.
0 x

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

Re: [Updated] Chili Endgame Stats v1.0

Post by smoth »

you don't even have to replace the skin. Your widget can specify any chili skin setting as part of any chili element.
0 x

User avatar
Funkencool
Posts: 542
Joined: 02 Dec 2011, 22:31

Re: [Updated] Chili Endgame Stats v1.0

Post by Funkencool »

I don't mind the off-topic but before it goes on, know that I'm writing up a topic on chili skins right now. I feel like it's a thread worthy subject now more than ever. Plus if I do it right maybe chili will see more original skins?
0 x

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

Re: [Updated] Chili Endgame Stats v1.0

Post by smoth »

maybe, it couldn't hurt and people can always learn more, even I could learn more about chili's capabilities.
0 x

User avatar
zoggop
Posts: 289
Joined: 07 Sep 2010, 18:47

Re: [Updated] Chili Endgame Stats v1.0

Post by zoggop »

Code: Select all

Error in GameOver(): [string "LuaUI\Widgets\gui_chili_funks_endgraph.lua"]:351: attempt to index upvalue 'Chili' (a nil value)
I'm guessing it needs to be used in a game that uses Chili? (this is in BA unreloaded)
0 x

Post Reply

Return to “Lua Scripts”