Facepunch / sbox-issues

173 stars 11 forks source link

Dedicated server won't load local gamemodes after the projects update #3842

Closed MrBrax closed 2 weeks ago

MrBrax commented 1 year ago

Describe the bug

Previously, you were able to join local gamemode dedicated servers (albeit extremely janky with downloads). Now it just can't find the gamemode at all. Local maps don't work either.

I've tried over a dozen different folder locations and org+ident and none work anymore.

To Reproduce

  1. Store gamemode in either the same one as the game client or addons in the server directory
  2. Start dedicated server with +gamemode "local.name#local"
  3. It will error out with Couldn't load game (local.name#local) - Unable to find package 'local.name#local'

Expected behavior

The gamemode to boot up locally, with hotloading and all that.

Media/Files

No response

Additional context

No response

MrBrax commented 1 year ago

It seems like package_install is not available on the dedicated server, is that the cause of the gamemode not being found even when run from the steam installation?

MrBrax commented 11 months ago

for anyone searching for this, i fixed it by decompiling the server dll and finding the -project argument which you point with an absolute path to your gamemode directory

MrBrax commented 2 weeks ago

not really applicable anymore :(