Custom Game Description 1.0.0 (olds.ro)
=======================================
Replaces the game name that the server browser shows for your server
("Counter-Strike") with your own text, for example "olds.ro CS 1.6".
HLSW, GameTracker and other query tools read the same text from the server
info.
Requirements
- AMX Mod X 1.10 or newer with the fakemeta module (part of AMX Mod X;
ReAPI is not needed)
- Tested on AMX Mod X 1.10.0.5490, ReHLDS 3.15.0.896, ReGameDLL_CS 5.30.0.814
Install
1. Compile scripting/olds_gamename.sma with amxxpc 1.10 and copy
olds_gamename.amxx to addons/amxmodx/plugins/.
2. Copy configs/plugins/olds_gamename.cfg to addons/amxmodx/configs/plugins/
(if you skip this, the plugin writes the same file with the default on
its first start).
3. Add olds_gamename.amxx to addons/amxmodx/configs/plugins.ini.
4. Set your name in olds_gamename.cfg and change the map.
Settings (addons/amxmodx/configs/plugins/olds_gamename.cfg)
olds_gamename "olds.ro CS 1.6" the game name in the server list;
empty ("") = the game's own name
- The name is read at every map start, after server.cfg, amxx.cfg, the
plugin configs and the per-map configs have run. A change made during a
map shows from the next map on. Until the new map's configs have run
(the first seconds of a map) the server keeps the name of the last map.
- The server info has room for 31 bytes. A longer name is cut to 31 bytes
and the AMX Mod X log says so, for example:
olds_gamename is 58 bytes long; the server list has room for 31, so it
shows "This name is far too long for t".
Accented and other non-English letters take 2 bytes or more in UTF-8;
the cut never splits such a letter, so the name can end up a little
shorter.
- Spaces at the start and the end and control characters (tabs, line
breaks) are removed.
No commands, player messages, sounds, models or sprites are used, so there
is no language file.
Credits and licence
Written from scratch by alexit (olds.ro workshop) for workshop card LIB-1522.
Licence: GNU GPL version 3 or later (GPL-3.0-or-later).