The Sims™ 3

The Sims™ 3

Not enough ratings
Auto-Delete Sims 3 Cache and Run it on Origin with the Steam Overlay
By † ßâd•£üç]< Îñç™
A handy batch script for Origin and physical disc installs of Sims 3 that automatically cleans saved game cache files and launches it from the Origin client – all with the convenience of having the Steam overlay. (Updated to include Sims 4!)
   
Award
Favorite
Favorited
Unfavorite
Introduction
An older guide I wrote for Sims 3 (and later for Sims 4) included a simple batch script that deletes the cache files to improve performance and optionally launches the game automatically afterward (assuming that either the client to Origin or Steam version is already running, or running from the physical disc install without Origin). But what if I told you that it was possible to use that same script for both The Sims 3 and The Sims 4 to run through Origin and have the benefits of the Steam overlay? Yes! It can absolutely happen – with some slight modifications to it of course.

Why even use Origin for Sims 3 on Steam, you ask? For a few reasons actually. One: because the game version is newer than Steam’s (1.69 vs. 1.67). Two: EA allows Sims 3 codes purchased from retail discs, as well as Steam, to be imported and therefore expansion libraries are likely to be more complete on Origin. Three – and probably most important: Running batch file scripts from Origin is far less of a hassle than Steam. And four, I am extremely lazy. So why not have a simple script that will do the work for you too?

Even though the Origin version of Sims 3 and Sims 4 is compatible with Mac, these scripts are written specifically to run from Windows Vista, 7, 8/8.1 or 10 – but will also work with XP. Works with Origin and DVD installation discs; and will also work with Steam’s Big Picture Mode, In-Home Streaming and Steam Link.

📌 Looking for a similar script for Steam? You can find it here.

🆕 The cache cleaning scripts for Sims 3 and Sims 4 has been updated to include my full personal script(s) for use with the latest version of Origin. As of this writing, Origin version 10.5.xx still lacks the option to shut itself down after quitting a game... instead, these scripts will terminate Origin instead of being reminded to do it yourself.

Important – I will not be rewriting material from my other guides. The purpose of this guide is to offer the reader a batch script that automatically cleans saved game cache files and then start Sims 3/Sims 4 from the Origin client afterward, but with the Steam overlay attached. Reading my guides Move Game Saves to Another Location & Improve Performance and Get the Steam Overlay Working with Games on Origin is strongly recommended.
Sims 3 Cache Clean & Launch Script
As previously mentioned, this is a condensed 🆕 This is the complete version of my personal script that will run on Windows versions supporting the Documents folder. (XP users will need to modify this for My Documents.) Feel free to use and modify this script to match your Sims 3 game install location.

