.com.unity Forums

.com.unity Forums (http://forum.shrapnelgames.com/index.php)
-   Dominions 3: The Awakening (http://forum.shrapnelgames.com/forumdisplay.php?f=138)
-   -   VP in every prov? (http://forum.shrapnelgames.com/showthread.php?t=48210)

Gandalf Parker January 17th, 2012 11:44 PM

Re: VP in every prov?
 
Like i said its been a long time since I messed with VPs. I dont remember.
Its all guesswork at this point from me

Kobal2 January 18th, 2012 05:41 AM

Re: VP in every prov?
 
If I may suggest something possibly silly, wouldn't it be simpler to code a small app that would look through the server's turn output, tally the province count of each player turn by turn and add those to a permanent counter outside of the game ?
Even easier to do if the game is to be hosted on Llamaserver, where the app could just process the game's HTML page.

elmokki January 18th, 2012 08:15 AM

Re: VP in every prov?
 
Quote:

Originally Posted by Kobal2 (Post 792835)
If I may suggest something possibly silly, wouldn't it be simpler to code a small app that would look through the server's turn output, tally the province count of each player turn by turn and add those to a permanent counter outside of the game ?
Even easier to do if the game is to be hosted on Llamaserver, where the app could just process the game's HTML page.

Is there public information of the structure of turn files? Being able to de-engineer them would pose a major cheating opportunity unless it'd be just for graphs (provided they are enabled) and basic information.

Gandalf Parker January 18th, 2012 10:54 AM

Re: VP in every prov?
 
Actually the games html file is available on any server, or even on solo games.
Starting Dom3 with the switches --statfile and --scoredump creates the output files that the servers use for their info. Only the Matrix server provides specialized info not available from game output.

On my server I find that doing
html2text scores.html
is helpful. It converts the html page to just a text file. Then its easier to parse out the info wanted.

Gandalf Parker January 18th, 2012 11:01 AM

Re: VP in every prov?
 
If the reason for having the game keep score on VPs is for declaring the winner, you could have the --preexec file check before, or the --postexec file check after, each hosting to see if someone has reached the goal. Then they can shut the game down announcing to you the winner by email or text message to phone

Kobal2 January 18th, 2012 11:17 AM

Re: VP in every prov?
 
Quote:

Originally Posted by Gandalf Parker (Post 792850)
Actually the games html file is available on any server, or even on solo games.
Starting Dom3 with the switches --statfile and --scoredump creates the output files that the servers use for their info. Only the Matrix server provides specialized info not available from game output.

On my server I find that doing
html2text scores.html
is helpful. It converts the html page to just a text file. Then its easier to parse out the info wanted.

Hah, and here I thought it would have been the other way round: that you could get the server to belch out unparsed txt data via this kind of postfix switches, which llamabeast had artfully turned into readable HTML :o

My proposed scheme becomes even more feasible then.


All times are GMT -4. The time now is 03:23 PM.

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