roflmuffin / CounterStrikeSharp

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

Failed to load game data #535

Open zCN24 opened 2 months ago

zCN24 commented 2 months ago

when i start the cs2 server,css get a error

04:16:59 [EROR] (cssharp:GameDataProvider) Failed to load game data
System.Text.Json.JsonException: The JSON value could not be converted to CounterStrikeSharp.API.Core.LoadedGameData. Path: $.Version | LineNumber: 1 | BytePositionInLine: 14.
   at System.Text.Json.ThrowHelper.ThrowJsonException_DeserializeUnableToConvertValue(Type propertyType)
   at System.Text.Json.Serialization.Converters.ObjectDefaultConverter`1.OnTryRead(Utf8JsonReader& reader, Type typeToConvert, JsonSerializerOptions options, ReadStack& state, T& value)
   at System.Text.Json.Serialization.JsonConverter`1.TryRead(Utf8JsonReader& reader, Type typeToConvert, JsonSerializerOptions options, ReadStack& state, T& value, Boolean& isPopulatedValue)
   at System.Text.Json.Serialization.JsonDictionaryConverter`3.OnTryRead(Utf8JsonReader& reader, Type typeToConvert, JsonSerializerOptions options, ReadStack& state, TDictionary& value)
   at System.Text.Json.Serialization.JsonConverter`1.TryRead(Utf8JsonReader& reader, Type typeToConvert, JsonSerializerOptions options, ReadStack& state, T& value, Boolean& isPopulatedValue)
   at System.Text.Json.Serialization.JsonConverter`1.ReadCore(Utf8JsonReader& reader, JsonSerializerOptions options, ReadStack& state)
   at System.Text.Json.JsonSerializer.ReadFromSpan[TValue](ReadOnlySpan`1 utf8Json, JsonTypeInfo`1 jsonTypeInfo, Nullable`1 actualByteCount)
   at System.Text.Json.JsonSerializer.ReadFromSpan[TValue](ReadOnlySpan`1 json, JsonTypeInfo`1 jsonTypeInfo)
   at CounterStrikeSharp.API.Core.GameDataProvider.Load() in /home/runner/work/CounterStrikeSharp/CounterStrikeSharp/managed/CounterStrikeSharp.API/Core/GameData.cs:line 55

and my plugin also can't load:

