|
|
|
|
 |

July 19th, 2008, 01:48 AM
|
|
Corporal
|
|
Join Date: Mar 2003
Location: Australia
Posts: 109
Thanks: 2
Thanked 20 Times in 11 Posts
|
|
Dom3Bak Source Files
I Hijacked this post to place the source files for Dom3Bak if anyone would prefer to have the original Python code.
Please feel free to tweak it etc.
Updated 1 August 2008. Source code for version 0.90
-------------ORIGINAL POST FOLLOWS------------------------
My script doesn't allow you save manually if that is what you mean. If the script is running the backup process is completely automatic. As you play each turn it saves the start of each turns information. So you can wind back to any turn in the game - but only to the start of the turn.
For example, if you start a turn and then spend a lot of time scripting your troops etc. All that will be lost if you use the backup to start the turn again. Anyhow, I'll keep on mucking around with it and get it a bit cleaner.
__________________
Want to auto back-up each turn?...Dom3Bak
|
|
The Following 3 Users Say Thank You to das123 For This Useful Post:
|
|

July 19th, 2008, 11:14 AM
|
|
National Security Advisor
|
|
Join Date: Nov 2006
Location: Oxford, UK
Posts: 5,921
Thanks: 194
Thanked 855 Times in 291 Posts
|
|
Re: Automatic Turn Backup
In case you didn't know, you can find what turn the game's on by running "dom3 --verify GameName" and then looking at the ftherlnd.chk file which gets created in the game's folder.
|

July 19th, 2008, 12:43 PM
|
 |
Shrapnel Fanatic
|
|
Join Date: Oct 2003
Location: Vacaville, CA, USA
Posts: 13,736
Thanks: 341
Thanked 479 Times in 326 Posts
|
|
Re: Automatic Turn Backup
There is a desktop shortcut for windows that does it manually if you wanted manually.
http://www.dom3minions.com/utilities.htm
__________________
-- 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!)
Last edited by Gandalf Parker; December 17th, 2008 at 11:35 AM..
|

July 19th, 2008, 04:50 PM
|
|
Corporal
|
|
Join Date: Mar 2003
Location: Australia
Posts: 109
Thanks: 2
Thanked 20 Times in 11 Posts
|
|
Re: Automatic Turn Backup
Thanks Llamabeast
I had been looking at the files with a hex editor and noticed that the 13th and 14th byte pair also represent the turn but it was a pain trying to use it. Eventually I found the --verify line and have currently broken my version in my attempt to read the .chk version. Ahh, the joys of a new language when you have no idea what you're doing.
I was going to look at it again today to try and see where it is failing.
__________________
Want to auto back-up each turn?...Dom3Bak
|

July 19th, 2008, 08:34 PM
|
|
Corporal
|
|
Join Date: Mar 2003
Location: Australia
Posts: 109
Thanks: 2
Thanked 20 Times in 11 Posts
|
|
Re: Automatic Turn Backup
I've attached two sets of files. In my original post is an installer which intalls the script along with the required Python modules. This is the easiest way to install the backup. The hardest part of this method is navigating to C:\Program Files\dominions3\Dom3Bak and then double clicking Dom3Bak.exe.
In my second post are the source files. They consist of the Python script, a config file, and a read me file.
It works for me but I'm making no promises. Please let me know how you go with it and if anyone makes any changes or has suggestions, please share them.
__________________
Want to auto back-up each turn?...Dom3Bak
|

August 1st, 2008, 05:48 AM
|
|
Corporal
|
|
Join Date: Mar 2003
Location: Australia
Posts: 109
Thanks: 2
Thanked 20 Times in 11 Posts
|
|
Re: Automatic Turn Backup
MAJOR UPDATE!!!
I've updated the attachments and description in the first post to the latest version (version 0.90). This is very easy to install and to use (see the screen shot). It is a vast, vast improvement on the last version so please replace if you downloaded the last one.
Please give me feedback so I can improve future versions.
Hope you like it. 
__________________
Want to auto back-up each turn?...Dom3Bak
|
| Thread Tools |
|
|
| Display Modes |
Hybrid 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
|
|
|
|
|