MTS has all free content, all the time. Find out how YOU can help to keep it running. Tell me how...

Documents Override (Windows only)

by anadius Posted 15th Aug 2021 at 7:10 PM
36 Comments / replies (Who?) - 10 Feedback Posts, 2 Thanks Posts
What is it for?
This tool can override the Documents path used by the game. You can also create multiple profiles, each using a different path. This is useful if you want to keep your mods on a drive with more space or if you want a separate profile for some challenge.

Short instructions
  1. Extract files to the same folder as the game exe.
  2. Edit "documents.ini".
  3. Add "-profile=profile name" to the shortcut's target where "profile name" matches the section in the ".ini" file.

Detailed instructions
  1. Download the correct archive. (normal The Sims 4 is 64-bit, Legacy Edition is 32-bit)
  2. Extract it. There are 4 files in each archive.
  3. First open your game folder. By default:
    • Origin installs the game to "C:\Program Files (x86)\Origin Games\The Sims 4"
    • Steam installs the game to "C:\Program Files (x86)\Steam\steamapps\common\The Sims 4"
    Then open the folder with your game exe:
    • normal version of the game is in "Game\Bin"
    • Legacy Edition is in "Game\Bin_LE"
  4. Move the 4 extracted files to where your game exe is.
  5. Edit "documents.ini" file to your liking:
    • if you want to change the default folder uncomment (remove ";") line 4 (see the screenshot below) and set it to desired path
    • if you want to use another profile edit the existing ones or add a new one:
      Code:
      [profile name]
      Documents=folder path
You can use a different profile by editing your game shortcut. But first you need to create a new one:
  1. Right click on the game exe ("TS4_x64.exe" for the normal version, "TS4.exe" for the Legacy Edition), select "Send to" and then "Desktop".
  2. Go to desktop.
  3. Right click on the new shortcut, select Properties.
  4. At the end of the "Target" field add a space and then "-profile=profile name", where "profile name" is the name of the profile you added to the "documents.ini". See the green underlines on the screenshot below.



How does it work?
First of all my tool needs to be somehow loaded into the game. For this I use Ultimate ASI Loader, version 4.59 (archived link in case the previous one goes down). That's where "version.dll" comes from. "version.ini" is a config file for ASI Loader.

"documents.ini" is a config file for my tool. And the main brains is of course the last file, "documents.asi". It's a normal DLL file with extension renamed to ".asi" (that's what ASI Loader looks for). The game uses "SHGetFolderPathW" function to find the Documents path. My tool hooks to that function and spoofs the response. That's pretty much it.
Operating System: Windows
Utility Type: Miscellaneous
Plugin Type: Not Applicable

You must have the expansion or stuff packs listed below installed to use this custom content. Please see the post text for any exceptions.

Sims 4
Key: - File was updated after upload was posted
Filename - Tip: You can click the magnifying glass to see the archive contents Size Downloads Date
Documents Override v1.0.0 - 32-bit.zip

Size: 1.05 MB · Downloads: 41 · 15th Aug 2021
1.05 MB 41 15th Aug 2021
Documents Override v1.0.0 - 64-bit.zip

Size: 130.9 KB · Downloads: 250 · 15th Aug 2021
130.9 KB 250 15th Aug 2021
Don't forget to Thank the creator after downloading! Use the Thanks button located above the screenshots above.
Basic Download and Install Instructions:
1. Download: Click the File tab to see the download link. Click the link to save the .rar or .zip file(s) to your computer.
2. Extract: Use WinRAR (Windows) to extract the file(s) from the .rar or .zip file(s).
3. Cut and paste the file(s) into your Mods folder
  • Windows XP: Documents and Settings\(Current User Account)\My Documents\Electronic Arts\The Sims 4\Mods\
  • Windows Vista/7/8/8.1: Users\(Current User Account)\Documents\Electronic Arts\The Sims 4\Mods\
Need more information?
  • Anyone can use both .rar and .zip files easily! On Windows, use WinRAR.
  • If you don't have a Mods folder, just make one.
 
36 Comments / Replies (Who?) - 23 Feedback Posts, 11 Thanks Posts
Hide Thanks Posts for this thread (Show only feedback)
Page 2 of 2
Lab Assistant
#26 Old 3rd Sep 2021 at 8:42 AM
Can this be combined with James Turner's "Disable Packs"? This; https://jamesturner.yt/disablepacks

I tried to put his arguments on target, but it's too long. Don't really want to have to change origin settings every time...

