ZeqMacaw / Crowbar

Crowbar - GoldSource and Source Engine Modding Tool
https://steamcommunity.com/groups/CrowbarTool
Other
654 stars 65 forks source link

Crowbar 0.74 decompiles with a $sequence event parameter that is too long for recompile #51

Open 4512369781 opened 1 year ago

4512369781 commented 1 year ago

Crowbar version: 0.74

Game: Left 4 Dead 2

Operating System: Win10

Samples: Day of Infamy - G43 Titanfall 2 - R-201 Carbine

Issues: When I use these two weapons, the muzzle flash will appear at the map coordinate Vector(0, 0, 0), as shown in the picture, it can be seen near the generator on the map "c7m3_port". 20230614120557_1

So I decompiled "v_rifle.mdl" and "v_huntingrifle.mdl", and found that some parameters are incomplete: v_rifle.qc: { event AE_CL_CREATE_PARTICLE_EFFECT 0 "weapon_muzzle_flash_huntingrifle_FP_cheap follow_attachment muzz" } v_huntingrifle.qc: { event AE_CL_CREATE_PARTICLE_EFFECT 0 "weapon_muzzle_flash_huntingrifle_FP follow_attachment muzzle_fla" } The last parameter should be "muzzle_flash", I modified it and compiled. Start the game, but the problem not solved. And i decompile again, the parameters are still been cut off. It looks like parameters are limited to 64 characters. if i replace "weapon_muzzle_flash_huntingrifle_FP" with "weapon_muzzle_flash_smg_FP" to shorten the parameter length, the problem no longer occurs.

ZeqMacaw commented 1 year ago

Oh wow! Good catch!

I will fix this as soon as I can.