View Full Version : Simple tool for dumping your event log to file


Gyathaar
Nov 18, 2005, 08:44 AM
This is a simple command line program that reads a savefile and dumps the output to file (or screen if no outfile specified)

Syntax: eventlog.exe \path\to\savefile.Civ4SavedGame optional_output_file.txt

Version1 removed after 42 downloads
Version2 removed after 50 downloads
Version3 removed after 123 downloads
Version4 removed after 25 downloads
Version5 removed after 270 downloads
Version6 removed after 1038 downloads

Changelog:
Version7: Supports Warlords saves. Should properly recognize all multiplayer saves.
Version6: Supports patch 1.61
Version5: Made compatible with the HOF-mod
Version4: Supports patch 1.52, added years for ancient age start saves. Added info for played time and save version/speed.
Version3: Supports patch 1.09 (and most likely 1.08 too)
Version2: also dumps current active trade deals the player has.
Version1: original version

If you miss zlib1.dll when running the program, you can copy this file from the civ4 game dir, or download latest zlib compiled DLL from http://www.zlib.net/

Added eventlog_bat.zip
This contains a .bat file.. this batch file is assuming you unzip eventlog.exe into your 'my documents' folder (and that you are running english version of windows) - if not you would have to edit it.. it is a text file.
You can place this .bat file anywhere you like, and it will allow you to drag and drop civ4 savesfiles onto in, and make notepad pop up with the eventlog inside.

Download the file here:
http://forums.civfanatics.com/downloads.php?do=file&id=1443

warpstorm
Nov 19, 2005, 10:23 AM
Cool! I've wanted something like this.

Rik Meleet
Nov 20, 2005, 11:43 AM
I get a "ZLIB1.DLL" missing error message.

Gyathaar
Nov 20, 2005, 01:46 PM
I get a "ZLIB1.DLL" missing error message.
Hmm.. I thought I compiled that in statically.. guess not.. there should be a copy of that file in the civ4 dir.. just copy it into same dir as the program

Gyathaar
Nov 20, 2005, 09:45 PM
Added a new version that also dumps active trade deals (and contains the latest version of zlib1.dll )

snepp
Nov 25, 2005, 06:45 PM
Any chance of getting this updated to work after the patch? Would be much appreciated. :)

Gyathaar
Nov 26, 2005, 10:08 AM
Any chance of getting this updated to work after the patch? Would be much appreciated. :)
I am away from home since before patch.. will update late sunday or monday when I get home :)

snepp
Nov 26, 2005, 12:44 PM
Looking forward to it, thanks.

Gyathaar
Nov 28, 2005, 05:46 AM
Looking forward to it, thanks.
Updated to work with v1.09 (and v1.00) saves.

snepp
Nov 28, 2005, 06:59 AM
Thanks again. :)

Wallabulla
Dec 02, 2005, 07:43 AM
Thanks alot for this nice app, comes in handy when I forget to keep a log :)

Drogear
Dec 14, 2005, 06:30 AM
how does this file work? Plz explain in detail cuz im dumb

Drogear
Dec 14, 2005, 06:31 AM
tried to start the .exe and get a dos promt that i cant read cuz it closes down in a milli sec.

Gyathaar
Dec 14, 2005, 06:06 PM
start a dos prompt (start->run , type 'cmd' (or 'command' if in win9x ) )
cd to the dir where you put the file.. then run the command from there

Drogear
Dec 15, 2005, 05:37 AM
Thanks I finaly got it to work

ajil
Dec 15, 2005, 06:31 AM
grrr. same problem as drogear, but I got an error message when I tried the start menu, run cmd. Now that one also instantly disappears when it opens. Whatever happened to the good old ms dos prompt?

DaveMcW
Jan 01, 2006, 03:55 PM
Is there any chance you could detect the game speed and label the turns with appropriate dates?

Gyathaar
Jan 02, 2006, 10:38 AM
Is there any chance you could detect the game speed and label the turns with appropriate dates?
I could.. I also need to update the program for v1.52

VoiceOfUnreason
Jan 03, 2006, 05:01 PM
I also need to update the program for v1.52

Any guess at ETA? I'd love to have this before my report is due.

Gyathaar
Jan 04, 2006, 12:06 AM
Updated to version 4.
Should show years for all ancient age saves (those that start in 4000BC).
Added some extra info at end of output (playtime, game version and speed)

Gyathaar
Jan 06, 2006, 11:11 AM
Updated so it works with the HOF mod

Methos
Jan 07, 2006, 09:46 AM
I get a "ZLIB1.DLL" missing error message.

I'm getting the same error, and I have v5. I did a search and couldn't find the file on my computer anywhere. Is it supposed to be located in the CivIV files somewhere?

