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

Ovg

Major
105 Badges
Mar 18, 2009
631
4
  • Stellaris - Path to Destruction bundle
  • Hearts of Iron III: Their Finest Hour
  • Arsenal of Democracy
  • Iron Cross
  • King Arthur II
  • Stellaris: Galaxy Edition
  • Magicka
  • Knights of Honor
  • Europa Universalis IV: Res Publica
  • Victoria: Revolutions
  • Semper Fi
  • Supreme Ruler: Cold War
  • Heir to the Throne
  • Stellaris: Synthetic Dawn
  • Victoria 2: A House Divided
  • Victoria 2: Heart of Darkness
  • Stellaris: Apocalypse
  • Europa Universalis IV: Pre-order
  • Europa Universalis IV: Rule Britannia
  • Crusader Kings II: Jade Dragon
  • Europa Universalis IV: Third Rome
  • Crusader Kings II: Monks and Mystics
  • Europa Universalis IV: Mare Nostrum
  • Darkest Hour
  • Crusader Kings II
  • Crusader Kings II: Charlemagne
  • Crusader Kings II: Legacy of Rome
  • Crusader Kings II: The Old Gods
  • Crusader Kings II: Rajas of India
  • Crusader Kings II: The Republic
  • Crusader Kings II: Sons of Abraham
  • Crusader Kings II: Sunset Invasion
  • Crusader Kings II: Sword of Islam
  • Hearts of Iron III
  • Diplomacy
  • Europa Universalis III
  • Europa Universalis III Complete
  • Divine Wind
  • Europa Universalis IV: Art of War
  • Europa Universalis IV: Conquest of Paradise
  • Europa Universalis IV: Wealth of Nations
  • Europa Universalis IV: Call to arms event
  • For The Glory
  • For the Motherland
  • Gettysburg
  • Europa Universalis IV
  • Hearts of Iron IV: No Step Back
  • Europa Universalis III Complete
  • Crusader Kings II: Horse Lords
  • Europa Universalis IV: Cossacks
As we know, history from save file can cause extreme slowdowns. It is quite a tedious task to delete it manualy every in-game year. Has anyone ever made a program to auto-clean it?
 

Czarina Julie

Czarina
9 Badges
Apr 11, 2008
964
675
  • Arsenal of Democracy
  • Hearts of Iron II: Armageddon
  • Hearts of Iron III
  • Darkest Hour
  • 500k Club
  • Stellaris
  • Stellaris: Galaxy Edition
  • Stellaris: Galaxy Edition
  • Stellaris: Galaxy Edition
If you're looking at clearing out ALL your saved game files you could always create a batch file. A simple double click on the file and your Saved games folder will be empty.

I assuming you're on a MS system (XP, Vista, Win7)?
 

Jarno

The end.
17 Badges
Feb 21, 2008
700
13
  • Arsenal of Democracy
  • Hearts of Iron II: Armageddon
  • Darkest Hour
  • Hearts of Iron III
  • Iron Cross
  • Hearts of Iron Anthology
  • 500k Club
  • Hearts of Iron IV: La Resistance
  • Imperator: Rome Sign Up
  • Hearts of Iron IV: Expansion Pass
  • Hearts of Iron IV: Expansion Pass
  • Hearts of Iron IV: Death or Dishonor
  • Steel Division: Normand 44 Sign-up
  • Hearts of Iron IV: Together for Victory
  • Hearts of Iron IV: Cadet
  • Hearts of Iron IV Sign-up
  • 200k Club
he doesn want his save games to be removed but the history about the game that gets saved too wich is useless and slows the game down, he wants to remove that part.

Would be great if there is a program for it.
 

Czarina Julie

Czarina
9 Badges
Apr 11, 2008
964
675
  • Arsenal of Democracy
  • Hearts of Iron II: Armageddon
  • Hearts of Iron III
  • Darkest Hour
  • 500k Club
  • Stellaris
  • Stellaris: Galaxy Edition
  • Stellaris: Galaxy Edition
  • Stellaris: Galaxy Edition
he doesn want his save games to be removed but the history about the game that gets saved too wich is useless and slows the game down, he wants to remove that part.

Would be great if there is a program for it.

That wouldn't be too difficult of a program to write. I would just need to open the file (IO operation) find the history and delete it.

It could go something like this:
1. The program reads the Saved games directory for all .eug files. This would give the user the ability to select which game they want to delete the history from.
2. Have the program give the user the abilty to make a back up of the history (say to a .txt file) and where to save that history.

I'm currently at work but if some one has a small .eug that has history (even just a few events) I should be able to knock it out fairly soon. Anyone interested? Any suggestions what else it could do? Keep it mind we don't want a full blown editor.
 
Last edited:

Czarina Julie

Czarina
9 Badges
Apr 11, 2008
964
675
  • Arsenal of Democracy
  • Hearts of Iron II: Armageddon
  • Hearts of Iron III
  • Darkest Hour
  • 500k Club
  • Stellaris
  • Stellaris: Galaxy Edition
  • Stellaris: Galaxy Edition
  • Stellaris: Galaxy Edition
