Advanced Players List widget - Page 6

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
Marmoth
Posts: 63
Joined: 26 Mar 2008, 20:44

Re: Advanced Players List widget

Post by Marmoth »

please update the widget
this bug has been solved
User avatar
ginekolog
Posts: 837
Joined: 27 Feb 2006, 13:49

Re: Advanced Players List widget

Post by ginekolog »

this widget is quite perfect now, GJ Marmoth.
User avatar
lurker
Posts: 3842
Joined: 08 Jan 2007, 06:13

Re: Advanced Players List widget

Post by lurker »

It keeps showing player 0 as ally when I change who I'm watching, and it even switches me back to player 0 if I try to reload it to fix that.
When I start off with a small screen and make it larger, it refuses to stay in the corner.

edit: it does seem to update, finally, when a team dies
User avatar
Marmoth
Posts: 63
Joined: 26 Mar 2008, 20:44

Re: Advanced Players List widget

Post by Marmoth »

Ill check those problems. thx for report.
User avatar
zwzsg
Kernel Panic Co-Developer
Posts: 7052
Joined: 16 Nov 2004, 13:08

Re: Advanced Players List widget

Post by zwzsg »

Please add:

Code: Select all

	if Spring.IsGUIHidden() then
		return
	end
Somewhere like at the beginning of DrawScreen, to not draw anything when I press F5.
User avatar
Jazcash
Posts: 5309
Joined: 08 Dec 2007, 17:39

Re: Advanced Players List widget

Post by Jazcash »

Is the bug fixed where players names appear in white even though their colour is not white?
User avatar
lurker
Posts: 3842
Joined: 08 Jan 2007, 06:13

Re: Advanced Players List widget

Post by lurker »

That wasn't a bug.
User avatar
Marmoth
Posts: 63
Joined: 26 Mar 2008, 20:44

Re: Advanced Players List widget

Post by Marmoth »

This was caused by the absence of outline font in the install package on some older versions. So, yes, it's fixed.
User avatar
Jazcash
Posts: 5309
Joined: 08 Dec 2007, 17:39

Re: Advanced Players List widget

Post by Jazcash »

Marmoth wrote:This was caused by the absence of outline font in the install package on some older versions. So, yes, it's fixed.
Nice stuff. Good job responding to all the bugs.
User avatar
Jazcash
Posts: 5309
Joined: 08 Dec 2007, 17:39

Re: Advanced Players List widget

Post by Jazcash »

Hmm, could you make it so the players names are red when they haven't loaded, yellow when loaded but not ready and then green when loaded and ready like the current system that appears on the left?
This would mean we could get rid of the fugly old list on the left.
ZellSF
Posts: 1187
Joined: 08 Jul 2006, 19:07

Re: Advanced Players List widget

Post by ZellSF »

if someone else takes units, the /take reminder on this widget doesn't go away...
beejayzed
Posts: 27
Joined: 01 Aug 2007, 07:19

Re: Advanced Players List widget

Post by beejayzed »

If you switch the player you're watching as spec using the number keys, the change is not reflected in the player list.
User avatar
Marmoth
Posts: 63
Joined: 26 Mar 2008, 20:44

Re: Advanced Players List widget

Post by Marmoth »

@ beejayzed

Afaik, there is no function (in lua) to determine what player is speced or if speced player changed. And without such a function, advplayerslist cannot determine when you change spec using a key.

- If anyone has a solution to that, please write it in this post. -

@ zwzsg

I added your code. It will come in the next version.

@ zell SF

The /take reminder should disappear in the next version when somebody else takes or the team has no more units.

@ JAZCASH

I would be glad to take the loading status into account as you propose, but again, afaik, there is no lua commands for that.

- If anyone has a solution to that, please write it in this post. -

@ Lurker

Do you still experience the bug you described? If so, can you give me more info? (i couldnt reproduce it in a replay game).

Thx all for report!
User avatar
Jools
XTA Developer
Posts: 2816
Joined: 23 Feb 2009, 16:29

Re: Advanced Players List widget

Post by Jools »

Thanks for good widget. I have however something to report.

In big games, say more than 5 vs 5, i think the ally and enemy list omits some players. Or is the widget size/font size somehow customisable?
beejayzed
Posts: 27
Joined: 01 Aug 2007, 07:19

Re: Advanced Players List widget

Post by beejayzed »

Marmoth wrote:@ beejayzed

Afaik, there is no function (in lua) to determine what player is speced or if speced player changed. And without such a function, advplayerslist cannot determine when you change spec using a key.
Perhaps create additional bindings in your widget for the relevant keys? I'm not sure if it's possible to determine which keys are bound to which function with lua, but maybe just assume the defaults?
User avatar
Marmoth
Posts: 63
Joined: 26 Mar 2008, 20:44

Re: Advanced Players List widget

Post by Marmoth »

@ Jools

If some players are omitted, this is a real problem. Can you provide me some more precise infos?

(Are there missing players since beginning? Are they disappearing? When? Does it happen when specing? watching replays? etc)

Thx for report and help.

For font, the problem is that i made a "white outline" font from the used font. And other fonts don't have this outline. Otherwise it would be possible to choose other fonts.
-------------------------------------
@ beejayzed

Binding keys is quite sensitive, i dont want to mess with player's choice. And detecting keystroke w/o binding keys is also possible, but then if the player customized his keys, it could end up with strange results. Perhaps i could try to detect the bindings but i am not that skilled at lua actually.
User avatar
Jools
XTA Developer
Posts: 2816
Joined: 23 Feb 2009, 16:29

Re: Advanced Players List widget

Post by Jools »

I will investigate and try to reproduce this issue again, I just have had some large games when I see a player and think:
├óÔé¼ÔÇ£ was he on my team?

I look at the widget and don't see that colour, neither amongst allies or enemies (specs are not visioble if i recall correctly). I think I have noted this twice or so, during large games. Nothing disappears, it's just that the widget continues down off-screen, and I presume the players are there. So it might be some stupid error on my part.
User avatar
Jazcash
Posts: 5309
Joined: 08 Dec 2007, 17:39

Re: Advanced Players List widget

Post by Jazcash »

Ok, I downloaded latest Adv Players list and it's not spamming "gogo" whenever I enable ID's now but it's not displaying the correct ID's.

It just goes down in order: 1,2,3,4....
It's not displaying the correct ID's to what they should be according to the battle window.
User avatar
Marmoth
Posts: 63
Joined: 26 Mar 2008, 20:44

Re: Advanced Players List widget

Post by Marmoth »

Hi,

IDs displayed are team IDs and not player IDs. Those are the same as the ones displayed in the original player spring players' list.

If it is not the case, please tell me.

Marmoth
User avatar
Jazcash
Posts: 5309
Joined: 08 Dec 2007, 17:39

Re: Advanced Players List widget

Post by Jazcash »

Marmoth wrote:Hi,

IDs displayed are team IDs and not player IDs. Those are the same as the ones displayed in the original player spring players' list.

If it is not the case, please tell me.

Marmoth
Ahhhhh, ok I see, it's cause I was in an FFA game the ID's appeared like that. Would it be possible for you to add a played ID option as well as a team ID option?
Post Reply

Return to “Lua Scripts”