AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   HL1 Servers (HLDS) (https://forums.alliedmods.net/forumdisplay.php?f=131)
-   -   If it doesnt read from server.cfg where does it read from? (https://forums.alliedmods.net/showthread.php?t=320837)

4ever16 01-11-2020 18:29

If it doesnt read from server.cfg where does it read from?
 
So i have only have 1 file in cstrike folder. Its called server.cfg
Im trying to change hostname and other stuff but nothing changes.
I run server from VPS.

If i delete server.cfg file and restart the server a new server.cfg is created.

My question is if i cant run commands from server.cfg what file should i look for where i can change stuff?

PHP Code:

hostname "SERVER NAME"
and other simple commands so i can see that it reads from this file 


fysiks 01-11-2020 21:04

Re: If it doesnt read from server.cfg where does it read from?
 
server.cfg is the config file that is executed when the server starts (it is not, by default, executed on map change). The file designated by the "mapchangecfgfile" cvar is the file that is executed on map change.

So, if mapchangecfgfile is not set to server.cfg, a map change or 'restart' command, won't execute server.cfg and therefore you wouldn't see the changes that you made in server.cfg.

IIRC, there is another default file that is executed by the server itself but I can't remember off the top of my head what it's called or when it's executed.

If you're running AMX Mod X, it executes it's own config file (amxx.cfg) on every map change (or restart command).


All times are GMT -4. The time now is 11:07.

Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.