|
|
|
|
|
November 15th, 2007, 11:21 PM
|
|
General
|
|
Join Date: Feb 2007
Location: R'lyeh
Posts: 3,861
Thanks: 144
Thanked 403 Times in 176 Posts
|
|
Drawing some pretty graphs from scores.html files
Heya, I've been writing some script which parses the scores.html files that the game generates if it is run with the --scoredump option. That project was on hiatus for some time, but I've finally invested some time to clean it up and make it accessible for others.
I'll add more info at a later timer. For now, just look at the graphs for my Dom3 multiplayer games here:
http://dom3.servegame.com/scores/
You can get your own graphs that look like this! To make things easier for the non-techie folks, I have moved most of the code out of the PHP script and to Javascript which is handled by the browser. This allows others to use my system like I do and configure it to some greater extend, too.
Long story short: go to the URL above. You'll see a list of my MP games. When you click on one, you see the current graph for the ingame scores. You can get a page like that for your own game if you use the Upload button with your own scores.html files. You can then save the generated HTML file and put it on your own website or send it via email.
Source code is available on request (needs PHP 4/5).
Last edited by lch; June 22nd, 2009 at 08:52 AM..
Reason: new home, changed URL
|
The Following User Says Thank You to lch For This Useful Post:
|
|
November 15th, 2007, 11:22 PM
|
|
General
|
|
Join Date: Feb 2007
Location: R'lyeh
Posts: 3,861
Thanks: 144
Thanked 403 Times in 176 Posts
|
|
README
Space reserved by me.
ToDo:
- make the page not look like ***.
- write documentation about the configuration options
- configuration of the display options via the upload form
|
November 15th, 2007, 11:22 PM
|
|
General
|
|
Join Date: Feb 2007
Location: R'lyeh
Posts: 3,861
Thanks: 144
Thanked 403 Times in 176 Posts
|
|
Re: README
More space reserved by me.
|
November 15th, 2007, 11:22 PM
|
|
General
|
|
Join Date: Feb 2007
Location: R'lyeh
Posts: 3,861
Thanks: 144
Thanked 403 Times in 176 Posts
|
|
Feedback
I'm greedy.
|
November 15th, 2007, 11:57 PM
|
|
General
|
|
Join Date: Mar 2007
Location: Japan
Posts: 3,691
Thanks: 269
Thanked 397 Times in 200 Posts
|
|
Re: Feedback
I'm probably missing a plugin, but all I see (firefox 2.0, opera 9.1, with flash player 7.0, javascript enabled in both browsers) is:
Provinces
Loading Adobe Flash graph, please wait...
Forts
Loading Adobe Flash graph, please wait...
Income
Loading Adobe Flash graph, please wait...
Gem Income
Loading Adobe Flash graph, please wait...
Research
Loading Adobe Flash graph, please wait...
Dominion
Loading Adobe Flash graph, please wait...
Army Size
Loading Adobe Flash graph, please wait...
Victory Points
Loading Adobe Flash graph, please wait...
Any idea what could be wrong?
__________________
Whether he submitted the post, or whether he did not, made no difference. The Thought Police would get him just the same. He had committed— would still have committed, even if he had never set pen to paper— the essential crime that contained all others in itself. Thoughtcrime, they called it. Thoughtcrime was not a thing that could be concealed forever.
http://z7.invisionfree.com/Dom3mods/index.php?
|
November 16th, 2007, 08:25 AM
|
|
General
|
|
Join Date: Feb 2007
Location: R'lyeh
Posts: 3,861
Thanks: 144
Thanked 403 Times in 176 Posts
|
|
Re: Feedback
Quote:
vfb said:
I'm probably missing a plugin, but all I see (firefox 2.0, opera 9.1, with flash player 7.0, javascript enabled in both browsers)
|
I think you need at least Flash player version 8 (current is 9). Try this page, which should tell you what you need to do to get it working: http://blog.deconcept.com/swfobject/expressinstall.html
|
November 16th, 2007, 11:58 AM
|
|
General
|
|
Join Date: Mar 2007
Location: Japan
Posts: 3,691
Thanks: 269
Thanked 397 Times in 200 Posts
|
|
Re: Feedback
Great, thanks for the help!
__________________
Whether he submitted the post, or whether he did not, made no difference. The Thought Police would get him just the same. He had committed— would still have committed, even if he had never set pen to paper— the essential crime that contained all others in itself. Thoughtcrime, they called it. Thoughtcrime was not a thing that could be concealed forever.
http://z7.invisionfree.com/Dom3mods/index.php?
|
November 16th, 2007, 01:12 PM
|
|
Captain
|
|
Join Date: Oct 2007
Location: guess - and you'll be wrong
Posts: 834
Thanks: 33
Thanked 187 Times in 66 Posts
|
|
Re: Drawing some pretty graphs from scores.html fi
Very, very impressive. Well done.
Now if there were only a way to track total stale time for each nation......
|
November 17th, 2007, 06:33 AM
|
|
General
|
|
Join Date: Aug 2003
Location: Sweden
Posts: 4,463
Thanks: 25
Thanked 92 Times in 43 Posts
|
|
Re: Drawing some pretty graphs from scores.html fi
Beautiful!
Have a cake [img]/threads/images/Graemlins/Cake.gif[/img]
|
November 19th, 2007, 07:53 AM
|
|
General
|
|
Join Date: Feb 2007
Location: R'lyeh
Posts: 3,861
Thanks: 144
Thanked 403 Times in 176 Posts
|
|
Updates
Some updates:
- graphs now scale correctly, the Newbies game doesn't look THAT bad anymore for R'lyeh
- upload mechanism allows fine-tuning of some options now, for example you can set the colors for a specific game era or turn off some graphs if you want
- source code can be inspected, but beware, it's ugly. I put everything into one big file instead of separating it into different PHP files. The core consists of only a couple dozen lines of code since the Javascript code does the real work, the rest is just HTML for the overview/upload pages.
|
Thread Tools |
|
Display Modes |
Linear 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
|
|
|
|
|