Gyathaar
Jan 07, 2006, 11:09 AM
its in same dir as civilization4.exe .. or you can download it from the webpage I linked in first post

Methos
Jan 07, 2006, 12:40 PM
its in same dir as civilization4.exe .. or you can download it from the webpage I linked in first post

Found it. I wonder if using caps was what caused the search to be unable to find it?

One more question: You stated that the user may have to move the eventlog file to the directory that the z file is in an order to get it to work. By doing that will I set off the GOTM security? In effect I'm messing with the civ 4 directory.

The whole reason I want to use this is so I can correctly write my GOTM 2 spoiler.

Gyathaar
Jan 07, 2006, 01:56 PM
Found it. I wonder if using caps was what caused the search to be unable to find it?
possible.. dunno


One more question: You stated that the user may have to move the eventlog file to the directory that the z file is in an order to get it to work. By doing that will I set off the GOTM security? In effect I'm messing with the civ 4 directory.

It wont cause a problem with the GOTM security (unless you place it inside the assets dir for some reason)
You dont have to put it in same dir thou.. you just need to have a copy of zlib1.dll in same dir.. either by putting it in the civ4 dir, or by putting another copy of zlib1.dll in same dir as the eventlog.. or a 3rd way is putting a copy of zlib1.dll in a dir that is in the windows path.. like c:\windows\ (if you do that I suggest you download the very latest version thou.. the version that shipped with civ4 was an older version with some security leaks)

Methos
Jan 07, 2006, 05:44 PM
You dont have to put it in same dir thou.. you just need to have a copy of zlib1.dll in same dir.. either by putting it in the civ4 dir, or by putting another copy of zlib1.dll in same dir as the eventlog..

Talk about missing the obvious. I feel rather foolish now. :blush:

Speaking of being foolish, I'm having even more trouble. I'm unsure of the exact command I should be doing to get the program to work. I finally copied my saved game to the same directory as the eventlog. Do you mind stating the exact command. Now I really seem like an idiot! :D

BTW, the game save is called:

GOTM-2 BC-0180

Gyathaar
Jan 08, 2006, 02:11 AM
when you have a space in the filename you need to put the filename in quotes (I just hit tab to toggle though filenames and it adds them automatically for me), so:

eventlog "GOTM-2 BC-0180.Civ4SavedGame" gotm2.txt

Methos
Jan 08, 2006, 02:20 AM
Thanks! I was wondering if the space was causing the problem. Worked great!

WaxonWaxov
Mar 02, 2006, 04:18 PM
So, how is this different from the Autolog mod included in the HOF mod?

Gyathaar
Apr 26, 2006, 05:29 PM
Updated to support patch 1.61

NeverMind
Apr 27, 2006, 04:09 AM
Very useful utility. Thanks for the update!

erikg88
May 28, 2006, 09:44 AM
Uh... how do I get this thing to work? I've got the zlib dll in the extracted directory along with the exe, and when I double click it, a little black DOS box flashes up and then dissapears as quickly as it came.

Help?

Ali Garch
May 31, 2006, 07:57 AM
Useful utility but...

this tool is not compatible with pbem-games:
- The program always (irrespective of save) reads a log for the first player,
- Protection of a file by the password is ignored. Everybody can read a log of the first player.

I hope that it will be fixed in following versions :-)

Gyathaar
Jun 03, 2006, 12:05 AM
Useful utility but...

this tool is not compatible with pbem-games:
- The program always (irrespective of save) reads a log for the first player,
- Protection of a file by the password is ignored. Everybody can read a log of the first player.

I hope that it will be fixed in following versions :-)
Yeah, seems my multiplayer check is treating hotseat and pbem files as single player files.. will fix in later version.

DaviddesJ
Jul 07, 2006, 11:57 PM
The batch file doesn't work for me, because of the double-quotes around %1, which already has double-quotes when I drag a file onto it to run it. It works when I edit it to delete those double quotes.

McLMan
Jul 19, 2006, 10:13 PM
The batch file doesn't work for me, because of the double-quotes around %1, which already has double-quotes when I drag a file onto it to run it. It works when I edit it to delete those double quotes.

I needed to do the same thing to make it work for me.

Osymandias
Jul 21, 2006, 06:09 AM
sadly, it won't work with saves of my mod...:(

Gyathaar
Aug 03, 2006, 03:08 AM
sadly, it won't work with saves of my mod...:(
Problem with mods is that in order to parse the saves correctly the program needs to know how many possible units, buildings, wonders, promotions and so on are available..
For most mods these values differ from the standard game, so there is no trivial way to find the correct values (to find this the program would have to analyse all the mod files).