04:16:59 [EROR] (cssharp:PluginManager) Failed to load plugin from /home/steamcmd/cs2/game/csgo/addons/counterstrikesharp/plugins/WeaponPaints/WeaponPaints.dll
System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation.
 ---> System.TypeInitializationException: The type initializer for 'WeaponPaints.WeaponPaints' threw an exception.
 ---> System.ArgumentException: Method CAttributeList_SetOrAddAttributeValueByName not found in gamedata.json
   at CounterStrikeSharp.API.Core.GameData.GetSignature(String key) in /home/runner/work/CounterStrikeSharp/CounterStrikeSharp/managed/CounterStrikeSharp.API/Core/GameData.cs:line 94
   at WeaponPaints.WeaponPaints..cctor() in /home/runner/work/cs2-WeaponPaints/cs2-WeaponPaints/WeaponPaints.cs:line 98
   --- End of inner exception stack trace ---
   at WeaponPaints.WeaponPaints.OnConfigParsed(WeaponPaintsConfig config) in /home/runner/work/cs2-WeaponPaints/cs2-WeaponPaints/WeaponPaints.cs:line 258
   at System.RuntimeMethodHandle.InvokeMethod(Object target, Void** arguments, Signature sig, Boolean isConstructor)
   at System.Reflection.MethodBaseInvoker.InvokeDirectByRefWithFewArgs(Object obj, Span`1 copyOfArgs, BindingFlags invokeAttr)
   --- End of inner exception stack trace ---
   at System.Reflection.MethodBaseInvoker.InvokeDirectByRefWithFewArgs(Object obj, Span`1 copyOfArgs, BindingFlags invokeAttr)
   at System.Reflection.MethodBaseInvoker.InvokeWithOneArg(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
   at CounterStrikeSharp.API.Core.BasePlugin.InitializeConfig(Object instance, Type pluginType) in /home/runner/work/CounterStrikeSharp/CounterStrikeSharp/managed/CounterStrikeSharp.API/Core/BasePlugin.cs:line 392
   at CounterStrikeSharp.API.Core.Plugin.PluginContext.Load(Boolean hotReload) in /home/runner/work/CounterStrikeSharp/CounterStrikeSharp/managed/CounterStrikeSharp.API/Core/Plugin/PluginContext.cs:line 217
   at CounterStrikeSharp.API.Core.Plugin.Host.PluginManager.LoadPlugin(String path) in /home/runner/work/CounterStrikeSharp/CounterStrikeSharp/managed/CounterStrikeSharp.API/Core/Plugin/Host/PluginManager.cs:line 125
   at CounterStrikeSharp.API.Core.Plugin.Host.PluginManager.Load() in /home/runner/work/CounterStrikeSharp/CounterStrikeSharp/managed/CounterStrikeSharp.API/Core/Plugin/Host/PluginManager.cs:line 93

I believe the issue is that the game data failed to load, which is causing my plugin to fail to load

Loaded /home/steamcmd/cs2/game/bin/linuxsteamrt64/libengine2.so, got 0x55e4a8a06ec0

Console initialized.
Steam AppId(730), BreakpadId(2347771)
InitSteamLogin_Internal: Initializing breakpad.
Using breakpad crash handler
Steam Universe is invalid, possibly asking before Steam was successfully initialized.
ResetBreakpadAppId: Universe is 0 (k_EUniverseInvalid)
ResetBreakpadAppId: Setting dedicated server app id: 2347773
Setting breakpad minidump AppID = 2347773
Forcing breakpad minidump interfaces to load
Looking up breakpad interfaces from steamclient
Calling BreakpadMiniDumpSystemInit
Loaded libSDL3.so.0, got 0x55e4a8b0fab0
Loaded /home/steamcmd/cs2/game/bin/linuxsteamrt64/libtier0.so, got 0x55e4a89e9120
Visibility enabled.
Loaded /home/steamcmd/cs2/game/bin/linuxsteamrt64/libfilesystem_stdio.so, got 0x55e4a8b0ff70
USRLOCAL path not found!
Loaded /home/steamcmd/cs2/game/bin/linuxsteamrt64/liblocalize.so, got 0x55e4a8b22490
Loaded /home/steamcmd/cs2/game/bin/linuxsteamrt64/librendersystemempty.so, got 0x55e4a8b34590
Loaded /home/steamcmd/cs2/game/bin/linuxsteamrt64/libresourcesystem.so, got 0x55e4a8b46ab0
Loaded /home/steamcmd/cs2/game/bin/linuxsteamrt64/libschemasystem.so, got 0x55e4a8b58fd0
Trying to set dxlevel (111) which is higher than the card can support (110)!
Loaded /home/steamcmd/cs2/game/bin/linuxsteamrt64/libmaterialsystem2.so, got 0x55e4a8b72c00
---------------
Path ID:             File Path:
ADDONS               "/home/steamcmd/cs2/game/csgo_addons/" 
CONTENT              "/home/steamcmd/cs2/content/csgo/addons/metamod/" 
CONTENT              "/home/steamcmd/cs2/content/csgo/" 
CONTENT              "/home/steamcmd/cs2/content/csgo_imported/" 
CONTENT              "/home/steamcmd/cs2/content/csgo_core/" 
CONTENT              "/home/steamcmd/cs2/content/core/" 
CONTENTADDONS        "/home/steamcmd/cs2/content/csgo_addons/" 
CONTENTROOT          "/home/steamcmd/cs2/content/" 
DEFAULT_WRITE_PATH   "/home/steamcmd/cs2/game/csgo/addons/metamod/" 
EXECUTABLE_PATH      "/home/steamcmd/cs2/game/bin/linuxsteamrt64/" 
GAME                 "/home/steamcmd/cs2/game/csgo/pak01.vpk" (vpk) /home/steamcmd/cs2/game/csgo/pak01.vpk
GAME                 "/home/steamcmd/cs2/game/csgo_imported/pak01.vpk" (vpk) /home/steamcmd/cs2/game/csgo_imported/pak01.vpk
GAME                 "/home/steamcmd/cs2/game/csgo_core/pak01.vpk" (vpk) /home/steamcmd/cs2/game/csgo_core/pak01.vpk
GAME                 "/home/steamcmd/cs2/game/core/pak01.vpk" (vpk) /home/steamcmd/cs2/game/core/pak01.vpk
GAME                 "/home/steamcmd/cs2/game/csgo/shaders_vulkan.vpk" (vpk) /home/steamcmd/cs2/game/csgo/shaders_vulkan.vpk
GAME                 "/home/steamcmd/cs2/game/csgo_core/shaders_vulkan.vpk" (vpk) /home/steamcmd/cs2/game/csgo_core/shaders_vulkan.vpk
GAME                 "/home/steamcmd/cs2/game/core/shaders_vulkan.vpk" (vpk) /home/steamcmd/cs2/game/core/shaders_vulkan.vpk
GAME                 "/home/steamcmd/cs2/game/csgo/addons/metamod/" 
GAME                 "/home/steamcmd/cs2/game/csgo/" 
GAME                 "/home/steamcmd/cs2/game/csgo_imported/" 
GAME                 "/home/steamcmd/cs2/game/csgo_core/" 
GAME                 "/home/steamcmd/cs2/game/core/" 
GAMEBIN              "/home/steamcmd/cs2/game/csgo/addons/metamod/bin/linuxsteamrt64/" 
GAMEBIN              "/home/steamcmd/cs2/game/csgo/addons/metamod/bin/" 
GAMEBIN              "/home/steamcmd/cs2/game/csgo/bin/linuxsteamrt64/" 
GAMEBIN              "/home/steamcmd/cs2/game/csgo/bin/" 
GAMEBIN              "/home/steamcmd/cs2/game/csgo_imported/bin/linuxsteamrt64/" 
GAMEBIN              "/home/steamcmd/cs2/game/csgo_imported/bin/" 
GAMEBIN              "/home/steamcmd/cs2/game/csgo_core/bin/linuxsteamrt64/" 
GAMEBIN              "/home/steamcmd/cs2/game/csgo_core/bin/" 
GAMEBIN              "/home/steamcmd/cs2/game/core/bin/linuxsteamrt64/" 
GAMEBIN              "/home/steamcmd/cs2/game/core/bin/" 
GAMEROOT             "/home/steamcmd/cs2/game/" 
MOD                  "/home/steamcmd/cs2/game/csgo/pak01.vpk" (vpk) /home/steamcmd/cs2/game/csgo/pak01.vpk
MOD                  "/home/steamcmd/cs2/game/csgo_imported/pak01.vpk" (vpk) /home/steamcmd/cs2/game/csgo_imported/pak01.vpk
MOD                  "/home/steamcmd/cs2/game/csgo_core/pak01.vpk" (vpk) /home/steamcmd/cs2/game/csgo_core/pak01.vpk
MOD                  "/home/steamcmd/cs2/game/csgo/" 
MOD                  "/home/steamcmd/cs2/game/csgo_imported/" 
MOD                  "/home/steamcmd/cs2/game/csgo_core/" 
PLATFORM             "/home/steamcmd/cs2/game/core/pak01.vpk" (vpk) /home/steamcmd/cs2/game/core/pak01.vpk
PLATFORM             "/home/steamcmd/cs2/game/core/" 
SHADER_SOURCE        "/home/steamcmd/cs2/src/shaders/csgo/addons/metamod/" 
SHADER_SOURCE        "/home/steamcmd/cs2/src/shaders/csgo/" 
SHADER_SOURCE        "/home/steamcmd/cs2/src/shaders/csgo_imported/" 
SHADER_SOURCE        "/home/steamcmd/cs2/src/shaders/csgo_core/" 
SHADER_SOURCE        "/home/steamcmd/cs2/src/shaders/core/" 
SHADER_SOURCE_MOD    "/home/steamcmd/cs2/src/shaders/csgo/addons/metamod/" 
SHADER_SOURCE_ROOT   "/home/steamcmd/cs2/src/shaders/" 
command line arguments:
-dedicated -maxplayers 12 -console +game_type 0 +game_mode 1 +mapgroup mg_active +map de_mirage -high -port 27015 -ip 0.0.0.0 -nobots -insecure
Loaded /home/steamcmd/cs2/game/bin/linuxsteamrt64/libmeshsystem.so, got 0x55e4a8b85540
Loaded /home/steamcmd/cs2/game/bin/linuxsteamrt64/libworldrenderer.so, got 0x55e4a8b97640
Loaded /home/steamcmd/cs2/game/bin/linuxsteamrt64/libpulse_system.so, got 0x55e4a8ba9f80
Loaded /home/steamcmd/cs2/game/bin/linuxsteamrt64/libvscript.so, got 0x55e4a8bbe120
Loaded /home/steamcmd/cs2/game/bin/linuxsteamrt64/libnetworksystem.so, got 0x55e4a8bd0220
Loaded /home/steamcmd/cs2/game/bin/linuxsteamrt64/libanimationsystem.so, got 0x55e4a8be4840
Loaded /home/steamcmd/cs2/game/bin/linuxsteamrt64/libvphysics2.so, got 0x55e4a8bfa720
Loaded /home/steamcmd/cs2/game/bin/linuxsteamrt64/libsoundsystem.so, got 0x55e4a8c0d480
Loaded /home/steamcmd/cs2/game/bin/linuxsteamrt64/libscenesystem.so, got 0x55e4a8c23ba0
Loaded /home/steamcmd/cs2/game/bin/linuxsteamrt64/libv8system.so, got 0x55e4a8c39660
Network System Initialized
MOD desires lightbiner GPU but is unsupported by HW (SupportsCompute=0 CubeMapArrays=0)
Loaded /home/steamcmd/cs2/game/bin/linuxsteamrt64/libserver_valve.so, got (nil)
 failed to dlopen /home/steamcmd/cs2/game/bin/linuxsteamrt64/libserver_valve.so error=/home/steamcmd/cs2/game/bin/linuxsteamrt64/libserver_valve.so: cannot open shared object file: No such file or directory
 failed to dlopen "/home/steamcmd/cs2/game/bin/linuxsteamrt64/libserver_valve.so" error=/home/steamcmd/cs2/game/bin/linuxsteamrt64/libserver_valve.so: cannot open shared object file: No such file or directory
Loaded libserver_valve.so, got (nil)
 failed to dlopen libserver_valve.so error=libserver_valve.so: cannot open shared object file: No such file or directory
 failed to dlopen "libserver_valve.so" error=libserver_valve.so: cannot open shared object file: No such file or directory
Loaded /home/steamcmd/cs2/game/csgo/addons/metamod/bin/linuxsteamrt64/libserver.so, got 0x55e4a8c53470
Physics Console Communications is not initialized
Loaded /home/steamcmd/cs2/game/bin/linuxsteamrt64/libengine2.so, got 0x55e4a8a06ec0
Loaded /home/steamcmd/cs2/game/csgo/bin/linuxsteamrt64/libhost.so, got 0x55e4a8c855b0
Loaded /home/steamcmd/cs2/game/bin/linuxsteamrt64/libscenefilecache.so, got 0x55e4a8c98730
Loaded /home/steamcmd/cs2/game/bin/linuxsteamrt64/libparticles.so, got 0x55e4a8caa830
Loaded /home/steamcmd/cs2/game/csgo/bin/linuxsteamrt64/libmatchmaking.so, got 0x55e4a8cbd9b0
No .vcds loaded or no scenes/scenes.vrman
GameTypes: missing mapgroupsSP entry for game type/mode (custom/custom).
GameTypes: missing mapgroupsSP entry for game type/mode (cooperative/cooperative).
GameTypes: missing mapgroupsSP entry for game type/mode (cooperative/coopmission).
[04:16:58.772] CSSharp: Initializing
[04:16:58.772] CSSharp: CoreConfig loaded.
[04:16:58.806] CSSharp: Copying bytes from disk for /home/steamcmd/cs2/game/bin/linuxsteamrt64/libengine2.so
[04:16:58.940] CSSharp: Copying bytes from disk for /home/steamcmd/cs2/game/bin/linuxsteamrt64/../../csgo/bin/linuxsteamrt64/libserver.so
[04:16:58.967] CSSharp: Globals loaded.
[04:16:58.983] CSSharp: Loading .NET runtime...
[04:16:58.983] CSSharp: Loading hostfxr from /home/steamcmd/cs2/game/csgo/addons/counterstrikesharp/dotnet/host/fxr/8.0.3/libhostfxr.so
[04:16:58.984] CSSharp: .NET Runtime Initialised.
[04:16:58.984] CSSharp: Loading CSS API, Runtime Config: /home/steamcmd/cs2/game/csgo/addons/counterstrikesharp/api/CounterStrikeSharp.API.runtimeconfig.json
04:16:59 [INFO] (cssharp:Core) CounterStrikeSharp is starting up...
04:16:59 [INFO] (cssharp:CoreConfig) Successfully loaded core configuration
04:16:59 [INFO] (cssharp:GameDataProvider) Successfully loaded 36 game data entries from /home/steamcmd/cs2/game/csgo/addons/counterstrikesharp/gamedata/gamedata.json
04:16:59 [EROR] (cssharp:GameDataProvider) Failed to load game data
System.Text.Json.JsonException: The JSON value could not be converted to CounterStrikeSharp.API.Core.LoadedGameData. Path: $.Version | LineNumber: 1 | BytePositionInLine: 14.
   at System.Text.Json.ThrowHelper.ThrowJsonException_DeserializeUnableToConvertValue(Type propertyType)
   at System.Text.Json.Serialization.Converters.ObjectDefaultConverter`1.OnTryRead(Utf8JsonReader& reader, Type typeToConvert, JsonSerializerOptions options, ReadStack& state, T& value)
   at System.Text.Json.Serialization.JsonConverter`1.TryRead(Utf8JsonReader& reader, Type typeToConvert, JsonSerializerOptions options, ReadStack& state, T& value, Boolean& isPopulatedValue)
   at System.Text.Json.Serialization.JsonDictionaryConverter`3.OnTryRead(Utf8JsonReader& reader, Type typeToConvert, JsonSerializerOptions options, ReadStack& state, TDictionary& value)
   at System.Text.Json.Serialization.JsonConverter`1.TryRead(Utf8JsonReader& reader, Type typeToConvert, JsonSerializerOptions options, ReadStack& state, T& value, Boolean& isPopulatedValue)
   at System.Text.Json.Serialization.JsonConverter`1.ReadCore(Utf8JsonReader& reader, JsonSerializerOptions options, ReadStack& state)
   at System.Text.Json.JsonSerializer.ReadFromSpan[TValue](ReadOnlySpan`1 utf8Json, JsonTypeInfo`1 jsonTypeInfo, Nullable`1 actualByteCount)
   at System.Text.Json.JsonSerializer.ReadFromSpan[TValue](ReadOnlySpan`1 json, JsonTypeInfo`1 jsonTypeInfo)
   at CounterStrikeSharp.API.Core.GameDataProvider.Load() in /home/runner/work/CounterStrikeSharp/CounterStrikeSharp/managed/CounterStrikeSharp.API/Core/GameData.cs:line 55
