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

This Month's Specials

Air Assault Task Force- Save $8.00
winSPWW2- Save $5.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 19th, 2008, 01:48 AM

das123 das123 is offline
Corporal
 
Join Date: Mar 2003
Location: Australia
Posts: 109
Thanks: 2
Thanked 20 Times in 11 Posts
das123 is on a distinguished road
Default 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.
Attached Files
File Type: zip 626047-Dom3Bak_Source.zip (8.2 KB, 447 views)
__________________
Want to auto back-up each turn?...Dom3Bak
Reply With Quote
The Following 3 Users Say Thank You to das123 For This Useful Post:
  #2  
Old July 19th, 2008, 11:14 AM

llamabeast llamabeast is offline
National Security Advisor
 
Join Date: Nov 2006
Location: Oxford, UK
Posts: 5,921
Thanks: 194
Thanked 855 Times in 291 Posts
llamabeast will become famous soon enoughllamabeast will become famous soon enough
Default 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.
__________________
www.llamaserver.net
LlamaServer FAQ
My mod nations: Tomb Kings and Vampire Counts
A compilation of high quality mod nations: Expanded Nations Packs
Reply With Quote
  #3  
Old July 19th, 2008, 12:43 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: 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..
Reply With Quote
  #4  
Old July 19th, 2008, 04:50 PM

das123 das123 is offline
Corporal
 
Join Date: Mar 2003
Location: Australia
Posts: 109
Thanks: 2
Thanked 20 Times in 11 Posts
das123 is on a distinguished road
Default 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
Reply With Quote
  #5  
Old July 19th, 2008, 08:34 PM

das123 das123 is offline
Corporal
 
Join Date: Mar 2003
Location: Australia
Posts: 109
Thanks: 2
Thanked 20 Times in 11 Posts
das123 is on a distinguished road
Default 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
Reply With Quote
  #6  
Old August 1st, 2008, 05:48 AM

das123 das123 is offline
Corporal
 
Join Date: Mar 2003
Location: Australia
Posts: 109
Thanks: 2
Thanked 20 Times in 11 Posts
das123 is on a distinguished road
Default 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
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 05:30 AM.


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