Sort Custom Content (CC) in CAS Alphabetically
This is an AHK script that will make your CC appear in CAS by the filename order, automating the use of S4CAS Tools v3 by CmarNYC.
So I recommend sorting your CC into multiple folders, as there's little point in sorting certain things, like accessories (unless you have a lot of them).
You could sort everything in one go, but I recommend at least separating your CAS CC into: Hair, Clothes (Top + Full + Bottom can be in 1 folder), Accessories.
Subfolders will no longer be sorted, as that created some mess in file order in the previous version.
This process will take quite a while, but should no longer require user supervision after the first file or two.
Installation and use:
- Sort your CC into folders and rename any files that aren't in the order you want them to be in (you can use Sims4Studio to preview the files).
- Download and install CmarNYC's S4 CAS Tools (here) and configure its game paths.
- Download and instal AutoHotKey (here).
1. Download and extract SortCAS_AHK.zip to some folder.
2. Edit SortCAS.ahk (right click it), and make the ending of "folderPath" point to the folder you want to sort. Make S4CASToolsPath point to your S4CASTools.exe.
3. Run SortCAS.ahk. F9 will pause the script in case of emergency, but pausing is not recommended as it can throw off the flow.
If something went too wrong, or you're out of time: F9 to exit + editing the SortCAS.ahk will allow you to continue from a specific file.
Issues:
I'm not 100% sure if it can handle the 'value does not match' error, as I was not able to reproduce it (because I fixed those files). If you get this error, please send me a fullscreen screenshot (.png or .bmp).
Critical errors come from ancient CC or CC errors, they require a restart of S4CAS Tools before continuing (the script will do it now). Files that throw critical errors have to be edited with a different tool (like s4se), or ignored.
Merged packages often rely on the sorting order, and therefore shouldn't be sorted with this tool. It wouldn't be very effective even if it worked.
Additional Credits:
CmarNYC for his tools.
Changelog:
V2.2:
- The tool will now keep a log of which files were sorted in each folder, allowing you to skip those files up to 5 times when sorting the same folder again. More than 5 times won't be as accurate, unless you're only adding files to the very bottom of the list (alphabetical bottom of the folder).
- Some computers have issues with AHK coordinates, added various changes that should deal with those issues. If it still doesn't work, make sure everything is ran on screen 1 if using multiple screens.
V2:
- Added progress bar. Will open S4CAS Tools on its own now. 10/10 wow.
- Improved sorting, there was a problem in the previous version that placed special symbols (like []) at the bottom.
- To fix the above, had to remove subdirectory sorting (it was a bit bad anyway). Now subdirectories are ignored.
- Improved script speed. Will take slightly longer to detect errors more accurately, but deal with it a lot quicker if there is one.
- Script should deal with missing mesh warnings quicker, and will handle Critical errors properly (restart and continue).
- Critical error files will be tracked to a list, and prompt user to move them to a subfolder for a more convenient manual fixing.
SortCAS_AHK_V2.2.zip
Download
Uploaded: 5th Jan 2021, 5.0 KB.
2,609 downloads.
|
||||||||
SortCAS_AHK_V2.zip
Download
Uploaded: 23rd Nov 2020, 4.2 KB.
284 downloads.
|
||||||||
SortCAS_AHK_Old.zip
Download
Uploaded: 23rd Nov 2020, 153.4 KB.
182 downloads.
|
||||||||
For a detailed look at individual files, see the Information tab. |
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
Need more information?
- 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\
- Anyone can use both .rar and .zip files easily! On Windows, use WinRAR.
- If you don't have a Mods folder, just make one.
Loading comments, please wait...
Updated: 19th Jan 2021 at 12:26 PM
-
by RazorX2014 updated 4th Dec 2014 at 8:51pm
35 63.5k 83 -
Tool to work with UI textures - new version 8/17/16
by CmarNYC updated 18th Aug 2016 at 1:08am
50 31.3k 31 -
S4 CAS Tools - updated to V3.8.2.0 on 3/18/2023
by CmarNYC updated 18th Mar 2023 at 9:21pm
557 308.9k 499 -
TS4 MorphMaker - updated to V4.5.2 on 4/19/2023
by CmarNYC updated 19th Apr 2023 at 5:23pm
645 339.5k 292 -
HQ Texture Converter - version 2.7.0.0 - updated 2/14/2023
by CmarNYC updated 14th Feb 2023 at 6:12pm
248 219.8k 255 -
TS4 Skin Converter, version 1.2, 7/8/2019 - NOW OBSOLETE
by CmarNYC updated 8th Jul 2019 at 10:38pm
116 43.8k 100 -
TS4 Skin Converter V2.3, enable CC skintones in CAS
by CmarNYC updated 11th Dec 2020 at 1:25am
151 86.5k 153 -
by denton47 updated 17th Dec 2024 at 8:15pm
168 62k 169
-
Array