"Whatcha doin'?"
"Probing your mind."
"Kinda roomy, innit?"
Test Subject
Original Poster
#27 Old 3rd Sep 2021 at 1:47 PM
Quote:
Originally Posted by Madam Doofie
Can this be combined with James Turner's "Disable Packs"? This; https://jamesturner.yt/disablepacks

I tried to put his arguments on target, but it's too long. Don't really want to have to change origin settings every time...

This is stupid. There's a 260 character limit for the shortcut's target. But it's not a shortcut limitation. It's the dialogue box limitation. Windows is seriously stupid.

Copy your shortcut's target. Open notepad. Paste the copied target and add the parameters you want. For example my shortcut's target is "C:\Games\The Sims 4\Game\Bin\TS4_x64.exe"; I want to play using the "example1" profile and want to play just the base game. So I open notepad and type:
Code:
"C:\Games\The Sims 4\Game\Bin\TS4_x64.exe" -profile=example1 -disablepacks:EP01,EP02,EP03,EP04,EP05,EP06,EP07,EP08,EP09,EP10,EP11,GP01,GP02,GP03,GP04,GP05,GP06,GP07,GP08,GP09,GP10,SP01,SP02,SP03,SP04,SP05,SP06,SP07,SP08,SP09,SP10,SP11,SP12,SP13,SP14,SP15,SP16,SP17,SP18,SP20,SP21,SP22,SP23,SP25
All that's left is saving it as a .bat file. So click "File", "Save As..." and give it a name, for example "TS4 example1 base game.bat". That ".bat" at the end is important! That makes it save as a special file that you can double click to run. You can put that ".bat" file anywhere you want, just like with shortcuts.

And if you don't like the ".bat" file icon you can always create a shortcut to that ".bat" file and change the icon in the shortcut's properties.
Lab Assistant
#28 Old 5th Sep 2021 at 5:02 AM
Quote:
Originally Posted by anadius
This is stupid. There's a 260 character limit for the shortcut's target. But it's not a shortcut limitation. It's the dialogue box limitation. Windows is seriously stupid.

Copy your shortcut's target. Open notepad. Paste the copied target and add the parameters you want. For example my shortcut's target is "C:\Games\The Sims 4\Game\Bin\TS4_x64.exe"; I want to play using the "example1" profile and want to play just the base game. So I open notepad and type:
Code:
"C:\Games\The Sims 4\Game\Bin\TS4_x64.exe" -profile=example1 -disablepacks:EP01,EP02,EP03,EP04,EP05,EP06,EP07,EP08,EP09,EP10,EP11,GP01,GP02,GP03,GP04,GP05,GP06,GP07,GP08,GP09,GP10,SP01,SP02,SP03,SP04,SP05,SP06,SP07,SP08,SP09,SP10,SP11,SP12,SP13,SP14,SP15,SP16,SP17,SP18,SP20,SP21,SP22,SP23,SP25
All that's left is saving it as a .bat file. So click "File", "Save As..." and give it a name, for example "TS4 example1 base game.bat". That ".bat" at the end is important! That makes it save as a special file that you can double click to run. You can put that ".bat" file anywhere you want, just like with shortcuts.

And if you don't like the ".bat" file icon you can always create a shortcut to that ".bat" file and change the icon in the shortcut's properties.


Windows is SO stupid. Thank you so much for the bat (though I could not get it to work as a bat, which is probably user error).

There's actually a second way I found while trying to figure this out, which DID work for me without a bat: you can add "disablepacks:EP01,EP02,EP03,EP04,EP05,EP06,EP07,EP08,EP09,EP10,EP11,GP01,GP02,GP03,GP04,GP05,GP06,GP07,GP08,GP09,GP10,SP01,SP02,SP03,SP04,SP05,SP06,SP07,SP08,SP09,SP10,SP11,SP12,SP13,SP14,SP15,SP16,SP17,SP18,SP20,SP21,SP22,SP23,SP25" as a system variable!! So for example you can add that exact string to system variables as "BASEGAME" and then the shortcut is just

Code:
"C:\Games\The Sims 4\Game\Bin\TS4_x64.exe" -profile=example1 %BASEGAME%


I just thought I'd swing through and offer this for anyone else who might be batch file limited (seriously idk why the bat file wouldnt work, I literally put what you put. Stupid bat files...)

Anyway, thanks so much for this entire piece of tech. I now have *counts* seven Sims 4 versions on my desktop

