Advanced Players List widget - Page 8

Advanced Players List widget

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

Moderator: Moderators

User avatar
AF
AI Developer
Posts: 20687
Joined: 14 Sep 2004, 11:32

Re: Advanced Players List widget

Post by AF »

Eurgh russian page with no translations...
User avatar
very_bad_soldier
Posts: 1397
Joined: 20 Feb 2007, 01:10

Re: Advanced Players List widget

Post by very_bad_soldier »

Yay I like it already just be seeing the screenshot!

AF:
No translation needed.
User avatar
Tribulex
A.N.T.S. Developer
Posts: 1894
Joined: 26 Sep 2009, 21:26

Re: Advanced Players List widget

Post by Tribulex »

AF wrote:Eurgh russian page with no translations...
lern 2 russian, lern 2 google, or lern 2 internet.
User avatar
ginekolog
Posts: 837
Joined: 27 Feb 2006, 13:49

Re: Advanced Players List widget

Post by ginekolog »

yES,rank display might be just perfect :)
User avatar
manolo_
Posts: 1370
Joined: 01 Jul 2008, 00:08

Re: Advanced Players List widget

Post by manolo_ »

uploaded to downloader and made it compatible to widget ranks
User avatar
bartvbl
Posts: 346
Joined: 21 Mar 2009, 15:55

Re: Advanced Players List widget

Post by bartvbl »

nice widget!
The only think I miss, though, is a handler that allows you to drag it around. Mine tends to fill the middle of the screen now and then, which is really annoying.
User avatar
very_bad_soldier
Posts: 1397
Joined: 20 Feb 2007, 01:10

Re: Advanced Players List widget

Post by very_bad_soldier »

bartvbl wrote:nice widget!
The only think I miss, though, is a handler that allows you to drag it around. Mine tends to fill the middle of the screen now and then, which is really annoying.
Sounds awful, but well, try tweak mode (Ctrl-F11).
slogic
AI Developer
Posts: 626
Joined: 17 Mar 2008, 19:03

Re: Advanced Players List widget

Post by slogic »

Version 7.3.1.

Changelog:
* changed AI name format from "AI-Bot" to more informative: "AI:<AI_SHORT_NAME>-<AI_VERSION>"

Archive contains only script without resources (grab them by Spring Downloader).

PS. As i understand last committee forget to add switcher for rank column. Right?
PSS. This script will work on localhost only. Proper bot names should be provided by lobbies which generate script.txt file.
Attachments
gui_advplayerslist-7.3.1.zip
(12.31 KiB) Downloaded 38 times
Last edited by slogic on 12 Jul 2010, 18:56, edited 2 times in total.
User avatar
hoijui
Former Engine Dev
Posts: 4344
Joined: 22 Sep 2007, 09:51

Re: Advanced Players List widget

Post by hoijui »

the ShortName and Version is only known on the host of the AI, is it still "AI-Bot" for the others?
There is also a Name for AIs (also set for local AIs only). it is meant to be used in places like this (where player names are shown). your change is better then what it was, thanks :-)

edit: current problem with the Name of AIs, is that the lobbies defaults are not so nice there ("Bot1", "Bot2", ...). If they would be: ShortName_Version_1 eg, we would get the pro of both ways.
slogic
AI Developer
Posts: 626
Joined: 17 Mar 2008, 19:03

Re: Advanced Players List widget

Post by slogic »

> the ShortName and Version is only known on the host of the AI, is it still "AI-Bot" for the others?
I think it should break even earlier. Here:

Code: Select all

local _, _, _, isAI, tside, tallyteam = Spring_GetTeamInfo(teamID)
isAI should return FALSE for non-host machines and name provided by lobby will be used for AI.
slogic
AI Developer
Posts: 626
Joined: 17 Mar 2008, 19:03

Re: Advanced Players List widget

Post by slogic »

Shit, while watching demo file script crashed:

Code: Select all

[    416] Error in Initialize(): [string "LuaUI\Widgets\gui_advplayerslist.lua"]
:485: attempt to concatenate local 'version' (a table value)
I need to update it...

