[HELP] Mod I've made isn't overwriting /common/ files

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

MarKr

First Lieutenant
14 Badges
Nov 10, 2017
209
4
  • 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
I have similar problem as the original poster. I have my mod with various changes such as removed missile slot from Corvettes, added missile slots to Destroyers, added new types of Strike Craft and changed their performance, added the bigger versions of defense platfroms which were removed from vanilla game in 2.0 etc. These changes are working in the game.

Now I wanted to change two more things - the "Citizen Service" civic to add +3 Unity per soldier job and also to add +1 social research (someone suggested this change here on the forum and I wanted to give it a try), the second thing is I wanted to make the "Serviles" trait (which has the servient speciec with Syncretic Evolution) incompatible with Fleeting, Slow Learners, Decadent, Deviants (+ the positive versions of these).

As I said the other changes of the mod are working. Mod is placed in: C:\Users\(me)\Documents\Paradox Interactive\Stellaris\mod\tester

For the Citizen Service change I placed a file called "tester_worker_jobs.txt" into: C:\Users\(me)\Documents\Paradox Interactive\Stellaris\mod\tester\common\pop_jobs
The content of this file is:
###################
# Citizen service changes
###################

soldier = {
category = worker
condition_string = WORKER_JOB_TRIGGER
building_icon = building_stronghold
clothes_texture_index = 4

country_modifier = {
country_naval_cap_add = 4
}

triggered_country_modifier = {
potential = {
planet = {
exists = owner
owner = { has_technology = "tech_ground_defense_planning" }
}
}
modifier = {
country_naval_cap_add = 2
}
}

pop_modifier = {
pop_defense_armies_add = 3
}

resources = {
category = planet_soldiers
produces = {
trigger = {
owner = { has_valid_civic = civic_citizen_service }
}
unity = 3
society_research = 1
}
}

triggered_planet_modifier = {
potential = {
planet = {
has_modifier = martial_law
}
}
modifier = {
planet_stability_add = 5
}
}

possible = {
hidden_trigger = { exists = owner }
worker_job_check_trigger = yes
owner = { is_gestalt = no }
}

weight = {
weight = @soldier_job_weight
modifier = {
factor = 10
planet = { has_modifier = martial_law }
}
modifier = {
factor = 2
has_trait = trait_resilient
}
modifier = {
factor = 2
has_trait = trait_very_strong
}
modifier = {
factor = 1.5
has_trait = trait_strong
}
modifier = {
factor = 0.5
has_trait = trait_weak
}
modifier = {
factor = 0.1
is_enslaved = yes
NOT = { has_slavery_type = { type = slavery_military } }
}
modifier = {
factor = 10
is_enslaved = yes
has_slavery_type = { type = slavery_military }
}
modifier = {
factor = 0.1
can_take_servant_job = yes
}
}
}

The changes for the traits are in a file called "tester_species_traits_basic_characteristics.txt" which is located in: C:\Users\(me)\Documents\Paradox Interactive\Stellaris\mod\tester\common\traits
and it contains:
trait_syncretic_proles = {
cost = 1
potential_crossbreeding_chance = 0.33
opposites = { "trait_intelligent" "trait_erudite" "trait_natural_engineers" "trait_natural_physicists" "trait_natural_sociologists" "trait_talented" "trait_quick_learners" "trait_slow_learners" "trait_conformists" "trait_deviants" "trait_venerable" "trait_enduring" "trait_fleeting" "trait_decadent" }
initial = no
modification = yes
species_potential_add = { always = no }
icon = "gfx/interface/icons/traits/trait_primitive.dds"
allowed_archetypes = { BIOLOGICAL }

custom_tooltip = TRAIT_SYNCRETIC_PROLES_EFFECT
modifier = {
pop_happiness = 0.10
planet_jobs_produces_mult = 0.10
}
}

Both files were saved as "UTF-8 with BOM".

However when I start the game and want to create a new species, the changes for Citizen Service are not there, and the Serviles can still be combined with the traits.

Any ideas what is wrong?
 

neptunehs

First Lieutenant
1 Badges
May 28, 2018
204
61
  • Stellaris
I have similar problem as the original poster. I have my mod with various changes such as removed missile slot from Corvettes, added missile slots to Destroyers, added new types of Strike Craft and changed their performance, added the bigger versions of defense platfroms which were removed from vanilla game in 2.0 etc. These changes are working in the game.

Now I wanted to change two more things - the "Citizen Service" civic to add +3 Unity per soldier job and also to add +1 social research (someone suggested this change here on the forum and I wanted to give it a try), the second thing is I wanted to make the "Serviles" trait (which has the servient speciec with Syncretic Evolution) incompatible with Fleeting, Slow Learners, Decadent, Deviants (+ the positive versions of these).

