Civ5Replay Viewer Application

CowHickey

Chieftain
Joined
Oct 29, 2010
Messages
16
Hi,

I've put together some proof of concept code to show Civ5Replay files in a Windows application. I was wondering if a few of you would like to test it and let me know if you think it is worth my effort to continue with development.

civ5history.jpg


It's very simple at the moment - just extract the zip file to a folder of your choice and run the exe. Click 'Load Replay' to open your replay file, 'Load Map' to load a map if you have one. You can guess what Play and Pause do, and Step moves the replay on by a single turn.

If you want to view another replay once the one you have been watching has finished, it is best if you exit and restart the program and then load the next replay.

Please consider this as alpha quality code - not feature complete and containing many bugs. If you get any errors, please let me know, and send me any files that may have caused the problem. My email address is andyhcoates(at)gmail.com. Also note that the initial map drawing is quite processor intensive - it may take over a minute with large map sizes on older machines - I will look to multithread this if I continue with development.

Let me know what you think of the app and anything you would like to see added. If I get enough positive responses, I shall continue developing the program.

Finally, a big thank you to dannythefool - his Civ5Replay python script contained the information I needed to get me started with this project. I also pinched his map colours :)

14th November - I've just uploaded version 0.2 of my Civ5History app. This includes the following enchancements.

Information messages scroll downwards, so the latest message is always at the top.
Map can be zoomed in and out using the mouse wheel (I know it doesn't zoom about the cursor :)).
Second and subsequent replays can be loaded without restarting the program.
Maps can be loaded without loading a replay first.
The step time of the playback can be changed.
Civ text colours are editable in the xml files - if you come up with a good set of colours, please send them to me.
City ownership is tracked correctly. (Razed cities are still a problem however)

I know there is a lot more I can do, but these things take time, so I thought I'd let you have the current stable version to try out rather than having to wait for the feature complete version.

20th November - Version 0.3

This contains a couple of minor cosmetic updates - details about the currently loaded replay file are shown in the title bar, and you can now drag the map around with the cursor as well as using the scroll bars.

4th December - Version 0.4

I have added multi language support to the application. The different languages are held in the xml file distributed with the app. At the moment, only English and German are supported as I only have replay files in those languages - and I might not have the German quite right - I'm sure someone will let me know :)

To add a new language, just take a copy of the English section and paste it into the xml file after the German section. Change the language name and make your changes, and it should work correctly. Alternatively, upload a replay in the language you'd like adding, and I will make the changes for you. Also, please let me have any working xml files you may produce so that I can add more languages to the next release.

As a consequence of the changes made to implement multiple languages, the bug reported by Wulf38 has been fixed.

Important - 'Calling Home'. In order to see how much usage my app is getting, I have added a 'call home' function which logs with me each time the app is started. I have implemented this as I'm not sure how much use my app is getting, and so is it worthwhile for me to carry on developing the app if noone is using it. It also allows me to lay the groundwork for an online service I have an idea for. No usable data is sent from your machine to mine, apart from a single HTTP request on port 51169. I am telling you this to give you full disclosure of what my code is doing, and allowing you to skip this version if you don't like the idea of my code sending web requests from your PC.

As always, please let me know if you find any bugs in the app.
 

Attachments

Thanking you and Danny a lot, I wonder why devs let this feature out.

I assume to oblige us to pay for it but they didn't imagine there are great men like you both here, so they can put their payware add-ons into their back. Understood Shafer !??

Thanks a lot mates, I will give them a try within this we

thx
 
Hi,

I've put together some proof of concept code to show Civ5Replay files in a Windows application. I was wondering if a few of you would like to test it and let me know if you think it is worth my effort to continue with development.

civ5history.jpg


It's very simple at the moment - just extract the zip file to a folder of your choice and run the exe. Click 'Load Replay' to open your replay file, 'Load Map' to load a map if you have one. You can guess what Play and Pause do, and Step moves the replay on by a single turn.

If you want to view another replay once the one you have been watching has finished, it is best if you exit and restart the program and then load the next replay.

Please consider this as alpha quality code - not feature complete and containing many bugs. If you get any errors, please let me know, and send me any files that may have caused the problem. My email address is andyhcoates(at)gmail.com. Also note that the initial map drawing is quite processor intensive - it may take over a minute with large map sizes on older machines - I will look to multithread this if I continue with development.

Let me know what you think of the app and anything you would like to see added. If I get enough positive responses, I shall continue developing the program.

Finally, a big thank you to dannythefool - his Civ5Replay python script contained the information I needed to get me started with this project. I also pinched his map colours :)

