Skip to content

[Bug]: Mods changing BuildOnLayerCaps no longer work #6926

@lL1l1

Description

@lL1l1

Describe the Bug

Quoting my discord report:

Cleaning the blueprints of the default value UnitBlueprint.Physics.BuildOnLayerCaps = { LAYER_Land = true } broke the mod Jagged's infrastructure pack which added amphibious SMD by doing a blueprint merge UnitBlueprint.Physics.BuildOnLayerCaps = { LAYER_Water = true }, which when merged into the empty table just makes the SMD only buildable on water.
I think Format and cleanup all unit blueprint files #6271 - Clean up the BuildOnLayerCaps fields 2a6c6b7 should be reverted and BuildOnLayerCaps should only be removed for mobile units, and land structures can keep LAYER_Land = true as the default, with the rest of the false layers removed.

Reproduce the bug

Mods WaterLag (by Balthazar in BrewLAN gameplay mods) and WaterWorld (by finesse) don't work as they directly access the BuildOnLayerCaps table through ModBlueprints, and they always expect that table to be there.

Jagged's infrastructure pack doesn't work because of the merge blueprint trick it is doing.

Screenshots

No response

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions