roflmuffin / CounterStrikeSharp

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

[BUG] CItemHeavyAssaultSuit with Wrong Resource Path #487

Open TitaniumLithium opened 4 weeks ago

TitaniumLithium commented 4 weeks ago
CCSPlayerController player = Utilities.GetPlayerFromUserid(id);
player.GiveNamedItem<CItemHeavyAssaultSuit>("CItemHeavyAssaultSuit");

Could not give item "HeavyAssaultSuit" Because the resource path is not right.

Found in vpk: characters/models/tm_phoenix_heavy/tm_phoenix_heavy.vmdl_c characters/models/tm_phoenix_heavy/sleeve/sleeve_tm_heavy.vmdl_c characters/models/ctm_heavy/ctm_heavy.vmdl_c characters/models/ctm_heavy/sleeve/sleeve_ctm_heavy.vmdl_c

And here is the log:

Failed loading resource "characters/models/tm_heavy/tm_phoenix_heavy.vmdl_c" (ERROR_FILEOPEN: File not found)
C:\buildworker\csgo_rel_win64\build\src\resourcesystem\resourcesystem.cpp (1217) : AssertMsg Failed in function CResourceSystem::BlockingLoadResourceByNameIntoJustInTimeManifest():
false
Resource "characters/models/tm_heavy/tm_phoenix_heavy.vmdl" was not precached but was loaded by a just in time blocking load.
Calling Steam to write a minidump for the assert
Failed loading resource "models/weapons/v_models/arms/phoenix_heavy/v_sleeve_phoenix_heavy.vmdl_c" (ERROR_FILEOPEN: File not found)
C:\buildworker\csgo_rel_win64\build\src\resourcesystem\resourcesystem.cpp (1217) : AssertMsg Failed in function CResourceSystem::BlockingLoadResourceByNameIntoJustInTimeManifest():
false
Resource "models/weapons/v_models/arms/phoenix_heavy/v_sleeve_phoenix_heavy.vmdl" was not precached but was loaded by a just in time blocking load.
Failed loading resource "models/weapons/v_models/arms/ctm_heavy/v_sleeve_ctm_heavy.vmdl_c" (ERROR_FILEOPEN: File not found)
C:\buildworker\csgo_rel_win64\build\src\resourcesystem\resourcesystem.cpp (1217) : AssertMsg Failed in function CResourceSystem::BlockingLoadResourceByNameIntoJustInTimeManifest():
false
Resource "models/weapons/v_models/arms/ctm_heavy/v_sleeve_ctm_heavy.vmdl" was not precached but was loaded by a just in time blocking load.
TitaniumLithium commented 3 weeks ago

Also happened if you set this value: ConVar.Find("mp_weapons_allow_heavyassaultsuit").SetValue(true); Seems like Valve bug.