Welcome, Guest. Please login or register.
Did you miss your activation email?
June 24, 2018, 11:43:16 pm

Login with username, password and session length
Search:     Advanced search
Savage: XR is a new patch for Savage, created by the Newerth.com staff. The XR1.1 Client is out now! Download it now!
189105 Posts in 10953 Topics by 18014 Members
Latest Member: Edson Maes
* Home Forum Wiki Help Search Login Register
+  Newerth Forums
|-+  Savage XR
| |-+  Mapping & Modding Forum
| | |-+  is numRace changed in client.GetClientList() ?
0 Members and 1 Guest are viewing this topic. « previous next »
Pages: [1] Go Down Print
Author Topic: is numRace changed in client.GetClientList() ?  (Read 625 times)
phoenix-3000
Sr. Member
****
Posts: 330



View Profile
« on: April 15, 2017, 06:18:55 pm »

Hello,

How can I get the player race from  client.GetClientList().
actualy the integer returned is not 0 or 1 or 2 as before.
Logged

The spirit of the law is more important than the letter of the law.
L'esprit de la loi, est plus important que la lettre de la loi
drk
XR Coder
Hero Member
***
Posts: 515



View Profile
« Reply #1 on: April 15, 2017, 10:42:25 pm »

If you look into cl_defs, you will see:

Code:
global clientList_Race       # Client's Race
global clientList_Team       # Client's Team

So, it should be used like:

Code:
import cl_defs
client_id = 0
team = int(cl_defs.clientList_Team[client_id])
race = str(cl_defs.clientList_Race[client_id])
Logged

phoenix-3000
Sr. Member
****
Posts: 330



View Profile
« Reply #2 on: April 16, 2017, 06:15:49 am »

Bonjour,

Thanks very much.

A) I re-installed Savage in its state of April 1 2017 wich perpectly good at this date, but Sadly,  after the inevitable update of Savage, I find the same problem.
B) I did also a new install of savage from newerth.com I get also the same problem

that is strange : In each case, I can get the num of the teams, but never the num of the Race

my best regards

« Last Edit: April 16, 2017, 01:51:08 pm by phoenix-3000 » Logged

The spirit of the law is more important than the letter of the law.
L'esprit de la loi, est plus important que la lettre de la loi
Pages: [1] Go Up Print 
« previous next »
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.21 | SMF © 2006-2007, Simple Machines Valid XHTML 1.0! Valid CSS!
Page created in 0.026 seconds with 19 queries.