Sort Custom Content (CC) in CAS Alphabetically
MTS has all free content, all the time. Donate to help keep it running.
SCREENSHOTS
Created by barteke22
Uploaded: 19th Nov 2020 at 4:22 PM
Updated: 19th Jan 2021 at 11:26 AM
Updated: 19th Jan 2021 at 11:26 AM
This is made for a 1920x1080 resolution, and taskbar at the bottom of the screen. Feel free to modify it for any other (you'll need the images + all coordinates), as I can't do that on my end.
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.
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.
Filename | Size | Downloads | Date | |||||
SortCAS_AHK_V2.2.zip
Size: 5.0 KB · Downloads: 2,428 · 5th Jan 2021 |
5.0 KB | 2,428 | 5th Jan 2021 | |||||
SortCAS_AHK_V2.zip
Size: 4.2 KB · Downloads: 271 · 23rd Nov 2020 |
4.2 KB | 271 | 23rd Nov 2020 | |||||
SortCAS_AHK_Old.zip
Size: 153.4 KB · Downloads: 170 · 23rd Nov 2020 |
153.4 KB | 170 | 23rd Nov 2020 | |||||
For a detailed look at individual files, see the Information tab. |
Key:
- - File was updated after upload was posted
Install Instructions
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
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.
Recommended
The creator also recommends the following uploads:
Also Thanked - Users who thanked this download also thanked:
Packs Needed
None, this is Sims 4 base game compatible!
Other Information
Operating System:
– Windows
: Windows XP, Windows Vista, Windows 7, etc
Utility Type:
– CC Editors
: Tools for modifying .package files, sims*pack files, and resources contained within those files.
– CC Managers
: Tools for installing and managing custom content, custom music, custom paintings etc.
– Miscellaneous
: Tools which do not fit into the above categories.
Plugin Type:
– Not Applicable
: Standalone tools
Tags
More Downloads BETA
Here are some more of my downloads: