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
5 months ago
0.17 - 2.0
3.59K
Transportation Combat Logistic network Circuit network

b [TODO] Crash

20 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_player_selected_area (ID 57)
Pi-C_lib/libs/assertions.lua:431: Wrong argument! nil is not a valid grid.unique_id or vehicle!
stack traceback:
[C]: in function 'error'
Pi-C_lib/libs/assertions.lua:431: in function 'arg_err'
Pi-C_lib/libs/assertions.lua:514: in function 'assert'
autodrive/scripts/vehicles.lua:4070: in function 'get_grid_sensors'
autodrive/scripts/gui_stuff/gui_vehicles.lua:589: in function 'adjust_enabled_states'
autodrive/scripts/gui_stuff/gui_vehicles.lua:1876: in function 'update_vehicle_entry'
autodrive/scripts/gui_stuff/gui_vehicles.lua:1945: in function 'update_gui'
autodrive/scripts/gui_stuff/gui_vehicles.lua:1784: in function 'add_to_force_guis'
autodrive/scripts/gui_stuff/gui_vehicles.lua:2669: in function 'publish_vehicle'
autodrive/scripts/gui.lua:573: in function 'gui_vehicle_publish'
autodrive/scripts/players.lua:509: in function 'select_vehicles'
autodrive/scripts/players.lua:774: in function 'on_player_selected_area'
autodrive/scripts/event_handlers.lua:1829: in function <autodrive/scripts/event_handlers.lua:1821>

20 days ago
(updated 20 days ago)

Thanks for the report! Could you provide a saved game, please? Something seems to go wrong when a vehicle is added. The grid ID should have been added to vehicle data before the GUI is updated, and all vehicles supported by the mod should have a grid, so I'd like to see what happens when I the vehicle is selected with the remote control.

20 days ago

I play with Space Exploration + Krastorio2 this happens when I select accidently a boat (Ironclad) that have no grid. So it's likely because modded vehicle is inside selection. Here is the save: https://drive.google.com/file/d/1PsTm5XNnqLRzI9RAa_XX1Xfo3iM_V19G/view?usp=sharing

New response