feat: Allow custom CS# directory for flexible server deployment (aka. css_basepath)#1033
feat: Allow custom CS# directory for flexible server deployment (aka. css_basepath)#1033roflmuffin merged 7 commits intoroflmuffin:mainfrom
css_basepath)#1033Conversation
|
Currently working as expected on Windows platform. Haven't tested on Linux yet Well, I'm not sure if this feature is actually needed, but honestly I don't know any other way to run multiple CS# instances on the same server installation without having to download separate server files for each instance |
|
Hi, @KillStr3aK PTAL when convenient |
I believe you can use the same base with symlinks to run multiple instances the code is LGTM however I don't have any linux environment to test there as well at the moment. |
Sorry, quick question, what's symlinks? |
@roflmuffin
hmm, is that right? 🧐
|
css_basepath)css_basepath)
css_basepath)css_basepath)
|
Tested on Ubuntu 22.04 |
|
Thank you for the contribution! |




#117 #391
This implementation relies on command line parameters (startup arguments) rather than ConVar, which introduces certain limitations. The value must be set when starting the CS2 server and cannot be changed afterwards. If not set or if the specified directory does not exist, the default value
/addons/counterstrikesharpwill be usedOR
The parameter must be +css_basepath (with plus sign)
btw: Path separators will be automatically normalized (mixed
\and/are supported)