Forgot to ask....Do you want to delete the battle history (which can grow quite large) and the list of events or just the battle history?

Could do an option, giving the user a choice of deleting one or both. Besides, I already have the name "HOI2 History Archiver"

I'm currently at work but if some one has a small .eug that has history (even just a few events) I should be able to knock it out fairly soon. Anyone interested?

Don't need ths now. Forgot, like any good HOI dedicated individual, I have the full game (with saved games) on my USB drive. Dang! wish I would've remember that early. Lunch would've be more exciting :D

*** NOTE ***
There isn't a good way to 'Auto clean' history unless it's done through the actual HOI2.exe. The best solution is to have the team upgrading/enhancement HOI2 to have an option that one can select to tell HOI not to write any history to the save files.
 
Last edited:

Czarina Julie

Czarina
9 Badges
Apr 11, 2008
964
675
  • Arsenal of Democracy
  • Hearts of Iron II: Armageddon
  • Hearts of Iron III
  • Darkest Hour
  • 500k Club
  • Stellaris
  • Stellaris: Galaxy Edition
  • Stellaris: Galaxy Edition
  • Stellaris: Galaxy Edition
OK All,

I'm going to go ahead and do this. It will work on Win XP, Vista, & Win 7. It will also have an installer (and unistaller).

I've got most of this done and need to get a couple of people willing to test (attempt to break it). Any takers?
 
Last edited:

Ovg

Major
105 Badges
Mar 18, 2009
631
4
  • Stellaris - Path to Destruction bundle
  • Hearts of Iron III: Their Finest Hour
  • Arsenal of Democracy
  • Iron Cross
  • King Arthur II
  • Stellaris: Galaxy Edition
  • Magicka
  • Knights of Honor
  • Europa Universalis IV: Res Publica
  • Victoria: Revolutions
  • Semper Fi
  • Supreme Ruler: Cold War
  • Heir to the Throne
  • Stellaris: Synthetic Dawn
  • Victoria 2: A House Divided
  • Victoria 2: Heart of Darkness
  • Stellaris: Apocalypse
  • Europa Universalis IV: Pre-order
  • Europa Universalis IV: Rule Britannia
  • Crusader Kings II: Jade Dragon
  • Europa Universalis IV: Third Rome
  • Crusader Kings II: Monks and Mystics
  • Europa Universalis IV: Mare Nostrum
  • Darkest Hour
  • Crusader Kings II
  • Crusader Kings II: Charlemagne
  • Crusader Kings II: Legacy of Rome
  • Crusader Kings II: The Old Gods
  • Crusader Kings II: Rajas of India
  • Crusader Kings II: The Republic
  • Crusader Kings II: Sons of Abraham
  • Crusader Kings II: Sunset Invasion
  • Crusader Kings II: Sword of Islam
  • Hearts of Iron III
  • Diplomacy
  • Europa Universalis III
  • Europa Universalis III Complete
  • Divine Wind
  • Europa Universalis IV: Art of War
  • Europa Universalis IV: Conquest of Paradise
  • Europa Universalis IV: Wealth of Nations
  • Europa Universalis IV: Call to arms event
  • For The Glory
  • For the Motherland
  • Gettysburg
  • Europa Universalis IV
  • Hearts of Iron IV: No Step Back
  • Europa Universalis III Complete
  • Crusader Kings II: Horse Lords
  • Europa Universalis IV: Cossacks
HELL YEAH! That's some realy cool news Czarina. I'd be delighted to try to break it. It's another big step for whole Europa engine community :D.

btw.
IMO it would be best to make it delete whole history, with battles, events, and everything else.
 
Last edited:

Czarina Julie

Czarina
9 Badges
Apr 11, 2008
964
675
  • Arsenal of Democracy
  • Hearts of Iron II: Armageddon
  • Hearts of Iron III
  • Darkest Hour
  • 500k Club
  • Stellaris
  • Stellaris: Galaxy Edition
  • Stellaris: Galaxy Edition
  • Stellaris: Galaxy Edition
OK Ovg & Jarno,

I'll try to finish it up this week end but my internet connection isn't very stable. I'm using the hotel's internet connection.....went skiing this weekend but my nights are free.

Check late night tonight or sometime tomorrow.
 
Last edited:

Czarina Julie

Czarina
9 Badges
Apr 11, 2008
964
675
  • Arsenal of Democracy
  • Hearts of Iron II: Armageddon
  • Hearts of Iron III
  • Darkest Hour
  • 500k Club
  • Stellaris
  • Stellaris: Galaxy Edition
  • Stellaris: Galaxy Edition
  • Stellaris: Galaxy Edition