As I said the other changes of the mod are working. Mod is placed in: C:\Users\(me)\Documents\Paradox Interactive\Stellaris\mod\tester

For the Citizen Service change I placed a file called "tester_worker_jobs.txt" into: C:\Users\(me)\Documents\Paradox Interactive\Stellaris\mod\tester\common\pop_jobs
The content of this file is:


The changes for the traits are in a file called "tester_species_traits_basic_characteristics.txt" which is located in: C:\Users\(me)\Documents\Paradox Interactive\Stellaris\mod\tester\common\traits
and it contains:


Both files were saved as "UTF-8 with BOM".

However when I start the game and want to create a new species, the changes for Citizen Service are not there, and the Serviles can still be combined with the traits.

Any ideas what is wrong?

Ah,why use BOM?
 

MarKr

First Lieutenant
14 Badges
Nov 10, 2017
209
4
  • 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
Ah,why use BOM?
I read in some modding tutorial it should be UTF-8 or UTF-8 BOM. To be honest I have no clue what the difference is. In several first attempts to make it work it was saved in normal UTF-8, as one of the desperate last attempts I tried to save it as BOM. Anyway, it didn't work as UTF-8 either.
 

neptunehs

First Lieutenant
1 Badges
May 28, 2018
204
61
  • Stellaris
I read in some modding tutorial it should be UTF-8 or UTF-8 BOM. To be honest I have no clue what the difference is. In several first attempts to make it work it was saved in normal UTF-8, as one of the desperate last attempts I tried to save it as BOM. Anyway, it didn't work as UTF-8 either.
As I know,only .yml files need BOM.

In your situation,try add ~or! before your filename(I don't sure if function,and may cause error),or copy whole 03_worker_jobs.txt or 02_species_traits_basic_characteristics.txt then change what you want.
 

MarKr

First Lieutenant
14 Badges
Nov 10, 2017
209
4
  • 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
Well, I changed it back to UTF-8 and copied the original files + applied changes I wanted. It worked for the servile trait but the Citizen Service still does not work :/

EDIT: It actually works for the Citizen Service too. The Trait effect descriptions automatically update in the game when you change the effects and I thought it works the same for civics too but civics need to have their descriptions updated separately in localisation files.

All works well, thanks for the help :)
 
Last edited:

cray935

Second Lieutenant
65 Badges
Apr 14, 2017
182
4
  • Cities in Motion
  • Stellaris: Synthetic Dawn
  • Tyranny - Tales from the Tiers
  • Crusader Kings II: Jade Dragon
  • Surviving Mars: First Colony Edition
  • Cities: Skylines - Mass Transit
  • Europa Universalis IV: Mandate of Heaven
  • BATTLETECH
  • Age of Wonders: Planetfall
  • Hearts of Iron IV: Death or Dishonor
  • Tyranny - Bastards Wound
  • Age of Wonders III
  • Cities: Skylines - Green Cities
  • Stellaris: Leviathans Story Pack
  • Hearts of Iron IV: Expansion Pass
  • Stellaris: Humanoids Species Pack
  • Stellaris: Apocalypse
  • Surviving Mars: Digital Deluxe Edition
  • Cities: Skylines - Parklife
  • Stellaris: Distant Stars
  • Surviving Mars: First Colony Edition
  • Cities: Skylines Industries
  • Cities: Skylines - Campus
  • Crusader Kings II: Holy Fury
  • Prison Architect
  • Hearts of Iron IV: Expansion Pass
  • Cities: Skylines - After Dark
  • Crusader Kings II
  • Crusader Kings II: Legacy of Rome
  • Crusader Kings II: The Old Gods
  • Crusader Kings II: The Republic
  • Crusader Kings II: Sons of Abraham
  • Europa Universalis IV
  • Europa Universalis IV: Art of War
  • Europa Universalis IV: Wealth of Nations
  • Cities: Skylines
  • Europa Universalis IV: El Dorado
  • Crusader Kings II: Way of Life
  • Europa Universalis IV: Common Sense
  • Hearts of Iron IV: Together for Victory
  • Crusader Kings II: Conclave
  • Cities: Skylines - Snowfall
  • Stellaris: Nemesis
  • Stellaris: Galaxy Edition
  • Stellaris: Galaxy Edition
  • Hearts of Iron IV: Cadet
  • Europa Universalis IV: Rights of Man
  • Tyranny: Archon Edition
  • Tyranny: Archon Edition
  • Tyranny: Gold Edition
Maybe it is a little late for that hint BUT I must give it to you as nobody else gave that hint. Take a look into your error.log file because many issues are interpreting errors and those are logged on startup.