Vehicle Equipment Grids Customizer

by Kryzeth

Allows for customization of vehicle grid size (by vehicle type) for both vanilla and modded vehicles. Compatible with AAI Vehicles, Electric Trains, Fusion Trains, Flamethrower Wagon, Aircraft, Cargo Ships, 5dims, and any other vehicle mod.

Tweaks
3 days ago
2.0
2.19K
Transportation Trains

b [Fixed] AAI ChainGunner And Flametank Error on load

4 days ago

Trying to run this mod + AAI Chaingunner and Flametank with programmable Vehicles causes a Error on load.

Errors--
Chaingunner

Failed to load mod "kry-custom-grids": kry-custom-grids/prototypes/aai-final-fixes.lua:7: attempt to index field 'tank-tank-machine-gun' (a nil value)
stack traceback:
kry-custom-grids/prototypes/aai-final-fixes.lua:7: in main chunk
[C]: in function 'require'
kry-custom-grids/data-final-fixes.lua:1: in main chunk

Flametank

Failed to load mod "kry-custom-grids": kry-custom-grids/prototypes/aai-final-fixes.lua:6: attempt to index field 'tank-tank-flamethrower' (a nil value)
stack traceback:
kry-custom-grids/prototypes/aai-final-fixes.lua:6: in main chunk
[C]: in function 'require'
kry-custom-grids/data-final-fixes.lua:1: in main chunk

3 days ago

Apparently, AAI Programmable Vehicles modifies the weapons availability of the tank, depending on the existence of these two mods, which means the respective programmable tank vehicles based on those weapons don't get created under those conditions (and I guess are replaced with programmable chaingunner and programmable flame tank respectively).

How.. unusual. Modified the code so that it's based on the weapons availability of the tank, after AAI PV has modified it. Fixed in v1.1.23

New response