Please note that this script avoids prompting the user for interaction. Interacting with the script will cause the Steam overlay to lose its focus and will stop working. (If a simple cache cleaning script without the bells and whistles is preferred, simply copy and paste everything from the first line to the end of the cleaning section in the script instead. Be sure to read the script's comments to guide you.)

Step-by-Step Instructions
  1. Create a new text file and rename it. (I ended up renaming mine to Sims3CleanNLaunch.)
  2. Copy and paste the following into the text file:
    @echo off title Sims 3 Cache Cleaner and Game Launcher (for Origin w/Steam Overlay) for /L %%z in (1,1,55) do echo( for %%a in ( "Thank you for using..." "THE SIMS 3 CACHE CLEANER and GAME LAUNCHER (for Origin, to be used with the Steam overlay)" " - version: 1.0" " - original script authoring: DisgruntledGurl, aka BAD LUCK Inc." " - October 15, 2018" "==========================================================================================" "Please leave credit intact if planning to use or modify" "with intent to freely share and distribute code." "Thank you." ) do ( echo %%~a ping -n 2 localhost>nul echo. ) timeout /t 7 /NOBREAK > NUL cls :: IMPORTANT NOTICE :: if modifying code, DO NOT add user prompts or force user interaction with the script, :: otherwise the Steam overlay will lose focus and no longer work :: this section deletes Sims 3 saved game cache files to make the game run faster :: fyi- this part of the script can be used in a new batch file if wanting to clean the cache only :: and simply remove the REM comments to restore functionality to those lines del "%USERPROFILE%\Documents\Electronic Arts\The Sims 3\CASPartCache.package" 2>NUL del "%USERPROFILE%\Documents\Electronic Arts\The Sims 3\scriptCache.package" 2>NUL del "%USERPROFILE%\Documents\Electronic Arts\The Sims 3\compositorCache.package" 2>NUL del "%USERPROFILE%\Documents\Electronic Arts\The Sims 3\simCompositorCache.package" 2>NUL del "%USERPROFILE%\Documents\Electronic Arts\The Sims 3\socialCache.package" 2>NUL del /F /Q "%USERPROFILE%\Documents\Electronic Arts\The Sims 3\FeaturedItems\*" 2>NUL del /F /Q "%USERPROFILE%\Documents\Electronic Arts\The Sims 3\Thumbnails\*" 2>NUL del /F /Q "%USERPROFILE%\Documents\Electronic Arts\The Sims 3\WorldCaches\*" 2>NUL attrib +r "%USERPROFILE%\Documents\Electronic Arts\The Sims 3\DCBackup\ccmerged.package" del /F /Q "%USERPROFILE%\Documents\Electronic Arts\The Sims 3\DCBackup\0*.package" 2>NUL attrib -r "%USERPROFILE%\Documents\Electronic Arts\The Sims 3\DCBackup\ccmerged.package" REM echo Saved game cache files have been cleaned and program will be closing in a few seconds. REM echo Thank you for using The Sims 3 Cache Cleaner! Goodbye. REM timeout /t 5 /NOBREAK > NUL REM EXIT :: this section automatically launches Sims 3 (from the Origin shortcut on Steam) after cache cleaning :: and will exit the Sims 3 launcher and Origin client if game fails to be manually run within the 5 minute window :: to allow for installation and customization loading time, and/or logging into thesims3.com community site, :: or exiting the Origin client after quitting Sims 3 echo Cache files have been cleaned. Preparing to start The Sims 3 game launcher. timeout /t 7 /NOBREAK > NUL :SIMSLAUNCH REM copy and paste correct drive and file path for the Sims3Launcher.exe below if in different location start "" "G:\Origin Games\The Sims 3\Game\Bin\Sims3Launcher.exe" cls echo You have 5 minutes to prepare and run your game from the launcher. echo If it is not running within 5 minutes, The Sims 3 game launcher and Origin will close automatically. REM change ping value below (in seconds) to add or reduce wait time to check on Sims 3 game process before continuing ping -n 300 localhost>nul tasklist /FI "IMAGENAME eq TS3.exe" 2>NUL | find /I /N "TS3.exe">NUL if not "%ERRORLEVEL%"=="1" goto RUNNING goto TIMER :TIMER taskkill /f /im "Sims3Launcher.exe">NUL goto NOTRUNNING :CHECKLOOP tasklist /FI "IMAGENAME eq TS3.exe" 2>NUL | find /I /N "TS3.exe">NUL if not "%ERRORLEVEL%"=="1" goto RUNNING goto NOTRUNNING :RUNNING timeout /t 20 /NOBREAK > NUL goto CHECKLOOP :NOTRUNNING cls taskkill /f /im "Origin.exe">NUL echo Now preparing to shut down The Sims 3 Clean'n'Launch program. Thanks for playing! timeout /t 5 /NOBREAK > NUL EXIT

    Note:
    For this script, I am using the Windows %USERPROFILE% variable for the game saves Documents symlink. It will not be necessary to alter this unless you are running Windows XP.
  3. Save and exit the text file.
  4. Change the file extension from .txt to .bat
Important Note Regarding this Script
When copy and pasting the script into the text file you have prepared, it is strongly advised keeping the comments intact – especially for understanding how each part of the script works and where to change the drive letter and file path to the Sims3Launcher executable.
Sims 4 Cache Clean & Launch Script
Like Sims 3, Sims 4 players may also experience performance degradation if the cache isn't cleaned periodically.

🆕 Below is a basic the complete version of my personal cache cleaning script that will also run Sims 4 afterward (through the Origin client), by default. This script will work for the DVD physical disc installs as well as for Origin. Just follow the same steps to create a batch file as outlined for Sims 3 in the section above, only copy and paste the code below instead – then follow the finishing steps from the Adding the Script to Origin and Testing the Script sections in this guide. (If a simple cache cleaning script without the bells and whistles is preferred, grab the script here.)

IMPORTANT: If running a Windows 32 bit OS, be sure to change TS4_x64.exe to TS4.exe.

@echo off title Sims 4 Cache Cleaner and Game Launcher (for Origin w/Steam Overlay) for /L %%z in (1,1,55) do echo( for %%a in ( "Thank you for using..." "THE SIMS 4 CACHE CLEANER and GAME LAUNCHER (to be used with the Steam overlay on Origin)" " - version: 1.0" " - original script authoring: DisgruntledGurl, aka BAD LUCK Inc." " - November 24, 2018" "==========================================================================================" "Please leave credit intact if planning to use or modify" "with intent to freely share and distribute code." "Thank you." ) do ( echo %%~a ping -n 2 localhost>nul echo. ) timeout /t 7 /NOBREAK > NUL cls :: IMPORTANT NOTICE :: if modifying code, DO NOT add user prompts or force user interaction with the script, :: otherwise the Steam overlay will lose focus and no longer work :: this section deletes Sims 4 saved game cache files to make the game run faster :: fyi- this part of the script can be used in a new batch file if wanting to clean the cache only :: just remove the REM comments to restore functionality to the last 4 lines :: additional option- remove REM comments ABOVE LAST 4 LINES for older Sims 4 installs del "%USERPROFILE%\Documents\Electronic Arts\The Sims 4\localthumbscache.package" 2>NUL del /F /Q "%USERPROFILE%\Documents\Electronic Arts\The Sims 4\cache\*.cache" 2>NUL del /F /Q "%USERPROFILE%\Documents\Electronic Arts\The Sims 4\cache\*.dat" 2>NUL del /F /Q "%USERPROFILE%\Documents\Electronic Arts\The Sims 4\cache\*.jpg" 2>NUL del /F /Q "%USERPROFILE%\Documents\Electronic Arts\The Sims 4\cachestr\*" 2>NUL if exist "%USERPROFILE%\Documents\Electronic Arts\The Sims 4\onlinethumbnailcache" ( rd /S /Q "%USERPROFILE%\Documents\Electronic Arts\The Sims 4\onlinethumbnailcache" ) else ( echo onlinethumbnailcache folder does not exist. ) REM for older Sims 4 installs, remove the next 10 REM comments after THIS line to restore functionality REM if exist "%USERPROFILE%\Documents\Electronic Arts\The Sims 4\cachewebkit" ( REM rd /S /Q "%USERPROFILE%\Documents\Electronic Arts\The Sims 4\cachewebkit" REM ) else ( REM echo cachewebkit folder does not exist. REM ) REM if exist "%USERPROFILE%\Documents\Electronic Arts\The Sims 4\lotcachedata" ( REM rd /S /Q "%USERPROFILE%\Documents\Electronic Arts\The Sims 4\lotcachedata" REM ) else ( REM echo lotcachedata folder does not exist. REM ) REM echo Saved game cache files have been cleaned and program will be closing in a few seconds. REM echo Thank you for using The Sims 4 Cache Cleaner! Goodbye. REM timeout /t 5 /NOBREAK > NUL REM EXIT :: this section automatically launches Sims 4 (from the Origin shortcut on Steam) after cache cleaning :: and will exit the Origin client after quitting Sims 4 cls echo Cache files have been cleaned. Preparing to start The Sims 4. timeout /t 10 /NOBREAK > NUL :SIMSLAUNCH REM copy and paste correct drive and file path for the TS4_x64.exe (or TS4.exe if running Windows 32 bit) REM below if in different location start "" "G:\Origin Games\The Sims 4\Game\Bin\TS4_x64.exe" cls echo The Sims 4 is currently running. tasklist /FI "IMAGENAME eq TS4_x64.exe" 2>NUL | find /I /N "TS4_x64.exe">NUL if not "%ERRORLEVEL%"=="1" goto RUNNING goto TIMER :TIMER taskkill /f /im "Sims3Launcher.exe">NUL goto NOTRUNNING :CHECKLOOP tasklist /FI "IMAGENAME eq TS4_x64.exe" 2>NUL | find /I /N "TS4_x64.exe">NUL if not "%ERRORLEVEL%"=="1" goto RUNNING goto NOTRUNNING :RUNNING timeout /t 20 /NOBREAK > NUL goto CHECKLOOP :NOTRUNNING cls taskkill /f /im "Origin.exe">NUL echo Now preparing to shut down The Sims 4 Clean'n'Launch program. Thanks for playing! timeout /t 5 /NOBREAK > NUL EXIT

Note: If you are experiencing problems with Sims 4 on Origin and this script does not help improve game performance, clearing the cache for Origin may also help.

📌 Read my guide on how you can move saved games to another drive for Sims 4!

Important Note Regarding this Script
When copy and pasting the script into the text file you have prepared, it is strongly advised keeping the comments intact – especially for understanding how each part of the script works and where to change the drive letter and file path to the TS4_x64 executable (or TS4 if using a 32 bit version of Windows).

Like the script for Sims 3, this script avoids prompting the user for interaction. Interacting with the script will cause the Steam overlay to lose its focus and will stop working.
Adding the Script to Origin
If you have already read my guide on how to Get the Steam Overlay Working with Games on Origin (or already know how to configure the latest Origin client to work with Steam, as well as adding non-Steam game shortcuts to Steam), all that is needed now is to load Origin and add the script as a non-Origin game before you are ready to test.

Step-by-Step Instructions
  1. Open the Origin client.
  2. Go to Games > Add Non-Origin Game… in the primary navigation bar at the top.



  3. Navigate to your newly created batch file and click the Open button where it will be automatically inserted into your game library.



  4. Exit or Quit the Origin client (do not click Sign Out).
Testing the Script
After you have created a non-Steam game shortcut and customized it for Sims 3 (or Sims 4), you are ready to test your new script.

Make sure that the Origin client is not running before launching the shortcut from Steam.

If you followed each step correctly, test the new shortcut by clicking the blue PLAY button in your GAMES library. It will also update your Steam status as well as launch the Origin client.

Do not be alarmed if you do not see the Steam overlay notification in the bottom right corner of Origin since the intent is to get the overlay to hook itself into Sims 3 or Sims 4 from Origin if successful. You can test this by pressing Shift + Tab to open the overlay, or press F12 to capture a screenshot in game.


Click Here to check out even more my test screenshots for The Sims 3.


Test screenshot of The Sims 4 loading screen. Click to view more The Sims 4 test screenshots.
Additional Notes
Some of you are probably wondering, why keep it as a batch file? Although my personal script evolved over time to meet my needs, my original intent was to edit it easily on the fly if need be. This was particularly helpful when moving some programs over to a new drive, so all I needed to do was to update the drive letter and file paths to the script.

After months of searching the web, I have never found a script that remotely did what I wanted it to do… plus have the convenience of streaming it to my TV. Therefore, I have decided to share a basic the complete version of it with others who love Sims 3 (or Sims 4) and want a simpler way of accomplishing a similar goal. With these scripts, it is not necessary to be savvy in the ways of programming and it can be edited easily. Moreover, instead of converting it into an executable, I would rather leave it as an easy to read script and show that there is nothing malicious at all hidden within the code.

Rate this guide!
Please rate this guide with a thumbs up if you found it helpful; or a thumbs down if you didn't. Be sure to reserve questions, concerns, suggestions for improvement, or anything else regarding this guide in the comments section below. If you have trouble getting it working, you may also want to check the comments section in my other guides as a solution may already have been found.
Changelog
11/30/2024 – Added new guide link.
07/10/2024 – Added new guide link.
10/28/2022 – Added new guide link.
07/08/2020 – Added new guide link.
01/23/2020 – Fixed typo in link.
01/18/2020 – Replaced scripts to include terminating Origin after exiting Sims3/4 game without being reminded to.
01/14/2020 – Added new guide link.
11/02/2019 – Embedded new image.
11/01/2019 – Added new guide link.
09/17/2019 – Fixed typo to Sims 4 script.
09/16/2019 – Fixed typo; updated comments in Sims 3 script to guide users that want a stand-alone cache cleaner.
09/15/2019 – Added Sims 4 Cache Clean & Launch Script section; changed text for continuity.
09/03/2019 – Added new guide link.
11/08/2018 – Fixed a link.
10/20/2018 – Removed irrelevant text for clarity.
10/19/2018 – Initial version.
12 Comments
† ßâd•£üç]< Îñç™  [author] 18 Jan, 2020 @ 11:00pm 
@Tiffykitty: Yes, unfortunately Steam is super picky about these things. As you saw, I replaced the scripts a short while ago with my personal ones. I would have done it much sooner, but I assumed the devs would have re-added the close Origin on game exit a long time ago. Not sure why they haven't.
Glad you got that knocked out. My understanding it that the AMD External Events Utility used to mess with the Steam Controller as well. Not sure if they ever fixed that issue though.
Tiffykitty 18 Jan, 2020 @ 10:33pm 
@† ßâd•£üç]< Îñç™: I feel stupid. It was an AMD issue. I had to run services.msc look for AMD External Events Utility, open it up disable it from starting up and then stop it. Once I did that overlay is working perfectly. I even made a script to check if the game is running every so often that way it'll auto close Origin if The Sims isn't running. The biggest pain about that was learning how to turn a batch file into an executable file. I'm currently doing the same with GTA V as I don't own it on Steam, but on Rockstar Launcher. Thanks for all the helpful information on all of your posts, good work and keep at it. I hope if someone using AMD runs into my issue this post helps them out.
† ßâd•£üç]< Îñç™  [author] 18 Jan, 2020 @ 9:22pm 
@Tiffykitty: Sorry to hear the script is not working for you as intended. I have just updated Origin to the latest version and reinstalled Sims 4 to test my personal script (on Windows 10 v.1909 x64 bit). I have updated the scripts for Sims 3 and 4 to this guide to use instead.
Please let me know if you experience further problems. Thanks!
Tiffykitty 18 Jan, 2020 @ 6:50pm 
I've went over the guide for this and "Get the Steam Overlay Working with Games on Origin" even though I went through both of these thoroughly and I still cannot get the Steam Overlay to work. I even went through the trouble of converting my batch file to an executable file and adding that executable file to steam instead of adding the application to Origin. No matter what I do Steam Overlay always attaches to Origin and won't attach to The Sims 4. If you have success with this working the way you have it in Jan 2020, please let me know. I don't know what I'm doing wrong. I also want to point out that I just installed Origin to this PC and I don't think reverting to an older version is possible (if it is I haven't researched that only this topic and been working with this for a long time now). Any help would be much appreciated, thank you and have a wonderful day.
† ßâd•£üç]< Îñç™  [author] 16 Sep, 2019 @ 7:02pm 
@Ramiro Enjoy!
Rich Cat 16 Sep, 2019 @ 3:59pm 
Lemme check it out ;)
† ßâd•£üç]< Îñç™  [author] 16 Sep, 2019 @ 9:21am 
@Ramiro Don't know if you're still interested, but I have written a new script for Steam users only. Feel free to check it out. :)
Rich Cat 28 May, 2019 @ 9:34pm 
Good, yeah I use the Steam version since Origin sucks to me, so it's all great :)
† ßâd•£üç]< Îñç™  [author] 28 May, 2019 @ 9:22pm 
@Ramiro You are very welcome. Enjoy!

Oh... I forgot to mention that this will also work for Steam's version of Sims 3 (you would just add the file path to your Sims 3 install for Steam in the script), but you will be running it through Origin as outlined in this guide. This is due to the same reason I mention that Steam does not tolerate running a batch file from a non-Steam game shortcut.
Rich Cat 28 May, 2019 @ 9:12pm 
Thank you