PS. File is updated above.
User avatar
jamerlan
Balanced Annihilation Developer
Posts: 683
Joined: 20 Oct 2009, 13:04

Re: Advanced Players List widget

Post by jamerlan »

slogic wrote: PS. As i understand last committee forget to add switcher for rank column. Right?
Right. I will fix it in the nearest future. Also i don't know how to commit resources (images with rank icons). So i will attach them to this thread.
User avatar
jamerlan
Balanced Annihilation Developer
Posts: 683
Joined: 20 Oct 2009, 13:04

Re: Advanced Players List widget

Post by jamerlan »

jamerlan wrote:Right. I will fix it in the nearest future.
I updated "Advanced Players List widget" as i promise.
Changes:
1) Ability to turn on/off rank info
2) Golden star rank (best rank) was not handled by previous versions of widget so it was fixed too

I tested it only using AI bots (can't play online from work). Please test it and (upload to widgets server)/(include in mods like BA)/(report bugs).

New version is attached to this message (no russian sites anymore :-D)
Attachments
LuaUI_7_4.zip
7.4 version of advanced players list
Fixed:
-> missing golden star
-> missing ability to turn off rank column
(18.44 KiB) Downloaded 32 times
User avatar
jamerlan
Balanced Annihilation Developer
Posts: 683
Joined: 20 Oct 2009, 13:04

Re: Advanced Players List widget

Post by jamerlan »

Also i found little bug but don't know how to fix it...

I need energy bug (used not max resources amount but available resources amount to ask)
(description) you can share or ask for resources using one slider, so uou can't share more than you already has and because slider is the same, you can't ask more than you has too
UAF
Posts: 96
Joined: 02 Jan 2008, 19:25

Re: Advanced Players List widget

Post by UAF »

Without looking at the code or knowing much about lua widgets:
Why not check which slider the player is using, and if its his own set the maximum to something high (1000, 2000?) instead of how much he has?
User avatar
Marmoth
Posts: 63
Joined: 26 Mar 2008, 20:44

Re: Advanced Players List widget

Post by Marmoth »

Hi,

Attached, an advplayerslist file with the "I need energy" bug solved and some code cleanup.

Jamerlan, can i let you make the package? Btw, there is only rank images in the previous one you submitted, you should add the other ones.

Have a nice day/night/evening/morning,

Marmoth
Attachments
gui_advplayerslist.lua
(65.16 KiB) Downloaded 121 times
User avatar
jamerlan
Balanced Annihilation Developer
Posts: 683
Joined: 20 Oct 2009, 13:04

Re: Advanced Players List widget

Post by jamerlan »

Marmoth wrote: Jamerlan, can i let you make the package? Btw, there is only rank images in the previous one you submitted, you should add the other ones.
to Marmoth: glad to see you at this thread! Thank you for very useful widget and great job! Previously, I included only rank images because I made some changes to them. And I agree that complete package is much easier to use. Zip archive with all images attached to this message.

to all: please test it and (upload to widgets server)/(include in mods like BA)/(report bugs).
Attachments
LuaUI_7_5.zip
Marmoth: "I need energy" bug solved and some code cleanup + all images
(50.17 KiB) Downloaded 42 times
User avatar
Marmoth
Posts: 63
Joined: 26 Mar 2008, 20:44

Re: Advanced Players List widget

Post by Marmoth »

nice thx!
User avatar
very_bad_soldier
Posts: 1397
Joined: 20 Feb 2007, 01:10

Re: Advanced Players List widget

Post by very_bad_soldier »

Did you already take a look Marmoth? Should it be added to the widget-DB?
User avatar
Marmoth
Posts: 63
Joined: 26 Mar 2008, 20:44

Re: Advanced Players List widget

Post by Marmoth »

I had a look: seems ok (didn't make extensive testing though).

Here a slightly modified version that should make double click (to give units) easier when the game is laggy and corrects a mistake in the tooltip text.

I think its worth updating it in the widget db.
Attachments
advPlayersList v7.6.zip
(50.78 KiB) Downloaded 38 times
Post Reply

Return to “Lua Scripts”