.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

Reply
 
Thread Tools Display Modes
  #1  
Old November 9th, 2004, 12:35 AM
Cainehill's Avatar

Cainehill Cainehill is offline
Lieutenant General
 
Join Date: Mar 2004
Location: Albuquerque New Mexico
Posts: 2,997
Thanks: 0
Thanked 0 Times in 0 Posts
Cainehill is on a distinguished road
Default Request for auto backup of turn files


Seems to me that it would be very nice, and _very_ easy to implement, if the previous turn's turn file was backed up each turn.

The reason I say this is because when you connect with the server, the old turn file is wiped out, so you can't go back and verify things, especially if a commander / unit got wiped out.

This makes it difficult to verify bugs or to verify mistakes: if a battle goes catastrophically astray you can't look back to see what the command script was for dead commanders / squads.

For instance, a Pythium player recently reported 2 arch theurgs gatewaying to a fort that was being besieged, but the armies didn't arrive, the theurgs went into the fort all by their lonesome and were exterminated.

Maybe the armies were on a different couple of theurgs. Maybe they were on the ones he gatewayed, and actually did go poof. As things stand, it's impossible to really tell, unless a player was religiously backing up each turn file manually. This tends not to happen, because 99 point something percent of the time, there's no issues, so no one goes through the hassle.

But if a .brn (backup turn file) was deleted, and the current .trn file was renamed to .brn before the new turn file was sent by the server, then people could examine things that seemed weird and either determine why they happened, or determine that they might have a bug worth reporting.

