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

Czarina Julie

Czarina
9 Badges
Apr 11, 2008
1.072
795
  • 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'm openning this new thread to streamline the old thread. The old thread started with a question then grew into this application.

The HOI2 History Archiver 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)
  • Arsenal Of Democracy v 1.04 (KXOS)
  • Arsenal Of Democracy v 1.05 (Have not tested but imagine that it will work since 1.04 & 1.07 does)
  • Arsenal Of Democracy v 1.06 (Have not tested but imagine that it will work since 1.04 & 1.07 does)
  • Arsenal Of Democracy v 1.07 (MVJY)

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.

EDITS: If you post [to this thread] that it works fine for you (and is not a version or mod configuration already stated above), please post what version of Windows and what version of HOI2 (DD, ARM, Mods, etc) you used it for. I will post any new versions and/or mods above.

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 remove and/or save Event Data. Updated the search 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.2
30 Nov 2010- Fixed an issue where one would get a "ERROR: map = 'Line = ...'" message (to fix see later post in this thread). Version is now 1.0.0.3​
 

Attachments

  • HOI2HistoryArchiverSetup.zip
    355,9 KB · Views: 1.378
Last edited:
I thought a quick tutorial might help.

The HOI2 History Archiver has four screens:

HOIHistoryArchiver.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). If this is checked, your history will not be saved. To save your history select one (or all) of the three options.
    • to delete only the event history
    • to delete only the battle history
    • to delete only the sunk ship 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:
  • 1Like
Reactions:
Hi there,

this is in response to your post in
http://forum.paradoxplaza.com/forum/showthread.php?t=467435

Ok I gave it another try, the first time around the corrected leader pics from the (gfx_Fix) didn’t seem to have an effect at all ...
Now, with your new version (1.0.0.2) I did edit a save game of mine, copied/pasted the files from gfx_Fix and this is what happened:


Critical error!

