.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 2: The Ascension Wars

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #11  
Old January 11th, 2004, 04:48 AM

Moebius Moebius is offline
Private
 
Join Date: Jan 2004
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Moebius is on a distinguished road
Default Re: auto-save feature ? (within dom2 or external program)

I have my own save game method where I don't need JDK. I use DOS batch files. (For those of you using some Version of Microsoft Windows)

What this basically does for me is either save or restore a game based on clicking on an icon. Nothing more too it.

For those of you unfamiliar in batch files, do the following:

1) Right-click on your desktop and choose New/text document. It will be named "New Text Document.text". Leave the name alone for now

2) Open up the document and type in the following line:

copy c:\(dom2 filepath)\(save game folder)\*.* c:\(dom2 filepath)\(save game folder)\Backup.

For example, my Dominions2 is located on C:\dominions2 and my save game is called Genesis, so my line would be "copy c:\dominions2\Genesis\*.* c:\dominions2\Genesis\Backup"

3) Manually create the Backup folder under the save game folder.

4) Rename the shortcut to something like "Dom2 Backup.bat". Ensure the extension is .bat.

5) Now whenever I double-click on this icon, all my save game files are copied to a backup folder.
To restore? Same procedure, create a "Dom2 backup.bat" as above but switch the paths around, so in my case it would be, "copy c:\dominions2\Genesis\Backup\*.* c:\dominions2\Genesis"

To make things even easier, I can create shortcuts and place them on my Quick Launch bar. So now when I want to create a backup of my game or restore it, it only takes my clicking an icon either on my desktop or my Quick Launch on my task bar.

Notes: I keep all my SP games with the same name, so that I don't have to edit the batch files with the new save game name

I also found out that if you save the game in this manner after you hit the "End Turn" but before you hit "Host", the save game will include
all you have done to the turn up to that point; otherwise it reverts back to the beginning of the turn.

Moebius
Reply With Quote
 

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 02:36 AM.


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