|
|
|
|
January 12th, 2007, 09:29 PM
|
First Lieutenant
|
|
Join Date: Dec 2003
Location: Calgary, Canada
Posts: 762
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
How to enable auto-save.
Dom3 always auto-saves the current turn (it consists of .trn and .2h files and fthrelnd file in savedgames/gamename directory). However, if nothing else is done those files will be overwritten at the next turn. To provide multiple-save capabilites (and not only that) Dom3 has preexec and postexec hooks (preexec is called before it processes the turn and postexec is called after it has processed the turn). There're multiple scripts and programs to manage save archive that have been posted over the time. I'll attach the one I'm using myself (it is somewhat sophisticated because I wanted to make sure MP I was hosting will be properly backed up). To enable it on Windows, one needs to add '--postexec domsave.bat' to Dom3 shortcut. Linux crowd surely doesn't need to be told obvious :>
To reload, choose the saved games from the archive (they're timestamped) and unzip it. This is a manual step.
Why I'm using zip to archive save games - it's more compact, besides Windows don't like large amount of small files. I also find Wiz interface more convenient [than explorer] for reloading.
|
January 13th, 2007, 04:12 AM
|
|
General
|
|
Join Date: Oct 2006
Posts: 3,445
Thanks: 85
Thanked 79 Times in 51 Posts
|
|
Re: How to enable auto-save.
There, see? Now everyone can get back to their lives...and thank you Alexti for making it so I couldn't understand it.
__________________
You've sailed off the edge of the map--here there be badgers!
|
January 13th, 2007, 05:30 AM
|
|
Major General
|
|
Join Date: Nov 2000
Location: 500km from Ulm
Posts: 2,279
Thanks: 9
Thanked 18 Times in 12 Posts
|
|
Re: How to enable auto-save.
alextis, this is great - but you forgot to mention that Windoze users will have to get "Gawk for Windows" first ...
Gawk Main Page
And instead of using the command "zip", which will normally not work in Windoze either, you may replace zip by the command line version of 7-zip (which is available for both UNIX and Win).
__________________
As for AI the most effective work around to this problem so far is to simply use an American instead, they tend to put up a bit more of a fight than your average Artificial Idiot.
... James McGuigan on rec.games.computer.stars somewhen back in 1998 ...
|
January 13th, 2007, 02:17 PM
|
|
Shrapnel Fanatic
|
|
Join Date: Oct 2003
Location: Vacaville, CA, USA
Posts: 13,736
Thanks: 341
Thanked 479 Times in 326 Posts
|
|
Re: How to enable auto-save.
I like UnxUtils. A little more than gawk but not as intrusive as CygWin.
That way all of my linux scripts pretty much work without much change as if they were WinXP commands.
__________________
-- 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!)
|
January 13th, 2007, 02:53 PM
|
First Lieutenant
|
|
Join Date: Dec 2003
Location: Calgary, Canada
Posts: 762
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
Re: How to enable auto-save.
Good point, Arralen. I don't remember what exactly comes out of the box with Windows. But I remember that the simplest way to convert it into functioning OS is to install cygwin. Of course, you can pick and install utils one-by-one, but I'm too lazy for that
|
January 15th, 2007, 01:10 PM
|
|
Second Lieutenant
|
|
Join Date: Jul 2004
Posts: 449
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
Re: How to enable auto-save.
Forgive the unix ignorant question (I've used unix as well as cygwin a few years back, but I'm more than a little rusty), but I installed cygwin, added "--postexec domsave.bat" to the Dom3 shortcut and added the 3 files out of the attachment to the dom3 directory. The result is that on turn end Dom3 loses focus, but I see no error msg of any kind. Any thoughts?
Or, if it makes life easier, anyone care to point me at a more windows friendly save utility?
Thx,
Terrel
|
January 15th, 2007, 05:24 PM
|
|
Shrapnel Fanatic
|
|
Join Date: Oct 2003
Location: Vacaville, CA, USA
Posts: 13,736
Thanks: 341
Thanked 479 Times in 326 Posts
|
|
Re: How to enable auto-save.
The best answers depend on what windows you are using so for the following, Im considering it to be Windows XP.
The easiest windows friendly save is
open dominions3/savedgames
Ctrl-A
Ctrl-C
Ctrl-V
You can create a shortcut to that directory so that you have an icon to click on to get there.
----------------------------------------
The next easiest might be to make a save.bat in the dominions3 directory that has this line
xcopy /yes savedgames oldsaves /i
that will also copy all of the games to a backup
--------------------------------------------
Of course adding --preexec save.bat to your Dom3 icon will tell Dom3 to do the save thing every time it hosts any game.
__________________
-- 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!)
|
January 15th, 2007, 05:32 PM
|
|
Shrapnel Fanatic
|
|
Join Date: Oct 2003
Location: Vacaville, CA, USA
Posts: 13,736
Thanks: 341
Thanked 479 Times in 326 Posts
|
|
Re: How to enable auto-save.
Hmmm I dont usually do this but try this.
See if the file I attached to this message works on your machine. Its for Windows XP, default path of dominions 3 (C:\program files\dominions3), and it uses an icon that I think is standard to WinXP. Put the file on your desktop or in your dom3 directory. Wherever you want.
Arrggghh I cant believe that I had to zip it to get it to attach. Its just a shortcut. Just one little desktop icon. It has no programs in it at all.
Edited: added a copyable link so people can pass the word.
http://www.dom3minions.com/docs/SavingSavedGames.zip
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!)
|
January 15th, 2007, 10:04 PM
|
First Lieutenant
|
|
Join Date: Dec 2003
Location: Calgary, Canada
Posts: 762
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
Re: How to enable auto-save.
Quote:
Terrel said:
Forgive the unix ignorant question (I've used unix as well as cygwin a few years back, but I'm more than a little rusty), but I installed cygwin, added "--postexec domsave.bat" to the Dom3 shortcut and added the 3 files out of the attachment to the dom3 directory. The result is that on turn end Dom3 loses focus, but I see no error msg of any kind. Any thoughts?
|
Try to run domsave.bat from outside of the game, from dominions directory (from command prompt). You should get some sensible message explaining the problem. One likely reason is that cygwin binaries are not in the path, so OS can't find them.
|
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
|
|
|
|
|