.com.unity Forums

.com.unity Forums (http://forum.shrapnelgames.com/index.php)
-   Scenarios, Maps and Mods (http://forum.shrapnelgames.com/forumdisplay.php?f=146)
-   -   Drawing some pretty graphs from scores.html files (http://forum.shrapnelgames.com/showthread.php?t=36847)

lch July 11th, 2008 06:39 AM

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".

llamabeast July 11th, 2008 07:42 AM

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.

lch July 11th, 2008 09:01 AM

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.

llamabeast July 11th, 2008 10:01 AM

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.

Gandalf Parker July 11th, 2008 03:35 PM

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

Gandalf Parker July 11th, 2008 03:37 PM

Re: Real graphs demo
 
I do remember a conversation thread about this awhile back. We started collecting flag images, nation colors. And I started asking everyone who had a map generator project to include a way to save the initial random seed so that you could rerun the map with no colors and graphics the way DomMap did for Dom2. Of course that was back before we could all get free graphic software that handled layers easily.

lch July 12th, 2008 08:58 PM

Re: Real graphs demo
 
Quote:

Gandalf Parker said:
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

When I tested this there was some sort of problem, I don't really remember which one. It might have been one of those:
- problems with battles from the magic phase
- problems with assassinations
- problems with random events ("the people have revolted!")
It could just be that I actually looked and tested for something different, though, that might be possible as well.

I might look into this a little closer later.

llamabeast July 27th, 2008 01:29 PM

Re: Real graphs demo
 
Quote:

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.

Hallo lch,

As it turns out I have a fair bit of time for sorting the graphs over the next couple of days. If it'd be possible to just zip up your folder and upload it so I could try to find the graph-making bits, that would be awesome. Thanks!

llamabeast August 8th, 2008 11:53 AM

Re: Real graphs demo
 
Man, I just took another look at this to show a friend. It is _ridiculously_ nice.

JimMorrison August 8th, 2008 04:28 PM

Re: Real graphs demo
 
Quote:

llamabeast said:
Man, I just took another look at this to show a friend. It is _ridiculously_ nice.

Lch could be ridiculed for making such awesome graphs? Man, life is tough. http://forum.shrapnelgames.com/images/smilies/wink.gif


All times are GMT -4. The time now is 11:26 PM.

Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©1999 - 2025, Shrapnel Games, Inc. - All Rights Reserved.