"Whatcha doin'?"
"Probing your mind."
"Kinda roomy, innit?"
Test Subject
THANKS POST
#29 Old 6th Sep 2021 at 11:48 AM
Really useful. Before, I was always using symbolic links made with Powershell, but this definitely is more convenient
Lab Assistant
THANKS POST
#30 Old 11th Oct 2021 at 5:41 AM
Has some latest update borked this? I can't get it to work at all
Test Subject
Original Poster
#31 Old 11th Oct 2021 at 9:29 AM
As I said on the previous page:
Quote:
Originally Posted by anadius
It "attaches" to the game the same way ReShade does. It doesn't rely on any game-specific stuff so updates shouldn't break anything.
But just in case I tested it again - still works perfectly fine.
Lab Assistant
#32 Old 11th Oct 2021 at 8:41 PM
Quote:
Originally Posted by anadius
As I said on the previous page:But just in case I tested it again - still works perfectly fine.


Appreciate the test. Cannot get it to work my end (I swear I'm doing it right, and Reshade works too!) anymore. Ugh. Thanks for checking, genuinely do appreciate it.

"Whatcha doin'?"
"Probing your mind."
"Kinda roomy, innit?"
Test Subject
#33 Old 16th Oct 2021 at 1:46 PM
Hi,
i have tried your tool, but i does not work.

a) copied the files from the archive to U:\OriginGames\The Sims 4\Game\Bin where the game.exe is
b) changed the documents.ini
[Default]
Documents=U:\SIMS4Daten

c) placed previous Sims 4 Data in
U:\SIMS4Daten\Electronic Arts\Die Sims 4

but Sims always creates a new "Die Sims 4" folder in my documents: D:\AT Dokumente\Electronic Arts\Die Sims 4

Is it possible that there is a localisation problem and it only works on english versions ?
Test Subject
Original Poster
#34 Old 16th Oct 2021 at 4:59 PM
Send a screenshot of the files you have in "U:\OriginGames\The Sims 4\Game\Bin". I can think of 3 reasons:
1. You didn't copy all 4 files.
2. You copied 32-bit files instead of 64-bit ones.
3. You have some other mod/program that interferes with my tool.
Lab Assistant
#35 Old 19th Oct 2021 at 12:34 PM
Quote:
Originally Posted by anadius
Send a screenshot of the files you have in "U:\OriginGames\The Sims 4\Game\Bin". I can think of 3 reasons:
1. You didn't copy all 4 files.
2. You copied 32-bit files instead of 64-bit ones.
3. You have some other mod/program that interferes with my tool.


Here's my bin folder

1. I did!
2. I did not, I definitely did the 64-bit (I checked several times, actually)
3. Like what?

And in case this is the issue, my Documents.ini reads:

Code:
; Lines starting with ; are comments.

[Vanilla]
Documents=E:\The Sims 4 (Documents)\Sims4Vanilla

[Historical]
Documents=E:\The Sims 4 (Documents)\Sims4History

[Modern]
Documents=E:\The Sims 4 (Documents)\Sims4Modern

[Nothing]
Documents=E:\The Sims 4 (Documents)\Sims4Nothing

[Testing]
Documents=E:\The Sims 4 (Documents)\Sims4Testing

[LetsPlay]
Documents=E:\The Sims 4 (Documents)\Sims4LP

[BuildAWorld]
Documents=E:\The Sims 4 (Documents)\Sims4BuildAWorld

[CCAndModTesting]
Documents=E:\The Sims 4 (Documents)\Sims4CCDisplay

[Sims2Save]
Documents=E:\The Sims 4 (Documents)\Sims4Sims2Save

[workpls]
Documents=E:\The Sims 4 (Documents)\if this exists the app is working
Screenshots

"Whatcha doin'?"
"Probing your mind."
"Kinda roomy, innit?"
Test Subject
#36 Old 19th Oct 2021 at 3:17 PM
I have completly uninstalled SIMS and removed all references to older installs, deleted origin localcache and reinstalled SIMS,
no success

I have tested it on my windows tablet,too. No success

I have tested with "Run as administrator". No success

I have checked file preferences of the DLL and ASI and removed the checkbox for "file is from different pc"

Next days i have no pc time for further tests

For testing i delete the sims 4 data folder and it will always recreated after start at the original position.
Test Subject
Original Poster
#37 Old 19th Oct 2021 at 7:40 PM
Quote:
Originally Posted by Madam Doofie
3. Like what?
Like for example re-shade. Did you test if it works without it? And are you sure you're using the "-profile=xyz" argument properly? Add the "[Default]" profile back to the config and see if it works.

If not I'll tell you the same gosammy1971, to send me the log from ProcessMonitor. I'll give you the details in PM if needed.
Page 2 of 2