Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Multiserver Support #223

Closed
fredmatix opened this issue Dec 31, 2021 · 1 comment
Closed

Add Multiserver Support #223

fredmatix opened this issue Dec 31, 2021 · 1 comment

Comments

@fredmatix
Copy link

On Line 815 of practicemode.sp you are defining the Save Location of the grenades:
BuildPath(Path_SM, g_GrenadeLocationsFile, sizeof(g_GrenadeLocationsFile),
"data/practicemode/grenades/%s.cfg", map);

The problem with that is the staticness of this and no ConVar available to change the path manually.

I run 8 Teamserver with practicemode on it using Linux GSM. The greatness about Linux GSM is the ability to physically utilize only one server directory to run several server instances at once. These instances rely on their own server.cfg files which differentiate each server from another through cvars.
My problem now ist that each serverinstance would share their nades with each other through the map.cfg in the path. So this problem enforces me to duplicate each server to run completely separated instances.

The most beautiful solution would be to put the bots, replays, spawns, grenades in ConVars in the practicemode.cfg.
Or differentiate by creating a subdirectory of each with the serverport (GetConVarInt( FindConVar( "hostport" ) );) and put it in the path:
data/practicemode/%s/grenades/%s.cfg", hostport, map);

Is this possible?
I have never done a pull request. Maybe someone else could code that and make a PR.

@splewis
Copy link
Owner

splewis commented Jan 2, 2022

While this sounds reasonable, I'm hesitant to suggest it's worth trying to support, since sourcemod itself strongly recommends not doing what you're trying to do: https://wiki.alliedmods.net/Multiple_or_Forked_Servers_(SourceMod)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants