.com.unity Forums
  The Official e-Store of Shrapnel Games

This Month's Specials

Raging Tiger- Save $9.00
winSPMBT: Main Battle Tank- Save $6.00

   







Go Back   .com.unity Forums > Illwinter Game Design > Dominions 3: The Awakening > Scenarios, Maps and Mods

Reply
 
Thread Tools Display Modes
  #1  
Old November 15th, 2007, 11:21 PM
lch's Avatar

lch lch is offline
General
 
Join Date: Feb 2007
Location: R'lyeh
Posts: 3,861
Thanks: 144
Thanked 403 Times in 176 Posts
lch is on a distinguished road
Default 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).
__________________
Come to the Dom3 Wiki and help us to build the biggest Dominions-centered knowledge base on the net.
Visit my personal user page there, too!
Pretender file password recovery
Emergency comic relief

Last edited by lch; June 22nd, 2009 at 08:52 AM.. Reason: new home, changed URL
Reply With Quote
The Following User Says Thank You to lch For This Useful Post:
  #2  
Old November 15th, 2007, 11:22 PM
lch's Avatar

lch lch is offline
General
 
Join Date: Feb 2007
Location: R'lyeh
Posts: 3,861
Thanks: 144
Thanked 403 Times in 176 Posts
lch is on a distinguished road
Default 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
__________________
Come to the Dom3 Wiki and help us to build the biggest Dominions-centered knowledge base on the net.
Visit my personal user page there, too!
Pretender file password recovery
Emergency comic relief
Reply With Quote
  #3  
Old November 15th, 2007, 11:22 PM
lch's Avatar

lch lch is offline
General
 
Join Date: Feb 2007
Location: R'lyeh
Posts: 3,861
Thanks: 144
Thanked 403 Times in 176 Posts
lch is on a distinguished road
Default Re: README

More space reserved by me.
__________________
Come to the Dom3 Wiki and help us to build the biggest Dominions-centered knowledge base on the net.
Visit my personal user page there, too!
Pretender file password recovery
Emergency comic relief
Reply With Quote
  #4  
Old November 15th, 2007, 11:22 PM
lch's Avatar

lch lch is offline
General
 
Join Date: Feb 2007
Location: R'lyeh
Posts: 3,861
Thanks: 144
Thanked 403 Times in 176 Posts
lch is on a distinguished road
Default Feedback

I'm greedy.
__________________
Come to the Dom3 Wiki and help us to build the biggest Dominions-centered knowledge base on the net.
Visit my personal user page there, too!
Pretender file password recovery
Emergency comic relief
Reply With Quote
  #5  
Old November 15th, 2007, 11:57 PM
vfb's Avatar

vfb vfb is offline
General
 
Join Date: Mar 2007
Location: Japan
Posts: 3,691
Thanks: 269
Thanked 397 Times in 200 Posts
vfb is on a distinguished road
Default 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?
Reply With Quote
  #6  
Old November 16th, 2007, 08:25 AM
lch's Avatar

lch lch is offline
General
 
Join Date: Feb 2007
Location: R'lyeh
Posts: 3,861
Thanks: 144
Thanked 403 Times in 176 Posts
lch is on a distinguished road
Default 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
__________________
Come to the Dom3 Wiki and help us to build the biggest Dominions-centered knowledge base on the net.
Visit my personal user page there, too!
Pretender file password recovery
Emergency comic relief
Reply With Quote
  #7  
Old November 16th, 2007, 11:58 AM
vfb's Avatar

vfb vfb is offline
General
 
Join Date: Mar 2007
Location: Japan
Posts: 3,691
Thanks: 269
Thanked 397 Times in 200 Posts
vfb is on a distinguished road
Default 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?
Reply With Quote
  #8  
Old November 16th, 2007, 01:12 PM
cleveland's Avatar

cleveland cleveland is offline
Captain
 
Join Date: Oct 2007
Location: guess - and you'll be wrong
Posts: 834
Thanks: 33
Thanked 187 Times in 66 Posts
cleveland is on a distinguished road
Default 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......
Reply With Quote
  #9  
Old November 17th, 2007, 06:33 AM
Kristoffer O's Avatar

Kristoffer O Kristoffer O is offline
General
 
Join Date: Aug 2003
Location: Sweden
Posts: 4,463
Thanks: 25
Thanked 92 Times in 43 Posts
Kristoffer O is on a distinguished road
Default Re: Drawing some pretty graphs from scores.html fi

Beautiful!

Have a cake [img]/threads/images/Graemlins/Cake.gif[/img]
__________________
www.illwinter.com
Reply With Quote
  #10  
Old November 19th, 2007, 07:53 AM
lch's Avatar

lch lch is offline
General
 
Join Date: Feb 2007
Location: R'lyeh
Posts: 3,861
Thanks: 144
Thanked 403 Times in 176 Posts
lch is on a distinguished road
Default 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.
__________________
Come to the Dom3 Wiki and help us to build the biggest Dominions-centered knowledge base on the net.
Visit my personal user page there, too!
Pretender file password recovery
Emergency comic relief
Reply With Quote
Reply

Bookmarks


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is On

Forum Jump


All times are GMT -4. The time now is 02:24 AM.


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