roflmuffin / CounterStrikeSharp

CounterStrikeSharp allows you to write server plugins in C# for Counter-Strike 2/Source2/CS2
https://docs.cssharp.dev
Other
822 stars 133 forks source link

Plugin doesn't loaded with "CoreConfig file not found" error #444

Closed OneDollarMan closed 7 months ago

OneDollarMan commented 7 months ago

Hello, cssharp suddenly stopped loading on all my servers, metamod is still working but meta list gives "no plugins loaded". I didn't made any changes except cs2 update. If I try to load plugin with "meta load " command, it gives error "CoreConfig file not found.", but file exists

Снимок экрана 2024-05-07 в 21 36 00

I updated css plugin to ver.228 and now I receive recursive this, also core configs doesn't created in folder:

Снимок экрана 2024-05-07 в 21 38 09

metamod version is 2.0.0-dev+1282 I gived owner privileges of server folder to steam user, but it doesn't changed anything help please, how to fix this?

sn0wyQ commented 7 months ago

I am facing the same issue, it seems like GameDirectory() returns empty string

roflmuffin commented 7 months ago

The minimum required version of Metamod after the update is v1290

OneDollarMan commented 7 months ago

The minimum required version of Metamod after the update is v1290

I updated metamod to 1291 and made clean install of css with runtime but I receive the same recursive error I just deleted vdf file to manually load plugin and make screenshot, basically I had this error at server start and then it crashes also I'm using docker image of cs2 server from joedwards32

Снимок экрана 2024-05-08 в 10 22 03
roflmuffin commented 7 months ago

It definitely seems like a file permission issue; whichever user is running the cs2 process does not have access to create addons/counterstrikesharp/configs/core.json using the contents of addons/counterstrikesharp/configs/core.example.json. So I would advise checking the folder permissions of addons/counterstrikesharp/configs/ as well as the file permissions of addons/counterstrikesharp/configs/core.example.json

OneDollarMan commented 7 months ago

okay, thank you permissions on files and folders seems to be good, i tried to change owner to steam, but nothing changes I found a faster way to fix this, just copied configs from my old css and it worked