--- ERROR : (unknown lhs in eyr history) ‚map= {‚ Line = 853707 file = scenarios\save games\D13 May 40.eug ---
Do you still want to continue?​

Ignore -> back to desktop

(the line 853707 reads: “supplyconsumption = 0.0000” in realtion to an interceptor)

Perhaps the order of how to apply the workaround was not done by the numbers?
Any obvious suspects in terms of noob mistakes?

The backup (the load up nicely but now also has the corrupted leader pics/names ???? (despite gfx_Fix)
other save games load without any problems

In regards to loosing the statistics, you are correct of course, with the backup function one does not strictly speaking loose the data but in order to see the overall numbers (which is kind of the whole point) one would need to manually write down the data of each save game and then to add them up …. Well, my human tabulating tech level is … abacus based ;)


Used System:
Pentium 4 - 3.0 Ghz
3 gig DDR1
XP (32 bit)
AOD – no mods / release version


All the best!
And thank you for your efforts!!!!!
 
Hello, Just a few questions first.

So you did these following steps:
  • Ensure that you select the Backup option within the History Archiver. That file is the exact same name as your save game file with the extension rename to .bak (example: Say you're removing history from the Austria_1938_November_19.eug file. The backup file (with all history in it) is called Austria_1938_November_19.bak).
  • Now rename that backup file (or copy it and rename it) to Austria_1938_November_19_history.eug (or whatever, as long as you know it's the one with history still in it)
  • Now copy the Austria_1938_November_19.eug.cfg file and rename it to Austria_1938_November_19_history.eug.cfg
  • You will now be able to open that copied save game (Austria_1938_November_19_history) like any other saved game and view all those statistics
Then tried to open the file (that has all the history), correct?

The backup (the load up nicely but now also has the corrupted leader pics/names ???? (despite gfx_Fix)
other save games load without any problems
Was this backup done before the gfx_Fix or after the gfx_Fix?

In regards to loosing the statistics, you are correct of course, with the backup function one does not strictly speaking loose the data but in order to see the overall numbers (which is kind of the whole point) one would need to manually write down the data of each save game and then to add them up …. Well, my human tabulating tech level is … abacus based
Yea, I was thinking about this too. I have a couple of ideas about this. Let me know which you think is better (or if you have another idea let me know).

1. When someone checks the Backup .eug file before deleting history, the program would make a backup of the file (.eug) and the configuration (.eug.cfg) renaming it by adding _History. Example: You want to delete the history from your saved game (Austria_1938_November_19.eug). The program would make a backup of the Austria_1938_November_19.eug but instead of the backup being called Austria_1938_November_19_history.bak it would be called Austria_1938_November_19_history.eug and the program would also backup the configuration to Austria_1938_November_19_history.eug.cfg. This would now give you the ability to open the saved game (that contains the history) and view all thos statistics. The problem with this, is that you will only see the history from the last time you deleted history to the time you saved the game. You would have to compile all of these histories together to get the actual statistics.

2. This is a bit more complex. The program would have to to keep a 'running' history. This could be done by using the same functionality as it currently uses by saving history to a .his file. If someone were to check a Compile history checkbox, the program would create a compiled .his file. Example: You run the program against the Austria_1938_November_19.eug file the history would be saved to a .his file. Now your run the program against the Austria_1938_December_15.eug file. If the Compile history is checked, You would be prompted to select an existing .his file to add the new history to it then the program would save the history to it and create new fully loadable saved game that has all the history. This way you could just open the one save game and see all the statistics. A ppossible issue would be if you forgot to save your history one time while running the program. You would now be missing that block of history and possibly corrupt the loadable history saved game.
 
hi there,
  • Ensure that you select the Backup option within the History Archiver. That file is the exact same name as your save game file with the extension rename to .bak (example: Say you're removing history from the Austria_1938_November_19.eug file. The backup file (with all history in it) is called Austria_1938_November_19.bak).
  • Now rename that backup file (or copy it and rename it) to Austria_1938_November_19_history.eug (or whatever, as long as you know it's the one with history still in it)
  • Now copy the Austria_1938_November_19.eug.cfg file and rename it to Austria_1938_November_19_history.eug.cfg
  • You will now be able to open that copied save game (Austria_1938_November_19_history) like any other saved game and view all those statistics
Then tried to open the file (that has all the history), correct?
yes, the new backup has all the history up to that point BUT the leader names and pictures are messed up even after applying the gfx stuff ... so what else is there to do other than to copy the files from within the gfx_Fix into the appropriate AoD folder (overwriting existing files) ... in a way that makes sense, if the game was adapted to the initial corruption and not the other way around.

Was this backup done before the gfx_Fix or after the gfx_Fix?
tried it with another savegame, applied the fix after running "hoi2 history archiver"

problem is that the newly purged savegame also does not work anymore/exits to desktop while loading/same error message (different line)

3. test:
started a new game, let it run for two or three in game days ... saved game as "test.eug". applied your program to this file and tried to load the purged save game -> critical error again....
load the backup of the backup works just fine :eek:

so it seems the backup function is working fine but rather the history extraction or some other function of the program does corrupt my savegames to the point of not being able to load anymore ... :(

Yea, I was thinking about this too. I have a couple of ideas about this. Let me know which you think is better (or if you have another idea let me know).

1. When someone checks the Backup .eug file before deleting history, the program would make a backup of the file (.eug) and the configuration (.eug.cfg) renaming it by adding _History. Example: You want to delete the history from your saved game (Austria_1938_November_19.eug). The program would make a backup of the Austria_1938_November_19.eug but instead of the backup being called Austria_1938_November_19_history.bak it would be called Austria_1938_November_19_history.eug and the program would also backup the configuration to Austria_1938_November_19_history.eug.cfg. This would now give you the ability to open the saved game (that contains the history) and view all thos statistics. The problem with this, is that you will only see the history from the last time you deleted history to the time you saved the game. You would have to compile all of these histories together to get the actual statistics.

2. This is a bit more complex. The program would have to to keep a 'running' history. This could be done by using the same functionality as it currently uses by saving history to a .his file. If someone were to check a Compile history checkbox, the program would create a compiled .his file. Example: You run the program against the Austria_1938_November_19.eug file the history would be saved to a .his file. Now your run the program against the Austria_1938_December_15.eug file. If the Compile history is checked, You would be prompted to select an existing .his file to add the new history to it then the program would save the history to it and create new fully loadable saved game that has all the history. This way you could just open the one save game and see all the statistics. A ppossible issue would be if you forgot to save your history one time while running the program. You would now be missing that block of history and possibly corrupt the loadable history saved game.
my issue with the history aspect is not, that I want to know every little detail of how the game went (major battles, skirmishes, who took part in what battle) what matters to me are the statistics, problem is I have no idea how the game manages its data. Given this "limited" :rolleyes: knowledge - I would assume the game has to go through all event to tally up the statistics (looses, sunk ships etc.). It would suggest each event has a possible value for casualties ... "Hoi2 event archiver" could read the savegame, take the total numbers and create a single event to replace all previous events? that way one would trick the game into thinking all the losses (manpower, ships, planes, trucks etc) occurred in a single battle as opposed to hundreds or thousands of different events. Ok, the dates included in "ships sunk would be off" but most of the relevant data would still be present - general idea of who is on the loosing end, what ship sunk which ship...

chances are, the options of deleting event, combat history and ships sunk are already a manifestation of a similar idea and I am barking not just at the wrong tree but also want to reinvent the wheel ;)

Of the two options #2 seems to be better but one might have to declare which was the starting scenario/save game since at times I go back to a different earlier save game and don't start over 1936.
how often do people look at the history in hoi2 anyways?

oh well ... have to run ...
all the best
 
Thanks for the quick reply.

Guess I'll have to apply the gfx_fix and see what it does to my current leader files and how it works with the gfx_fix.

I'll post again when I've done this.
 
I would love to use this tool, but if it wipes my losses/ships sunk etc its going to be a for me.

It will remove your sunk ship, event, and batlle histories. If you check each of the three (screen isn't up to date) you can backup that history to a .his file (viewable in Notepad, Notepad++, etc). It does remove all history from the seaved game file.
 
Critical error!

--- ERROR : (unknown lhs in eyr history) ‚map= {‚ Line = 853707 file = scenarios\save games\D13 May 40.eug ---
Do you still want to continue?​

i just tried to load my saved game and i got a similar error

the auto saves both the current and old are also corrupt

my error reads unknow lhs in senario file(minister))

i get different error messages for the autosave games and the manual saved game

why would both autosaves and my manual save be corrupted
 
i get different error messages for the autosave games and the manual saved game

why would both autosaves and my manual save be corrupted
Did you run both of your autosaves through this History Archiver?

For those of you that are having problems, ensure your have the latest HOI2 Archiver (1.0.0.2) and that you always check the Backup .eug file before deleting history.

If you still have problems, post the backup file and the file that had the history removed. Both of these files should have the same name with only the extensions (.bak &.eug) different.
 
Yes, I would be happy to get back my saved game:D
How can I find line 1184231?
 
Thanks JRHINDO!

For those of you that received a similar message to this:
ERROR : (unknown lhs in eyr history) ‚map= {‚ Line =

The fix is simple. Just:
  1. Open the save game file (.eug extension, not the .eug.cfg) with a text editor program (I use Notepad++).
  2. Search the file for:
    eyr = {​
  3. When you locate the text (line) add "} }" to the end. It should now look something like this:
    eyr = { history = }}​
  4. Save and close the file