Gyathaar
Aug 03, 2006, 03:09 AM
Updated to read warlords saves (aswell as civ4 vanilla saves from all patches)

Cam_H
Aug 05, 2006, 09:11 PM
Gyathaar,

Looks like a great little utility. I however am someone who needs clues like; "Press this button and it will work".

how does this file work? Plz explain in detail cuz im dumb

Talk about missing the obvious. I feel rather foolish now. :blush:

Speaking of being foolish, I'm having even more trouble. I'm unsure of the exact command I should be doing to get the program to work. I finally copied my saved game to the same directory as the eventlog. Do you mind stating the exact command. Now I really seem like an idiot! :D

:stupid: If these guys are feeling dumb, then you can imagine me gazing at the screen, head tilted to the side, mouth half open, glassy eyed ...

Could you possibly do an Idiot's Guide to installing and using (assuming there isn't one already)? I'm not a modder. I'm not sure if I need an auto-log program installed for this to work. This is the calibre of person you have here. ;)

ruff_hi
Aug 09, 2006, 11:47 AM
This works great! I tried it using an earlier version and couldn't get it to work. It was probably me running the exe from the wrong directory. Your batch file put me straight - thx.

retro V
Sep 08, 2006, 10:39 AM
It's all very well praising this utility ... when you figure out how it works. There's no user-friendliness at all.

Maybe it should be called a Futility.

Dianthus
Sep 08, 2006, 10:43 AM
It's all very well praising this utility ... when you figure out how it works. There's no user-friendliness at all.

Well, that just sounds like an opportunity for someone to write a GUI frontend for it. Gyathaar has done the hard part :goodjob:.

retro V
Sep 08, 2006, 10:47 AM
I'm sorry.

Didn't want to sound ungrateful. Just frustrated.

Doc TK
Oct 19, 2006, 06:34 PM
Does eventlog work with Warlords HOF Mod?

Gyathaar
Oct 20, 2006, 12:18 AM
Does eventlog work with Warlords HOF Mod?
No.. thou I guess I could add that ability if there is demand for it.. would be a bit of extra work.

pgsmgs
Mar 06, 2007, 04:39 PM
Problem with mods is that in order to parse the saves correctly the program needs to know how many possible units, buildings, wonders, promotions and so on are available..
For most mods these values differ from the standard game, so there is no trivial way to find the correct values (to find this the program would have to analyse all the mod files).
Great tool!
By the way, is there any chance of getting its source code? I was thinking of tweaking it for some mods... Naturally, making appropriate references to your work.

Thanks

inseattle
May 14, 2007, 06:09 PM
Great tool. Thanks. I am looking for a way to get more detail out of the saved file. I am wondering if the details for every move are in there. I am looking for stuff like "construction on granary started", "training settlers", etc. Does anyone know if that possible ? Thanks.

Gyathaar
May 15, 2007, 08:54 PM
Great tool. Thanks. I am looking for a way to get more detail out of the saved file. I am wondering if the details for every move are in there. I am looking for stuff like "construction on granary started", "training settlers", etc. Does anyone know if that possible ? Thanks.
That isnt in the file... (though I think there is info about when each building in current cities was completed (but not started))

The current buildqueue is there ofcourse

VoiceOfUnreason
Sep 09, 2007, 01:59 PM
Are there any plans for a BTS compatible release?

Quueg
Sep 09, 2007, 04:54 PM
Are there any plans for a BTS compatible release?

I second that.

ERIKK
Sep 19, 2007, 04:32 AM
I second that.Me too! :)

pwarnk
Dec 28, 2007, 12:23 PM
Great tool!
By the way, is there any chance of getting its source code? I was thinking of tweaking it for some mods... Naturally, making appropriate references to your work.

Thanks

I second that... maybe we could do something on source forge. Please

Delta458
Sep 01, 2008, 07:05 AM
anyone got this tool for BTS???
I really need it..

MyOtherCar
Mar 27, 2009, 04:25 PM
Any chance to get this tool updated to BtS? The guys at Realmsbeyond could use for one of their variant games.

Gyathaar
Mar 31, 2009, 12:10 PM
Hmm.. I had totally forgotten about this program :P

ruff_hi
Mar 31, 2009, 12:39 PM
Hmm.. I had totally forgotten about this program :PIf you are going to update it (yay - party!) then what about that other program that you could use to change game items (hot seat to pbem, player #? to AI, difficulty level, speed, etc)?

Gyathaar
Nov 16, 2011, 04:36 AM
adding the old source code

VoiceOfUnreason
Nov 25, 2011, 02:05 PM
adding the old source code

SWEET! Thank you.