Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
4512369781 opened this issue Jun 14, 2023 · 1 comment

Comments

@4512369781
Copy link

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
Copy link
Owner

Oh wow! Good catch!

I will fix this as soon as I can.

@ZeqMacaw ZeqMacaw changed the title Crowbar 0.74 Compile bug Crowbar 0.74 decompiles with a $sequence event parameter that is too long for recompile Apr 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants