Home | Webstore
Latest News: OOTP Hotfix 21.1.33 - OOTP 21 Available - FHM 6 Available

OOTP Baseball 21 Available Now!

  

Go Back   OOTP Developments Forums > Prior Versions of Our Games > Earlier versions of Out of the Park Baseball > Earlier versions of OOTP: General Discussions

Earlier versions of OOTP: General Discussions General chat about the game...

Reply
 
Thread Tools
Old 06-13-2006, 04:07 PM   #1
minnelli
Minors (Single A)
 
Join Date: Apr 2005
Posts: 82
Thanks: 0
Thanked 3x in 2 posts
OOTPSAVE Utility - Backup Restore Save

OOTPSAVE Utility



This batch job will save/update your league file. It only updates files that have changed since the last save. The best time to use it is after you save your game file. This will allow you to always go back and grab a good copy. I created this because of the save corruptions I kept encountered. Since this synchronizes the files, it will always capture new files and purge files that have been deleted by OOTP.

Required – WinRAR (http://www.rarlab.com/) – Install in default location.

Process:
Step 1 – Open up Windows Explorer to you saved games directory (i.e. c:\program files\ootp baseball 2006\data\saved_games\test123.lg)
Step 2 – Right click folder to create a new text document (right click – new – text document) File named New Text Document.txt will be created
Step 3 – Open the new document (New Text Document.txt) and Paste the following in the file

"c:\program files\winrar\rar" u -as -m1 -r -x*.rar OOTPSAVE.rar
pause

Step 4 – Save as OOTPSAVE.bat
Step 5 – Within Windows Explorer double click OOTPSAVE.bat

The first time this is run on a league it will take a few minutes, but have no fear, subsequent backups/updates will work a lot faster.

Code breakdown:
Rar – is the command line executable for winrar
u is the update switch
-as synchronizes the files
-r allows it to capture all the sub folders
-m1 makes it go faster than other compression formats
-x*.rar stops it from including other rar files in the folder
OOTPSAVE.rar can be anyname you want with a .rar
Pause shows you that it completed – if you remove it the window will disappear when the update is complete.

I’m sure a lot of folks can probably improve this, but I wanted to get something out that was working for me. Post any complaints here…I am not responsible for accidentally rar’ing up your whole drive and screwing something up…Give it a test and let us know what you think.

I look forward to your tweaks…

Kevin Minnelli

..................
Updated on June 26, 2006

Last edited by minnelli; 06-26-2006 at 05:17 PM.
minnelli is offline   Reply With Quote
Old 06-13-2006, 04:50 PM   #2
Raidergoo
Hall Of Famer
 
Raidergoo's Avatar
 
Join Date: Mar 2003
Posts: 8,986
Thanks: 499
Thanked 598x in 307 posts
If you got an itch, scratch?
Raidergoo is offline   Reply With Quote
Old 06-13-2006, 05:30 PM   #3
Eric
All Star Starter
 
Eric's Avatar
 
Join Date: May 2002
Location: Folsom, CA
Posts: 1,220
Thanks: 27
Thanked 31x in 23 posts
Uh, sounds good. How about a link to the program itself.
__________________


Eric is offline   Reply With Quote
Old 06-13-2006, 05:33 PM   #4
Exodor
Major Leagues
 
Exodor's Avatar
 
Join Date: Apr 2005
Location: Portland, OR
Posts: 469
Thanks: 3
Thanked 45x in 21 posts
Quote:
Originally Posted by Eric
Uh, sounds good. How about a link to the program itself.
He did - you create a batch file in notepad that uses winrar to create a .RAR file containing your leagues.

The next time you run the batch file, it updates that .RAR with any files that have changed.

Simple and effective.
Exodor is offline   Reply With Quote
Old 06-13-2006, 07:48 PM   #5
fantom1979
Hall Of Famer
 
fantom1979's Avatar
 
Join Date: Jul 2002
Location: Detroit, MI
Posts: 3,497
Thanks: 45
Thanked 50x in 27 posts
Just ran it myself. Works great. thanks

I think I am going to attach this to a windows scheduler to make it run daily or weekly.

Last edited by fantom1979; 06-13-2006 at 08:45 PM.
fantom1979 is offline   Reply With Quote
Old 06-13-2006, 08:42 PM   #6
Eric
All Star Starter
 
Eric's Avatar
 
Join Date: May 2002
Location: Folsom, CA
Posts: 1,220
Thanks: 27
Thanked 31x in 23 posts
Quote:
Originally Posted by Exodor
He did - you create a batch file in notepad that uses winrar to create a .RAR file containing your leagues.

The next time you run the batch file, it updates that .RAR with any files that have changed.

Simple and effective.
My bad. Didn't read the instructionst that closely. He's using one of the features of RAR.
__________________


Eric is offline   Reply With Quote
Old 06-14-2006, 12:02 AM   #7
minnelli
Minors (Single A)
 
Join Date: Apr 2005
Posts: 82
Thanks: 0
Thanked 3x in 2 posts
My next step is going to have it exclude .rar files, but I haven't had time to look up the switch. My intention is you can always make a copy of the latest ootpsave.rar at the end of a season, rename it and keep it in the same folder (i.e. mlb-01-01-2009.rar)

Glad it has been a help for a couple of you.

Kevin
minnelli is offline   Reply With Quote
Old 06-14-2006, 01:04 AM   #8
minnelli
Minors (Single A)
 
Join Date: Apr 2005
Posts: 82
Thanks: 0
Thanked 3x in 2 posts
Okay - real quick. I need to get to bed.

path=c:\program files\winrar
rar u -as -m1 -r -x*.rar OOTPSAVE.rar
pause

The -m1 makes it faster!!! but the file is a little bigger.
-x*rar will exclude .rar files so you can make copies every once in a while and save them in the same folder.

Later,
Minnelli
minnelli is offline   Reply With Quote
Old 06-14-2006, 01:07 AM   #9
cibl commish
All Star Reserve
 
cibl commish's Avatar
 
Join Date: Jun 2003
Location: Sycamore, IL
Posts: 611
Thanks: 5
Thanked 1x in 1 post
Nice utility.
__________________
Rick
cibl commish is offline   Reply With Quote
Old 06-14-2006, 11:10 AM   #10
Cooker
All Star Reserve
 
Join Date: Jul 2003
Location: Columbus, OH
Posts: 592
Thanks: 0
Thanked 1x in 1 post
Speaking as a computer ignoramus: Is this something easy enough that Markus can just put in the game itself? I have no idea what rar is (I told you I'm an ignoramus), but it sounds like something that SI could simply put into the next patch. I hope so (speaking on behalf of all the rest of us computer illiterates.)
Cooker is offline   Reply With Quote
Old 06-14-2006, 11:23 AM   #11
Giants44
Hall Of Famer
 
Giants44's Avatar
 
Join Date: Dec 2001
Location: San Francisco Bay Area
Posts: 2,319
Thanks: 123
Thanked 316x in 134 posts
Quote:
Originally Posted by Cooker
Speaking as a computer ignoramus: Is this something easy enough that Markus can just put in the game itself? I have no idea what rar is (I told you I'm an ignoramus), but it sounds like something that SI could simply put into the next patch. I hope so (speaking on behalf of all the rest of us computer illiterates.)
unlikely, I am fairly certain RAR terms of service don't allow it to be incorporated into other software.

BTW, if you know what winzip is then you know what RAR is - another product that compresses and uncompresses files.

I do hope that Markus does bring back backup and restore or even better the option to "save as"
__________________
"In a text sim - Immersion is everything"
-Me

"Judge a man not by the color of their skin, but by the content of their character"
-Martin Luther King

"Not everything that counts can be counted, and not everything that can be counted counts."
-Einstein

"The man who views the world at 50 the same as he did at 20 has wasted 30 years of his life."
-Muhammad Ali

"Baseball statistics are like a girl in a bikini. They show a lot, but not everything."
-Toby Harrah
Giants44 is offline   Reply With Quote
Old 06-14-2006, 12:48 PM   #12
minnelli
Minors (Single A)
 
Join Date: Apr 2005
Posts: 82
Thanks: 0
Thanked 3x in 2 posts
Small improvement - all on one line; no path needed

"c:\program files\winrar\rar" u -as -m1 -r -x*.rar OOTPSAVE.rar
pause


I am also looking to see how this can be done with WinZip, but the wzzip command line tool needs to have a purchased version to work without any prompts.

As for SI, I'm sure they could incorporate something simple like this. I will continue to look for faster ways to do the update. It's all those little 1k history files that take the longest time. I think there is a way to not compress the small files, but I'm still researching this.

Let me know if you run into any problems.

Minnelli
minnelli is offline   Reply With Quote
Old 06-16-2006, 02:48 PM   #13
minnelli
Minors (Single A)
 
Join Date: Apr 2005
Posts: 82
Thanks: 0
Thanked 3x in 2 posts
Okay here are some updates, I have some metrics but they are not compiled yet. WinRAR seems to be very quick with no nags. Try it out for yourself. Again, if anyone has any ideas of something better to try let us know.

WinRAR

"c:\program files\winrar\rar" u -as -m1 -r -x*.rar –x*.zip OOTPSAVE.rar
pause

WinZip – you need the wzzip command line utility added

"c:\program files\winzip\wzzip" -es -u -p -r -x*.rar -x*.zip OOTPSAVE.zip *.*
pause


RoboCopy – free from Microsoft in a Windows Resource Kit

"C:\Program Files\Windows Resource Kits\Tools\robocopy" /s /purge c:\ootp baseball 2006\data\saved_games\league1.lg c:\tempootp-league1
minnelli is offline   Reply With Quote
Old 06-18-2006, 02:27 PM   #14
fantom1979
Hall Of Famer
 
fantom1979's Avatar
 
Join Date: Jul 2002
Location: Detroit, MI
Posts: 3,497
Thanks: 45
Thanked 50x in 27 posts
Free bump for you Minnelli, this is a very important utility and I thank you for sharing your wisdom with the group
fantom1979 is offline   Reply With Quote
Old 06-18-2006, 02:57 PM   #15
biggamejrs
Minors (Triple A)
 
biggamejrs's Avatar
 
Join Date: Dec 2001
Location: Greenville, USA
Posts: 212
Thanks: 9
Thanked 3x in 2 posts
what he said
__________________
Go Braves!!
biggamejrs is offline   Reply With Quote
Old 06-19-2006, 03:23 PM   #16
minnelli
Minors (Single A)
 
Join Date: Apr 2005
Posts: 82
Thanks: 0
Thanked 3x in 2 posts
Upon further analysis, I have noticed that WinZip takes forever while the game is still active so WinRAR is doing the job much much better. I usually play for a while, save the game, click on my shortcut to WinRAR the league and then keep playing. Currently it is taking about 30 seconds or so to rar it up. I haven’t done any more testing with RoboCopy but it did work. My main goal has been to create a process which is fast while the game is still active, so the winner to date is, as mentioned before, WinRAR.

Also other notes about performance – Select the OOTP Baseball 2006 folder from Windows Explorer and right click the properties, once you do that select the Advanced button, then uncheck “For fast searching, allow Indexing Service to index this folder”. This has helped my backups go from 2:00 minutes to about 30 seconds. The reasons as I understand it are Windows doesn’t really need to Index our 20000 players and 15000 messages. In fact my hard drive seems much quieter and not working as hard since I made this change.

Hope this new Indexing tip helps out as well.

Kevin Minnelli
minnelli is offline   Reply With Quote
Old 06-22-2006, 06:48 AM   #17
aewin
Major Leagues
 
Join Date: Jan 2006
Location: Perth, Western Australia
Posts: 446
Thanks: 16
Thanked 11x in 11 posts
Any chance of this utility working with a free command/program, eg XCOPY?
aewin is offline   Reply With Quote
Old 06-22-2006, 08:47 AM   #18
mgsports79
Minors (Double A)
 
mgsports79's Avatar
 
Join Date: Jun 2006
Posts: 121
Thanks: 0
Thanked 0x in 0 posts
What this game needs is a option for Save As so if you are trying to do a league like lets say a MLB one with different teams form different years you want to have a copy where you do the changes and one that does the test run of the league because that one allways gets saved have a backup one you would loose all your changes and have start over again! Better yet in test run of your league don't have Auto Save on and ahve a option if you load a Saved Leagiue or exist the game not for it to save beacuse you might not want to save the league!
mgsports79 is offline   Reply With Quote
Old 06-22-2006, 08:50 AM   #19
minnelli
Minors (Single A)
 
Join Date: Apr 2005
Posts: 82
Thanks: 0
Thanked 3x in 2 posts
I started out trying move and than xcopy but that was before I found you could synchronize with the other utilities. The sync feature is what makes it go fast because it only needs to copy the necessary files. I believe xcopy has this function, just do a few googles and I'm sure you can find the correct switches. With winrar and others the beta version will work and I believe you don't need to register. Winzip would stop the bat file once it opened prompting you to hit any key. I would just go download the latest beta of winrar and give it a shot. Trust me this has saved me like 5 times in my solo league and it only takes about 3 minutes to recover the whole league.

Kevin Minnelli
minnelli is offline   Reply With Quote
Old 06-23-2006, 03:18 AM   #20
aewin
Major Leagues
 
Join Date: Jan 2006
Location: Perth, Western Australia
Posts: 446
Thanks: 16
Thanked 11x in 11 posts
Quote:
Originally Posted by minnelli
I started out trying move and than xcopy but that was before I found you could synchronize with the other utilities. The sync feature is what makes it go fast because it only needs to copy the necessary files. I believe xcopy has this function, just do a few googles and I'm sure you can find the correct switches. With winrar and others the beta version will work and I believe you don't need to register. Winzip would stop the bat file once it opened prompting you to hit any key. I would just go download the latest beta of winrar and give it a shot. Trust me this has saved me like 5 times in my solo league and it only takes about 3 minutes to recover the whole league.

Kevin Minnelli
WinRAR: "evaluation copy please register"

I wouldn't have a clue what to do, but if anyone wants to have a go at writing a script for XCOPY, I found this:

http://www.ss64.com/nt/xcopy.html

There is also a freeware version of XXCOPY:

http://www.xxcopy.com/index.htm

Last edited by aewin; 06-23-2006 at 03:26 AM.
aewin is offline   Reply With Quote
Reply

Bookmarks

Thread Tools

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 Off

Forum Jump


All times are GMT -4. The time now is 02:11 AM.

 

Major League and Minor League Baseball trademarks and copyrights are used with permission of Major League Baseball. Visit MLB.com and MiLB.com.

Officially Licensed Product – MLB Players, Inc.

Out of the Park Baseball is a registered trademark of Out of the Park Developments GmbH & Co. KG

Google Play is a trademark of Google Inc.

Apple, iPhone, iPod touch and iPad are trademarks of Apple Inc., registered in the U.S. and other countries.

COPYRIGHT © 2020 OUT OF THE PARK DEVELOPMENTS. ALL RIGHTS RESERVED.

 

Powered by vBulletin® Version 3.8.10
Copyright ©2000 - 2020, vBulletin Solutions, Inc.
Copyright © 2020 Out of the Park Developments