CounterStrikeSharp icon indicating copy to clipboard operation
CounterStrikeSharp copied to clipboard

[BUG] CItemHeavyAssaultSuit with Wrong Resource Path

Open TitaniumLithium opened this issue 1 year ago • 2 comments

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 avatar Jun 09 '24 13:06 TitaniumLithium

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

TitaniumLithium avatar Jun 10 '24 13:06 TitaniumLithium

Maybe you have to precache those resources manually? (Server.PrecacheModel should be enough)

KillStr3aK avatar Sep 18 '24 17:09 KillStr3aK

Valve has removed all of these assets in the latest game update, closing this.

roflmuffin avatar Jul 13 '25 04:07 roflmuffin