View Full Version : Script to create a display page for mp gamae?
Xietor
June 13th, 2008, 11:24 AM
Is there a mod/script for displaying the nations statistics
in a mp game on a separate page? I know velusion had a page that showed all the nations statistics when you clicked a link and you did not have to log into the game.
And I thought I saw a sticky with a script that did that at one time, but i forget where.
lch
June 13th, 2008, 11:58 AM
I think that you can find one in my sig.
Gandalf Parker
June 14th, 2008, 12:04 AM
The simplest thing is to run the game with
--scoredump Create a score file after each turn(scores.html)
Then if you also have
--postexec CMD Execute this command after each turn eneration
you can have a script or bat file move the scores.html to the web directory each time the host processes
You can even have it rotate the files there so that you have
scores.html
scores-1.html
scores-2.html
scores-3.html
etc etc etc
Gandalf Parker
June 14th, 2008, 12:11 AM
Here is an example
http://game.dom3minions.com/games/mid_Unlucky/
stats file is another that is good to generate and send to the web dir. Of course you can always make a nice webpage linking to the files since they will always be named the same then overwriting them each day wont cause a problem
vBulletin® v3.8.1, Copyright ©2000-2025, Jelsoft Enterprises Ltd.