Is it possible to view folder of current game in progress?

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

interbastian

Corporal
8 Badges
Mar 21, 2020
28
13
  • Hearts of Iron IV: Cadet
  • Hearts of Iron IV: Colonel
  • Hearts of Iron IV: Together for Victory
  • Hearts of Iron IV: Death or Dishonor
  • Hearts of Iron IV: Expansion Pass
  • Hearts of Iron IV: Expansion Pass
  • Hearts of Iron IV: La Resistance
  • Battle for Bosporus
Hello, I thought I would give modding a try..
reverse engineering style.

Let me explain, there is a default templates folder in the base game.
But then as the game progress you make changes to your templates.
Is it possible to view those changes in a game folder just as you can view starting game templates in default folder?
And if yes, where can i Find it?

Appreciate your help.
 

CaesarVincens

Lt. General
97 Badges
Aug 13, 2012
1.623
1.236
  • Hearts of Iron IV: No Step Back
  • Hearts of Iron IV: By Blood Alone
  • Stellaris: Galaxy Edition
  • Victoria 2
  • Imperator: Rome
  • Europa Universalis IV: Cossacks
  • Europa Universalis III Complete
  • March of the Eagles
  • Stellaris: Apocalypse
  • Cities: Skylines
  • Surviving Mars: Digital Deluxe Edition
  • Mount & Blade: With Fire and Sword
  • Europa Universalis IV
  • Crusader Kings II
  • Steel Division: Normandy 44
  • Mount & Blade: Warband
  • Europa Universalis IV: Common Sense
  • Europa Universalis IV: Dharma
  • Stellaris: Distant Stars
  • Europa Universalis IV: Rule Britannia
  • Hearts of Iron IV Sign-up
  • Europa Universalis IV: Rights of Man
  • Stellaris: Digital Anniversary Edition
  • Stellaris: Leviathans Story Pack
  • Hearts of Iron IV: Together for Victory
  • Stellaris: Humanoids Species Pack
  • Europa Universalis IV: Mandate of Heaven
  • Hearts of Iron IV: Expansion Pass
  • Hearts of Iron IV: Death or Dishonor
  • Imperator: Rome - Magna Graecia
  • Victoria 3 Sign Up
  • Stellaris: Nemesis
  • Stellaris: Necroids
  • Europa Universalis 4: Emperor
  • Battle for Bosporus
  • Crusader Kings III
  • Stellaris: Federations
  • Hearts of Iron IV: La Resistance
  • Europa Universalis IV: El Dorado
  • Stellaris: Lithoids
  • 500k Club
  • Europa Universalis IV: Golden Century
  • Cities in Motion
  • Europa Universalis IV: Res Publica
  • Europa Universalis IV: Conquest of Paradise
  • Europa Universalis IV: Art of War
  • Europa Universalis IV: Wealth of Nations
  • Stellaris: Megacorp
  • Europa Universalis IV: Mare Nostrum
  • Stellaris: Ancient Relics
Anything that's specific to a playthrough should be in its save file. I'd imagine you'd be able to see the templates there, though I've not looked through HoI4 saves very much, so I'm not sure where exactly you'd find them.
 

AP Erebus

Second Lieutenant
17 Badges
Sep 25, 2018
153
381
  • Crusader Kings II
  • Stellaris
  • Magicka
  • Hearts of Iron IV: No Step Back
  • Battle for Bosporus
  • Hearts of Iron IV: La Resistance
  • Prison Architect
  • Hearts of Iron IV: Expansion Pass
  • Hearts of Iron IV: Expansion Pass
  • Hearts of Iron IV: Expansion Pass
  • Hearts of Iron IV: Death or Dishonor
  • Cities: Skylines - Mass Transit
  • Hearts of Iron IV: Together for Victory
  • Hearts of Iron IV: Cadet
  • Cities: Skylines - Snowfall
  • Cities: Skylines - After Dark
  • Cities: Skylines
I would imagine all changes for a save (such as custom templates. Etc) are all stored in the save file.

I don't know if the save file format has been reverse engineered to be editable.

@bitmode might know.
 

bitmode

1st Reverse Engineer Battalion
Nov 10, 2016
3.824
7.024
In Documents/Paradox Interactive/Hearts of Iron 4/settings.txt there is a line save_as_binary = yes. Change that to "no" and any new saves will be created in a readable text format.
If you are interested in the binary format, I made a Python conversion script: https://hoi4.paradoxwikis.com/User:Bitmode/hoi4bin2txt

Edit: and the save files are in Documents/Paradox Interactive/Hearts of Iron 4/save games
 
Last edited:
  • 2
  • 1Like
Reactions:

interbastian

Corporal
8 Badges
Mar 21, 2020
28
13
  • Hearts of Iron IV: Cadet
  • Hearts of Iron IV: Colonel
  • Hearts of Iron IV: Together for Victory
  • Hearts of Iron IV: Death or Dishonor
  • Hearts of Iron IV: Expansion Pass
  • Hearts of Iron IV: Expansion Pass
  • Hearts of Iron IV: La Resistance
  • Battle for Bosporus

interbastian

Corporal
8 Badges
Mar 21, 2020
28
13
  • Hearts of Iron IV: Cadet
  • Hearts of Iron IV: Colonel
  • Hearts of Iron IV: Together for Victory
  • Hearts of Iron IV: Death or Dishonor
  • Hearts of Iron IV: Expansion Pass
  • Hearts of Iron IV: Expansion Pass
  • Hearts of Iron IV: La Resistance
  • Battle for Bosporus
In Documents/Paradox Interactive/Hearts of Iron 4/settings.txt there is a line save_as_binary = yes. Change that to "no" and any new saves will be created in a readable text format.
If you are interested in the binary format, I made a Python conversion script: https://hoi4.paradoxwikis.com/User:Bitmode/hoi4bin2txt

Edit: and the save files are in Documents/Paradox Interactive/Hearts of Iron 4/saves

Where do I find the folder containing the new readable templates?
 

bitmode

1st Reverse Engineer Battalion
Nov 10, 2016
3.824
7.024
Where do I find the folder containing the new readable templates?
When you save the game, it creates a single, huge (~1,000,000 lines) save file; not a folder. As mentioned, save files are in Documents/Paradox Interactive/Hearts of Iron 4/save games. You'll then have to search through the file for the thing you want. Here is an example, searching for "division_templates":
Code:
... 74195 other lines ...
division_templates={
    division_template={
        id={ id=1 type=52 }
        name="Motorised Division"
        division_names_group="ENG_MOT_01"
        country="ENG"
        original_tag="ENG"
        foreign_template_tag="---"
        priority=1
        allow_new_equipment=yes
        support={
            engineer={ x=0 y=0 }
            recon={ x=0 y=1 }
        }
        regiments={
            motorized={ x=0 y=0 }
            motorized={ x=0 y=1 }
            motorized={ x=0 y=2 }
            motorized={ x=1 y=0 }
            motorized={ x=1 y=1 }
            motorized={ x=1 y=2 }
        }
        template_counter=-1
        origin_type=master_host
    }
    [...]
If your template has a particular name, you can of course just search for that.
 
  • 1
Reactions: