swiftly-solution / swiftly

CS2 Game Server Plugin using Metamod
https://swiftlycs2.net
MIT License
45 stars 7 forks source link

the server crashed when swiftly loaded #45

Closed 2vg closed 2 months ago

2vg commented 2 months ago

OS: Linux, Docker(use image from joedwards32/CS2 and patched with libreadline8) Used plugin: nothing

The server seems to be crashing trying to load Swiftly, even though Swiftly is failing to load.

cs2-dedicated  | [Swiftly] [Patch] Patches performed: 00.
cs2-dedicated  | [Swiftly] [Database] 2 databases have been succesfully loaded.
cs2-dedicated  | [Swiftly] [Addons] Loaded 0 addons.
cs2-dedicated  | [Swiftly] [Hooks] Hooking PrecacheResource...
cs2-dedicated  | [Swiftly] [Hooks] Hooked PrecacheResource.
cs2-dedicated  | [Swiftly] [Hooks] Hooking CCSPlayer_MovementServices_CheckJumpPre...
cs2-dedicated  | [Swiftly] [Hooks] Hooked CCSPlayer_MovementServices_CheckJumpPre.
cs2-dedicated  | [Swiftly] [Hooks] Hooking CLoggingSystem_LogDirect...
cs2-dedicated  | [Swiftly] [Hooks] Hooked CLoggingSystem_LogDirect.
cs2-dedicated  | [Swiftly] [Hooks] Hooking FireOutputInternal...
cs2-dedicated  | [Swiftly] [FuncHook] Failed create for FireOutputInternal.
cs2-dedicated  | Error Message: Signature was not found.
cs2-dedicated  | [Swiftly] [Load] Hooks failed to initialize.
cs2-dedicated  | [META] Failed to load plugin addons/swiftly/bin/linuxsteamrt64/swiftly: 
...
cs2-dedicated  | [Swiftly] [Crash Reporter] A crash has occured and a dump has been created:
...
skuzzis commented 2 months ago

Hi there,

If you look closely, this is the error: Signature was not found.

Update the bin and gamedata folders.

2vg commented 2 months ago

The signature should probably be the same, but has it changed?

https://github.com/swiftly-solution/swiftly/blob/40947299bff2b6295ea588b50fe77a7f6c6cd3af/plugin_files/gamedata/signatures.json#L70

This is from CSSharp, but the signature was the same https://github.com/roflmuffin/CounterStrikeSharp/blob/9c8f25f721ed5a5e2043b348ebc92fe646935c0a/configs/addons/counterstrikesharp/gamedata/gamedata.json#L227

skuzzis commented 2 months ago

It already is the same.

Just that, in your gamedata folder uploaded for your server, the FireOutputInternal is not being set in signatures.json.

2vg commented 2 months ago

It's in my signatures.json too 🥹 image

skuzzis commented 2 months ago

Then, the only thing I can think of is that the docker image isn't at its last version.

Try to update it with docker pull.

2vg commented 2 months ago

@skuzzis uhhhh sorry, I just checked all my files, the cause is CSSharp is enabled. I started setting up a server a few days ago and didn't know that CSSharp and Swiftly can't coexist. It's very attractive to be able to quickly develop simple plugins with Lua scripts, but some Fix plugins only exist in C#, so I would like to disable them for the time being. Thank you for your support! !

skuzzis commented 2 months ago

Don't worry, we're glad that you've found the issue. Don't hesitate to contact us again in case there are other problems.