.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

Reply
 
Thread Tools Display Modes
  #1  
Old October 14th, 2006, 05:06 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: Problem Saving Games

Quote:
Campy said:

In the meantime, for those looking for something easier than doing it all manually, here is the batch file I use to keep three backup files:

copy "c:\games\dominions3\savebak\bak2\*.*" "c:\games\dominions3\savebak\bak3\"
copy "c:\games\dominions3\savebak\bak1\*.*" "c:\games\dominions3\savebak\bak2\"
copy "c:\games\dominions3\savedgames\Yomi\*.*" "c:\games\dominions3\savebak\bak1\"

I have this batch file in my Dom3 directory with a quicklink to it. I play in windows and then just have to click on the quicklink to backup to bak1 and simultaneously move the backup to bak2 and bak2 to bak3.
Excellent.
If that batch file is named something like DomSave.bat then you could add
--preexec DomSave.bat
to the icon that runs dom for you. That way it would shell out and run that batch file before each hosting.

Gandalf Parker
__________________
-- 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
  #2  
Old October 14th, 2006, 05:49 PM

thejeff thejeff is offline
General
 
Join Date: Apr 2005
Posts: 3,327
Thanks: 4
Thanked 133 Times in 117 Posts
thejeff is on a distinguished road
Default Re: Problem Saving Games

Is there anyway to make it more generic?

Postexec doesn't pass any arguments does it?

I was really hoping for turn number and game name.

That would allow a much more generic and useful script.
Reply With Quote
  #3  
Old October 14th, 2006, 09:18 PM

Campy Campy is offline
Private
 
Join Date: Nov 2003
Location: USA
Posts: 10
Thanks: 0
Thanked 0 Times in 0 Posts
Campy is on a distinguished road
Default Re: Problem Saving Games

Good idea Gandalf. That way you wouldn't have to do anything to keep saves from the last three turns (or more if you wanted to set up more directories and add additional lines to the batch file). Another idea would be to do that to save the last few turns and then set up a separate directory and a quicklink to another batch file to do a special save to that directory that could be used to capture some point of particular interest.

By the way, I run in windowed mode so I can easily use the quicklink. I would also be interested in thejeff's question about accessing turn # and game name. I had thought about inputting those manually, but besides taking longer, the command I used to use for keyboard input for batch files doesn't seem to work under XP. Anyone know how to do keyboard input to a batch file under XP?
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 03:51 AM.


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