(Technically, you'd want to check the current turn file against the previous turn file so files got deleted / renamed only when a new turn file was downloaded / generated, as opposed to each time a player connected to the server.)

I think this would go a long way toward helping players understand why things happened the way they did, and also sometimes help confirm a glitch or bug.
__________________
Wormwood and wine, and the bitter taste of ashes.
Reply With Quote
  #2  
Old November 9th, 2004, 01:12 AM

alexti alexti is offline
First Lieutenant
 
Join Date: Dec 2003
Location: Calgary, Canada
Posts: 762
Thanks: 0
Thanked 0 Times in 0 Posts
alexti is on a distinguished road
Default Re: Request for auto backup of turn files

I do these backups in a very simple fashion: by running a script on Dom2 start (and on hosting too - for SP).

Here's the script: save_script.awk
Code:

BEGIN {
timestamp_file = "Last-total-save-timestamp.txt";
t = systime();
stamp = strftime("%Y%m%d-%H%M%S",t);
stamp2 = strftime("%Y-%m-%d",t);
saveAll = 1;
if ((getline Last_stamp < timestamp_file) > 0)
{
if (stamp2 == Last_stamp)
saveAll = 0;
}
close(timestamp_file);

if (saveAll)
{
cmd = sprintf("zip -r save-all-%s * [email protected]",stamp);
print stamp2 > timestamp_file;
}
else
cmd = sprintf("zip -r -t %s save-%s * [email protected]",Last_stamp,stamp);
system(cmd);
}



You'd need to insert
gawk -f save_script.awk into your Dom2 startup

And you'll need save.lst:
Code:

*/ftherlnd
*/*.2h
*/*.trn


That's the only Dom2-specific file.
Reply With Quote
  #3  
Old November 9th, 2004, 01:21 AM
Cainehill's Avatar

Cainehill Cainehill is offline
Lieutenant General
 
Join Date: Mar 2004
Location: Albuquerque New Mexico
Posts: 2,997
Thanks: 0
Thanked 0 Times in 0 Posts
Cainehill is on a distinguished road
Default Re: Request for auto backup of turn files

Yep, and I could do any variety of shell scripts in linux or unix (as an exercise in pain, it could even be done with sed instead of awk), or even a batch file to manage it in Windoze for my gaming box. The problem is that most players aren't going to go to this effort, and with Windoze I think you'd actually need a separate batch file for each game.

And thus, imo, it would be well worthwhile for it to be embedded in the game, so that all players wound up having access to verifying the previous turn, even if they're the types that have to upload their files for other more experienced players to figure things out (as often happens).
__________________
Wormwood and wine, and the bitter taste of ashes.
Reply With Quote
  #4  
Old November 9th, 2004, 02:02 AM

alexti alexti is offline
First Lieutenant
 
Join Date: Dec 2003
Location: Calgary, Canada
Posts: 762
Thanks: 0
Thanked 0 Times in 0 Posts
alexti is on a distinguished road
Default Re: Request for auto backup of turn files

Actually, I'm using this one in Windows. And considering the Dom2 crowd I won't be surprised if the most of the players already use their own scripts to backup turn files

If developers are to implement something about that I think enumerating turns would have more uses (and probably easier to program). For example:
Code:

jotun.1.trn
jotun.1.2h
jotun.2.trn
jotun.2.2h
...

Reply With Quote
  #5  
Old November 9th, 2004, 02:26 AM

Crash Crash is offline
Private
 
Join Date: Dec 2000
Location: Martinez, Ca, USA
Posts: 35
Thanks: 0
Thanked 0 Times in 0 Posts
Crash is on a distinguished road
Default Re: Request for auto backup of turn files

I second this idea.

An autosave would keep me from having to restart the game just because of one turn's worth of bad breaks.

If you guys at Ilwinter can do this without too much trouble, I'd surely appreciate it. I'm not sure if I'm up to learning how to write code and stuff myself.

Thanks in advance.
Reply With Quote
  #6  
Old November 9th, 2004, 04:10 AM

RedRover RedRover is offline
Corporal
 
Join Date: Feb 2004
Posts: 165
Thanks: 0
Thanked 0 Times in 0 Posts
RedRover is on a distinguished road
Default Re: Request for auto backup of turn files

Definitely agree with Cainehill and Crash. IMO this is a really important feature for Dom3, and I'd like it in a Dom2 patch as well.
Reply With Quote
  #7  
Old November 9th, 2004, 05:33 AM

Huzurdaddi Huzurdaddi is offline
First Lieutenant
 
Join Date: Mar 2004
Location: Seattle
Posts: 771
Thanks: 0
Thanked 3 Times in 2 Posts
Huzurdaddi is on a distinguished road
Default Re: Request for auto backup of turn files

I totally agree this would be a great addition to the game.

A number of posters submitted utilities to fill the gap until it is implemented in game the Last time this was requested.

http://www.shrapnelcommunity.com/thr...=&fpart=1&vc=1
Reply With Quote
  #8  
Old March 14th, 2007, 07:37 PM

MaxWilson MaxWilson is offline
Major General
 
Join Date: Mar 2007
Location: Seattle
Posts: 2,497
Thanks: 165
Thanked 105 Times in 73 Posts
MaxWilson is on a distinguished road
Default Re: Request for auto backup of turn files

I agree that a backup would be great for debugging and information purposes (how much was that province I just lost worth?), but I think Dom3's no-saved-games strategy is important to its feel and I would understand if the developers were reluctant to back up ftherland, too, or otherwise enable easy "replays" because of a bad turn. I'm still learning the game and I'll occasionally back up my saved game files in order to either quickly test out a spell that I read about in the manual (which means playing several turns carelessly, mostly just hitting End Turn) or to experiment with different ways to deal with a bad position (effectively this becomes a scenario of its own--"General Mead has been sacked for incompetence and you are the new commander. What do you do?" Reminds me of John Ringo's military fiction, which sometimes starts with a huge military debacle to make the situation interesting for the hero). These are unusual scenarios, though, and I like the feel the no-saving gives to the game itself.

So far I play exclusively SP.

-Max Wilson
__________________
Bauchelain - "Qwik Ben iz uzin wallhax! HAX!"
Quick Ben - "lol pwned"

["Memories of Ice", by Steven Erikson. Retranslated into l33t.]
Reply With Quote
  #9  
Old March 15th, 2007, 10:50 AM
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: Request for auto backup of turn files

There are backups. In a standard linux type of way.
The entire game is saved to a file every time you process a turn. Just setup how you want it saved.

There is also a switch called --preexec which you can use to save your your turn file to a backup just before each time it hosts. Some of the utilities written by players that was mentioned above make that simpler

If it was put into the game then it would have to include alot of file cleanup functions in the menu also. And it would duplicate a nice general feature the game already has.
__________________
-- 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
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 01:31 AM.


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