Xenos Oppression: ALMF

by Mr.YaR

A lightly armored transport and support vehicle. Used as a base for mounting a variety of turrets. With AAI - will rearm and refuel nearby AAI units

Content
10 months ago
1.1
3.56K
Transportation Combat

g Transport grid compatibility

10 months ago

Hello, I like your mods and their balance, and I want to add compatibility with the Colony Builder mod. However, your equipment_categories are hardcoded, and I can't modify them without editing your mod's files. If possible, it would be better to fix this in data-updates.lua from:

  data.raw["equipment-grid"]["almf-grid"].equipment_categories = 
  {
    "universal-equipment",
    "robot-interaction-equipment",
    "vehicle-robot-interaction-equipment",
    "vehicle-equipment",
    "vehicle-motor",
  }

to:

    local gridcategory = data.raw["equipment-grid"]["almf-grid"]
    table.insert(gridcategory.equipment_categories, "universal-equipment")
    table.insert(gridcategory.equipment_categories, "vehicle-robot-interaction-equipment")
    table.insert(gridcategory.equipment_categories, "vehicle-motor")

and in amt-b too, thank you

10 months ago

This code would be more flexible and would allow other modders to quickly add new grid categories.

10 months ago

Done!

Thanks for the tip!

Added this line table.insert(gridcategory.equipment_categories, "vehicle-equipment") as "vehicle-equipment" is used elsewhere.
Tell me if there's anything wrong with it!

Sorry for the delay

New response