|
|
|
 |

July 10th, 2008, 07:54 PM
|
 |
General
|
|
Join Date: Feb 2007
Location: R'lyeh
Posts: 3,861
Thanks: 144
Thanked 403 Times in 176 Posts
|
|
Re: Real graphs demo
Quote:
llamabeast said:
lch, now that Gandalf's server is back up, is it possible I could use your scripts? If you'd prefer me to make my own I'd understand. Yours are really cool though, and of course I'd give credit.
|
As long as you don't ask compensation from me for having to deal with my hacked together code, you can do what you want with it.
I already linked to the source code which generates the per-turn graphs on the first page. What you'll have to add is the files from amCharts. If you have some time, then I'll package the stuff together and release it, I am planning to put all my code into proper Mercurial repositories anyway. If you want the goods NOW, then I could just zip up my web folder and remove unrelated content and let you figure out the rest.
|

July 11th, 2008, 05:27 AM
|
National Security Advisor
|
|
Join Date: Nov 2006
Location: Oxford, UK
Posts: 5,921
Thanks: 194
Thanked 855 Times in 291 Posts
|
|
Re: Real graphs demo
Thanks lch! Hmm, well I'm in no great rush really. Xietor wants me to sort out score graphs for KingMaker, but I think the main reason is to see how many capitals each nation controls, which I think this actually won't really help with (I can't remember if we've got VPs on or not, but if we have then we can see the scores in game, and if we haven't I think these graphs won't tell us capital counts - is that right?).
|

July 11th, 2008, 06:39 AM
|
 |
General
|
|
Join Date: Feb 2007
Location: R'lyeh
Posts: 3,861
Thanks: 144
Thanked 403 Times in 176 Posts
|
|
Re: Real graphs demo
Quote:
llamabeast said:
(I can't remember if we've got VPs on or not, but if we have then we can see the scores in game, and if we haven't I think these graphs won't tell us capital counts - is that right?).
|
That's right. You could generate graphs for graph-less games with this and e.g. display them after the game, but that requires that you enabled scores.html generation while hosting.
I was thinking of reverse-engineering the fthrlnd file format to be able to display who holds which provinces, but I haven't really begun on this yet. Another one of those plans that you "want to do, definitely, at some later time".
|

July 11th, 2008, 07:42 AM
|
National Security Advisor
|
|
Join Date: Nov 2006
Location: Oxford, UK
Posts: 5,921
Thanks: 194
Thanked 855 Times in 291 Posts
|
|
Re: Real graphs demo
There's no need to do that. If you just host using the -d switch I think you can parse the output to see provinces changing hands, and you can keep track like that.
How were you thinking of displaying that information? It would be super lovely to be able to colour in the map with who holds which provinces, then view it as a movie at the end of the game (a bit like Civ I, if you remember that). Seems pretty tricky to me though. The only thing I can think of using is scripting in GIMP, but I'm currently clueless on that.
|

July 11th, 2008, 09:01 AM
|
 |
General
|
|
Join Date: Feb 2007
Location: R'lyeh
Posts: 3,861
Thanks: 144
Thanked 403 Times in 176 Posts
|
|
Re: Real graphs demo
Quote:
llamabeast said:
How were you thinking of displaying that information? It would be super lovely to be able to colour in the map with who holds which provinces, then view it as a movie at the end of the game (a bit like Civ I, if you remember that).
|
That's exactly what I wanted to do, yes. An easier intermediate result to achieve would be just to place national standards on the province centers just like the game does.
Quote:
llamabeast said:
There's no need to do that. If you just host using the -d switch I think you can parse the output to see provinces changing hands, and you can keep track like that.
|
That's very interesting. I had a look at the debug output, but I didn't really see how to accurately tell who conquered which province. Maybe I should look again. I'm always hosting with -ddd, so maybe the information just got buried.
|

July 11th, 2008, 10:01 AM
|
National Security Advisor
|
|
Join Date: Nov 2006
Location: Oxford, UK
Posts: 5,921
Thanks: 194
Thanked 855 Times in 291 Posts
|
|
Re: Real graphs demo
Quote:
That's exactly what I wanted to do, yes. An easier intermediate result to achieve would be just to place national standards on the province centers just like the game does.
|
Aha, that's an excellent thought! It would indeed be much easier, I'd think.
Quote:
That's very interesting. I had a look at the debug output, but I didn't really see how to accurately tell who conquered which province. Maybe I should look again. I'm always hosting with -ddd, so maybe the information just got buried.
|
Come to think of it, I think that bit of info from me actually came from a comment Gandalf made some time ago, and not from my own testing. Hopefully it's true though.
|

July 11th, 2008, 03:35 PM
|
 |
Shrapnel Fanatic
|
|
Join Date: Oct 2003
Location: Vacaville, CA, USA
Posts: 13,736
Thanks: 341
Thanked 479 Times in 326 Posts
|
|
Re: Real graphs demo
If I remember right, grep the log for " vs " and "winner".
I believe that lnr is "land number"
Edited:
Yes its
2 vs 25 in lnr 8 (castlemode 0) laststand_att0 laststand_def0
(lots of combat lines)
_____The winner is 2_______
that was Ulm vs Independents in land 8
__________________
-- DISCLAIMER:
This game is NOT suitable for students, interns, apprentices, or anyone else who is expected to pass tests on a regular basis. Do not think about strategies while operating heavy machinery. Before beginning this game make arrangements for someone to check on you daily. If you find that your game has continued for more than 36 hours straight then you should consult a physician immediately (Do NOT show him the game!)
|
Thread Tools |
|
Display Modes |
Hybrid Mode
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is On
|
|
|
|
|