Momentum

by DataCpt

Train, cars and other vehicles violently transfer their momentum to the player on collision! Persists through death! Configurable.

Content
2 days ago
2.0
518
Transportation Trains Combat Character Enemies

b Crash on hit

6 days ago

Hey, love the mod!

I got the following crash:

The mod Momentum (1.0.1) caused a non-recoverable error.
Please report this error to the mod author.

Error while running event momentum::on_tick (ID 0)
LuaEntity API call when LuaEntity was invalid.
stack traceback:
[C]: in function 'index'
__momentum
/data/runtime/knockback.lua:33: in function 'get_colliders'
momentum/data/runtime/knockback.lua:80: in function 'halve_distance'
momentum/data/runtime/knockback.lua:89: in function 'get_closer'
momentum/data/runtime/knockback.lua:158: in function <momentum/data/runtime/knockback.lua:132>

I was able to reproduce it once, but then never again after a bunch of attempts.

The first time I was driving a car when a train hit me.

I tried to reproduce it, loading the last autosave, driving into the same rough train track spot. This time the train destroyed the car, but missed my character as they reappeared from the destroyed car. I tried some other vehicles after that, with no error. Then I ran on foot into a train from the side and got the error again.
I have tried multiple times since then to reproduce the error, but it hasn’t re-occurred and everything seems to be working without issue.

Is there any other info that would help?

New response