hlsdk-portable icon indicating copy to clipboard operation
hlsdk-portable copied to clipboard

Client crash when sequence mdl is missing (e.g. 01.mdl)

Open FreeSlave opened this issue 7 months ago • 2 comments

If sequence mdl (01, 02, etc.) is missing and game is trying to use the sequence, the client crashes in CStudioModelRenderer::StudioCalcBoneQuaterion.

I wonder if it's possible to handle in the game code so instead of crashing the game could show some meaningful error.

FreeSlave avatar May 15 '25 21:05 FreeSlave

I'm not sure if it's a good workaround, but fan PC port of Decay has such check: https://github.com/hoaxer/Half-Life-Decay/blob/main/cl_dlls/StudioModelRenderer.cpp#L180

nekonomicon avatar May 31 '25 11:05 nekonomicon

panim is not null even if sequence file is missing.

It comes from StudioGetAnim which never returns null

FreeSlave avatar Jun 05 '25 12:06 FreeSlave