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
568
Transportation Trains

b [Fixed] Helicopter needs Aircraft Mod

28 days ago

Hi again,
seems the Helicopter isnt working alone.
For compatibility needs another Aircraft Mod:
https://mods.factorio.com/mod/Aircraft-space-age or
https://mods.factorio.com/mod/lex-aircraft
With one of these enabled the Heli-Grid is working fine.

Otherwise you will get the following error on starting the Game:
Fehler beim Laden der Mods: kry-custom-grids/func.lua:103: attempt to index field 'kry-aircraft' (a nil value)
stack traceback:
kry-custom-grids/func.lua:103: in function 'checkEnabledSetting'
kry-custom-grids/func.lua:26: in function 'applyKryEquipmentGrids'
kry-custom-grids/prototypes/apply-grids.lua:30: in main chunk
[C]: in function 'require'
kry-custom-grids/data-updates.lua:21: in main chunk

28 days ago

This one ended up being an issue with the base vehicle grid mod, not properly creating the aircraft setting when HelicopterRevival was the only aircraft mod, should be fixed in v2.1.4 of that mod (I might make a small update for this mod as well, just to enforce that version in the requirements)

28 days ago

Seems to work fine with the update of the base vehicle grid mod. But can test it completly when im done with work.

Thanks for the fast update.

27 days ago
(updated 27 days ago)

Hi, here my test update:
Customizing the Grid is definitely not compatible. All eqipment inside a customized grid will disappears on replacing the heli after mine up as before.
Eqipment will only stay when its original grid size from your main mod (6x4) and this mod here is disabled.

23 days ago

I think I might have figured out the core issue.. so the helicopter entity is made up of several different entities, for the shadow, the rotor, the floodlights, and various other pieces that make up the helicopter entity we see.

In one of my previous updates with the base vehicle grid mod, I actually commented out all the lines I had for the helicopter, so no specific compatibility changes were being made. I also added the functionality that enables a default car grid to all vehicles that didn't already have a grid, and didn't have specific compatibility in place. This car grid must have applied to every single helicopter grid, and somehow became fully compatible.

For the customizer mod, I set the vehicle type to use an aircraft grid, but only applied it to the helicopter entities I thought mattered, but because it wasn't being applied to all of the other parts of the entity, there was somehow a mismatch of some sort, and broke the functionality.

I was able to fix the issue by just applying it to every part of the entity, should be working in v1.1.5

New response