Counter-Strike 2

Counter-Strike 2

Ocen: 48
How to set up server-side avatars and forced player names
Autorstwa: sasha5K
This guide teaches you how to load player names and avatars from the game server. Very useful for LAN and tournament production.
   
Przyznaj nagrodę
Ulubione
Ulubione
Usuń z ulubionych
Getting started
First things first you should check that you have both of the following things:
  • A working CSGO client
  • A working CSGO server
Setting avatars
Converting avatars for server use

The pictures you want to use as avatars for the players need to be the size of 64x64 and should be in png format. The game needs to know which steam profile gets which avatar, that's why you need to name it after the steamID64.

Here is an example:



You can find out the ID by either looking at the URL field

However if the person has a custom ID you can just copy the URL and find out the steamID64 here[steamid.io]

Now go to your client main directory and create a folder named "avatars" as shown in above picture.
You should have a similiar directory to this now: C:\Program Files (x86)\Steam\steamapps\common\Counter-Strike Global Offensive\csgo\avatars

Paste all your png files in this folder and launch the game. Once you are in-game open the console and run the command "cl_avatar_convert_rgb".

This will convert the png files in rgb files which will be used by the server.

Side note: If you do not have all IDs or want everyone to have the same avatar, simply name the one file you want to use "default".

Uploading avatars

Now that we have our rgb files we have to create the same directory in the server. Once done with that just put all the rgb files in there. You do not need the png files anymore.

Activating the avatars on the server

In order to activate server-side avatars just set the cvar "sv_reliableavatardata 2".
If you do not need the avatars anymore set the cvar to 0 again.
Setting up player names
Preparing the name file

Setting up names can be done via the "sv_load_forced_client_names_file" cvar.

In order to use it create a text file. The name is up to you.

Copy the following template into the file:
"Names" { "76561198064051923" "insert the name you want to force here" "76561198024905796" "kennyS" }

Now you can edit the file accordingly. For assigning names to the correct steam account you need the SteamID64.

You can find out the ID by either looking at the URL field

However if the person has a custom ID you can just copy the URL and find out the steamID64 here[steamid.io]

Uploading name file

Copy the file in your root server directory (...\csgo\)

Now you need to add the +sv_load_forced_client_names_file "your_file_name.txt" cvar to the server launch parameters.
Video instructions
Additional notes
I also have a guide on how to use advanced scoreboard functions for spectators
http://steamcommunity.com/sharedfiles/filedetails/?id=516354540
Or how to create a 5v5 match on a dedicated server with eBot for free.
http://steamcommunity.com/sharedfiles/filedetails/?id=517696809

Your team is looking for a nice and professional looking logo or you just need a new personal avatar? Then you should check out https://www.modurist.com/ for professional logo designs for eSports orgs, teams and gamers.

Support me
Komentarzy: 21
zfg 3 maja 2020 o 5:57 
Once you set the players name the clan tag stopped appearing in front of players name. Any ways to fix this?
bort 5 maja 2019 o 12:06 
Does this still work for panorama?
Furiosa 27 listopada 2017 o 11:38 
Thanks so much for this, you're the only one that made this guide. :loveboxx:

Anyway, will you make guide for this too? http://blog.counter-strike.net/index.php/2017/06/18898/
akz 1 listopada 2017 o 15:27 
Is there any way to set the tags for the players?
Larppis 1 listopada 2017 o 7:40 
Thanks!
sasha5K  [autor] 1 listopada 2017 o 7:36 
Guide has been updated, setting up player names is now ezpz.
sasha5K  [autor] 1 listopada 2017 o 4:11 
I'll take a look into it when I have time.
Larppis 1 listopada 2017 o 2:53 
With the new update there is an easy command to force the player names, would you please update this guide?
sasha5K  [autor] 11 maja 2017 o 12:05 
Regarding the player names, unfortunately no.
Larppis 11 maja 2017 o 10:02 
Any progress on this?