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

Fix lua error #102

Merged
merged 1 commit into from
Jan 23, 2025
Merged

Fix lua error #102

merged 1 commit into from
Jan 23, 2025

Conversation

Astralcircle
Copy link

@Astralcircle Astralcircle commented Jan 16, 2025

Fixes:

[[ACF] Armored Combat Framework: Missiles Extension] lua/entities/acf_missile/init.lua:617: attempt to perform arithmetic on field 'Pos' (a nil value)
1. Detonate - lua/entities/acf_missile/init.lua:617
 2. DetonateMissile - lua/entities/acf_missile/init.lua:300
  3. ACF_OnDamage - lua/entities/acf_missile/init.lua:708
   4. dealDamage - lua/acf/damage/damage_sv.lua:254
    5. createExplosion - lua/acf/damage/explosion_sv.lua:179
     6. OnFlightEnd - lua/acf/entities/ammo_types/aphe.lua:133
      7. OnImpact - lua/acf/ballistics/ballistics_sv.lua:197
       8. DoBulletsFlight - lua/acf/ballistics/ballistics_sv.lua:293
        9. CalcBulletFlight - lua/acf/ballistics/ballistics_sv.lua:81
         10. func - lua/acf/ballistics/ballistics_sv.lua:111
          11. internal_call - lua/includes/modules/hook.lua:409
           12. Run - lua/includes/modules/hook.lua:428
            13. func - lua/acf/core/utilities/clock/clock.lua:13
             14. internal_call - lua/includes/modules/hook.lua:409
              15. unknown - lua/includes/modules/hook.lua:428

Maybe the cause of the problem is deeper, but Pos is used for debug information that is not used in regular play

@thecraftianman thecraftianman merged commit 049ac4f into ACF-Team:dev Jan 23, 2025
1 check passed
@Astralcircle Astralcircle deleted the dev branch January 23, 2025 04:05
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

Successfully merging this pull request may close these issues.

2 participants