Does anyone know how to mod country flags or if it is possible?
I am modding a new planet class and want to add a survey flag for it.
I am modding a new planet class and want to add a survey flag for it.
Here is a youtube tutorial for custom flags. I'm not sure if it's still up to date.Does anyone know how to mod country flags or if it is possible?
This seems to have fixed the problem. Thanks, aojMikeA! I should have spotted that. I seem to have a bad habit of not seeing what's right below my nose.Your gender check at line 116 is checking to see if the leader is female, but assigning male portraits. Could be the culprit? Not sure why its getting male portraits wrong in that case, unless maybe it falls back to the general species portrait pool and you're just getting unlucky with the random draw.
namespace = genemodfix
country_event = {
id = genemodfix.1
hide_window = yes
is_triggered_only = yes
trigger = {
exists = capital_scope
capital_scope = {
NOT = {
any_pop = {
is_same_species = ROOT
}
}
any_pop = {
is_subspecies = ROOT
}
}
}
immediate = {
change_dominant_species = FROM
}
}
on_modification_complete = {
events = {
genemodfix.1
}
}
Here is a youtube tutorial for custom flags. I'm not sure if it's still up to date.
modifier = {
factor = 0
NOT = { has_country_flag = "desert_surveyed" }
}
Thank you for the reply, but I believe there has (understandably) been some confusion.
I have created a new habitable planet type (pc_volcanic) and a corresponding colonization tech (tech_volcanic_colonization)
For the vanilla colonization techs, there is a weight modifier that looks something like this:
Basically, it is checking for the presence of a country_flag. I would like to define something similar for tech_volcanic_colonization (ie "volcanic_surveyed"), but I am not sure where to look for defining them.
...or even if you can mod them at all.
In your documents folder (if on windows), look for paradox interactive/stellaris/workshop/content/#### and find your folder id. Delete it. Now in the stellaris mod uploader, do fetch mod. If you see your folder name in there you on the right track, instead of an archive id.I am trying to update a mod I have previously submitted to the workshop, but whenever I do, I get a "Error uploading mod" and nothing else.
How do I debug this?
In your documents folder (if on windows), look for paradox interactive/stellaris/workshop/content/#### and find your folder id. Delete it. Now in the stellaris mod uploader, do fetch mod. If you see your folder name in there you on the right track, instead of an archive id.
Oh, also, don't subscribe to your own mod. It redownloads it and uses that instead of your dev version.
option = {
trigger = {
leader = {
NOT = { has_trait = leader_trait_expertise_materials }
}
}
name = aa_anomaly.56.a
fromfromfrom = {
orbital_deposit_tile = {
add_deposit = d_aa_neutronium_deposit
}
create_research_station = {
owner = ROOT
}
}
owner = {
add_research_option = tech_mine_neutronium
add_tech_progress = {
tech = tech_mine_neutronium
progress = 0.40
}
}
}
I think this is just core game behavior -- if you lose borders (e.g. due to purging a planet entirely) you lose control over any mining facilities in those systems too. Not sure it's possible for the game to realize you owning a system outside your borders.I'm having some trouble with a custom anomaly. The intent of the anomaly is to trigger a special project that provides a strategic resource deposit on the researched body, as well as a free station to collect it. I have it working fine - the station and deposit spawn as planned when triggered inside player territory. However, when I trigger the anomaly outside of player territory, the station no longer belongs to the player - it's interpreted as an unknown alien station. Is this working as intended, or is there a way to ensure the player owns the station regardless of whether it is in their borders when it spawns? Here is my code, if it helps:
Code:option = { trigger = { leader = { NOT = { has_trait = leader_trait_expertise_materials } } } name = aa_anomaly.56.a fromfromfrom = { orbital_deposit_tile = { add_deposit = d_aa_neutronium_deposit } create_research_station = { owner = ROOT } } owner = { add_research_option = tech_mine_neutronium add_tech_progress = { tech = tech_mine_neutronium progress = 0.40 } } }