• 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.

mac2636

Major
76 Badges
Mar 14, 2011
648
85
  • Crusader Kings II
  • Crusader Kings II: Reapers Due
  • Victoria 2: Heart of Darkness
  • Victoria 2: A House Divided
  • Europa Universalis IV: Res Publica
  • Hearts of Iron III Collection
  • Hearts of Iron III: Their Finest Hour
  • Hearts of Iron III
  • Europa Universalis IV: Wealth of Nations
  • Europa Universalis IV: Conquest of Paradise
  • Europa Universalis IV: Art of War
  • Europa Universalis III: Chronicles
  • Crusader Kings II: Charlemagne
  • Crusader Kings II: Legacy of Rome
  • Cities in Motion
  • Crusader Kings II: The Old Gods
  • Crusader Kings II: Rajas of India
  • Crusader Kings II: The Republic
  • Crusader Kings II: Sons of Abraham
  • Crusader Kings II: Sunset Invasion
  • Crusader Kings II: Sword of Islam
  • Hearts of Iron IV: Together for Victory
  • Crusader Kings II: Monks and Mystics
  • Surviving Mars: Digital Deluxe Edition
  • Cities: Skylines - Parklife
  • BATTLETECH
  • Surviving Mars
  • Hearts of Iron IV: Death or Dishonor
  • Stellaris: Synthetic Dawn
  • Age of Wonders III
  • Age of Wonders
  • Age of Wonders II
  • Crusader Kings II: Jade Dragon
  • Hearts of Iron IV: Expansion Pass
  • Stellaris: Humanoids Species Pack
  • Stellaris: Apocalypse
  • Stellaris: Leviathans Story Pack
  • Stellaris: Digital Anniversary Edition
  • Hearts of Iron IV: Cadet
  • Hearts of Iron IV Sign-up
  • Stellaris: Galaxy Edition
  • Stellaris: Galaxy Edition
  • Stellaris
  • Crusader Kings II: Conclave
  • Crusader Kings II: Horse Lords
  • Europa Universalis IV: Common Sense
  • Crusader Kings II: Way of Life
  • Hearts of Iron 4: Arms Against Tyranny
  • 500k Club
  • Victoria 2
For the life of me, I cannot find the correct interface file to add the info to for a new building. Anyone know which files/files need to be edited for new building other than the 00_buildings.txt and the localization file?
 
just adding them to buildings.txt should do it. upload your code please?
 
just adding them to buildings.txt should do it. upload your code please?

Thanks for responding Naselus. Very glad to see you working on Stellaris mods.

You were right, there was something with the code. I have it showing up in game now, but I get an error showing it is missing food as a resource. The planet has plenty of extra food, and the tile I built it on actually has 1 food in the terrain.


Code:
# Starfleet Command
Starfleet_Command = {
    base_buildtime = 0
    icon = "building_starfleet_command"
   
    cost = {
        minerals = 1000
        influence = 100
    }
   
    allow = {
        custom_tooltip = {
            text = "requires_building_capital_2"
            planet = {
                OR = {
                    has_building = "building_capital_2"
                    has_building = "building_capital_3"
                }
            }
        }
    }
   
    planet_unique = yes
    empire_unique = yes

    produced_resources = {
        influence = 5
        engineering_research = @science5
        physics_research = @science3
    }
   
    adjacency_bonus = {
        resource_minerals_add = 3
        resource_food_add = 3
        resource_energy_add = 3
    }
   
    required_resources = {
        food = 2       
        energy = 5
        minerals = 2
    }
   
    army_modifier = {
        army_damage_mult = 0.10
    }
   
    planet_modifier = {
        planet_army_build_speed_mult = 0.25
        planet_fortification_strength = 0.5
    }
   
    prerequisites = {

    }
}




2re449c.jpg
 
Yup, that building should be fine. It may be that the building is reliant on food (por minerals, or energy) that is being created as a result of it's own existence to run. If you remove the adjacency bonus, what happens?
 
Yup, that building should be fine. It may be that the building is reliant on food (por minerals, or energy) that is being created as a result of it's own existence to run. If you remove the adjacency bonus, what happens?

Removing adjacency bonuses seems to have no effect. The only fix is removing the food requirement. Wonder if this is WAD?
 
Dunno; never tried using food as a building input. Might be because food is a local resource, maybe.