.com.unity Forums
  The Official e-Store of Shrapnel Games

This Month's Specials

Air Assault Task Force- Save $8.00
Bronze- Save $10.00

   







Go Back   .com.unity Forums > Illwinter Game Design > Dominions 3: The Awakening > Multiplayer and AARs

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #8  
Old April 11th, 2008, 06:33 PM
lch's Avatar

lch lch is offline
General
 
Join Date: Feb 2007
Location: R'lyeh
Posts: 3,861
Thanks: 144
Thanked 403 Times in 176 Posts
lch is on a distinguished road
Default Feedback

Well, yeah, this script was my very first and certainly most rewarding dom3-related programming experience so far. But it just so happens that just now I find the following switch in the Dom3 game help: Code:
--statfile      Create a player info file after each turn (stats.txt)


Was that always in there? That would have made the initial programming a little easier, I think.

Here's the easily parseable contents of one such stats.txt file: Code:
Statistics for game 'Test' turn 45

Arcoscephale is computer controlled
Ermor played this turn
T'ien Ch'i didn't play this turn
C'tis played this turn
Agartha played this turn
Helheim played this turn
Niefelheim didn't play this turn


The script now surpasses the functionality offered by this file. But to think that I could have just used this instead of reading from the file system and interpreting the results... and to think that I found the --scoresdump switch, but not this one... hehe

Maybe I will put this inside to be able to tell AI opponents and so on in a later version. This needs a rehaul, anyway.
__________________
Come to the Dom3 Wiki and help us to build the biggest Dominions-centered knowledge base on the net.
Visit my personal user page there, too!
Pretender file password recovery
Emergency comic relief
Reply With Quote
 

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 11:34 PM.


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