Raised This Month: $14 Target: $400
 3% 

If it doesnt read from server.cfg where does it read from?


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
4ever16
Veteran Member
Join Date: Apr 2015
Old 01-11-2020 , 18:29   If it doesnt read from server.cfg where does it read from?
Reply With Quote #1

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 

Last edited by 4ever16; 01-11-2020 at 18:30.
4ever16 is offline
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 01-11-2020 , 21:04   Re: If it doesnt read from server.cfg where does it read from?
Reply With Quote #2

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).
__________________
fysiks is offline
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


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


Powered by vBulletin®
Copyright ©2000 - 2020, vBulletin Solutions, Inc.
Theme made by Freecode