I'm looking for a way to make a widget for spectators to easily follow which team is leading in terms of eco, metal, energy, maybe kills too.
I'm looking into advice about how to format the interface, maybe a bar graph of eco ratios, where leading team is 100% would be nice. But there are probably better ideas too. If you've played civilization, you know that it has a good graph over civilization influence, maybe something like that.
Also I'm not really certain of how to draw that graph in the spring UI in the game.
Update: Newest version = 1.3
Attachments:
File comment: Version 1.3 ecostats_1.3.zip [186.7 KiB]
Downloaded 34 times
Last edited by Jools on 07 Sep 2011, 02:30, edited 8 times in total.
Very good idea, and i've got some exta inut for you:
It would be nice if you dont fill the bar up to 100% but instead add a prospected eco amount that fills up the remaining percentage to 100% The prostpected amount is just an addup of all unfinished eco buildings.
And... maybe also count the total firepower of the units availible for each team. Then you truly get to know if a bigger eco probably means victory or fail.
Very good idea, and i've got some exta inut for you:
It would be nice if you dont fill the bar up to 100% but instead add a prospected eco amount that fills up the remaining percentage to 100% The prostpected amount is just an addup of all unfinished eco buildings.
And... maybe also count the total firepower of the units availible for each team. Then you truly get to know if a bigger eco probably means victory or fail.
That's a very good idea. With total firepower, you mean sum of all hitpoints of war units?
I though of something like this:
Alternative 1 would have a history of eco ratios; alternative 2 would just show current ratios but be easier to make, and to also show more information.
Below is a screenshot with explanations to how it works. I don't like mouseover tooltips, so he who wants to know the functionality should read this message (or ask someone else).
Legend:
1. Buildpower bar. Leading team's is 100%, rest of teams show ratio to leader. This has two parts: the green shows buildpower other than air, and the yellow shows air buildpower (in this game no-one has air bp). Buildpower means sum of all team units of the ".buildSpeed" value in unitDefs.
2. Springkills. How many kills the team has according to spring engine.
3. Firepower bar. Works as the buildpower bar, except the blue is mobile firepower and the black is stationary. Firepower means sum of HP of all units that have weapons.
4. Team Kills, calculated as kills when one finished unit is destroyed by an enemy.
5. Team losses. Works the same way.
6. Team energy income per second ratio. The leading team bar is shown as 100%, and other team bars are shown as ratios of leader.
7. Springlosses. How many units the team has lost according to the spring engine.
8. Team energy income per second..
9. Team metal income per second ratio. Works similar to the energy bar (yum)
10. Player side, colour and whether he has commander alive (if commander is dead the emblem is shown as a miniature format, kinda like in super mario bro's 2 in Nintendo; if player is dead then nothing is shown).
11.Team metal income per second.
12 (missing, to the left of 10) The start position of the team, if present. (Average of individual players' start positions).
Btw, team means team as in normal language, Juventus is a football team and it consists of a number of players.
whats the diffrence between 'spring kills' and 'team kills'? does spring kills also counts friendly fire as kills? It just confuses and doesnt give much more valuable info. Just count total lost units in one number.
For the rest, totally awesome! You made it very very complete!
You could scale down the teamcolor squares to half it's size, this way you can fit 10 players in 2 rows just fine.
And yes being able to drag the widget position would be welcome.
Maybe 'rename' "Kill & Losses" to "Kills & Deaths" or "Wins & Losses". Just to be consist.
Yes, my wish is also to be able to move it, I'm working on it and trying to figure out how to do it. I know that fore some people it might appear in the middle of the screen.
Although not documented, I think spring counts a loss or death (OTA uses kills and losses) as whenever a unit that has an id ceases to exist. I think this could mean when you cancel a build queue, when you morph a commander, when you self-d a unit, when a bomber bombs your factory and kills 10 units in the queue etc. Not sure how kills are calculated.
Eventually I'd like to use just one number, but I put both there to have a means to compare with the end-game statistics. Also, if you reload the widget the counters get reset, but not the spring ones.
Last edited by Jools on 17 Jul 2011, 15:15, edited 1 time in total.
The ding.ogg is a sound file and it goes into spring/LuaUI/Sounds. Ogg is just like .mp3 except not under copyright.
It plays a "DING" sound when someone takes the lead. If you dont want it you can disable it by setting the "SoundOn" setting to false in the widget (line 46), or just ignore it (I updated the widget to check for the presence of the file).
You mean fixlists between version or what remains to be done?
There have been tons of small fixes and bugfixes, such as: -- killcondition for a team was no e production, now checks No of units -- Removed springskills and now labels for kills and losses, you know what they are anyway. -- Added a kill and lossesbar to the bottom. Each kill = 1 pixel until someone exceeds widget width. -- Added a check for when a team has placed their start marks and how many people have connected. -- Added: when a player has units but has adandoned them, the side icon will show as dimmed. -- When teams have died it removes the eco counters and shows kills and losses summary.
Last edited by Jools on 04 Apr 2012, 21:49, edited 1 time in total.
Users browsing this forum: No registered users and 1 guest
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot post attachments in this forum