• We are currently performing site maintenance, parts of civfanatics are currently offline, but will come back online in the coming days. For more updates please see here.

Reading Civ5Replay files (update: HTML export!)

First of all, GREAT WORK! I love it!

Second: Would it be possible for you to add a --tag to disable output (perhaps limit to a success/failure message) ? I've made a small ruby/sinatra web app that uses this to generate (and host) these replays. Figured it would be useful for people :-) if you approve of course.
Currently you can upload files and it will parse them, as soon as i get the time i will make it available + make it so you can upload a .zip with a replay file + map and it will automagically produce a replay with those. Having some issues detecting success/failure on the replay generation jobs at the moment.

Anyway i could make the alterations myself too i guess but that would leave me needing to update it whenever you do :-)
 
But what I really wanted to say is this - please don't turn this thread into another ball of hate. Let's be constructive here and use this to show them that we're missing the replay and stats at the end of the game, not that we can insult each other in a fit of rage ;-)

I agree. And again thanks for the great work with this :)
 
Hi!

I'm having a little trouble getting this to work. I've followed all the steps, but I get the following error message when I try to run the program from the command prompt:

'python' is not recognized as an internal or external command, operable program or batch file.

I'm using the 64-bit version of Python, if that makes a difference...

any suggestions?
 
You need to set the path variable for python.exe. It's not finding it.

SET PATH=%PATH%;C:\python\bin.

Naturally substitue C:\python for wherever your real location for you file is. Then you should be able to run python. Might as well include it in your environment variables.
 
Hmmm still not working... it installed in C:\Python26, so I set the path to there, but there is no \bin subfolder. There's DLLs, Doc, include, Lib, libs, tcl, and Tools subfolder.
 
Hmmm still not working... it installed in C:\Python26, so I set the path to there, but there is no \bin subfolder. There's DLLs, Doc, include, Lib, libs, tcl, and Tools subfolder.
Sorry, the Python.exe is in the C:\Python26 folder itself there's no need to add bin at the end.
 
With the new patch 1.0.0.62, the code is working for you (with map) ?

I dont know if it's because i have Deluxe version and i do wait a future patch or if there is a change on .Civ5Map file but when i try to convert a new game/replay with their map the script fail at the end when the_map = Civ5Map(options.map) is called. :cry:

( but work without map )

Thanks to tell if new a game/replay + map work on a standard version.
 
Dannythefool, I wanna thank you for your skills and Firaxis of course must hire you asap.

At least, you should be paid by them, 5.000 euros to start from.
 
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 :-)
 
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 :-)

Good to know someone is making that ;)

Can i suggest to add some options like replay language and why not screen size ;)

like i have made on http://c5r.sgsgames.com

( it's not designed to be a service, it's just a temporaly french service by waiting someone make one :D )
 
Yea i could add those, working on getting the background worker 100% first. Shouldn't be too hard :-) Why not combine efforts? Do you code Ruby by any chance? The source to my little project is on github.
 
Yea i could add those, working on getting the background worker 100% first. Shouldn't be too hard :-) Why not combine efforts? Do you code Ruby by any chance? The source to my little project is on github.

I never tried Ruby :blush:

And i make just those page for people who are waiting someone making a service like you but, i can help you if you want some french translations :D
 
Ruby is better than PHP in my (and most others) opinion (anything > PHP :p). You should try it sometime :-) French translations i guess could be nice once it's setup, i don't speak french so personally i don't have that much need for them :p
 
Back
Top Bottom