Urban Terror Forums: RCON dumpuser command - Urban Terror Forums

Jump to content

 Login | Register 
Advertisement
Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

RCON dumpuser command Rate Topic: -----

dumpuser does not show team membership

#1 User is offline   drmabuse1976 Icon

Posted 17 August 2012 - 08:18 AM

Hi,

I'm adapting my own management script for URT from version 4.1 to 4.2.

I noticed in the past with version 4.1, when issuing the "dumpuser <n>" command, the team which the user was on at that moment would be shown.

This doesn't seem to be the case in 4.2. Was it removed on purpose, or am I missing something?

Is there a replacement command to determine which team the user is on? (red/blue/spec)

Regards,

Dr.Mabuse

#2 User is offline   Courgette Icon

  •   community dev   
    B3 bot developer
  • Account: courgette
  • Main tag: [B3]
  • Country:
  • Joined: 09-June 09
  • Posts: 204

Posted 17 August 2012 - 08:47 AM

I believe the team info is only available on "Clientuserinfochanged" log lines.
Using rcon you can get the players teams by querying the two cvars g_blueteamlist and g_redteamlist

#3 User is offline   drmabuse1976 Icon

Posted 20 August 2012 - 03:02 AM

View PostCourgette, on 17 August 2012 - 08:47 AM, said:

I believe the team info is only available on "Clientuserinfochanged" log lines.
Using rcon you can get the players teams by querying the two cvars g_blueteamlist and g_redteamlist


Cool, thanks for the info!

#4 User is offline   lebbra Icon

  • Account: lebbra
  • Main tag: bw|
  • Country:
  • Joined: 18-March 10
  • Posts: 170

Posted 20 August 2012 - 09:32 PM

View PostCourgette, on 17 August 2012 - 08:47 AM, said:

I believe the team info is only available on "Clientuserinfochanged" log lines.
Using rcon you can get the players teams by querying the two cvars g_blueteamlist and g_redteamlist


O.M.F.G.!
I'm developing a bot from 2010 without knowing these two variables :laugh::laugh:
where did you found it? Is there a list somewhere?
aka Dead f.S. - aka |CoN|-=V0l3ur=-, Playing UrT from 2001 - RedCap bot Developer

[img]http://www.dead.it/UrT/logop.png[/img]

#5 User is offline   Courgette Icon

  •   community dev   
    B3 bot developer
  • Account: courgette
  • Main tag: [B3]
  • Country:
  • Joined: 09-June 09
  • Posts: 204

Posted 20 August 2012 - 10:54 PM

you should run these two commands some day :

Quote

cmdlist
cvarlist
;)

Note that the two cvars g_blueteamlist and g_redteamlist will only show up on the cvarlist response if your server is on a gametype with teams and if there are at least a player who joined a team.

Also I recommand you read http://www.urbanterr..._g_blueteamlist

This post has been edited by Courgette: 20 August 2012 - 10:56 PM


bullet_loaderAdvertisement

#6 User is offline   lebbra Icon

  • Account: lebbra
  • Main tag: bw|
  • Country:
  • Joined: 18-March 10
  • Posts: 170

Posted 21 August 2012 - 07:49 AM

Thanks!
I already knew and used cmdlist, but never cvarlist.


In any case I keep trace of players directly from log. I guess it is not useful to change a lot of code lines in order to use g_xxxteamlist instead.
The problem is only at bot start, when game situation is unknown until first map loading. Even using g_xxxteamlist you can know how many players are in red, blue or spect, but not who is where, until a clientuserinfochange or a new map will arrive. So I guess that start problem remain unsolved.

I don't know if some cvar or command exists like "tell me if player slot xx is in red or blue team".

Sry, I'm going OOT. Posted Image

This post has been edited by lebbra: 21 August 2012 - 08:03 AM

aka Dead f.S. - aka |CoN|-=V0l3ur=-, Playing UrT from 2001 - RedCap bot Developer

[img]http://www.dead.it/UrT/logop.png[/img]

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users

Advertisement


Copyright © 1999-2024 Frozensand Games Limited  |  All rights reserved  |  Urban Terror™ and FrozenSand™ are trademarks of Frozensand Games Limited

Frozensand Games is a Limited company registered in England and Wales. Company Reg No: 10343942