• We have updated our Community Code of Conduct. Please read through the new rules for the forum that are an integral part of Paradox Interactive’s User Agreement.

xTheCanadian

Recruit
18 Badges
Jul 11, 2019
4
0
  • Stellaris: Synthetic Dawn
  • Island Bound
  • Prison Architect: Psych Ward
  • Surviving Mars: First Colony Edition
  • Prison Architect
  • Surviving Mars: First Colony Edition
  • Surviving Mars: Digital Deluxe Edition
  • Stellaris: Apocalypse
  • Age of Wonders III
  • Surviving Mars
  • Steel Division: Normandy 44
  • Hearts of Iron IV: Cadet
  • Stellaris
  • Cities: Skylines
  • Crusader Kings II
  • Cities: Skylines Deluxe Edition
  • Lead and Gold
  • Europa Universalis IV
I really like the Geoscape Dome and was hoping I could clone it and make it available to build as a more expensive dome in the domes section. I noticed the game had a built in Mod Editor and I was hoping I could figure it out on my own.

I made a new mod and went to building template, found the Geoscape Dome in the "copy from" area but I don't really know what to do next. I played around with renaming it, changing the construction costs, I set the "Build Menu Category" to domes and set it to not be a wonder and then saved it, restarted the game and tried to load the mod.

The new dome does not show up and so I am not sure what to do next to make it show up.

Also, can I attach things to it kinda like the self sufficient dome? I'd love to build my own larger variant of the self sufficient dome too if I could.
 
Have you given an ID to your template ?
id_template.jpg
 
That was the exact issue! Thanks so much :D Now I have my GeoScape dome that I can build without it being a wonder!

Thanks a bunch!

Now for my second question, is it possible for me to make a Geoscape dome that has things attached to it (Like the Self Sufficient?)
 
I wouldn't know, I don't use it :)

Something like this may work:
Code:
function OnMsg.ClassesPostprocess()
    if BuildingTemplates.SelfSufficientDome_Test then
        return
    end

    PlaceObj("BuildingTemplate", {
        "Group", "Domes",
        "Id", "SelfSufficientDome_Test",
        "LayoutList", "SelfSufficientDome_Test",
        "template_class", "LayoutConstructionBuilding",
        "display_name", T(717850411664, "Self-Sufficient Dome"),
        "display_name_pl", T(639840852696, "Self-Sufficient Domes"),
        "description", T(410207944438, "Contains a small Dome suitable for the early days of the colony, together with Water and Oxygen producing facilities and storages.<newline><newline><em>Construction layout</em>, places the following buildings: Small Dome, MOXIE, 2 Moisture Vaporators, Water Tower, Oxygen Tank, Food Depot, Power Cables and Pipes<if_all(not(has_researched("MoistureFarming")),not(has_prefabs("MoistureVaporator", 2)),not(has_prefabs("SelfSufficientDome")))><newline><newline><red>Research Moisture Farming to build Moisture Vaporators, or get prefabs from Earth.</red></if>"),
        "build_category", "Domes",
        "display_icon", "UI/Icons/Buildings/self-sufficient_dome.tga",
        "entity", "InvisibleObject",
        "construction_mode", "layout",
    })

    PlaceObj("LayoutConstruction", {
        group = "Default",
        id = "SelfSufficientDome_Test",
        PlaceObj("LayoutConstructionEntry", {
            "template", "DomeBasic",
            "entity", "DomeBasic",
        }),
        PlaceObj("LayoutConstructionEntry", {
            "template", "MOXIE",
            "pos", point(1, -8),
            "entity", "Moxie",
        }),
        PlaceObj("LayoutConstructionEntry", {
            "template", "OxygenTank",
            "pos", point(1, -9),
            "dir", 5,
            "entity", "AirTank",
        }),
        PlaceObj("LayoutConstructionEntry", {
            "template", "MoistureVaporator",
            "pos", point(-1, -6),
            "dir", 1,
            "entity", "MoistureVaporator",
        }),
        PlaceObj("LayoutConstructionEntry", {
            "template", "WaterTank",
            "pos", point(-2, -7),
            "dir", 4,
            "entity", "WaterTank",
        }),
        PlaceObj("LayoutConstructionEntry", {
            "template", "life_support_grid",
            "pos", point(0, -7),
            "cur_pos1", point(0, -8),
        }),
        PlaceObj("LayoutConstructionEntry", {
            "template", "MoistureVaporator",
            "pos", point(7, -1),
            "dir", 3,
            "entity", "MoistureVaporator",
        }),
        PlaceObj("LayoutConstructionEntry", {
            "template", "life_support_grid",
            "pos", point(7, 0),
            "cur_pos1", point(7, 0),
        }),
        PlaceObj("LayoutConstructionEntry", {
            "template", "StorageFood",
            "pos", point(5, -7),
            "instant", true,
        }),
    })

end