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

b [Fixed] Crash on Boot with Planet Rubia Mod

2 months ago
(updated 2 months ago)

Heyo! It appears that the latest changes to gun handling have broken Autodrive in my installation. Hopefully, the error is helpful. Some quick binary testing was able to narrow it down to what appears to be an incompatibility with the Planet Rubia mod in some way. This happens with the new Version 2.0.6, but not with Version 2.0.5 from what I can see.

Failed to load mods: __autodrive__/prototypes/3-grid.lua:135: attempt to index local 'gun' (a nil value)
stack traceback:
    __autodrive__/prototypes/3-grid.lua:135: in function 'has_guns_with_ammo'
    __autodrive__/prototypes/3-grid.lua:160: in function 'pick_grid_for_vehicle'
    __autodrive__/prototypes/3-grid.lua:233: in main chunk
    [C]: in function 'require'
    __autodrive__/data-final-fixes.lua:20: in main chunk
2 months ago

Does changing line 135 in prototypes/3-grid.lua from

      found_gun = gun_list[gun.name]

to

      found_gun = gun_list[gun_name]

fix that?

2 months ago
(updated 2 months ago)

Why yes, yes it does! That appears to do the trick just fine. With that one change, version 2.0.6 works with the entire rest of my modlist.

2 months ago

Fixed in version 2.0.7. Thanks for the report and feedback! :-)

New response