Skip to content

Conversation

@ELDment
Copy link
Contributor

@ELDment ELDment commented Sep 9, 2025

#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/counterstrikesharp will be used

cs2.exe -dedicated -console +css_basepath "/addons/counterstrikesharp2" +game_type 0 +game_mode 1 -maxplayers 10 +mapgroup mg_active +map de_dust2  -high -port 27020 -ip 0.0.0.0

OR

cs2.exe -dedicated -console +css_basepath addons/counterstrikesharp3 +game_type 0 +game_mode 1 -maxplayers 10 +mapgroup mg_active +map de_dust2  -high -port 27030 -ip 0.0.0.0

The parameter must be +css_basepath (with plus sign)

btw: Path separators will be automatically normalized (mixed \ and / are supported)

@ELDment ELDment requested a review from roflmuffin as a code owner September 9, 2025 12:28
@ELDment
Copy link
Contributor Author

ELDment commented Sep 9, 2025

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

@ELDment
Copy link
Contributor Author

ELDment commented Sep 14, 2025

Hi, @KillStr3aK PTAL when convenient
Any suggestion?

@KillStr3aK
Copy link
Contributor

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

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.

@ELDment
Copy link
Contributor Author

ELDment commented Sep 15, 2025

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

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?

@ELDment
Copy link
Contributor Author

ELDment commented Sep 15, 2025

image @roflmuffin hmm, is that right? 🧐

@ELDment ELDment requested a review from roflmuffin September 15, 2025 07:18
@ELDment ELDment requested a review from roflmuffin September 16, 2025 14:49
@ELDment ELDment changed the title [Draft] Allow custom CS# directory for flexible server deployment (aka. css_basepath) Allow custom CS# directory for flexible server deployment (aka. css_basepath) Sep 16, 2025
@ELDment ELDment changed the title Allow custom CS# directory for flexible server deployment (aka. css_basepath) feat: Allow custom CS# directory for flexible server deployment (aka. css_basepath) Sep 16, 2025
@ELDment
Copy link
Contributor Author

ELDment commented Sep 16, 2025

image

@ELDment
Copy link
Contributor Author

ELDment commented Sep 20, 2025

@roflmuffin
image
image

Tested on Ubuntu 22.04

@ELDment ELDment requested a review from roflmuffin September 22, 2025 01:39
@roflmuffin roflmuffin merged commit 31cedca into roflmuffin:main Sep 22, 2025
6 checks passed
@roflmuffin
Copy link
Owner

Thank you for the contribution!

This was referenced Oct 27, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants