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

HalfTon Midget

First Lieutenant
32 Badges
Jan 23, 2006
296
2
  • Hearts of Iron IV: Colonel
  • Battle for Bosporus
  • Hearts of Iron IV: La Resistance
  • Hearts of Iron IV: Expansion Pass
  • Stellaris: Megacorp
  • Stellaris: Distant Stars
  • Hearts of Iron IV: Expansion Pass
  • Stellaris: Apocalypse
  • Stellaris: Humanoids Species Pack
  • Hearts of Iron IV: Expansion Pass
  • Stellaris: Synthetic Dawn
  • Hearts of Iron IV: Death or Dishonor
  • Stellaris - Path to Destruction bundle
  • Stellaris: Leviathans Story Pack
  • Stellaris: Digital Anniversary Edition
  • Hearts of Iron IV: Field Marshal
  • Hearts of Iron Anthology
  • Hearts of Iron IV: Cadet
  • Hearts of Iron IV Sign-up
  • Stellaris
  • Europa Universalis III: Collection
  • 500k Club
  • Semper Fi
  • Victoria: Revolutions
  • Europa Universalis III Complete
  • Europa Universalis III Complete
  • Hearts of Iron III Collection
  • Hearts of Iron III: Their Finest Hour
  • Hearts of Iron III
  • Europa Universalis III Complete
  • Europa Universalis III
  • Hearts of Iron II: Armageddon
I'm trying to add in a building. I haven't been able to find a guide to accomplish this on this forum or the wiki.

The building is a cheat essentially, here's what I got so far:

# Cheaters Anonymous
building_cheaters_shelter = {
icon = "building_junkpile"
base_buildtime = 1
planet_unique = yes
immune_to_bombardment = yes
defense_armies = 25
protects_from_bombardment = yes
planetary_ftl_inhibitor = yes
cost = {
minerals = 1
}
army_modifier = {
army_starting_experience_add = 200
}
planet_modifier = {
planet_orbital_bombardment_damage = -1.00
planet_unrest_add = -500
pop_happiness = 1.00
}
produced_resources = {
energy = 200
minerals = 100
food = 25
influence = 100
unity = 5
society_research = 25
engineering_research = 25
physics_research = 25
}
planet_modifier = {
pop_government_ethic_attraction = 1.00
}

ai_weight = {
weight = 0
}
ai_replace = no
}


So I pasted things together and not sure how some of these will react in game... but questions are:

1. Where do I put the name that shows up in-game? or does it read it from building_cheaters_shelter = ?

2. Since I'm calling for a icon that already exists in the base game, do I need to do anything else for it to show?

3. If I understood the parameters correctly; The ai (sector or opponent) will not build the building, but won't destroy it either if its already on the planet?

Thank you in advance
 

Fisk

Captain
16 Badges
Apr 7, 2017
440
0
  • Stellaris: Galaxy Edition
  • Stellaris: Synthetic Dawn
  • Stellaris
  • Stellaris: Galaxy Edition
  • Stellaris: Galaxy Edition
  • Stellaris: Digital Anniversary Edition
  • Stellaris: Leviathans Story Pack
  • Stellaris - Path to Destruction bundle
  • Stellaris: Humanoids Species Pack
  • Stellaris: Apocalypse
  • Stellaris: Distant Stars
  • Stellaris: Megacorp
  • Stellaris: Ancient Relics
  • Stellaris: Lithoids
  • Stellaris: Federations
  • Stellaris: Necroids
I haven't done any modding for Stellaris in months, so I might not remember everything right. With that disclaimer in place;

1. Names (and descriptions) are read from a separate localisation file, in mod_dir\localisation\l_english.yml (assuming you play the game in english). The localisation file name has to end with l_english.yml, and needs to begin with "l_english:" just like the vanilla files do. It's probably safest to copy one from game_dir\localisation\english and replace the contents. I've read that notepad doesn't save in the right format, so you're probably better of using notepad++ if you're not already.

Then, in that file, you'd need something like this:
Code:
l_english:
  building_cheaters_shelter:0 "Cheater's Shelter"
  building_cheaters_shelter_desc:1 "Super awesome victory enabler with complimentary lollipop."
Looking at how the existing localisation files are written is probably a place way to start

2. I don't think so. I think there's a file somewhere that defines icons with full paths and such, but you shouldn't need to worry if you're using existing assets.

3. That is, as far as I know, correct.
 

HalfTon Midget

First Lieutenant
32 Badges
Jan 23, 2006
296
2
  • Hearts of Iron IV: Colonel
  • Battle for Bosporus
  • Hearts of Iron IV: La Resistance
  • Hearts of Iron IV: Expansion Pass
  • Stellaris: Megacorp
  • Stellaris: Distant Stars
  • Hearts of Iron IV: Expansion Pass
  • Stellaris: Apocalypse
  • Stellaris: Humanoids Species Pack
  • Hearts of Iron IV: Expansion Pass
  • Stellaris: Synthetic Dawn
  • Hearts of Iron IV: Death or Dishonor
  • Stellaris - Path to Destruction bundle
  • Stellaris: Leviathans Story Pack
  • Stellaris: Digital Anniversary Edition
  • Hearts of Iron IV: Field Marshal
  • Hearts of Iron Anthology
  • Hearts of Iron IV: Cadet
  • Hearts of Iron IV Sign-up
  • Stellaris
  • Europa Universalis III: Collection
  • 500k Club
  • Semper Fi
  • Victoria: Revolutions
  • Europa Universalis III Complete
  • Europa Universalis III Complete
  • Hearts of Iron III Collection
  • Hearts of Iron III: Their Finest Hour
  • Hearts of Iron III
  • Europa Universalis III Complete
  • Europa Universalis III
  • Hearts of Iron II: Armageddon
I haven't done any modding for Stellaris in months, so I might not remember everything right. With that disclaimer in place;

1. Names (and descriptions) are read from a separate localisation file, in mod_dir\localisation\l_english.yml (assuming you play the game in english). The localisation file name has to end with l_english.yml, and needs to begin with "l_english:" just like the vanilla files do. It's probably safest to copy one from game_dir\localisation\english and replace the contents. I've read that notepad doesn't save in the right format, so you're probably better of using notepad++ if you're not already.

Then, in that file, you'd need something like this:
Code:
l_english:
  building_cheaters_shelter:0 "Cheater's Shelter"
  building_cheaters_shelter_desc:1 "Super awesome victory enabler with complimentary lollipop."
Looking at how the existing localisation files are written is probably a place way to start

2. I don't think so. I think there's a file somewhere that defines icons with full paths and such, but you shouldn't need to worry if you're using existing assets.

3. That is, as far as I know, correct.

Thank you Fisk...

Yeah I’m using Notepad++ already... I’ll get on the localization file tonight and test it out... Thank you again
 

Fisk

Captain
16 Badges
Apr 7, 2017
440
0
  • Stellaris: Galaxy Edition
  • Stellaris: Synthetic Dawn
  • Stellaris
  • Stellaris: Galaxy Edition
  • Stellaris: Galaxy Edition
  • Stellaris: Digital Anniversary Edition
  • Stellaris: Leviathans Story Pack
  • Stellaris - Path to Destruction bundle
  • Stellaris: Humanoids Species Pack
  • Stellaris: Apocalypse
  • Stellaris: Distant Stars
  • Stellaris: Megacorp
  • Stellaris: Ancient Relics
  • Stellaris: Lithoids
  • Stellaris: Federations
  • Stellaris: Necroids
Thank you Fisk...

Yeah I’m using Notepad++ already... I’ll get on the localization file tonight and test it out... Thank you again
Happy to help :)