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

Erik W

Field Marshal
53 Badges
Jul 30, 2012
2.842
590
  • Crusader Kings II: Charlemagne
  • Stellaris - Path to Destruction bundle
  • Europa Universalis IV: Mare Nostrum
  • Europa Universalis IV: Third Rome
  • Victoria 2: Heart of Darkness
  • Victoria 2: A House Divided
  • Europa Universalis: Rome
  • Victoria: Revolutions
  • Europa Universalis IV: Res Publica
  • March of the Eagles
  • Heir to the Throne
  • Hearts of Iron III
  • Europa Universalis IV: Wealth of Nations
  • Europa Universalis IV: Conquest of Paradise
  • Divine Wind
  • Europa Universalis III: Chronicles
  • Europa Universalis III
  • Crusader Kings II
  • Crusader Kings II: Sword of Islam
  • Crusader Kings II: Sons of Abraham
  • Crusader Kings II: The Republic
  • Crusader Kings II: Rajas of India
  • Europa Universalis IV: Art of War
  • Crusader Kings II: Legacy of Rome
  • Crusader Kings II: The Old Gods
  • Europa Universalis IV: Golden Century
  • Europa Universalis IV: Rights of Man
  • Crusader Kings II: Monks and Mystics
  • Stellaris: Federations
  • Europa Universalis IV: Mandate of Heaven
  • Hearts of Iron IV: Death or Dishonor
  • Europa Universalis IV: Cradle of Civilization
  • Hearts of Iron IV: Expansion Pass
  • Europa Universalis IV: Rule Britannia
  • Europa Universalis IV: Dharma
  • Imperator: Rome
  • Stellaris: Ancient Relics
  • Crusader Kings II: Reapers Due
  • Hearts of Iron IV: Cadet
  • Stellaris
  • Crusader Kings II: Conclave
  • Europa Universalis IV: Cossacks
  • Crusader Kings II: Horse Lords
  • Europa Universalis IV: Common Sense
  • Crusader Kings II: Way of Life
  • Mount & Blade: With Fire and Sword
  • Europa Universalis IV: El Dorado
  • 500k Club
  • Victoria 2
  • Europa Universalis IV
So Im trying to give away the Ottomans's provinces to other nations in a mod Im working on. But if I give away their last province and thus remove the nation from the map, it crashes the game. I can't seem to find a clear answer in the crash logs either as to why this happens. To be clear, I am modifying the "buildings", "pops", "states" files in the history folder and I have replaced them as an option for starting nations. Do I need to remove them from somewhere else?
 
Those crashes usually come from military formations that still exist but are not in a HQ that exists. So try removing the formations there and see if it helps.

Otherwise you could possibly let an effect run in history/global that just reassigns the states to the countries you want and see if that works.
 
Those crashes usually come from military formations that still exist but are not in a HQ that exists. So try removing the formations there and see if it helps.

Otherwise you could possibly let an effect run in history/global that just reassigns the states to the countries you want and see if that works.

Thing is I reassigned the Ottoman military all to Byzantium essentially. Brought Byzantium back and replaced TUR with BYZ on the military formations and merged in the armies of Greece and Serbia as well. I can't imagine this would cause the problem, but I'll try it out. And I'd need to look up and see how such an effect would be coded, effect modding is not my strong suit.
 
Thing is I reassigned the Ottoman military all to Byzantium essentially. Brought Byzantium back and replaced TUR with BYZ on the military formations and merged in the armies of Greece and Serbia as well. I can't imagine this would cause the problem, but I'll try it out. And I'd need to look up and see how such an effect would be coded, effect modding is not my strong suit.
A very simple version that replaces the Ottomans with Byzantium would probably look something like this:
Code:
c:TUR = {
    every_scope_state = {
        set_state_owner = c:BYZ
    }
}

If you want to make it more complex you can use the State regions as a trigger, e.g. like this:

Code:
c:TUR = {
    every_scope_state = {
        limit = {
            state_region = s:STATE_EASTERN_THRACE
        }
        set_state_owner = c:BYZ
    }
}
 
A very simple version that replaces the Ottomans with Byzantium would probably look something like this:
Code:
c:TUR = {
    every_scope_state = {
        set_state_owner = c:BYZ
    }
}

If you want to make it more complex you can use the State regions as a trigger, e.g. like this:

Code:
c:TUR = {
    every_scope_state = {
        limit = {
            state_region = s:STATE_EASTERN_THRACE
        }
        set_state_owner = c:BYZ
    }
}
This actually worked, no crash now. Thank you!
 
  • 1Like
Reactions:
This actually worked, no crash now. Thank you!
It might have some weird implications at game start (like wrong informations about the country). But nice that it works now :)