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
a month ago
0.17 - 1.1
2.97K
Transportation Combat Logistic network Circuit network

b [Fixed] Crash when using remote with car

2 years 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>

2 years 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. :-)

2 years 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 :)

2 years 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