|
Post by Dimenarius on Sept 13, 2020 10:19:43 GMT -5
I am working on a mod that divides the original Stormtrooper and Commander Outfit from the "Journey to Batuu"-Pack into several parts.
I am actually ready to release it but there is one thing that I want to do before I would release them.
I already included the necessary pack requirement but in the original game, those outfits are locked until you reach a certain rank of reputation.
Now I want to know, is it possible to "copy" or "create" that kind of restriction for the divided outfit parts I created because they are basically the same outfit just divided into several outfit parts and since the original outfit is locked, I would find it unfair if those outfit parts were accessible from the beginning, when the full-body costume itself remains locked.
I may sound like I "want" to force people to unlock these things but literally that's the goal in the gameplay pack, when you first start to play it.
So...if it is possible, what are the exact steps I need to perform in order to achieve this specific change on my mod?
I actually tried cloning the desired outfit itself from Sims 4 Studio but that didn't work out that well, since the item remained locked even though I was past the rank requirement. I had to use a nude top mesh to avoid problems.
Thanks in advance.
|
|
|
Post by MizoreYukii on Sept 13, 2020 12:28:41 GMT -5
This requires overriding the tuning for it to unlock in-game. If you didn't clone the Star Wars item then you need to lock it. First go to the Warehouse, go to each CAS Part and scroll to the bottom and look for PartFlags, check the "Created In Game" box. There is currently a duplication bug with custom unlocks, so if don't want duplicates to show up then you need to uncheck the "ShowInUI" box which will hide the locked item but will appear just fine after being unlocked. (And if it's missing the Batuu category make sure to add it, discussed in this thread: sims4studio.com/post/148858/thread)Then copy the Instance of your first CAS Part. Go to Tools > Hash Generator and paste what you just copied where it says Hexadecimal. Copy the Decimal at the top that it automatically converts to. Save this Decimal somewhere safe and label it so you know what it is, do it for each CAS Part for each outfit. Start a new .package, go to Tools > Extract Tuning. The tuning you need to override for the Commander is: reward_StarWars_Reputation_FirstOrder_Level5 For the Stormtrooper it is: reward_StarWars_Reputation_FirstOrder_Level3 Paste these into the extract tuning and then click "Add to current package". Inside you'll see this format <V t="specific_reward"> <V n="specific_reward" t="cas_part"> <U n="cas_part"> <T n="cas_part">250971</T> </U> </V> </V> Copy/paste however many of these you need for that outfit onto the next line, making sure to keep the format exactly the same to avoid errors. So if you have one swatch of the boots, top, and bottom for the commander outfit that's 3 copy/pastes. Now grab the Decimal(s) you had converted earlier and replace the number in each new section you made with one of yours (so one should be the boots, one is the top, the other is the bottoms, the order does not matter). Repeat for the stormtrooper. And then save and you're done.(Also, ignore the SimData file, you don't need to make changes to it.)
|
|
|
Post by Dimenarius on Sept 14, 2020 1:30:56 GMT -5
All right, so I did all that but the outfit parts still show as unlocked in CAS, when I create a new family.
Maybe I did the tuning wrong because I used the Instance from the "Key"-Section.
The "Batuu"-Category has been added and I made these tunings into a new package and placed this package along with my costume packages in the mods-folder but like I said it doesn't work. I ticked the "CreatedInGame"-Flag on all parts and then pasted the decimal values into the Reward Tuning-XMLs of the extra package I had to create.
Importing these Reward Tunings in the outfit parts themselves gives me an error message saying that the CASPartRessource Version is not supported.
There is no "Locked"-Icon, when I go to CAS to see the changes and I can still select them as if they are already unlocked.
Thanks for the help so far.
|
|
|
Post by MizoreYukii on Sept 14, 2020 11:18:51 GMT -5
I can't access your Commander Trooper torso, it's giving me the not supported message. Using the Key instance is correct, it's the same Instance as the one displayed in the column. I figured it out though, I forgot to inform you to copy/paste the GameplayLockedDescriptionKey from the EA outfit to the new outfit, but for your Stormtrooper (Level 3) you need to paste 267EBEBD and for the Commander you need to paste 94651A5E. It's located not far from the top of the CASPart, just above the Key.
|
|
|
Post by Dimenarius on Sept 14, 2020 12:47:19 GMT -5
Got it working now! The Outfit Parts are now locked as they should and they all unlock after reaching the desired ranks, thanks.
But one last thing.
I already reached maximum reputation in the First Order with one sim and I noticed that I can only unlock these parts if I reach the desired reputation levels for the first time with another sim.
This is optional because my mod is fully functional now but can I somehow trigger the first promotion message again that appears when you reach the rank for a first time so I don't have to sacrifice one of my sims to do this quest thing all over again and unlock the outfit parts this way?
I want to because for people who would download the mod I want to give them a way to gain these outfit parts afterwards if they already got the certain rank before installing the mod and don't want to start over.
Other than that, thanks for the help. I really appreciate it
|
|
|
Post by MizoreYukii on Sept 14, 2020 13:41:39 GMT -5
Unfortunately not that I know of without making interactions or some other modding workaround. The easiest option would be to have them cheat their reputation levels themselves, see if this helps?: gamerant.com/sims-4-journey-batuu-cheats/The other option, and this is just a quick thought, is to make an Immediate Interaction that loots the reward, tests for if the clothes are unlocked or not so it avoids appearing after, and use XML Injector to inject the interaction to the sim.
|
|
|
Post by Dimenarius on Sept 14, 2020 14:23:32 GMT -5
Cheats didn't work unfortunately.
And I don't have the necessary knowledge to create such an interaction because I never created script mods before.
But it's alright, I can deal with that.
Thanks for everything. I'll get this mod out soon and maybe I'll find a way someday.
This can be closed now.
|
|