ACF icon indicating copy to clipboard operation
ACF copied to clipboard

console script error on bullet impact

Open abirduphigh opened this issue 8 years ago • 7 comments

[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?

abirduphigh avatar Mar 06 '17 00:03 abirduphigh

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.

MaxShadow09 avatar Mar 11 '17 00:03 MaxShadow09

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.

gunguru357 avatar Apr 18 '17 00:04 gunguru357

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)

  1. Add - [C]:-1
  2. 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

gunguru357 avatar Apr 18 '17 00:04 gunguru357

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

deathking61 avatar May 09 '17 20:05 deathking61

this is indeed a problem

Fasteroid avatar Jun 25 '17 21:06 Fasteroid

Had to revert version. Bad updates

thegrb93 avatar Jun 25 '17 22:06 thegrb93

Ah, is this fixed now?

abirduphigh avatar Mar 26 '18 17:03 abirduphigh