|
Post by moino157 on Oct 7, 2023 11:03:02 GMT -5
Hello, I'm currently indexing clothing CC so that every author can have their mods grouped together thus making searching for a CC easier in CAS. Im currently using a macro to open .package files then heading to Warehouse, adding "cas" as keyword type, adding "display" in region map search then pasting an incremental number then saving. All these manipulations are done automatically by my macros but this is still taking a vast amount of time. I looked on the web for a way to open the "Text" JSON data version of any "CAS Part" inside a .package file but to no avail. I found out that the Sims 4 Studio will never be open source therefore I can't develop an app or script for my need.
So I need help with the following: HOW CAN I EDIT THE "DisplayIndex" of a "CAS Part" WITHOUT HAVING TO OPEN EVERY .package FILES IN S4S INDIVIDUALLY?
I search for VSCode addons to edit .package files. I tried to find a github. My last hope is this forum.
The fastest way would be to have access to the library used to make the Sims 4 Studio app but since it's not open source then I understand it is not an option. A command prompt command could be an option. I just need to edit the DisplayIndex of every CAS Part of every .package files related to clothing CC (and also everything else would be useful but I don't need it right now).
|
|
|
Post by andrew on Oct 7, 2023 18:57:12 GMT -5
Hi moino157, Editing resources as JSON in S4S is not implemented yet, but could possibly be added in the future. The current beta version of Studio has an option to set the display index of all CAS parts in all packages in a folder. It is available in the "My CC" as a right-click option on the folders within your mods folder. This could work for you if you already have your CAS CC sorted into folders by creator. If that will not work for you, there are other Sims 4 programs/libraries that are open source that may be of use if you want to script things yourself. S4S does have a minimal command line interface, but it only has options to extract/repackage resources in binary (pass -help to s4s from the command line for info).
|
|
|
Post by moino157 on Oct 8, 2023 13:26:40 GMT -5
Greetings, thank you for your fast reply. I tried the feature and I'd like to recommend some settings/options to add to the "batch edit display indexes". A good feature to have would be to order by alphabetical orders of files. To do so, the first step is to specify a display index number (like how it is right now), then instead of writing this same number to all CC, incrementing by 0.001 upon changing files. Of course, this goes without saying but when getting the list of files in the folder, order them in alphabetical order.
With such a feature, varients of a CC would be displayed right next to each other improving ordering CCs in game.
Was this planned to be a feature?
|
|
|
Post by andrew on Oct 8, 2023 17:08:47 GMT -5
moino157, That was not planned, but it does sound like a good idea and not a difficult thing to add. I can include a second option in the next version to sort by package name within the folder groups.
|
|