.com.unity Forums

.com.unity Forums (http://forum.shrapnelgames.com/index.php)
-   Scenarios, Maps and Mods (http://forum.shrapnelgames.com/forumdisplay.php?f=146)
-   -   Script to create a display page for mp gamae? (http://forum.shrapnelgames.com/showthread.php?t=39266)

Xietor June 13th, 2008 11:24 AM

Script to create a display page for mp gamae?
 
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

Re: Script to create a display page for mp gamae?
 
I think that you can find one in my sig.

Gandalf Parker June 14th, 2008 12:04 AM

Re: Script to create a display page for mp gamae?
 
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

Re: Script to create a display page for mp gamae?
 
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


All times are GMT -4. The time now is 09:31 AM.

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