Advanced Players List widget - Page 7

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
Pxtl
Posts: 6112
Joined: 23 Oct 2004, 01:43

Re: Advanced Players List widget

Post by Pxtl »

Is there a way to turn this thing off and get the default player list widget back? I speak english, not pictogram.
User avatar
Marmoth
Posts: 63
Joined: 26 Mar 2008, 20:44

Re: Advanced Players List widget

Post by Marmoth »

@ JAZCASH

Just to make things clear, there is 3 lvl of IDs:

1. Player ID = individual human player

2. Team ID = each com (one color) it can include more that one player (shared com). This is the numbers shown by Advplayerslist. Those are also used for spec, and cheat (give units etc).

3. Allyteam ID = each real team (groups of allied commanders)

-------------------

@ Pxtl

Just disable the widget and type "/info" ingame to get the original players list.
User avatar
Jazcash
Posts: 5309
Joined: 08 Dec 2007, 17:39

Re: Advanced Players List widget

Post by Jazcash »

Marmoth wrote:@ JAZCASH

Just to make things clear, there is 3 lvl of IDs:

1. Player ID = individual human player

2. Team ID = each com (one color) it can include more that one player (shared com). This is the numbers shown by Advplayerslist. Those are also used for spec, and cheat (give units etc).

3. Allyteam ID = each real team (groups of allied commanders)

-------------------

@ Pxtl

Just disable the widget and type "/info" ingame to get the original players list.
Ok, thanks for info.
User avatar
Pxtl
Posts: 6112
Joined: 23 Oct 2004, 01:43

Re: Advanced Players List widget

Post by Pxtl »

tx
User avatar
very_bad_soldier
Posts: 1397
Joined: 20 Feb 2007, 01:10

Re: Advanced Players List widget

Post by very_bad_soldier »

A little bug to report: Sometimes the "give-unit"-button just does not work. I select units, double-click the unit-icon from a teammate, but just nothing happens. Sorry for not being able to give you further details in which situations it fails but I experienced it severals time now.
User avatar
Marmoth
Posts: 63
Joined: 26 Mar 2008, 20:44

Re: Advanced Players List widget

Post by Marmoth »

Hi,

Thx for report. I also experienced this bug. Bug it seems that the buttons work only if the computer isnt too busy. My solution for now was to click like a mad and it usually work. I will check if there is a way to solve it, but it looks quite "low lvl" and i am no professionnal programmer.

If i find a solution, ill make a new version.

Bye!

Marmoth
User avatar
zwzsg
Kernel Panic Co-Developer
Posts: 7052
Joined: 16 Nov 2004, 13:08

Re: Advanced Players List widget

Post by zwzsg »

Is there a way for it to show the AI's ShortName instead of always "AI-Bot"?
User avatar
hoijui
Former Engine Dev
Posts: 4344
Joined: 22 Sep 2007, 09:51

Re: Advanced Players List widget

Post by hoijui »

Skirmish AIs even do have nick names like players do. you can set them in the lobbies, and if they are not present in the start script, they default to the AIs shortName. So this is what shoudl be used.
This name can be found in the engine like this:

Code: Select all

#include "Game/GameSetup.h"
#include "ExternalAI/SkirmishAIData.h"

int teamId = 0;
const SkirmishAIData* sad = gameSetup->GetSkirmishAIDataForTeam(teamId);
if (sad != NULL) { // is AI team
	/**
	 * This name is purely inforamtive.
	 * It will be shown in statistics eg.,
	 * and everywhere else where normal players
	 * have their name displayed.
	 */
	std::string aiNickName = sad->name;
}
i have no idea if it is available through lua already, if not, someone may add a callIn. i will not.
User avatar
manolo_
Posts: 1370
Joined: 01 Jul 2008, 00:08

Re: Advanced Players List widget

Post by manolo_ »

request:

option for showing country of player and its experience (chevrons/stars)


edit: when a player gives his whole base --> many landmarker, could there be a button for delete them all
User avatar
ginekolog
Posts: 837
Joined: 27 Feb 2006, 13:49

Re: Advanced Players List widget

Post by ginekolog »

manolo_ wrote:request:

option for showing country of player and its experience (chevrons/stars)


