|
|
|
|
|
January 17th, 2012, 11:44 PM
|
|
Shrapnel Fanatic
|
|
Join Date: Oct 2003
Location: Vacaville, CA, USA
Posts: 13,736
Thanks: 341
Thanked 479 Times in 326 Posts
|
|
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
|
January 18th, 2012, 05:41 AM
|
Sergeant
|
|
Join Date: Apr 2004
Posts: 285
Thanks: 3
Thanked 19 Times in 13 Posts
|
|
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.
__________________
Anything wrong ?
Blame it on me - I'm the French.
|
January 18th, 2012, 08:15 AM
|
Second Lieutenant
|
|
Join Date: Aug 2008
Posts: 408
Thanks: 11
Thanked 209 Times in 57 Posts
|
|
Re: VP in every prov?
Quote:
Originally Posted by Kobal2
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.
|
January 18th, 2012, 10:54 AM
|
|
Shrapnel Fanatic
|
|
Join Date: Oct 2003
Location: Vacaville, CA, USA
Posts: 13,736
Thanks: 341
Thanked 479 Times in 326 Posts
|
|
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.
|
January 18th, 2012, 11:01 AM
|
|
Shrapnel Fanatic
|
|
Join Date: Oct 2003
Location: Vacaville, CA, USA
Posts: 13,736
Thanks: 341
Thanked 479 Times in 326 Posts
|
|
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
|
January 18th, 2012, 11:17 AM
|
Sergeant
|
|
Join Date: Apr 2004
Posts: 285
Thanks: 3
Thanked 19 Times in 13 Posts
|
|
Re: VP in every prov?
Quote:
Originally Posted by Gandalf Parker
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
My proposed scheme becomes even more feasible then.
__________________
Anything wrong ?
Blame it on me - I'm the French.
|
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
|
|
|
|
|