For now i used a very simple formula: i additioned the three color, if total is more than 0.9 (max = 3) then there is an outline. If you have a better formula, just send it to me and i will put it in the code.
A formula for converting RGB values to a greyscale value based on human perception:
Y = 0.2126 R + 0.7152 G + 0.0722 B
Although I haven't tested it, I would think this should give decent results with a cutoff around 0.5
Version 6 is out. Most of the problems reported should be solved.
Here is a description of the current version:
The advanced players list replaces the standard list of the players. The list has a better layout and sort players according to category (allies, ennemies, spectators). Each ennemy team is separated. Comsharing is visible (players pack). AI-players are shown.
Info and controls are included in several modules:
- SIDE module displays an icon that indicates the side (arm, core or so). It also shows players that are comsharing.
- ID module displays the player's ID.
- NAME module displays the player's name.
- CPUPING module displays the player's cpu usage and ping with nice coloured icons (red is worst).
- SHARE module displays ressources stall of allies and allow players to share units (double click) or ressources (slider). Use your own buttons to ask for ressources.
- TAKE module shows a take icon when an allied team has no player anymore (and no AI).
- POINT module shows a point icon when an allied player adds a point on the map. You can then click on the icon to focus on the point.
- SPEC module allows you to choose the player to spec when you are a spectator.
You can add/remove modules and set widget's position in tweak mode (Ctrl F11). The broad arrows show where the widget will expand if getting larger (more modules/players). To change those arrows, just drag the widget to the opposite border.
-(un)hide-button for specs
-if energy=0 at own player, then dont post *name* wants 0 energy (better: *name* needs energy/metal)
-show names of players also in startpos-phase
bugs:
-ping and cpu-usage is to high (i think its 1000*times to high)
@YHCIR: Point marker just records the points that are drawn and stays for 20 secs no matter if the point is deleted. It il always linked to the LAST point drawn by player.
@Car: you can put the widget wherever you want. You can even choose in which direction it will expand.
V. 7 is out:
Bugfixes:
The "no player yet" bug resolved.
The ping/cpu bug resolved.
Enhancements:
The "I need metal" message replaced "I need 0 metal".
Spec hide button available in tweakmode.
Better saved settings behaviour when changing resolution.
@ZellSF: I am not sure of what border you are talking about (in tweak mode?). Sending a screenshot would help me help you.
@Manolo: This could come from the interaction between old and new saved config. Try to put it at the right place using tweakmode (Ctrl+F11) and tell me if it worked or not.
Two bugs:
1: IDs seem to screw up when players leave?
2: the /take announce should be done in ally chat, seeing as the engine doesn't announce who takes...
Both your request are quite easy to solve i think. Will be in the next version.
(ID of teams with no players are generated for internal purpose, i can just not show them)
@ Manolo:
1. There is a button to remove specs in the tweakmode.
2. If you need to send constant E flow to somebody, just give a powerplant.
1) didnt knew (that with the unhide specs), but i need to much clicks to do it :) and could u add some tooltips for that icons?
2) i just thought something like that: u have the energybar (within the ad. playerlist) from 0 to max. what u have now, when u put it a lil bit higher (than that maximum), u share (as long as u activate it) all the not used energy to that player