This isn't working for me.http://civ5.flexd.net I integrated dannythefool's script into a web based service that will automagically use the script on your replays. All you have to do is upload them. This is currently a very beta version running on my laptop and will most likely be a bit slow (at least if a bunch of you try it out at the same time!) Currently there are not a lot of features. You can upload your replay and it will parse it. Future versions will include listing uploaded replays (unless ticked private for whatever reason), commenting on replays and being able to handle a zipped replay file with replay+map for automagic generation of that too.
If it works it will look something like this http://civ5.flexd.net/replay/5
Instructions on how to get there on the main link, it's not terribly hard
I'll make a new thread about this once it's up and running on a proper host
Forgot to mention it's not using the new version danny uploaded today. Will need to fix that soon
For anyone still trying to use this script post patch, you will need to make some tweaks in order to get it to run.
The problems seem to be either DLC, or new game options post patch. Also, new terrain post patch seems to break map reading totally. So don't even try it.
I haven't had time to try and correct the problem, but I did work around it:
Line 1226:
#return ", ".join(map(lambda x:victory_types[x].s(), self.victory_types))
return "None"
Line 1232:
#return ", ".join(map(lambda x:game_options[x].s(), self.game_options))
return "None"
Hope it helps someone.
I took a poke at updating this after CornMaster's post. Victory conditions haven't changed, but the two advanced game options from the december patch are indeed missing. "Allow Policy Saving" and "Allow Promotion Saving" should be added to the game_options array as ids 12 and 13 respectively, and the last 3 options should have their IDs shifted accordingly.
Additionally, the 4 newest DLC civs (Mongol, Spain, Inca, and Polynesia) should be added to the civs list if anyone is trying to fully update this thing. I added them in my copy but only the Mongols have a complete entry since that's all I own; the others use a set of default colors and capital name guesses from Bibor's videos.
To fix the map issue, a new integer and string (of that integer's size) must be read just before the self.map initialization. Attached is a copy of the script from the OP which incorporates these changes and has worked for me on two post-patch games.
I can take a look at the other failed replays, sure.