www.ClassicTW.com
https://mail.black-squirrel.com/

Auto Save Game
https://mail.black-squirrel.com/viewtopic.php?f=1&t=11058
Page 1 of 1

Author:  Hawkeye [ Tue Jul 16, 2002 5:34 pm ]
Post subject: 

Could someone tell me how to setup the "Task Scheduler" to auto-
save the games?
Thanks!


Hawkeye
Galactic Struggles
Http://Home.Cfl.RR.Com/TW2002

Author:  Hawkeye [ Wed Jul 17, 2002 1:19 pm ]
Post subject: 

Anyone? Anyone?
Bueller?
Bueller?
I've heard that you could get the game to autosave itself for you,
I hate doing it manually!!!
Share the knowledge please!!!
:)
Thanks


Hawkeye
Galactic Struggles
Http://Home.Cfl.RR.Com/TW2002

Author:  Rand [ Wed Jul 17, 2002 1:52 pm ]
Post subject: 

I will try to figure out a way tonight.

If you just want a one day backup you can use an XCOPY command to copy all the directories to a backup directory.

Im thinking that I will want a daily backup. So maybe a batch file that can make a backup directory based on the date would work. It has been awhile but I will try to come up with something.



Rand Al Thor, The Dragon Reborn
Let the Dragon ride the winds of time...

Author:  Hawkeye [ Wed Jul 17, 2002 1:58 pm ]
Post subject: 

I am not worthy....
Thank you oh great one....


Hawkeye
Galactic Struggles
Http://Home.Cfl.RR.Com/TW2002

Author:  Col Sanders [ Wed Jul 17, 2002 4:49 pm ]
Post subject: 

Correct me if I am wrong, if you do this while the TWGS is active, won't you have issues copying open files? I do want to know as I would love to do more regular backups of the game files.

"Jedi do not concern me" -The Sith

Author:  Hawkeye [ Wed Jul 17, 2002 6:54 pm ]
Post subject: 

Supposedly you can get the server to delay while this operation takes place. Thats why I'm here looking for answers :)


Hawkeye
Galactic Struggles
Http://Home.Cfl.RR.Com/TW2002

Author:  Rand [ Wed Jul 17, 2002 9:56 pm ]
Post subject: 

Ok. I think I have a solution. I have only tested this using Windows XP, it should also work with Windows NT. For Windows 9x the batch file would have to be different as the "FOR" command isn't available.

Step One,
Create a folder to backup your games to. I created a folder in the TWGS folder named BACKUP

Step Two,
Create the following Batch file. (I used notepad) and save it. I saved mine in the TWGS folder as TWGSBKUP.BAT


-------------
BATCH FILE
-------------
for /f "delims=" %%a in ('DATE /T') do set Date=%%a
for /f "tokens=2-4 delims=/ " %%a in ('DATE /T') do set Date=%%c%%b%%a
rem
rem Change the path below to where your BACKUP Directory is
rem
cd "C:\Program Files\EIS\TWGS\BACKUP"
md %Date%
cd %Date%
rem
rem Change to path below to where your game directory is
rem
xcopy "C:\Program Files\EIS\TWGS\GAME\*.*" /E


Step Three, Add to scheduler in TWGS

1) Stop server if already running
2) From Menu Select Server|Configure
3) Click on Scheduler TAB
4) Type in name where it says (I used Backup)
5) Click on ADD
6) Click on BROWSE and select the batch file you created (TWGSBKUP.BAT)
7) Verify mode is set to daily and select time of backup
8) Check Box to Disable Server and set delay to notify players
9) Type message in box under disable server (Optional)
I used (Server is shutting down for daily backup)
10) Check Box to make Active (It is above the BROWSE button)
11) Click on OK and Start the server back up.

Step Four, TEST and your are done.

I recommend backing everything up the 1st time you try this and testing it while you can watch. Also, be aware of how much disk space the backups take up. If you do not have Gigabytes of free drive space the backups could fill up your drive while your aren't watching. :-)

Let me know if you have any questions or need help.

Have Fun,








Rand Al Thor, The Dragon Reborn
Let the Dragon ride the winds of time...

Edited by - Rand on July 17 2002 7:57:57 PM

Author:  Col Sanders [ Wed Jul 17, 2002 11:29 pm ]
Post subject: 

When did they do that??? I asked quite a while ago, about a year ago, and there was no working scheduler! Great news! I will check it out in the next few days.

"Jedi do not concern me" -The Sith

Author:  Rand [ Thu Jul 18, 2002 12:33 am ]
Post subject: 

I don't know when they added the scheduler but in ver .55 it works.

Rand Al Thor, The Dragon Reborn
Let the Dragon ride the winds of time...

Author:  Vid Kid [ Thu Jul 18, 2002 3:50 am ]
Post subject: 

quote:
When did they do that??? I asked quite a while ago, about a year ago, and there was no working scheduler! Great news! I will check it out in the next few days.

"Jedi do not concern me" -The Sith

It was added back around v34-38 , but no mention on how to use it
And no way yet to use it to turn photons on in day 20 ... hint hint

[url="http://geocities.com/videotees/twars.html"]Vid's World on Guam[/url]
telnet://vidsworld.no-ip.org:2002

Author:  The WABBIT [ Thu Jul 18, 2002 10:44 pm ]
Post subject: 

quote:
quote:
When did they do that??? I asked quite a while ago, about a year ago, and there was no working scheduler! Great news! I will check it out in the next few days.

"Jedi do not concern me" -The Sith

It was added back around v34-38 , but no mention on how to use it
And no way yet to use it to turn photons on in day 20 ... hint hint

[url="http://geocities.com/videotees/twars.html"]Vid's World on Guam[/url]

telnet://vidsworld.no-ip.org:2002





Why not write a script for ZOC. And have the scheduler load up ZOC with the script running. Have the script do an automatic login to admin. Once it is in edit the specific game to turn on photons. That would be the best thing to do.

P.S. I am not sure, but I think it might be possible to do it with TWX. Will have to give it a try.


The WABBIT
ICQ# 12988803
http://www.shadowworldgame.com

Page 1 of 1 All times are UTC - 5 hours
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
http://www.phpbb.com/