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 - 2.0
3.43K
Transportation Combat Logistic network Circuit network

b Crash on loading a save

4 days ago
(updated 4 days ago)

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

Error while running event autodrive::on_configuration_changed
Given index value (0) is too small, allowed values are from 1 to 65536
stack traceback:
[C]: in function 'newindex'
__autodrive
/vehicle_lists.lua:900: in function 'check_vehicle_ammo_slots'
autodrive/scripts/event_handlers.lua:1075: in function 'on_init'
autodrive/scripts/event_handlers.lua:1168: in function 'on_configuration_changed'
autodrive/control.lua:399: in function <autodrive/control.lua:397>

3 days ago

Thank you for the report! It seems my logic for determining what vehicles have ammo-consuming guns is flawed. The lasertank is using lasertanks-ammo-[1-3], but as there are no recipes for crafting these ammo types, the lasertank's gun is ignored, so Autodrive assumes the lasertank has 0 guns. This results in trying to set the gun index to an illegal value.

Now I've just got to figure out how to fix this. :-)

2 days ago

While you're at it, it's worth checking if the laser vehicles in the mod work with the other sensors as well. They are a little non-standard; instead of burning fuel, they charge from their equipment grid.

New response