Automatic Sims 3 cache file deletion

View previous topic View next topic Go down

Automatic Sims 3 cache file deletion

Post by Redronn on Sat 10 Nov 2012, 18:00

I thought it was a bit annoying to have to remember to delete the cache files once in a while to speed up the game, so I figured out how to do it automatically with Windows forfiles command.

This works on Windows Vista and 7 by default. XP doesn't have forfiles so you need to download it somewhere first, and put the forfiles.exe file in Windows/system32.

Code:
forfiles /p "C:\Users\Username\Documents\Electronic Arts\The Sims 3" /m *.package /d -3 /c "cmd /c del /q @path"
forfiles /p "C:\Users\Username\Documents\Electronic Arts\The Sims 3\WorldCaches" /m *.package /d -3 /c "cmd /c del /q @path"
start /d "E:\Games\The Sims 3\Game\Bin" TS3W.exe
You need to paste this text to notepad, edit it, then save it as a bat file. Explained below:

The first 2 lines delete package files older than 3 days from The Sims 3 and WorldCaches folders. If they aren't that old, nothing happens.
Change the numbers to whatever you think is appropriate, since I don't really know how long it takes for the game to start noticeably slowing down due to big cache files. Depends on how much you play.

Also change the username to whatever yours is.
I'm not sure if the Electronic Art folders directory path is the same for XP. If not, just change it, but remember to keep the double quotes " " around the path.

The 3rd line just launches the game. Change the path to whatever yours is.

After you've edited the text with notepad save it as a batch file, just type .bat at the end of the filename instead of txt.
Then put the bat file somewhere else than on the desktop, and make a shortcut to it on the desktop. That way you can freely change the name and put a Sims 3 icon on it.

Then whenever you start the game from this shortcut, it checks for old cache files before launching.

Hammertime :newfag:
avatar
Redronn
Beginner
Beginner

Windows version :
  • Windows 7

System architecture :
  • 64 bits (x64)

Favourite games : League of Legends
Male Posts : 6
Points : 1842
Reputation : 0
Join date : 2012-11-10
Age : 28
Location : Finland

View user profile http://www.last.fm/user/MrNutjob

Back to top Go down

Re: Automatic Sims 3 cache file deletion

Post by t2sink on Sun 11 Nov 2012, 03:19

With deleting files, would probably want to write is so you only delete files that are described rather then all that match the .package format. Not really much more to write, just figure out what you are deleting, and copy+paste the link a couple of times.
avatar
t2sink
Godfather / First Lady
Godfather / First Lady

Windows version :
  • Windows 7

System architecture :
  • 32 bits (x86)

Favourite games : Sims 3, Roller Coaster Tycoon 2, Minecraft, RPG World Online, AoE 2/3, Command And Conquer, SimCity, Star Wars: Galactic Battlegrounds, MW2/MW3, Halo Reach, Borderlands, Halo 4
Male Posts : 1079
Points : 3159
Reputation : 119
Join date : 2012-09-10
Location : Michigan

View user profile

Back to top Go down

Re: Automatic Sims 3 cache file deletion

Post by Redronn on Sun 11 Nov 2012, 09:39

Those folders only have package files that can safely be deleted.

Not sure if there's any reason why anyone would have some different more important package files in there? Aren't they all put in the mods folder?

Thanks for mentioning that.
avatar
Redronn
Beginner
Beginner

Windows version :
  • Windows 7

System architecture :
  • 64 bits (x64)

Favourite games : League of Legends
Male Posts : 6
Points : 1842
Reputation : 0
Join date : 2012-11-10
Age : 28
Location : Finland

View user profile http://www.last.fm/user/MrNutjob

Back to top Go down

View previous topic View next topic Back to top


Permissions in this forum:
You cannot reply to topics in this forum