CounterStrikeSharp NOT WORKING if its location is changed in the addons folder
Hey, I am trying to host multiple servers and taking advantage of the same game binaries.. So my plan is to have different CounterStrikeSharp folder per game server:
- CWTG:
addons/css_cwtg/bin/linuxsteamrt64/counterstrikesharp - Public:
addons/css_pub/bin/linuxsteamrt64/counterstrikesharp - DeadMatch:
addons/css_dm/bin/linuxsteamrt64/counterstrikesharp
The way I am trying to achieve is via separate metamod.ini file per server which is configured as a server starting parameter mm_pluginsfile addons/metamod/cwtg.ini
addons folder:
metamod folder:
metamod file of cwtg.ini
;If your plugin came with a .vdf file, you do not need to use this file.
;
;List one plugin per line. Each line should contain the path to the plugin's binary.
;Any line starting with a ';' character is a comment line, and is ignored.
;
;You do not need to include the _i486.so or .dll part of the file name. Example:
; addons/sourcemod/bin/sourcemod_mm
;You may also put an alias in front of the file, for example:
; sm addons/sourcemod/bin/sourcemod_mm
;Will allow you to use "meta load sm" from the console.
;
;********* LIST PLUGINS BELOW ***********
cwtg addons/css_cwtg/bin/linuxsteamrt64/counterstrikesharp
meta list
meta list
Listing 1 plugin:
[01] <FAILED>
Error message from logs:
[13:29:31.785] CSSharp: Could not read '/srv/cs2/serverfiles/game/csgo/addons/counterstrikesharp/configs/core'. Error: CoreConfig file not found.
Dont understand why it is looking into addons/counterstrikesharp folder if metamod specifically says addons/css_cwtg??
Thanks for the help!
This would require something like sm_basepath, #117
Would you please consider implementing it? The quick way would be respecting the basepath of counterstrikesharp root folder configured at metamod level..
However better approach would be to outsource just configuration so we dont have to update each server folder there is an update.. AMXX did it via server starting parameter amxx_cfg="addons/amxmodx/configs/core.ini" where in our case it would point to addons/counterstrikesharp /configs/core.json and there we would configure server specific folders for everything required..
Anyway for faster implementation first option would be much appreciated. Thanks a lot
@aronmgv You will need to re-compile the whole CounterStrikeSharp (separated) if you want to use a custom addon folder name. :-)
I don't think this is something we won't see +css_basepath in the near future unfortunately
Hello, is this solved or i need 80GB space on HDD for every single server? I will try recompile CounterStrikeSharp as says mrc4tt, but mostly i am not successful.
Not solved.. this whole environment for modding around CS2 is a joke compared to the what is amxx for the CS1.6 .. even the CounterStrikeSharp itself is one of the worst code base I have ever seen in my life (sorry).. Anyway maintaining stable CS2 servers were such a big pain for me so I ended up discontinuing them..