Multiple Server Setup - Unknown command "sm_cvar" - Only After Multiple CFG Files
I have a server.cfg file full of sm_cvar commands and when I run a server through ./srcds_run , the server starts up and executes all the commands appropriately and the server is working fine.
If I try to keep server.cfg empty and put in the server command line +exec server1.cfg ./srcds_run +exec server1.cfg The command gives me Unknown command "sm_cvar" when it's executing the commands from server1.cfg I want to run same two servers for left4dead2 but with adjustments in sm_cvar values. Thus I'm looking at server1.cfg & server2.cfg for server 1 & 2 respectively. The executable command is working fine but srcds_run is not loading it's own set of commands into memory before executing server1.cfg. After all, If i keep it server.cfg, The server works fine. Any idea what's wrong here or how can we counter the dilemma. Thanks. :grrr: |
Re: Multiple Server Setup - Unknown command "sm_cvar" - Only After Multiple CFG Files
exec on the command line runs it directly after the server is started, before SourceMod is loaded.
server.cfg is executed after everything is loaded and the map has started. |
Re: Multiple Server Setup - Unknown command "sm_cvar" - Only After Multiple CFG Files
I figured as much.
Let's say I want to run Server A & B. Only Difference between them both would be the difficulty Level. How do I Achieve that? If I manually change difficulty on Server B after launch, it will reset after map has changed because it will load the server.cfg stating difficulty to be Easy. Any ideas? thanks @ asherkin. |
Re: Multiple Server Setup - Unknown command "sm_cvar" - Only After Multiple CFG Files
+servercfgfile "server1.cfg"
|
Re: Multiple Server Setup - Unknown command "sm_cvar" - Only After Multiple CFG Files
Quote:
Thanks, That command has done the job. Servers are now online & In Testing with their own tweaks :mrgreen: |
| All times are GMT -4. The time now is 21:29. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.