ACF
ACF copied to clipboard
console script error on bullet impact
[ERROR] addons/acf/lua/effects/acf_bulleteffect/init.lua:111: attempt to index local 'Bullet' (a nil value)
1. unknown - addons/acf/lua/effects/acf_bulleteffect/init.lua:111
This seems to appear when bullets impact the world. Any ideas?
That happens to me too, this is what I did:
Find the file "acf/lua/effects/acf_bulleteffect/init.lua", and go to line 111. Then change it from this:
if Bullet.Tracer then Bullet.Tracer:Finish() end
to this:
if Bullet and Bullet.Tracer then Bullet.Tracer:Finish() end
That should stop the errors.
Edit: That didn't solve much. I spawned a 20mm Machinegun with AP tracer rounds, and when its bullets hit the ground, I get these errors:
[ERROR] addons/acf/lua/effects/acf_bulleteffect/init.lua:44: Tried to use invalid object (type CLuaEmitter) (Object was NULL or not of the right type)
1. Finish - [C]:-1
2. unknown - addons/acf/lua/effects/acf_bulleteffect/init.lua:44
[ERROR] addons/acf/lua/effects/acf_bulleteffect/init.lua:139: Tried to use invalid object (type CLuaEmitter) (Object was NULL or not of the right type)
1. Add - [C]:-1
2. ApplyMovement - addons/acf/lua/effects/acf_bulleteffect/init.lua:139
3. ACF_SimBulletFlight - addons/acf/lua/acf/client/cl_acfballistics.lua:25
4. oldFunc - addons/acf/lua/acf/client/cl_acfballistics.lua:6
5. v - addons/dbugr/lua/dbugr/util/modules/sh_func.lua:80
6. unknown - lua/includes/modules/hook.lua:84
This only seems to happen when the bullet hits at a certain angle, probably when it ricochets off a surface. There's something wrong with the tracer, as the script always fail when trying to do CLuaEmitter:Add and CLuaEmitter:Finish.
Commenting the line 41 and 111 stop the errors, but thats probably not the best solution.
I am having the same problem but its with any ammo i used even without the tracer. HE ammo does it, HEAT does it. The only one i got to work was AP.
I also just got these when an AP round bounced or a HEAT round exploded
[ERROR] addons/acfmain/lua/effects/acf_bulleteffect/init.lua:136: Tried to use invalid object (type CLuaEmitter) (Object was NULL or not of the right type)
- Add - [C]:-1
- ApplyMovement - addons/acfmain/lua/effects/acf_bulleteffect/init.lua:136 3. ACF_SimBulletFlight - addons/acfmain/lua/acf/client/cl_acfballistics.lua:25 4. unknown - addons/acfmain/lua/effects/acf_bulleteffect/init.lua:39
so is this issue ever gonna get fixed? like hell man I had to revert to the old one as it didn't error out
this is indeed a problem
Had to revert version. Bad updates
Ah, is this fixed now?