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.
You are using an out of date browser. It may not display this or other websites correctly. You should upgrade or use an alternative browser.
Yeah I know, but the problem is that it doesn't work at all. When I try to colonise a planet nothing happens. I can activate the event through console though.
Yeah I know, but the problem is that it doesn't work at all. When I try to colonise a planet nothing happens. I can activate the event through console though.
Start of with an simple question which I think is related: What is the number between the : and the " in the localisation entries (usually a 0). Example in:
tr_domination_fleet_levies:0 "Fleet Levies"
No idea what's up with anything else in your post but I wanted to sorta echo your curiosity here. It relates somehow to the YAML format that localization uses. But when I looked into this, I couldn't find anything in the definition of the language that explains it. As far as I could understand, a ":" establishes a key-value pair called a "scalar." You can scroll down to "Scalar" here to see. The average Stellaris localization scheme works sorta like this:
Code:
something:0 "Something"
But, I looked into the official specifications for YAML and could not find anything indicating what the function of "0" here is before the string.* I suspect it relates in some way to the fact that the "l_whatever:" at the top of the file establishes that everything else in the file is part of some more complex mapping.
*And then there are some strings that have a "1" instead and those really confuse me.
Is there a way to make random_list dynamic?
For example, there's a mechanic I want to implement - annexation of primitives without actual land invasion via special project for which a fleet enters orbit and intimidates primitives into submission. I want it to work differently (and randomly) depending on how developed are primitives in comparison with fleet power. Is there a way to put some kind of variable instead of a number or block an option with limit or trigger?
This is a messy one. I have been trying to change the wordings of some traditions (renaming descriptions and the name of some of the individual traditions in the different trees). Feels standard, should be easy (hint: not).
Start of with an simple question which I think is related: What is the number between the : and the " in the localisation entries (usually a 0). Example in:
tr_domination_fleet_levies:0 "Fleet Levies"
(I have been trying to play around with these numbers, but to no effect. I have not found what they do, but there have to be something?)
So basically, I copied the "traditions_l_english.yml", pasted it into my mod and opened it in notepad++. I then changed the text within " " of a few entries. Some changes passed, some didn't. Strange. Now starts the de-bugging. I didn't get hold of the problem but have some results.
Step 1: Change all entries to BlaBla:
Code:
tradition_expansion:2 "BlaBla"
#tradition_expansion_desc: "We must spread our civilization to new systems and planets if we are to survive. As other empires emerge on the galactic scene, competition will be fierce. The faster we can establish new colonies, the better."
tradition_expansion_desc:2 "BlaBla"
tr_expansion_adopt:2 "BlaBla"
tr_expansion_adopt_desc:2 "BlaBla"
tr_expansion_adopt_effect:2 "BlaBla"
tr_expansion_colonization_fever:2 "BlaBla"
tr_expansion_colonization_fever_desc:2 "BlaBla"
tr_expansion_colonization_fever_delayed:2 "BlaBla"
tr_expansion_a_new_life_desc:2 "BlaBla"
tr_expansion_a_new_life_delayed:2 "BlaBla"
#tr_expansion_standardized_colony_ships: "Standardized Colony Ships"
#tr_expansion_standardized_colony_ships_desc: "Immediately give you a free §Y$colonizer$§!. In addition, §Y$shipsize_colonizer_construction_speed_mult$§! is increased by §G+100%§!."
#tr_expansion_standardized_colony_ships_delayed: "Simplified designs and less expensive materials allow us to mass-produce colony ships on a hitherto unseen scale. Our colonists may not enjoy as many creature comforts during transport to their new homes, but these ships will still get them where they're going."
tr_expansion_courier_network:2 "BlaBla"
tr_expansion_courier_network_desc:2 "BlaBla"
tr_expansion_courier_network_delayed:2 "BlaBla"
tr_expansion_reach_for_the_stars:2 "BlaBla"
tr_expansion_reach_for_the_stars_desc:2 "BlaBla"
tr_expansion_reach_for_the_stars_delayed:2 "BlaBla"
tr_expansion_galactic_ambition:2 "BlaBla"
tr_expansion_galactic_ambition_desc:2 "BlaBla"
tr_expansion_galactic_ambition_delayed:2 "BlaBla"
tr_expansion_finish:2 "BlaBla"
tr_expansion_finish_effect:2 "BlaBla"
Some entries were changed to "BlaBla", most didn't.
Second Step: Add AAAAAAA at the start of every entry:
Code:
tradition_expansion:0 "AAAAAAAExpansion"
#tradition_expansion_desc: "We must spread our civilization to new systems and planets if we are to survive. As other empires emerge on the galactic scene, competition will be fierce. The faster we can establish new colonies, the better."
tradition_expansion_desc:0 "AAAAAAAWe must expand our civilization to new systems and planets or risk eventual extinction."
tr_expansion_adopt:0 "AAAAAAAExpansion Traditions"
tr_expansion_adopt_desc:0 "AAAAAAA$tradition_expansion_desc$\n\n$tr_expansion_adopt_effect$\n\n$tr_expansion_finish_effect$"
tr_expansion_adopt_effect:0 "AAAAAAA§E$TRADITIONS_ADOPT$:§!\nNew colonies start with §Y1§! additional £pops Pop."
tr_expansion_colonization_fever:0 "AAAAAAAColonization Fever"
tr_expansion_colonization_fever_desc:0 "AAAAAAA§YCapital buildings§! now produce §Y1§! additional £unity Unity."
tr_expansion_colonization_fever_delayed:0 "AAAAAAAColonization fever seems to have gripped the populace. Their enthusiasm and patriotic fervor grows for every new world claimed by our colonists."
tr_expansion_a_new_life:0 "AAAAAAAA New Life"
tr_expansion_a_new_life_desc:1 "AAAAAAA£pops Pop §Y$MOD_POP_GROWTH_SPEED$§! increased by §G+10%§! and §Y$MOD_PLANET_COLONY_DEVELOPMENT_SPEED_MULT$§! increased by §G+50%§!."
tr_expansion_a_new_life_delayed:0 "AAAAAAAA new life awaits our citizens in the off-world colonies. A chance to begin again in a golden land of opportunity and adventure! With the help of an aggressive marketing campaign, the less fortunate elements of our society will be flocking to our colony ships."
#tr_expansion_standardized_colony_ships: "Standardized Colony Ships"
#tr_expansion_standardized_colony_ships_desc: "Immediately give you a free §Y$colonizer$§!. In addition, §Y$shipsize_colonizer_construction_speed_mult$§! is increased by §G+100%§!."
#tr_expansion_standardized_colony_ships_delayed: "Simplified designs and less expensive materials allow us to mass-produce colony ships on a hitherto unseen scale. Our colonists may not enjoy as many creature comforts during transport to their new homes, but these ships will still get them where they're going."
tr_expansion_courier_network:0 "AAAAAAACourier Network"
tr_expansion_courier_network_desc:0 "AAAAAAAThe effect on increased §Y$TRADITION_COST$§! caused by number of colonies is reduced by §G-33%§!."
tr_expansion_courier_network_delayed:0 "AAAAAAAA network of small courier vessels is a reliable alternative for transporting VIPs or delivering messages that can't be trusted to FTL communications. This will tie our far-flung colonies more closely together."
tr_expansion_reach_for_the_stars:0 "AAAAAAAReach for the Stars"
tr_expansion_reach_for_the_stars_desc:0 "AAAAAAAFor the purpose of colonizing and building §YFrontier Outposts§!, systems count as being half the regular distance away."
tr_expansion_reach_for_the_stars_delayed:0 "AAAAAAAThe frontiers of our star nation are being pushed ever forwards. Soon, nothing in this galaxy will lie beyond our grasp..."
tr_expansion_galactic_ambition:0 "AAAAAAAGalactic Ambition"
tr_expansion_galactic_ambition_desc:1 "AAAAAAA§Y$shipsize_outpost_station_upkeep_mult$§! reduced by §G-50%§!."
tr_expansion_galactic_ambition_delayed:0 "AAAAAAAThe banner of our great empire will one day be as common as hydrogen throughout the galaxy."
tr_expansion_finish:0 "AAAAAAAExpansion Traditions Finished"
tr_expansion_finish_effect:0 "AAAAAAA§E$TRADITIONS_FINISH$:§!\nAdopting all $tr_expansion_adopt$ increases our §Y$MOD_COUNTRY_CORE_SECTOR_SYSTEM_CAP$§! by §Y2§!."
About half the entries get "AAAAAAA" in the beginning.
Third Step: Add ZZZZZZZ at the beginning of all entries:
Code:
tradition_expansion:0 "ZZZZZZZExpansion"
#tradition_expansion_desc: "We must spread our civilization to new systems and planets if we are to survive. As other empires emerge on the galactic scene, competition will be fierce. The faster we can establish new colonies, the better."
tradition_expansion_desc:0 "ZZZZZZZWe must expand our civilization to new systems and planets or risk eventual extinction."
tr_expansion_adopt:0 "ZZZZZZZExpansion Traditions"
tr_expansion_adopt_desc:0 "ZZZZZZZ$tradition_expansion_desc$\n\n$tr_expansion_adopt_effect$\n\n$tr_expansion_finish_effect$"
tr_expansion_adopt_effect:0 "ZZZZZZZ§E$TRADITIONS_ADOPT$:§!\nNew colonies start with §Y1§! additional £pops Pop."
tr_expansion_colonization_fever:0 "ZZZZZZZColonization Fever"
tr_expansion_colonization_fever_desc:0 "ZZZZZZZ§YCapital buildings§! now produce §Y1§! additional £unity Unity."
tr_expansion_colonization_fever_delayed:0 "ZZZZZZZColonization fever seems to have gripped the populace. Their enthusiasm and patriotic fervor grows for every new world claimed by our colonists."
tr_expansion_a_new_life:0 "ZZZZZZZA New Life"
tr_expansion_a_new_life_desc:1 "ZZZZZZZ£pops Pop §Y$MOD_POP_GROWTH_SPEED$§! increased by §G+10%§! and §Y$MOD_PLANET_COLONY_DEVELOPMENT_SPEED_MULT$§! increased by §G+50%§!."
tr_expansion_a_new_life_delayed:0 "ZZZZZZZA new life awaits our citizens in the off-world colonies. A chance to begin again in a golden land of opportunity and adventure! With the help of an aggressive marketing campaign, the less fortunate elements of our society will be flocking to our colony ships."
#tr_expansion_standardized_colony_ships: "Standardized Colony Ships"
#tr_expansion_standardized_colony_ships_desc: "Immediately give you a free §Y$colonizer$§!. In addition, §Y$shipsize_colonizer_construction_speed_mult$§! is increased by §G+100%§!."
#tr_expansion_standardized_colony_ships_delayed: "Simplified designs and less expensive materials allow us to mass-produce colony ships on a hitherto unseen scale. Our colonists may not enjoy as many creature comforts during transport to their new homes, but these ships will still get them where they're going."
tr_expansion_courier_network:0 "ZZZZZZZCourier Network"
tr_expansion_courier_network_desc:0 "ZZZZZZZThe effect on increased §Y$TRADITION_COST$§! caused by number of colonies is reduced by §G-33%§!."
tr_expansion_courier_network_delayed:0 "ZZZZZZZA network of small courier vessels is a reliable alternative for transporting VIPs or delivering messages that can't be trusted to FTL communications. This will tie our far-flung colonies more closely together."
tr_expansion_reach_for_the_stars:0 "ZZZZZZZReach for the Stars"
tr_expansion_reach_for_the_stars_desc:0 "ZZZZZZZFor the purpose of colonizing and building §YFrontier Outposts§!, systems count as being half the regular distance away."
tr_expansion_reach_for_the_stars_delayed:0 "ZZZZZZZThe frontiers of our star nation are being pushed ever forwards. Soon, nothing in this galaxy will lie beyond our grasp..."
tr_expansion_galactic_ambition:0 "ZZZZZZZGalactic Ambition"
tr_expansion_galactic_ambition_desc:1 "ZZZZZZZ§Y$shipsize_outpost_station_upkeep_mult$§! reduced by §G-50%§!."
tr_expansion_galactic_ambition_delayed:0 "ZZZZZZZThe banner of our great empire will one day be as common as hydrogen throughout the galaxy."
tr_expansion_finish:0 "ZZZZZZZExpansion Traditions Finished"
tr_expansion_finish_effect:0 "ZZZZZZZ§E$TRADITIONS_FINISH$:§!\nAdopting all $tr_expansion_adopt$ increases our §Y$MOD_COUNTRY_CORE_SECTOR_SYSTEM_CAP$§! by §Y2§!."
This have no effect what so ever.
Fourth Step: Add 000 At the start of every Entry.
Code:
tradition_expansion:0 "000Expansion"
#tradition_expansion_desc: "We must spread our civilization to new systems and planets if we are to survive. As other empires emerge on the galactic scene, competition will be fierce. The faster we can establish new colonies, the better."
tradition_expansion_desc:0 "000We must expand our civilization to new systems and planets or risk eventual extinction."
tr_expansion_adopt:0 "000Expansion Traditions"
tr_expansion_adopt_desc:0 "000$tradition_expansion_desc$\n\n$tr_expansion_adopt_effect$\n\n$tr_expansion_finish_effect$"
tr_expansion_adopt_effect:0 "000§E$TRADITIONS_ADOPT$:§!\nNew colonies start with §Y1§! additional £pops Pop."
tr_expansion_colonization_fever:0 "000Colonization Fever"
tr_expansion_colonization_fever_desc:0 "000§YCapital buildings§! now produce §Y1§! additional £unity Unity."
tr_expansion_colonization_fever_delayed:0 "000Colonization fever seems to have gripped the populace. Their enthusiasm and patriotic fervor grows for every new world claimed by our colonists."
tr_expansion_a_new_life:0 "000A New Life"
tr_expansion_a_new_life_desc:1 "000£pops Pop §Y$MOD_POP_GROWTH_SPEED$§! increased by §G+10%§! and §Y$MOD_PLANET_COLONY_DEVELOPMENT_SPEED_MULT$§! increased by §G+50%§!."
tr_expansion_a_new_life_delayed:0 "000A new life awaits our citizens in the off-world colonies. A chance to begin again in a golden land of opportunity and adventure! With the help of an aggressive marketing campaign, the less fortunate elements of our society will be flocking to our colony ships."
#tr_expansion_standardized_colony_ships: "Standardized Colony Ships"
#tr_expansion_standardized_colony_ships_desc: "Immediately give you a free §Y$colonizer$§!. In addition, §Y$shipsize_colonizer_construction_speed_mult$§! is increased by §G+100%§!."
#tr_expansion_standardized_colony_ships_delayed: "Simplified designs and less expensive materials allow us to mass-produce colony ships on a hitherto unseen scale. Our colonists may not enjoy as many creature comforts during transport to their new homes, but these ships will still get them where they're going."
tr_expansion_courier_network:0 "000Courier Network"
tr_expansion_courier_network_desc:0 "000The effect on increased §Y$TRADITION_COST$§! caused by number of colonies is reduced by §G-33%§!."
tr_expansion_courier_network_delayed:0 "000A network of small courier vessels is a reliable alternative for transporting VIPs or delivering messages that can't be trusted to FTL communications. This will tie our far-flung colonies more closely together."
tr_expansion_reach_for_the_stars:0 "000Reach for the Stars"
tr_expansion_reach_for_the_stars_desc:0 "000For the purpose of colonizing and building §YFrontier Outposts§!, systems count as being half the regular distance away."
tr_expansion_reach_for_the_stars_delayed:0 "000The frontiers of our star nation are being pushed ever forwards. Soon, nothing in this galaxy will lie beyond our grasp..."
tr_expansion_galactic_ambition:0 "000Galactic Ambition"
tr_expansion_galactic_ambition_desc:1 "000§Y$shipsize_outpost_station_upkeep_mult$§! reduced by §G-50%§!."
tr_expansion_galactic_ambition_delayed:0 "000The banner of our great empire will one day be as common as hydrogen throughout the galaxy."
tr_expansion_finish:0 "000Expansion Traditions Finished"
tr_expansion_finish_effect:0 "000§E$TRADITIONS_FINISH$:§!\nAdopting all $tr_expansion_adopt$ increases our §Y$MOD_COUNTRY_CORE_SECTOR_SYSTEM_CAP$§! by §Y2§!."
Most entries start of with 000, but a few of the _desc does not.
I've also tried various namings of the file. Keeping the original name, adding zzz_ in the beginning, adding 000_ in the beginning.
At this stage I have no idea what is happening. I still can't change everything, and it is not like I want my entries to start with "000" either. It feels like this should be a simle(ish) thing to do, but now it feels just messed up. I've tried to change the numbers in the middle (between : and ", usually a 0), but they seem to have no effect. I've tried both all -1, all 2 and all 100.
Ok, next morning, I'm looking at things again and things are not working, whatever I thought for a minute last night. Removing those small numbers don't seem to have any effect. Back on square one.
I am assuming just changing the values in the 00_deposits.txt won't do for you, right?
Another idea I had regarding this, is to look into the mechanics of assist research (which should be found in the fleet orders file). haven't tried it yet, though.
I think it is likely the AI is beating him to a planet first. You can add a trigger to the event with the is_ai = no condition, that might help, or just remove fire_only_once.
What is the correct syntax for condition checking species rights? That is to say for example, their citizenship level. The wiki does not seem to have the information.
What is the formula exactly, is it a 20% reduction of 100 equals 80 and then another 20% reduction equals 64 or is at that point a 40% reduction of 100 for a total of 60?
I always assumed it was the latter in EU4, but I notice in Stellaris a lot of vanilla events have in excess of 100% reduction that can easily be met at a single moment which makes me expect the former to be true.
What is the formula exactly, is it a 20% reduction of 100 equals 80 and then another 20% reduction equals 64 or is at that point a 40% reduction of 100 for a total of 60?
I always assumed it was the latter in EU4, but I notice in Stellaris a lot of vanilla events have in excess of 100% reduction that can easily be met at a single moment which makes me expect the former to be true.
I am assuming just changing the values in the 00_deposits.txt won't do for you, right?
Another idea I had regarding this, is to look into the mechanics of assist research (which should be found in the fleet orders file). haven't tried it yet, though.
What is the correct syntax for condition checking species rights? That is to say for example, their citizenship level. The wiki does not seem to have the information.
it depends. Here's part of the game's trigger dump.
Code:
has_citizenship_type - Checks if a species/pop/leader has a particular citizenship type in their country
has_citizenship_type = { country = <who> type = <type> }
Supported Scopes: pop leader species
Supported Targets: none
has_population_control - Checks if the pop is prevented from reproducing
has_population_control = yes
Supported Scopes: pop
Supported Targets: ???
has_migration_control - Checks if the pop is prevented from migrating
has_migration_control = yes
Supported Scopes: pop
Supported Targets: ???
has_military_service_type - Checks if a species/pop/leader has a particular military service type in their country
has_military_service_type = { country = <who> type = <type> }
Supported Scopes: pop leader species
Supported Targets: none
has_purge_type - Checks if a species/pop/leader has a particular purge type in their country
has_purge_type = { country = <who> type = <type> }
Supported Scopes: pop leader species
Supported Targets: none
has_slavery_type - Checks if a species/pop/leader has a particular slavery type in their country
has_slavery_type = { country = <who> type = <type> }
Supported Scopes: pop leader species
Supported Targets: none