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

CounterStrikeSharp NOT WORKING if its location is changed in the addons folder #391

Open
aronmgv opened this issue Mar 27, 2024 · 3 comments
Labels
untriaged New issue has not been triaged

Comments

@aronmgv
Copy link

aronmgv commented Mar 27, 2024

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:

image

metamod folder:

image

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!

@github-actions github-actions bot added the untriaged New issue has not been triaged label Mar 27, 2024
@roflmuffin
Copy link
Owner

This would require something like sm_basepath, #117

@aronmgv
Copy link
Author

aronmgv commented Mar 28, 2024

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

@mrc4tt
Copy link

mrc4tt commented May 26, 2024

@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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
untriaged New issue has not been triaged
Projects
None yet
Development

No branches or pull requests

3 participants