Autodrive

by Pi-C

Car equipment for train avoidance, logistic network integration, circuit network connectivity, fuel refill, ammo reload, vehicle repair, radio control, enemy targeting, and gate control.

Content
16 days ago
0.17 - 1.1
2.41K
Transportation

b [Fixed] Crash when using remote with car

1 year, 10 months ago

Factorio v1.1.61
I was driving around my car, clicking in zoomed in map view, killing some enemies. It worked fine for a while but then I got this:

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

Error while running event autodrive::on_player_selected_area (ID 51)
LuaEntity API call when LuaEntity was invalid.
stack traceback:
[C]: in function 'index'
__autodrive
/control.lua:1001: in function 'render_target'
autodrive/control.lua:2488: in function <autodrive/control.lua:2465>

1 year, 10 months ago

I was driving around my car, clicking in zoomed in map view, killing some enemies.

Thanks for the report! Looks like enemies were out killing some cars as well. I've added a validity check. Can you confirm that this fixes the issue. :-)

1 year, 10 months ago

Clicking after a car has died or just randomly usually doesn't crash the game. I can't reproduce it (before update) so hard to tell if it's fixed. But if you found an error with the code indicated by the error message then that's great, thanks :)

1 year, 10 months ago

You're welcome! I've marked this as fixed for now (and I suppose it really is), but if you get another crash, just reopen this. :-D

New response