Save Edit: Adding factories to a province/state

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

fsp

Major
41 Badges
Feb 1, 2003
592
0
Visit site
  • Hearts of Iron IV: Expansion Pass
  • Hearts of Iron IV: Cadet
  • Hearts of Iron IV: Colonel
  • Europa Universalis IV: Rights of Man
  • Hearts of Iron IV: Together for Victory
  • Steel Division: Normandy 44
  • Europa Universalis IV: Mandate of Heaven
  • Europa Universalis IV: Third Rome
  • Hearts of Iron IV: Death or Dishonor
  • Steel Division: Normand 44 - Second Wave
  • Europa Universalis IV: Cradle of Civilization
  • Europa Universalis IV: Common Sense
  • Europa Universalis IV: Rule Britannia
  • Europa Universalis IV: Dharma
  • Europa Universalis IV: Golden Century
  • Hearts of Iron IV: Expansion Pass
  • Prison Architect
  • Hearts of Iron IV: La Resistance
  • Crusader Kings III
  • Battle for Bosporus
  • Europa Universalis 4: Emperor
  • For the Motherland
  • Crusader Kings II: Charlemagne
  • Crusader Kings II: Legacy of Rome
  • Crusader Kings II: The Old Gods
  • Crusader Kings II: Sword of Islam
  • Darkest Hour
  • Europa Universalis IV
  • Europa Universalis IV: Art of War
  • Europa Universalis IV: Conquest of Paradise
  • Europa Universalis IV: Wealth of Nations
  • Crusader Kings II
  • Hearts of Iron III
  • Hearts of Iron III: Their Finest Hour
  • Hearts of Iron III Collection
  • Naval War: Arctic Circle
  • Europa Universalis IV: Res Publica
  • Semper Fi
  • 500k Club
  • Hearts of Iron II: Beta
  • Crusader Kings II: Way of Life
Not sure if this should go into the mods subforum, but as the main question has to do more with the base game than the mod, I posted it here:

We are currently playing Road to 56 as MP, but the last update screwed up the map, Germany losing some vital provinces that are now "neutral" and cannot be transferred back nor conquered.


a) does anybody know how to transfer back these territories to Germany? the mod creators advised to start a new game, which we are obviously reluctant to do.

b) does anybody know how to roll back a mod? seems impossible

As a) and b) seem to lead nowhere, the main question is:

We have decided to try to continue the game nevertheless, but have to compensate Germany for the lost factories (basically, the Ruhrgebiet is gone).

So, how would we add maybe 10 or 20 factories to other provinces/states in the game (let's say in Brandenburg or Bavaria).

I have done some save game editing in the past, but wasn't able to figure this one out unfortunately.
 
a) does anybody know how to transfer back these territories to Germany? the mod creators advised to start a new game, which we are obviously reluctant to do.
First you'll need to figure out the province and state IDs of the affected provinces. You can do so with the tdebug console command and point at the provinces.
I'm assuming your save game is already in text format if you've previously done edits.

The save game contains main sections called provinces and states. Both in turn have subsections for each province/state ID respectively. If you want to edit the owner of e.g. state 42, you'd search for states={ and from that location search for 42={. Each state should have an owner field you can edit.
For provinces, you search for provinces={ from the start of the file and then again for the ID from that position. A province only needs to contain its controller (controller="GER") if it is different from the containing state's owner which is why you'll find most provinces to have no attributes.
 
  • 1Like
  • 1
Reactions:
@bitmode

This was indeed very helpful in general. Unfortunately it hasn't worked for me so far. Have I done something wrong?

If I understood correctly, the mod added several provinces to these states which were not there at the game's start, basically splitting a province in each of those states to create a new one. Not sure if this is the source of the problem/has to be addressed somwehere in the save as well?

These are the three states

04.png
:

002.png

003.png


That is the edit I made (gave one to FRA to see if that helped)
001.png


This is the outcome - nothing has changed.
005.png
 

Attachments

  • 005.png
    005.png
    1,9 MB · Views: 0
Tried those first, they did not work.

But thanks for trying.

Which brings me back to my main question:

How would I add say 10 military or civilian factories for Germany in Brandenburg somewhere.

Finding the state and province, I understand that now.
 
From one of my savegames an example for state #1

states={
1={
buildings={
infrastructure={
level={
100 100 100 100
}
}
industrial_complex={
level={
100
}
}
air_base={
level={
100
}
}
}
owner="FRA"
manpower_pool={
available=1340
locked=328767
total=336163
}
resources={
}
resistance={
occupation_policy=1
}
flags={
}
demilitarized=no
is_border_conflict=no
state_category=town
variables={
random=1
}
}

You see 4 infra, 1 IC and 1 airbase

To add 5 IC in this state, just add 5 x 100 like this:

industrial_complex={
level={
100 100 100 100 100 100
}
}


That's all
 
  • 2
Reactions: