Abandoned Ruins - Updated (core)

by Keysivi

This mod doesn't do anything by itself. You need to install ruin-set mods or no ruin will be spawned. It then can spawn randomly choosen ruins in the world. These ruins are destroyed fragments of bases, forts, small oases, and more. (Now co-authored with roland77)

Content
a day ago
2.0
5.60K

b Player and Deconstruction planner cannot mark ruins for removal

3 days ago

I find it strange that the ruins cannot be marked for deconstruction.

3 days ago

You first have to claim them with the claim tool as the buildings belong to the enemy force.

a day ago

The tool doesn't seem to work reliably with gun turrets sometimes so I disabled the mod leading to the described issue. Oversight by me.

a day ago

I don't know why turrets cannot be claimed, maybe from far distance or remote-view you can try it. Maybe it is a game mechanic.

The claim-tool's data can be found in data.lua:

    select = {
      border_color = {1, 1, 1},
      mode = {"buildable-type", "not-same-force", "friend"},
      cursor_box_type = "train-visualization",
    },
    alt_select = {
      border_color = {1, 1, 1},
      mode = {"any-entity", "not-same-force", "friend"},
      cursor_box_type = "train-visualization",
    },

The claiming code can be found in lua/events.lua, search foron_player_selected_area` and you can find the "hook" function.

a day ago

It may be limited to Fortress Ruins set or the base ruins set. I don't think the silly ruins set has any turrets.

New response