04:16:59 [INFO] (cssharp:Core) Loading Admins from /home/steamcmd/cs2/game/csgo/addons/counterstrikesharp/configs/admins.json
04:16:59 [INFO] (cssharp:AdminManager) Loaded admin data with 2 admins.
04:16:59 [INFO] (cssharp:Core) Loading Admin Groups from /home/steamcmd/cs2/game/csgo/addons/counterstrikesharp/configs/admin_groups.json
Loaded 1 admin groups.
04:16:59 [INFO] (cssharp:Core) Loading Admin Command Overrides from /home/steamcmd/cs2/game/csgo/addons/counterstrikesharp/configs/admin_overrides.json
Admin command overrides file not found. Skipping admin command overrides load.
04:16:59 [INFO] (cssharp:PluginContext) Loading plugin WeaponPaints
04:16:59 [EROR] (cssharp:PluginManager) Failed to load plugin from /home/steamcmd/cs2/game/csgo/addons/counterstrikesharp/plugins/WeaponPaints/WeaponPaints.dll
System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation.
 ---> System.TypeInitializationException: The type initializer for 'WeaponPaints.WeaponPaints' threw an exception.
 ---> System.ArgumentException: Method CAttributeList_SetOrAddAttributeValueByName not found in gamedata.json
   at CounterStrikeSharp.API.Core.GameData.GetSignature(String key) in /home/runner/work/CounterStrikeSharp/CounterStrikeSharp/managed/CounterStrikeSharp.API/Core/GameData.cs:line 94
   at WeaponPaints.WeaponPaints..cctor() in /home/runner/work/cs2-WeaponPaints/cs2-WeaponPaints/WeaponPaints.cs:line 98
   --- End of inner exception stack trace ---
   at WeaponPaints.WeaponPaints.OnConfigParsed(WeaponPaintsConfig config) in /home/runner/work/cs2-WeaponPaints/cs2-WeaponPaints/WeaponPaints.cs:line 258
   at System.RuntimeMethodHandle.InvokeMethod(Object target, Void** arguments, Signature sig, Boolean isConstructor)
   at System.Reflection.MethodBaseInvoker.InvokeDirectByRefWithFewArgs(Object obj, Span`1 copyOfArgs, BindingFlags invokeAttr)
   --- End of inner exception stack trace ---
   at System.Reflection.MethodBaseInvoker.InvokeDirectByRefWithFewArgs(Object obj, Span`1 copyOfArgs, BindingFlags invokeAttr)
   at System.Reflection.MethodBaseInvoker.InvokeWithOneArg(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
   at CounterStrikeSharp.API.Core.BasePlugin.InitializeConfig(Object instance, Type pluginType) in /home/runner/work/CounterStrikeSharp/CounterStrikeSharp/managed/CounterStrikeSharp.API/Core/BasePlugin.cs:line 392
   at CounterStrikeSharp.API.Core.Plugin.PluginContext.Load(Boolean hotReload) in /home/runner/work/CounterStrikeSharp/CounterStrikeSharp/managed/CounterStrikeSharp.API/Core/Plugin/PluginContext.cs:line 217
   at CounterStrikeSharp.API.Core.Plugin.Host.PluginManager.LoadPlugin(String path) in /home/runner/work/CounterStrikeSharp/CounterStrikeSharp/managed/CounterStrikeSharp.API/Core/Plugin/Host/PluginManager.cs:line 125
   at CounterStrikeSharp.API.Core.Plugin.Host.PluginManager.Load() in /home/runner/work/CounterStrikeSharp/CounterStrikeSharp/managed/CounterStrikeSharp.API/Core/Plugin/Host/PluginManager.cs:line 93
04:16:59 [INFO] (cssharp:PluginContext) Loading plugin C4Timer
04:16:59 [INFO] (cssharp:PluginContext) Finished loading plugin C4 Timer
04:16:59 [INFO] (cssharp:PluginContext) Loading plugin K4ryuuDamageInfo
04:16:59 [INFO] (cssharp:PluginContext) Finished loading plugin Damage Info
04:16:59 [INFO] (cssharp:PluginContext) Loading plugin Advertisement
True
04:16:59 [INFO] (cssharp:PluginContext) Finished loading plugin Advertisement
04:16:59 [INFO] (cssharp:PluginContext) Loading plugin CS2-SimpleAdmin

 _______  ___   __   __  _______  ___      _______  _______  ______   __   __  ___   __    _  
|       ||   | |  |_|  ||       ||   |    |       ||   _   ||      | |  |_|  ||   | |  |  | |
|  _____||   | |       ||    _  ||   |    |    ___||  |_|  ||  _    ||       ||   | |   |_| |
| |_____ |   | |       ||   |_| ||   |    |   |___ |       || | |   ||       ||   | |       |
|_____  ||   | |       ||    ___||   |___ |    ___||       || |_|   ||       ||   | |  _    |
 _____| ||   | | ||_|| ||   |    |       ||   |___ |   _   ||       || ||_|| ||   | | | |   |
|_______||___| |_|   |_||___|    |_______||_______||__| |__||______| |_|   |_||___| |_|  |__|
                                >> Version: 1.4.3d
                >> GitHub: https://github.com/daffyyyy/CS2-SimpleAdmin

04:17:00 [INFO] (cssharp:PluginContext) Finished loading plugin CS2-SimpleAdmin (RELEASE)
[04:17:00.018] CSSharp: CounterStrikeSharp.API Loaded Successfully.
[04:17:00.020] CSSharp: Initialized GameSystem.
[04:17:00.021] CSSharp: Hooks added.
Event System loaded 93 events from file: vpk:/home/steamcmd/cs2/game/core/pak01.vpk:resource/core.gameevents.
Event System loaded 50 events from file: vpk:/home/steamcmd/cs2/game/csgo/pak01.vpk:resource/game.gameevents.
Event System loaded 147 events from file: vpk:/home/steamcmd/cs2/game/csgo/pak01.vpk:./resource/mod.gameevents.
CEntitySystem::BuildEntityNetworking (parallel build of server) took 174.209 msecs for 220 out of 300 classes
[STARTUP] {2.608} server module init ok
CHostStateMgr::QueueNewRequest( Idle (console), 1 )
Source2Init OK
HostStateRequest::Start(HSR_IDLE):  loop(console) id(1) addons() desc(Idle (console))
SwitchToLoop console requested:  id [1] addons []
Host activate: Idle (console)
Setting mapgroup to 'mg_active'
Loading map "de_mirage"
CHostStateMgr::QueueNewRequest( Loading (de_mirage), 2 )
HostStateRequest::Start(HSR_GAME):  loop(levelload) id(2) addons() desc(Loading (de_mirage))
SwitchToLoop levelload requested:  id [2] addons []
SV:  Level loading started for 'de_mirage'
CL:  CLoopModeLevelLoad::MaybeSwitchToGameLoop switching to "game" loopmode with addons ()
SwitchToLoop game requested:  id [2] addons []
SteamGameServer_Init()
dlopen failed trying to load:
steamclient.so
with error:
steamclient.so: cannot open shared object file: No such file or directory
[S_API] SteamAPI_Init(): Loaded '/home/steamcmd/.steam/sdk64/steamclient.so' OK.  (First tried local 'steamclient.so')
CAppInfoCacheReadFromDiskThread took 7 milliseconds to initialize
Setting breakpad minidump AppID = 730
SteamInternal_SetMinidumpSteamID:  Caching Steam ID:  76561197960265728 [API loaded yes]
SteamInternal_SetMinidumpSteamID:  Setting Steam ID:  76561197960265728
Looking up breakpad interfaces from steamclient
Calling BreakpadMiniDumpSystemInit
SteamInternal_SetMinidumpSteamID:  Caching Steam ID:  76561197960265728 [API loaded yes]
SteamInternal_SetMinidumpSteamID:  Setting Steam ID:  76561197960265728
[S_API FAIL] Tried to access Steam interface SteamUtils010 before SteamAPI_Init succeeded.
Steam Universe valid after having been requested when invalid.  Universe is now 1
ResetBreakpadAppId: Universe is 1 (k_EUniversePublic)
ResetBreakpadAppId: Setting dedicated server app id: 2347773
Setting breakpad minidump AppID = 2347773
SteamGameServer_Init() OK, logging on to Steam
****************************************************
*                                                  *
*  No Steam account token was specified.           *
*  Logging into anonymous game server account.     *
*  Connections will be restricted to LAN only.     *
*                                                  *
*  To create a game server account go to           *
*  http://steamcommunity.com/dev/managegameservers *
*                                                  *
****************************************************
CNetworkSystem::InitGameServer: SteamGameServerNetworking() OK
Initialized low level socket/threading support.
Set SteamNetworkingSockets P2P_STUN_ServerList to '' as per SteamNetworkingSocketsSerialized
CNetworkGameServerBase::SetServerState (ss_dead -> ss_waitingforgamesessionmanifest)
SV:  maxplayers set to 12
Server is hibernating
ResetGameConVarsToDefaults
Created poll group for socket 'server'
SDR RelayNetworkStatus:  avail=Attempting  config=Attempting  anyrelay=Not Attempted   (Attempt #1 to fetch config (only-if-cached) from https://api.steampowered.com/ISteamApps/GetSDRConfig/v1?appid=730)
AuthStatus (invalid):  Waiting  (Waiting for Steam login)
Network socket 'server' opened on port 27015
Initializing CSGO VScript Game System
SV:  Executing server defaults
SV:  Executing dedicated server config file
[STARTUP] {3.163} created game rules
GameTypes: could not find matching game mode value of "" in any game type.
SV:  CGameRulesGameSystem::GameInit installed game rules
LoadResponseSystem scripts/talker/response_rules.vrr - Start
CResponseSystem:  scripts/talker/response_rules.vrr (7681 rules, 811 criteria, and 7681 responses)
LoadResponseSystem scripts/talker/response_rules.vrr - Finish
Entry player was not found in surfaceproperties_footsteps.txt
[04:17:01.288] CSSharp: CGameSystem::BuildGameSessionManifest
exec: couldn't exec '{*}cfg/skill1.cfg', unable to read file
execing server_default.cfg
execing server.cfg
execing gamemode_competitive.cfg
exec: couldn't exec '{*}cfg/gamemode_competitive_server.cfg', unable to read file
Unknown command 'mp_consistency'!
Unknown command 'mp_friendly_grenade_damage'!
Unknown command 'mp_hostagepenalty'!
Unknown command 'mp_logfile'!
Unknown command 'mp_logmessages'!
Unknown command 'sv_aim'!
Unknown command 'sv_airmove'!
Unknown command 'sv_allowdownload'!
Unknown command 'sv_allowupload'!
Unknown command 'sv_proxies'!
Unknown command 'sv_send_logos'!
Unknown command 'sv_send_resources'!
Unknown command 'sv_voicequality'!
Unknown command 'allow_spectators'!
Server logging enabled.
Unknown command 'pausable'!
exec: couldn't exec '{*}cfg/listip.cfg', unable to read file
exec: couldn't exec '{*}cfg/banned.cfg', unable to read file
L 08/04/2024 - 04:17:01: server_cvar: "cash_player_interact_with_hostage" "300"
L 08/04/2024 - 04:17:01: server_cvar: "cash_team_elimination_hostage_map_t" "3000"
L 08/04/2024 - 04:17:01: server_cvar: "cash_team_elimination_hostage_map_ct" "3000"
L 08/04/2024 - 04:17:01: server_cvar: "cash_team_hostage_interaction" "600"
L 08/04/2024 - 04:17:01: server_cvar: "cash_team_bonus_shorthanded" "1000"
L 08/04/2024 - 04:17:01: server_cvar: "cash_team_rescued_hostage" "600"
L 08/04/2024 - 04:17:01: server_cvar: "cash_team_win_by_defusing_bomb" "3500"
L 08/04/2024 - 04:17:01: server_cvar: "cash_team_win_by_hostage_rescue" "2900"
L 08/04/2024 - 04:17:01: server_cvar: "mp_freezetime" "15"
L 08/04/2024 - 04:17:01: server_cvar: "mp_maxrounds" "24"
L 08/04/2024 - 04:17:01: server_cvar: "mp_roundtime" "1.920000"
L 08/04/2024 - 04:17:01: server_cvar: "mp_roundtime_hostage" "1.920000"
L 08/04/2024 - 04:17:01: server_cvar: "mp_roundtime_defuse" "1.920000"
L 08/04/2024 - 04:17:01: server_cvar: "sv_deadtalk" "true"
Unknown command 'mp_weapons_glow_on_ground'!
Unknown command 'sv_gameinstructor_enable'!
[S_API FAIL] Tried to access Steam interface SteamUser023 before SteamAPI_Init succeeded.
[S_API FAIL] Tried to access Steam interface SteamUtils010 before SteamAPI_Init succeeded.
Model models/props/crates/csgo_drop_crate_community_27.vmdl: sequence/animation name collision found "tools_preview"
Model models/props/crates/csgo_drop_crate_community_26.vmdl: sequence/animation name collision found "tools_preview"
Model models/props/crates/csgo_drop_crate_community_30.vmdl: sequence/animation name collision found "tools_preview"
Model models/props/crates/csgo_drop_crate_horizon.vmdl: sequence/animation name collision found "tools_preview"
Model models/props/crates/csgo_drop_crate_clutch.vmdl: sequence/animation name collision found "tools_preview"
Model models/props/crates/csgo_drop_crate_spectrum2.vmdl: sequence/animation name collision found "tools_preview"
Model models/props/crates/csgo_drop_crate_community_25.vmdl: sequence/animation name collision found "tools_preview"
Model models/props/crates/csgo_drop_crate_hydra.vmdl: sequence/animation name collision found "tools_preview"
Model models/props/crates/csgo_drop_crate_spectrum.vmdl: sequence/animation name collision found "tools_preview"
Model models/props/crates/csgo_drop_crate_glove.vmdl: sequence/animation name collision found "tools_preview"
Model models/props/crates/csgo_drop_crate_gamma2.vmdl: sequence/animation name collision found "tools_preview"
Model models/props/crates/csgo_drop_crate_gamma.vmdl: sequence/animation name collision found "tools_preview"
Model models/props/crates/csgo_drop_crate_chroma3.vmdl: sequence/animation name collision found "tools_preview"
Model models/props/crates/csgo_drop_crate_community_24.vmdl: sequence/animation name collision found "tools_preview"
Model models/props/crates/csgo_drop_crate_community_23.vmdl: sequence/animation name collision found "tools_preview"
Model models/props/crates/csgo_drop_crate_wildfire.vmdl: sequence/animation name collision found "tools_preview"
Model models/props/crates/csgo_drop_crate_revolver.vmdl: sequence/animation name collision found "tools_preview"
Model models/props/crates/csgo_drop_crate_shadow.vmdl: sequence/animation name collision found "tools_preview"
Model models/props/crates/csgo_drop_crate_bloodhound.vmdl: sequence/animation name collision found "tools_preview"
Model models/props/crates/csgo_drop_crate_community_22.vmdl: sequence/animation name collision found "tools_preview"
Model models/props/crates/csgo_drop_crate_community_32.vmdl: sequence/animation name collision found "tools_preview"
Model models/props/crates/csgo_drop_crate_chroma2.vmdl: sequence/animation name collision found "tools_preview"
Model models/props/crates/csgo_drop_crate_chroma.vmdl: sequence/animation name collision found "tools_preview"
Model models/props/crates/csgo_drop_crate_vanguard.vmdl: sequence/animation name collision found "tools_preview"
Model models/props/crates/csgo_drop_crate_breakout.vmdl: sequence/animation name collision found "tools_preview"
Model models/props/crates/csgo_drop_crate_dangerzone.vmdl: sequence/animation name collision found "tools_preview"
Model models/props/crates/csgo_drop_crate_huntsman.vmdl: sequence/animation name collision found "tools_preview"
Model models/props/crates/csgo_drop_crate_phoenix.vmdl: sequence/animation name collision found "tools_preview"
Model models/props/crates/csgo_drop_crate_armsdeal3.vmdl: sequence/animation name collision found "tools_preview"
Model models/props/crates/csgo_drop_crate_winteroffensive.vmdl: sequence/animation name collision found "tools_preview"
Model models/props/crates/csgo_drop_crate_bravo.vmdl: sequence/animation name collision found "tools_preview"
Model models/props/crates/csgo_drop_crate_armsdeal2.vmdl: sequence/animation name collision found "tools_preview"
Model models/props/crates/csgo_drop_crate_armsdeal1.vmdl: sequence/animation name collision found "tools_preview"
Model models/props/crates/csgo_drop_crate_community_31.vmdl: sequence/animation name collision found "tools_preview"
Model models/props/crates/csgo_drop_crate_community_29.vmdl: sequence/animation name collision found "tools_preview"
Model models/props/crates/csgo_drop_crate_community_28.vmdl: sequence/animation name collision found "tools_preview"
SV:  Spawn Server: de_mirage
CNetworkGameServerBase::SetServerState (ss_waitingforgamesessionmanifest -> ss_loading)
L 08/04/2024 - 04:17:03: Started:  ""
CWorldRendererMgr::ServiceWorldRequests long frame: 87.090370ms
Failed loading resource "maps/prefabs/misc/terrorist_team_intro_variant2/world_visibility.vvis_c" (ERROR_FILEOPEN: File not found)
CNetworkGameServerBase::SetServerState (ss_loading -> ss_active)
SV:  IGameSystem::LoopActivateAllSystems {
HO:  IGameSystem::LoopActivateAllSystems {
HO:  } IGameSystem::LoopActivateAllSystems done
SV:  } IGameSystem::LoopActivateAllSystems done
Created physics for de_mirage
CNavGenParams - Nav mesh requests project default generation parameters but actual parameters
  used during construction differ from defaults. Please re-export the map.
CNavGenParams - Nav mesh requests project default generation parameters but actual parameters
  used during construction differ from defaults. Please re-export the map.
CNavGenParams - Nav mesh requests project default generation parameters but actual parameters
  used during construction differ from defaults. Please re-export the map.
CNavGenParams - Nav mesh requests project default generation parameters but actual parameters
  used during construction differ from defaults. Please re-export the map.
CNavGenParams - Nav mesh requests project default generation parameters but actual parameters
  used during construction differ from defaults. Please re-export the map.
CNavGenParams - Nav mesh requests project default generation parameters but actual parameters
  used during construction differ from defaults. Please re-export the map.
CNavGenParams - Nav mesh requests project default generation parameters but actual parameters
  used during construction differ from defaults. Please re-export the map.
SV:  12 player server started
CSource2Server::GameServerSteamAPIActivated()
Host activate: Loading (de_mirage)
SV:  Connection to Steam servers successful.
SV:  ServerSteamID=[A:1:1452971017:29947] (90200615385994249).
[STARTUP] {11.816} logged on to Steam
Gameserver logged on to Steam, assigned identity steamid:90200615385994249
AuthStatus (steamid:90200615385994249):  Attempting  (Requesting cert)
Set SteamNetworkingSockets P2P_STUN_ServerList to '45.121.184.23:3478' as per SteamNetworkingSocketsSerialized
SV:  VAC secure mode disabled.
Certificate expires in 47h59m at 1722889029 (current time 1722716230), will renew in 45h59m
GC Connection established for server version 2000376, instance idx 1
[STARTUP] {12.146} activated session on GC
SDR network config fetch attempt #1 failed.  No response from server.  Trying again.
SDR network config fetch attempt #2 failed.  No response from server.  Trying again.
Got SDR network config.  Loaded revision 1722272570 OK
SDR RelayNetworkStatus:  avail=Not Attempted  config=OK  anyrelay=Not Attempted   (No need for SDR client network access)

This is the complete log

how can i do?

roflmuffin commented 2 months ago

Is this a Linux server? It's possible there is a permission issue loading the game data json

zCN24 commented 2 months ago

Is this a Linux server? It's possible there is a permission issue loading the game data json

yes,this is linux server The permissions on this file are normal and I check the permissions on the file every time

roflmuffin commented 2 months ago

What is the contents of the gamedata file?

zCN24 commented 2 months ago

What is the contents of the gamedata file?

{
  "UTIL_ClientPrintAll": {
    "signatures": {
      "library": "server",
      "windows": "48 89 5C 24 08 48 89 6C 24 10 48 89 74 24 18 57 48 81 EC 70 01 ? ? 8B E9",
      "linux": "55 48 89 E5 41 57 49 89 D7 41 56 49 89 F6 41 55 41 89 FD"
    }
  },
  "ClientPrint": {
    "signatures": {
      "library": "server",
      "windows": "48 85 C9 0F 84 ? ? ? ? 48 8B C4 48 89 58 18",
      "linux": "55 48 89 E5 41 57 49 89 CF 41 56 49 89 D6 41 55 41 89 F5 41 54 4C 8D A5 A0 FE FF FF"
    }
  },
  "CCSPlayerController_SwitchTeam": {
    "signatures": {
      "library": "server",
      "windows": "40 56 57 48 81 EC ? ? ? ? 48 8B F9 8B F2 8B CA",
      "linux": "55 48 89 E5 41 55 49 89 FD 89 F7"
    }
  },
  "CCSPlayerController_ChangeTeam": {
    "offsets": {
      "windows": 98,
      "linux": 97
    }
  },
  "CCSPlayerController_Respawn": {
    "offsets": {
      "windows": 254,
      "linux": 256
    }
  },
  "CBasePlayerController_SetPawn": {
    "signatures": {
      "library": "server",
      "windows": "44 88 4C 24 ? 55 56 57 41 54 41 56 48 8D 6C 24 ?",
      "linux": "55 48 89 E5 41 57 41 56 41 89 D6 41 55 49 89 FD 41 54 45 89 C4"
    }
  },
  "CCSPlayerPawnBase_PostThink": {
    "signatures": {
      "library": "server",
      "windows": "48 ? ? 55 53 56 57 41 ? 48 ? ? ? 48 ? ? ? ? ? ? 4C 89 68",
      "linux": "55 48 89 E5 41 56 41 55 41 54 53 48 89 FB 48 83 EC 30 E8 ? ? ? ?"
    }
  },
  "CGameEventManager_Init": {
    "signatures": {
      "library": "server",
      "windows": "40 53 48 83 EC 20 48 8B 01 48 8B D9 FF 50 10",
      "linux": "55 48 89 E5 41 54 49 89 FC 48 83 EC 08 48 8B 07 FF 50 18"
    }
  },
  "GiveNamedItem": {
    "signatures": {
      "library": "server",
      "windows": "48 89 5C 24 ? 48 89 74 24 ? 55 57 41 ? 41 ? 41 ? 48 ? ? ? ? 48 ? ? ? ? ? ? 4D ? ? 48",
      "linux": "55 48 89 E5 41 57 41 56 49 89 D6 41 55 49 89 CD 41 54 49 89 F4 53 48 89 FB 48 8D 3D"
    }
  },
  "UTIL_Remove": {
    "signatures": {
      "library": "server",
      "windows": "48 85 C9 74 ? 48 8B D1 48 8B 0D ? ? ? ?",
      "linux": "48 89 FE 48 85 FF 74 ? 48 8D 05 ? ? ? ? 48"
    }
  },
  "Host_Say": {
    "signatures": {
      "library": "server",
      "windows": "44 89 4C 24 20 44 88 44 24 18",
      "linux": "55 48 89 E5 41 57 41 56 41 89 D6 41 55 4D 89 C5"
    }
  },
  "CBaseModelEntity_SetModel": {
    "signatures": {
      "library": "server",
      "windows": "48 89 5C 24 ? 48 89 7C 24 ? 55 48 8B EC 48 83 EC 50 48 8B F9 4C 8B C2",
      "linux": "55 48 89 F2 48 89 E5 41 54 49 89 FC 48 8D 7D E0 48 83 EC ? 48 8D 05 ? ? ? ? 48 8B 30 48 8B 06"
    }
  },
  "CCSPlayer_WeaponServices_CanUse": {
    "signatures": {
      "library": "server",
      "windows": "48 89 5C 24 10 48 89 6C 24 18 56 57 41 56 48 83 EC 30 80 B9 A0 00 00 00 00",
      "linux": "48 85 F6 0F 84 ? ? ? ? 55 31 C9 48 89 E5 41 55 49 89 FD"
    }
  },
  "CCSPlayer_ItemServices_GiveNamedItem": {
    "offsets": {
      "windows": 17,
      "linux": 18
    }
  },
  "CCSPlayer_ItemServices_DropActivePlayerWeapon": {
    "offsets": {
      "windows": 18,
      "linux": 19
    }
  },
  "CCSPlayer_ItemServices_RemoveWeapons": {
    "offsets": {
      "windows": 19,
      "linux": 20
    }
  },
  "CGameSceneNode_GetSkeletonInstance": {
    "offsets": {
      "windows": 8,
      "linux": 8
    }
  },
  "CCSGameRules_TerminateRound": {
    "signatures": {
      "library": "server",
      "windows": "48 8B C4 4C 89 48 ? 48 89 48 ? 55 56",
      "linux": "55 48 89 E5 41 57 41 56 41 55 41 54 49 89 FC 53 48 81 EC 88 00 00 00 48 8D 05 ? ? ? ?"
    }
  },
  "UTIL_CreateEntityByName": {
    "signatures": {
      "library": "server",
      "windows": "48 83 EC 48 C6 44 24 30 00",
      "linux": "48 8D 05 ? ? ? ? 55 48 89 FA"
    }
  },
  "CBaseEntity_DispatchSpawn": {
    "signatures": {
      "library": "server",
      "windows": "48 89 5C 24 10 57 48 83 EC 30 48 8B DA 48 8B F9 48 85 C9",
      "linux": "48 85 FF 74 ? 55 48 89 E5 41 56"
    }
  },
  "CEntityInstance_AcceptInput": {
    "signatures": {
      "library": "server",
      "windows": "48 89 5C 24 10 48 89 74 24 18 57 48 83 EC 40 49 8B F0",
      "linux": "55 48 89 E5 41 57 49 89 FF 41 56 48 8D 7D C0"
    }
  },
  "CEntitySystem_AddEntityIOEvent": {
    "signatures": {
      "library": "server",
      "windows": "48 89 5C 24 ? 48 89 74 24 ? 57 48 ? ? ? 49 ? ? 48 ? ? 48 ? ? 74",
      "linux": "55 41 BA FF FF FF FF"
    }
  },
  "LegacyGameEventListener": {
    "signatures": {
      "library": "server",
      "windows": "48 8B 15 ? ? ? ? 48 85 D2 74 ? 85 C9 74",
      "linux": "48 8B 05 ? ? ? ? 48 85 C0 74 ? 85 FF"
    }
  },
  "CBasePlayerPawn_CommitSuicide": {
    "offsets": {
      "windows": 372,
      "linux": 372
    }
  },
  "CBasePlayerPawn_RemovePlayerItem": {
    "signatures": {
      "library": "server",
      "windows": "48 ? ? 0F 84 ? ? ? ? 48 89 5C 24 ? 57 48 ? ? ? 48 ? ? 48 ? ? E8",
      "linux": "55 48 89 ? 41 ? 49 89 ? 41 ? 49 89 ? E8 ? ? ? ? 49 39"
    }
  },
  "CBaseEntity_Teleport": {
    "offsets": {
      "windows": 155,
      "linux": 154
    }
  },
  "CBaseEntity_TakeDamageOld": {
    "signatures": {
      "library": "server",
      "windows": "48 89 74 24 20 57 48 83 EC 60 48 8B 41 10",
      "linux": "55 48 89 E5 41 57 41 56 41 55 41 54 49 89 FC 53 48 83 EC 48 4C 8D 2D ? ? ? ? 49 8B 7D 00 48 85 FF 0F 84 ? ? ? ?"
    }
  },
  "CBaseTrigger_StartTouch": {
    "signatures": {
      "library": "server",
      "windows": "41 56 41 57 48 83 EC 58 48 8B 01",
      "linux": "55 48 89 E5 41 56 49 89 F6 41 55 49 89 FD 41 54 53 BB"
    }
  },
  "CBaseTrigger_EndTouch": {
    "signatures": {
      "library": "server",
      "windows": "40 53 57 41 55 48 83 EC 40",
      "linux": "55 BA FF FF FF FF 48 89 E5 41 57 41 56 41 55 49 89 F5 41"
    }
  },
  "StateChanged": {
    "signatures": {
      "library": "server",
      "windows": "40 55 53 56 41 55 41 57 48 8D 6C 24 B0",
      "linux": "55 48 89 E5 41 57 41 56 41 55 41 54 53 89 D3"
    }
  },
  "NetworkStateChanged": {
    "signatures": {
      "library": "server",
      "windows": "4C 8B C9 48 8B 09 48 85 C9 74 ? 48 8B 41 10",
      "linux": "4C 8B 07 4D 85 C0 74 ? 49 8B 40 10"
    }
  },
  "GameEntitySystem": {
    "offsets": {
      "windows": 88,
      "linux": 80
    }
  },
  "GameEventManager": {
    "offsets": {
      "windows": 93,
      "linux": 93
    }
  },
  "CEntityIOOutput_FireOutputInternal": {
    "signatures": {
      "library": "server",
      "windows": "4C 89 4C 24 20 53 55 57 41 54 41 56 48 81 EC",
      "linux": "55 48 89 E5 41 57 41 56 41 55 41 54 49 89 D4 53 48 89 F3 48 83 EC 58"
    }
  },
  "IGameSystem_InitAllSystems_pFirst": {
    "signatures": {
      "library": "server",
      "windows": "48 8B 1D ? ? ? ? 48 85 DB 0F 84 ? ? ? ? BE ? ? ? ? 0F 1F 00 48 8B 7B 10",
      "linux": "4C 8B 35 ? ? ? ? 4D 85 F6 75 2D E9 ? ? ? ? 0F 1F 40 00 48 8B 05"
    }
  },
  "CEntityResourceManifest_AddResource": {
    "offsets": {
      "windows": 2,
      "linux": 0
    }
  }
}