Advanced Players List widget - Page 5

Advanced Players List widget

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

Moderator: Moderators

Post Reply
winthrowe
Posts: 5
Joined: 24 Jul 2006, 03:46

Re: Advanced Players List widget

Post by winthrowe »

Marmoth wrote:to Zell:

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

found at http://en.wikipedia.org/wiki/Luminance_(relative)
User avatar
Marmoth
Posts: 63
Joined: 26 Mar 2008, 20:44

Re: Advanced Players List widget

Post by Marmoth »

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.

I hope you will enjoy it.
YHCIR
Posts: 190
Joined: 12 Aug 2006, 23:06

Re: Advanced Players List widget

Post by YHCIR »

Some great features, but how exactly does the point marker work?

It seems to flash even after you have deleted the point, until you mouseover the flashing dot.

Would be nice if you could put lobby rank next to a players name also.
User avatar
CarRepairer
Cursed Zero-K Developer
Posts: 3359
Joined: 07 Nov 2007, 21:48

Re: Advanced Players List widget

Post by CarRepairer »

I hope you are no longer biased against the X-axis :-)
User avatar
manolo_
Posts: 1370
Joined: 01 Jul 2008, 00:08

Re: Advanced Players List widget

Post by manolo_ »

hi,

request:

-(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)

but i like that widget, its really isefull
YHCIR
Posts: 190
Joined: 12 Aug 2006, 23:06

Re: Advanced Players List widget

Post by YHCIR »

manolo_ wrote:hi,
request:
-show names of players also in startpos-phase
Yes, it currently just says "not player yet" until the game actually begins.
User avatar
Marmoth
Posts: 63
Joined: 26 Mar 2008, 20:44

Re: Advanced Players List widget

Post by Marmoth »

@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
Posts: 1187
Joined: 08 Jul 2006, 19:07

Re: Advanced Players List widget

Post by ZellSF »

How do I get rid of all the borders? I tried setting all glcolors that seemed related to 0,0,0,0 but the top border stayed
User avatar
manolo_
Posts: 1370
Joined: 01 Jul 2008, 00:08

Re: Advanced Players List widget

Post by manolo_ »

my screen-reso is 1280x800 and the widget isnt in the right bottom corner since i updated it to v7. look at screen
Attachments
screen000.jpg
(294.54 KiB) Downloaded 41 times
User avatar
Marmoth
Posts: 63
Joined: 26 Mar 2008, 20:44

Re: Advanced Players List widget

Post by Marmoth »

@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.

Thx for report.

Marmoth
User avatar
manolo_
Posts: 1370
Joined: 01 Jul 2008, 00:08

Re: Advanced Players List widget

Post by manolo_ »

worked perfect, i thought that is just for iceui :)
User avatar
Marmoth
Posts: 63
Joined: 26 Mar 2008, 20:44

Re: Advanced Players List widget

Post by Marmoth »

Version 7.1 is out:

Shared units are marked by points.
Point signals don't blink anymore but fade in 20 secs.
Bugfixes.
Tobi
Spring Developer
Posts: 4598
Joined: 01 Jun 2005, 11:36

Re: Advanced Players List widget

Post by Tobi »

Link on first page is broken.
ZellSF
Posts: 1187
Joined: 08 Jul 2006, 19:07

Re: Advanced Players List widget

Post by ZellSF »

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...
User avatar
manolo_
Posts: 1370
Joined: 01 Jul 2008, 00:08

Re: Advanced Players List widget

Post by manolo_ »

request:

-button for permanent sharing E to one special player (e.g. i need i for dgun-party and cloak...)
-button for (un)hide specs
User avatar
Marmoth
Posts: 63
Joined: 26 Mar 2008, 20:44

Re: Advanced Players List widget

Post by Marmoth »

@ Zell SF:

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.
User avatar
manolo_
Posts: 1370
Joined: 01 Jul 2008, 00:08

Re: Advanced Players List widget

Post by manolo_ »

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
ZellSF
Posts: 1187
Joined: 08 Jul 2006, 19:07

Re: Advanced Players List widget

Post by ZellSF »

Hmm, problem seems to be that ids seems to included spectators when counting, which it shouldn't.
User avatar
Marmoth
Posts: 63
Joined: 26 Mar 2008, 20:44

Re: Advanced Players List widget

Post by Marmoth »

ID fixed (using Team ID now)
Added chat button to send private message to players (especially useful in ffa games)
User avatar
Jazcash
Posts: 5309
Joined: 08 Dec 2007, 17:39

Re: Advanced Players List widget

Post by Jazcash »

Every time I enable ID's I get spam flooded with "gogo".
Post Reply

Return to “Lua Scripts”