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
6 days ago
2.0
2.13K
Transportation Trains

b [Fixed] Can't customize Lex's Aircraft grids.

7 days ago

I set aircraft equipment grids to 10x10, but the Flying light Gunship and Flying cargo ship still had grid size of 10x4 and the Flying combat heavy aircraft has size of 10x8.
I didn't see any other settings specific to the Lex's Aircraft so I assume the Aircraft Grid settings should have set them?
Just to be sure I tried setting everything to 10x10 to see if any of the other settings would change it but doesn't seem to apply.

Could you look into it?

7 days ago
(updated 7 days ago)

Ahh, I see the issue. Assuming you have the setting to override existing grids enabled (which would be required because Lex Aircraft adds its own vehicle grids, and pre-existing grids are not overriden by default)

I coded that setting to only work on car, locomotive, cargo-wagon, fluid-wagon, and artillery-wagon type entities. Most flying vehicles (and non-train vehicles in general) are internally coded as car type entities, but I believe Lex Aircraft vehicles are actually coded as spider-vehicle (spidertrons), so their grids never get modified.

Added a manual patch to manually remove those 3 grids, allowing them to be re-created by the usual processes of the mod. Should be fixed in v1.1.21

6 days ago

Thank you! I did some testing and the Override existing grids setting does remove the grids now, but it doesn't seem to create new ones for Lex's Aircraft.
I also tested the Aircraft mod it seems their grids gets removed too but not recreated.

I'm playing with AAI and SE and noticed that specifically the AI version of the Tank did not have it's grid modified by your mod. No clue why, but thought I would mention it. The other vehicles and the non-AI version of the Tank seems to have their grids modified. I assume your mod doesn't modify the spirdertrons since their grids stay the same?

Sorry for the inconvenience. I'll try looking into the files and see if I can modify the grids manually.

6 days ago
(updated 6 days ago)

For the Lex Aircraft not having grids, make sure the aircraft grid setting is enabled in the base Vehicle Grid mod.

I ended up discovering a pretty massive bug related to the grid override; all vehicle grids were being removed without actually checking if those vehicles were enabled in the base Vehicle Grid mod (and thus wouldn't have new grids added to them afterwards). Lex Aircraft should now have the new grids apply only if the aircraft setting is enabled.

For the AAI Programmable Vehicles tank variants not having the right grids, I couldn't figure out how or why, but they seem to copy every other vehicle properly, except for the tank, which either has a new "tank-equipment-grid" created for it within AAI, or the base game separated the tank grid from the "medium-equipment-grid" (which was shared with one of the power armors), and is being forced onto the new tanks by AAI. Either way, it only does this for the tank variants.

I added an optional dependency to force it to load first, so that I could copy over my customized version of the tank equipment grid onto the newly created tank variants.

Both fixes implemented in v1.1.22

New response