edit: when a player gives his whole base --> many landmarker, could there be a button for delete them all
+1, esp rank icons would be nice to have
User avatar
Caydr
Omnidouche
Posts: 7179
Joined: 16 Oct 2004, 19:40

Re: Advanced Players List widget

Post by Caydr »

Hi, I'm trying to integrate this into AA but I would like it to automatically dock to the right side of the screen, offset from the bottom of the screen by a given number of pixels.

Basically I would like this widget to function as Defense Ranges does by default, but at fixed distance away from the bottom of the screen. It should automatically move when the screen is resized.

Can someone help me with this? I'll probably get it on my own *eventually* but it goes without saying that LUA haxxing isn't my best skill.

Thanks
User avatar
Niobium
Posts: 456
Joined: 07 Dec 2008, 02:35

Re: Advanced Players List widget

Post by Niobium »

Caydr wrote:Hi, I'm trying to integrate this into AA but I would like it to automatically dock to the right side of the screen, offset from the bottom of the screen by a given number of pixels.
Control + F11
Drag around with left click

Lets user put it where they want, better than any automatic placing.
User avatar
Caydr
Omnidouche
Posts: 7179
Joined: 16 Oct 2004, 19:40

Re: Advanced Players List widget

Post by Caydr »

Its default position screws up an important widget, I need to set a different default.
User avatar
Niobium
Posts: 456
Joined: 07 Dec 2008, 02:35

Re: Advanced Players List widget

Post by Niobium »

local widgetPosX = vsx-200
local widgetPosY = 0

Those are the defaults for when there is no config file. So for you you want to raise widgetPosY. (0, 0) is bottom left. (vsx, vsy) is upper right. I assume 200 is the width of panel.
User avatar
Caydr
Omnidouche
Posts: 7179
Joined: 16 Oct 2004, 19:40

Re: Advanced Players List widget

Post by Caydr »

I understand that part, but my problem was that the widget won't dock with the right side of the screen and stay there when the screen is resized.
User avatar
Niobium
Posts: 456
Joined: 07 Dec 2008, 02:35

Re: Advanced Players List widget

Post by Niobium »

Oh, well that's something that the maker(s) need to add/fix then.
User avatar
Caydr
Omnidouche
Posts: 7179
Joined: 16 Oct 2004, 19:40

Re: Advanced Players List widget

Post by Caydr »

Nope I got it fixed.
User avatar
Jools
XTA Developer
Posts: 2816
Joined: 23 Feb 2009, 16:29

Re: Advanced Players List widget

Post by Jools »

The previous issue I reported, the one with players off the list, has fixed itself, I haven't seen it anymore. Probably some beginner noobishness on my part (once I didnt identify the player because he was black in the list and white in game etc...).

One feature wish: would it be possible to also include one column of the number of kills (maybe one column with number of losses too) in the list? That is, the number of units that the player has killed.
User avatar
manolo_
Posts: 1370
Joined: 01 Jul 2008, 00:08

Re: Advanced Players List widget

Post by manolo_ »

Jools wrote:The previous issue I reported, the one with players off the list, has fixed itself, I haven't seen it anymore. Probably some beginner noobishness on my part (once I didnt identify the player because he was black in the list and white in game etc...).

One feature wish: would it be possible to also include one column of the number of kills (maybe one column with number of losses too) in the list? That is, the number of units that the player has killed.
mighty iceui has this feature in this ressourcebar
User avatar
jamerlan
Balanced Annihilation Developer
Posts: 683
Joined: 20 Oct 2009, 13:04

Re: Advanced Players List widget

Post by jamerlan »

Hello! Thank you so much for this pretty lua widget!

I made some updates for my own needs (i must know who is who while playing). Code is far from perfect.. but it just works. Suitable for me.

Please take a look at screenshot. First column - ranks. Very useful.
Image

Here is modified version of widget (button for switch off ranks not implemented): http://alexlpt.narod.ru/jamerlan.zip

Sorry for my english (i am russian).
my contacts:
skype (preferred): lipatov_alexander
icq: 257-087-957
msn: justtempmail@hotmail.com
jabber: Alexander_Lipatov@jabber.org
Post Reply

Return to “Lua Scripts”