Great job!

What kind of map is that? It looks very interesting

Thx
jonpfl
 
Thank you very much for doing this. I'll download it tomorrow and try it out.
 
Thanks for this useful effort. Bug Report:

1) Text backgrounds need to differ from both the civ hex color and the city text color for the Ottomans (= near white).

2) Text backgrounds should change color when the city transfers ownership.
 
That looks amazing! I'll definately try it out once I have some free time away from homework.
 
Looks awesome! Just a quick question (haven't tried it because I don't have a finished game yet) what constitutes a "map"? How would you get it to load a randomly generated map that you played for instance, is it saved somewhere (like in the save file?)
 
Looks awesome! Just a quick question (haven't tried it because I don't have a finished game yet) what constitutes a "map"? How would you get it to load a randomly generated map that you played for instance, is it saved somewhere (like in the save file?)

In the Save Game dialog, there is an option (at the bottom left if I remember it correctly) to save the map.
 
This looks like an amazing bit of work. :)

Unfortunately, whenever I load a replay and press "Play", the application crashes and I get the usual error message about the program encountering a problem and having to close. :(
 
How do I load a map? The button is greyed out.

If there is no replay loaded, and the "Play" button is clicked, it results in Null Reference exception and the program must be closed (this is on Win 7 x64).
 
This looks like an amazing bit of work. :)

Unfortunately, whenever I load a replay and press "Play", the application crashes and I get the usual error message about the program encountering a problem and having to close. :(

Can you email me a copy of the replay file please - my email address is in the first post.
 
How do I load a map? The button is greyed out.

If there is no replay loaded, and the "Play" button is clicked, it results in Null Reference exception and the program must be closed (this is on Win 7 x64).

In this version, you can only load a map once a replay is loaded I'm afraid - this will be something I will change. The error you are seeing with the Play button is due to the "lest than robust :)" error checking of this version. It has been rectified on the latest version I am working on at the moment.
 
In this version, you can only load a map once a replay is loaded I'm afraid - this will be something I will change. The error you are seeing with the Play button is due to the "lest than robust :)" error checking of this version. It has been rectified on the latest version I am working on at the moment.

Awesome, thanks for working on it.
 
Looks great. I will try it out when I finish my current game (which unfortunately will be in a couple weeks as I'm going out of town :(

Thanks in advance for doing this. This is something I miss from previous Civs. I only get a couple hours here and there to play so it takes me a while to finish a game. By the time I'm done I sometimes can't remember the whole thing and it's always cool to "rewatch" the games. :goodjob:
 
How do I view another players saved replay? I know this might seem obvious, but I am saving the replays to my computer as step one. Then I am opening up the Replay Viewer and clicking the "load replay" button. However when I do this the replay file I've saved does not show up on my list and I'm not having any luck. Please help!

It seems like the program opens the file, but flashes and disappears.
 
Awesome work, CowHickey (& Danny, too)!
I had seen the python version earlier (and wouldn't be bothered to even "test" it back then) but now that you have a proper exe that does it rather easily - it's only fair to expect even more features from you eventually.
In the meantime, *WE* can only offer a bazillion thank you's for that splendid tiny piece of a small program that SHOULD have been provided straight off by Firaxis within the first release.
 
Back
Top Bottom