The HOI2 History Archiver can be downloaded here:
http://www.filefactory.com/file/b007829/n/HOI2HistoryArchiversetup.zip
  1. Go to the bottom of the page
  2. Click on the "DOWNLOAD NOW with FileFactoryBasic" Note - This is the button to click for the FREE download
  3. It will do a count down (what do you expect for free) :)
  4. Once the count down is done you should see the Save popup. If not, just click on the "Download with FileFactory Basic" text.

This is ONLY for Windows PCs (2000, XP, Vista, Win 7).
To install:

  • Save the HOI2HistoryArchiversetup.zip file to your PC
  • Unzip the HOI2HistoryArchiversetup.zip file
  • Double click the Setup.exe file
  • Follow the installation prompts NOTE - If Vista or Win 7, unless you know that you have full Administrator rights, select a directory that is NOT in Program Files

Please post any issues in this thread.

Please post any suggestions in this thread.

This was tested on the following:
  • Doomsday Armageddon v 1.3 (PHVR) - - WinXP SP3, Vista, Win7
  • Doomsday Armageddon v 1.2 (VBLV) - WinXP SP3, Vista, Win7
  • Doomsday v 1.3 (GCYY) - WinXP SP3, Vista, Win7
  • Doomsday Armageddon v 1.3b, CORE2 Mod - WinXP
  • Win7 ultimate, mds2 scenario
  • Arsenal Of Democracy v 1.02 (XUWR)

IMPORTANT NOTE: If your save game file gets corrputed leader names and fails to load the right leader picture, it is not the History Archiver. Check here for the thread and a work around. It is AoD that is saving the games that way.

EDIT: If you post [to this thread] that it works fine for you, please post what version of Windows and what version of HOI2 (DD, ARM, Mods, etc) you used it for?
16 Feb 2010 - Updated the program to delete the sunk ship history. This inculdes an additional option 'Delete sunk ship history.' Version is now 1.0.0.1
22 Mar 2010 - Fixed a self-discovered bug that would not let one remvoe and/or save Event Data. Updated the serach criteria to ensure that Event History is removed (from the .eug file) and saved (if 'Delete Events' is checked) to the history (.his) file. Version is now 1.0.0.1​
 
Last edited:

Czarina Julie

Czarina
9 Badges
Apr 11, 2008
964
675
  • Arsenal of Democracy
  • Hearts of Iron II: Armageddon
  • Hearts of Iron III
  • Darkest Hour
  • 500k Club
  • Stellaris
  • Stellaris: Galaxy Edition
  • Stellaris: Galaxy Edition
  • Stellaris: Galaxy Edition
I thought a quick tutorial might help.

The HOI2 History Archiver has four screens:

HOI2Archiver.png


  1. The first is the opening screen where one clicks the Browse button that opens the Select File screen (openFileDialog).
  2. The second is the confirmation screen where one can ensure they have selected the correct file.
  3. The third is the options screen One can select :


    • [*]to back up the entire .eug (saved game) file before removing the history
      [*]to just delete the history (this is checked as the default)
      [*]to delete only the event history
      [*]to delete only the battle history​
  4. The fourth screen is the finish screen. This will show one what files where saved (.eug backed up, any history save) and the actual file updated.

If one selects only the Just delete. Do not save history option, it runs in about 3-5 seconds. This depends upon your PC. I tested it on my work laptop that runs a Celeron CPU (slow PC/laptop).

The longest running options are those you see checked above. That took about 9-11 seconds to run.
 
Last edited:

unmerged(63886)

@ my Swedish HQ
Dec 26, 2006
2.622
1
I'm running a bit low on time right now (and on friday, I'll be off for a couple of days) but just dropped by to say that it would be a great tool and it seems like you've done a top notch application!

Hope you'll get some testers because I'm certain many ppl will use it when fully functional!
 

Czarina Julie

Czarina
9 Badges
Apr 11, 2008
964
675
  • Arsenal of Democracy
  • Hearts of Iron II: Armageddon
  • Hearts of Iron III
  • Darkest Hour
  • 500k Club
  • Stellaris
  • Stellaris: Galaxy Edition
  • Stellaris: Galaxy Edition
  • Stellaris: Galaxy Edition
TeutonburgerW, Thanks for the compliments. My ego has been satisfied:wacko:

Did this during two lunch hours at work. I'll be posting to my AAR this long weekend (Monday is Presidents day here in the states), so I'll look into this thread too.
 

Czarina Julie

Czarina
9 Badges
Apr 11, 2008
964
675
  • Arsenal of Democracy
  • Hearts of Iron II: Armageddon
  • Hearts of Iron III
  • Darkest Hour
  • 500k Club
  • Stellaris
  • Stellaris: Galaxy Edition
  • Stellaris: Galaxy Edition
  • Stellaris: Galaxy Edition
Just ran it and it seemed to do everything it's supposed to. Very useful, thankyou.

Epaminondas, Great to hear and thank you for testing it.

BTW - What version of Windows and what version of HOI2 (DD, ARM, Mods, etc) do you have? I would like to update Post 11
This was tested on the following:

Thanks!
 
Last edited: