Target5150 / MoYu_Server_Stupid_Plugins

L4D2 Target Cat Project
GNU General Public License v3.0
80 stars 21 forks source link

server_namer can't define {gamemode} tag in server name #59

Open BRU7U5 opened 10 months ago

BRU7U5 commented 10 months ago

Server Config:

sn_main_name "Server Name" sn_host_num "1" sn_hostname_format1 "{hostname} #{servernum} :: {gamemode}" //for Vanilla versus or Confogl sn_hostname_format2 "{hostname} #{servernum} :: {gamemode} ({difficulty})" // for Campaign sn_hostname_format3 "{hostname} #{servernum}" // Empty server


When i starting game for example in Versus mode i got next server name:

] status hostname: Server Name #1 :: version : 2.2.2.9 8934 secure (unknown) udp/ip : *** os : Linux Dedicated map : c1m1_hotel players : 1 humans, 0 bots (1 max) (not hibernating) (reserved 1860000216e8e4a)

[SM] Value of cvar "mp_gamemode": "versus"

BRU7U5 commented 10 months ago

The problem seems to be related to the fact that when this plugin finds ConVar "_l4d_ready_cfgname" it starts applying the value of this ConVar as the game mode. But the problem is that on a lot of T1-servers where the "ReadyUp" plugin is installed, the value of this ConVar can be empty and used only when Confogl is loaded.