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

This Month's Specials

The Star & the Crescent- Save $9.00
winSPWW2- Save $6.00

   







Go Back   .com.unity Forums > Illwinter Game Design > Dominions 3: The Awakening > Scenarios, Maps and Mods

Reply
 
Thread Tools Display Modes
  #1  
Old July 12th, 2008, 05:00 PM

charshep charshep is offline
Private
 
Join Date: Apr 2008
Posts: 43
Thanks: 0
Thanked 0 Times in 0 Posts
charshep is on a distinguished road
Default question about turn files

I'm interested in making a utility that requires the player's current commanders and their magic paths as input. I'd like to read this info from the saved game files but I don't know anything about their layout. Is this possible to do? I'm assuming the files are encrypted since you're required to give a password but I'm hoping there is a way to access this info, whether it requires a password or not.

I'm not sure if it matters but I'm on Linux, although ideally I'd like my utility to run on all platforms.
Reply With Quote
  #2  
Old July 12th, 2008, 06:32 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: question about turn files

There is a utility that reads the .2h files for pretender info. And utilities that read data from the game logs. But Im not sure of any that tries to read the turn data.
__________________
-- DISCLAIMER:
This game is NOT suitable for students, interns, apprentices, or anyone else who is expected to pass tests on a regular basis. Do not think about strategies while operating heavy machinery. Before beginning this game make arrangements for someone to check on you daily. If you find that your game has continued for more than 36 hours straight then you should consult a physician immediately (Do NOT show him the game!)
Reply With Quote
  #3  
Old July 12th, 2008, 06:41 PM

charshep charshep is offline
Private
 
Join Date: Apr 2008
Posts: 43
Thanks: 0
Thanked 0 Times in 0 Posts
charshep is on a distinguished road
Default Re: question about turn files

Quote:
Gandalf Parker said:
There is a utility that reads the .2h files for pretender info. And utilities that read data from the game logs. But Im not sure of any that tries to read the turn data.
Would the info I'm looking for be in the game logs? I'd assume not since I'm guessing they correspond to the "messages" the player receives at the end of every turn and don't include any state info beyond that.

If the .2h file contains the pretender info and the .trn file contains the data for the previous turn (I'm assuming) what does the ftherlnd file contain?
Reply With Quote
  #4  
Old July 12th, 2008, 07:32 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: question about turn files

.trn is "turn" file (host to player)
.2h is "to host" (player to host)
ftherlnd is "fatherland" and mostly holds the game data such as the map info, ai, independents, etc

The game log is a debug log and contains much of the games thinking when it processes the turn. It does have commander info and might have magic paths.
__________________
-- DISCLAIMER:
This game is NOT suitable for students, interns, apprentices, or anyone else who is expected to pass tests on a regular basis. Do not think about strategies while operating heavy machinery. Before beginning this game make arrangements for someone to check on you daily. If you find that your game has continued for more than 36 hours straight then you should consult a physician immediately (Do NOT show him the game!)
Reply With Quote
  #5  
Old July 12th, 2008, 08:37 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 Re: question about turn files

Quote:
charshep said:
I'm interested in making a utility that requires the player's current commanders and their magic paths as input. I'd like to read this info from the saved game files but I don't know anything about their layout. Is this possible to do?
Well, it's theoretically possible. But you probably wouldn't want to invest the time that it takes to reverse-engineer the file structure. The catgod utility to display Pretender files has been created this way, but those files are relatively small and easily generated and checked against expected data. What you want to do is on a whole other scale.
__________________
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
Reply

Bookmarks


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 06:51 AM.


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