Change players avatar from server: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
m (→‎See also: clean up, replaced: See Also → See also)
m (This article is for all Source games, not specifically cs2)
 
(One intermediate revision by one other user not shown)
Line 1: Line 1:
This is a example of how you can change players avatar from hosted [[SRCDS|source dedicated server]].<br>
Instructions on how you can change players avatars on your hosted [[SRCDS|source dedicated server]].<br>
This not affect they real avatar from Steam profile. You are just replacing picture from hosted server.
This will not affect their real Steam profile avatar. You are just replacing a picture on the server.




Line 8: Line 8:




# To enable this feature in server, change cvar [[sv_reliableavatardata]] to <code>2</code><br>You can add this in [[.cfg|...cfg/server.cfg]], it will reset setting on every map load.<pre>sv_reliableavatardata 2</pre>
# To enable this feature on the server, change cvar [[sv_reliableavatardata]] to <code>true</code><br>You can add this in [[.cfg|...cfg/server.cfg]], it will reset setting on every map load.<pre>sv_reliableavatardata true</pre>
# '''Optional:''' To change all players avatar to one default picture.<br>Create picture, pixel size <code>64 x 64</code>, save as PNG format, into your own game <code>...<MOD>/avatars/</code> folder. Name file as "default.png"<br>For example CS:GO {{csgo}}<br><pre>...steamapps\common\Counter-Strike Global Offensive\csgo\avatars\default.png</pre><br><br>
# '''Optional:''' To change all players avatar to one default picture.<br>Create picture, pixel size <code>64 x 64</code>, save as PNG format, into your own game <code>...<MOD>/avatars/</code> folder. Name file as "default.png"<br>For example CS2 {{cs2}}<br><pre>...steamapps\common\Counter-Strike 2\game\csgo\avatars\default.png</pre><br><br>
# Launch your game with console enabled, in main menu, turn <code>sv_cheats 1</code> and use command <code>[[cl_avatar_convert_rgb]]</code><br>You should have now new RGB file in folder <code>...<MOD>/avatars/default.rgb</code><br><br>
# '''Change avatar by SteamID64:''' Repeat process same way as above, but save PNG file as using player ''SteamID64'' serial.<br>For example {{cs2}}<pre>...steamapps\common\Counter-Strike 2\game\csgo\avatars\76561197988592905.png</pre>
# Move this RGB file into your hosted server <code>...<MOD>/avatars/default.rgb</code><br><br>
# '''Max avatar PNG size on server:''' each PNG file size is limited to 16KB.
# '''Change avatar by SteamID64:''' Repeat process same way as above, but save PNG file as using player ''SteamID64'' serial.<br>For example {{csgo}}<pre>...steamapps\common\Counter-Strike Global Offensive\csgo\avatars\76561197988592905.png</pre>






==See also==
==See also==
[[cl avatar convert rgb|cl_avatar_convert_rgb]]
[[cl avatar convert png|cl_avatar_convert_png]]


[[sv reliableavatardata|sv_reliableavatardata]]
[[sv reliableavatardata|sv_reliableavatardata]]

Latest revision as of 15:25, 6 February 2024

Instructions on how you can change players avatars on your hosted source dedicated server.
This will not affect their real Steam profile avatar. You are just replacing a picture on the server.


Player avatar changed from server.


  1. To enable this feature on the server, change cvar sv_reliableavatardata to true
    You can add this in ...cfg/server.cfg, it will reset setting on every map load.
    sv_reliableavatardata true
  2. Optional: To change all players avatar to one default picture.
    Create picture, pixel size 64 x 64, save as PNG format, into your own game ...<MOD>/avatars/ folder. Name file as "default.png"
    For example CS2 Counter-Strike 2
    ...steamapps\common\Counter-Strike 2\game\csgo\avatars\default.png


  3. Change avatar by SteamID64: Repeat process same way as above, but save PNG file as using player SteamID64 serial.
    For example Counter-Strike 2
    ...steamapps\common\Counter-Strike 2\game\csgo\avatars\76561197988592905.png
  4. Max avatar PNG size on server: each PNG file size is limited to 16KB.


See also

sv_reliableavatardata


Here YouTube video