.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

Reply
 
Thread Tools Display Modes
  #11  
Old January 17th, 2012, 11:44 PM
Gandalf Parker's Avatar

Gandalf Parker Gandalf Parker is offline
Shrapnel Fanatic
 
Join Date: Oct 2003
Location: Vacaville, CA, USA
Posts: 13,736
Thanks: 341
Thanked 479 Times in 326 Posts
Gandalf Parker is on a distinguished road
Default 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
Reply With Quote
  #12  
Old January 18th, 2012, 05:41 AM

Kobal2 Kobal2 is offline
Sergeant
 
Join Date: Apr 2004
Posts: 285
Thanks: 3
Thanked 19 Times in 13 Posts
Kobal2 is on a distinguished road
Default 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.
Reply With Quote
  #13  
Old January 18th, 2012, 08:15 AM

elmokki elmokki is offline
Second Lieutenant
 
Join Date: Aug 2008
Posts: 408
Thanks: 11
Thanked 209 Times in 57 Posts
elmokki is on a distinguished road
Default Re: VP in every prov?

Quote:
Originally Posted by Kobal2 View Post
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.
__________________
UnitGen - randomly generated nations with randomly generated sprites
http://forum.shrapnelgames.com/showthread.php?t=48341
Reply With Quote
  #14  
Old January 18th, 2012, 10:54 AM
Gandalf Parker's Avatar

Gandalf Parker Gandalf Parker is offline
Shrapnel Fanatic
 
Join Date: Oct 2003
Location: Vacaville, CA, USA
Posts: 13,736
Thanks: 341
Thanked 479 Times in 326 Posts
Gandalf Parker is on a distinguished road
Default 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.
Reply With Quote
  #15  
Old January 18th, 2012, 11:01 AM
Gandalf Parker's Avatar

Gandalf Parker Gandalf Parker is offline
Shrapnel Fanatic
 
Join Date: Oct 2003
Location: Vacaville, CA, USA
Posts: 13,736
Thanks: 341
Thanked 479 Times in 326 Posts
Gandalf Parker is on a distinguished road
Default 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
Reply With Quote
  #16  
Old January 18th, 2012, 11:17 AM

Kobal2 Kobal2 is offline
Sergeant
 
Join Date: Apr 2004
Posts: 285
Thanks: 3
Thanked 19 Times in 13 Posts
Kobal2 is on a distinguished road
Default Re: VP in every prov?

Quote:
Originally Posted by Gandalf Parker View Post
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.
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

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 03:37 AM.


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