All-in-One Occult Hybrid Stabilizer

All-in-One Occult Hybrid Stabilizer

Important Install Instructions:
This mod has a script component. The included .ts4script file must be placed directly in your mods folder or at most only 1 subfolder deep.
Do NOT rename the .ts4script file. It WILL break the mod.

This mod is still a work in progress. Please report any issues.

Update: The “Plan Batuu Outfit” interaction will now work correctly for occult sims.

Requirements
While this mod doesn’t “require” any packs, it’s almost pointless to use on its own without any occults in your game.
The only benefit you would get is the ability for the needs panel to properly work with any custom need added by mods.

Tired of your hybrids glitching out in CAS? Upset that your vampire-mermaids can’t access their perk tree? This mod is for you.
This mod solves many of the issues plaguing hybrids in the sims 4. Now you can safely play hybrids without fear of the game randomly deciding to break your sims.
Some of the main features are:

  • Safely take your hybrids into CAS and save them to your gallery without the fear of the game deleting their occult forms. Sim must spawn in live mode at least once to enable this protection.
  • Allow servos to become vampires, witches and aliens.
  • Properly render spellcaster charge and curses for spellcaster-vampire hybrids.
  • Mermaid hybrids correctly switch to and from their tail forms without being stuck swimming on land.
  • Newly-generated aliens no longer have their human form re-randomized (intended for story progression mods which populate towns with sims from your gallery).
  • And many more…

Perk Access
With this mod, you will be able to access your hybrid’s perks based on their current form (if the make_occult_type_match_form option has not been disabled).
The needs panel will update as your sim changes forms.
A picture is worth a thousand words, so take a look at the animated images in the spoiler below to see what I mean.

Note: While in a form without a perk tree (alien, mermaid) the mod will prioritize the display of the vampire perk bar. Spellcasters are given priority while in human form.

.INI customization: EXPERIMENTAL
This mod includes a .ini file which you can edit in any text editor to change the behavior of the mod.
The mod works “out of the box,” and you don’t need to change anything if you don’t want to.
If you ever want to restore the default settings, simply delete the file and the mod will create a new one when you relaunch the game.
Note that you must restart the game for any changes to take effect.
Should the .ini file customization cause too many issues for users, it is likely that I will remove it and just modify the mod to have everything enabled by default.

The settings are as follows:

  • make_occult_type_match_form: Enables the mod to change the hidden “occult_type” number the UI uses to determine the needs panel display and the rendering of appearance modifiers. Disabling this setting will prevent the Vampire UI from showing up for hybrid mermaids or spellcasters.
  • clean_invalid_forms: The mod will delete the invalid occult forms of toddlers and children. This allows them to properly generate new a mermaid tail and dark form when they age up. Disabling this will make them retain the hidden forms they were born with, and it may require you to edit their mermaid form directly in CAS to give them a tail.
  • add_edit_form_interactions_to_sims: Adds a new pie menu category, “Edit occult forms,” to sims. Sims can use these options to enter CAS as a pure occult of the selected type, allowing you to directly edit that form. Note that the “spellcaster” option will make the sim enter CAS as a pure spellcaster with full access to pointed ears and fantasy skin tones.
  • enable_vampire_while_in_other_occult_form: Ignored if make_occult_type_match_form is False. This setting will allow the mod to display the vampire perk bar and button in the needs panel whenever your sim is in an occult form that does not have its own perk tree (alien, mermaid).
  • enable_spellcaster_while_in_other_occult_form: Same as the setting above, but with the spellcaster perk tree.
  • override_motives_panel: Allows to mod to correctly display extra needs, such as spellcaster charge, when a sim has a trait that tries to override the list of needs in the needs panel.
  • enforce_ui_maximums: The mod will prevent the needs panel from trying to display more needs than the UI can support. The limits are 1 Orb need, 2 long bar needs, 6 normal needs.
  • move_self_interactions_to_pie_menu: Moves the “Disguise Self” and “Change Disguise” alien interactions to their own pie menu category.
  • remove_spellcaster_bloodline_conflict: Removes the conflict which prevents sims with spellcaster bloodline traits from becoming aliens.
  • remove_robot_conflict: Allows servos to become the specified occult. You may edit this option independently in every section.
  • disable_trait_blacklist_for_vampire_cure: Removes the trait blacklist which prevents certain sims (servos) from drinking the potion to cure themselves.
  • disable_thirst_for_robots: Disables thirst for robots…
  • remove_discovery_traits_on_cure: Whenever a sim is cured of their mermaid-ism through cheats or console commands, the hidden traits controlling hydration and mermaid tail visibility in the bathtub will also be removed. You may have to close and reopen the needs panel to refresh the display of the hygiene need.

Compatibility
This mod does not override any game resource files and should be compatible with any tuning mod.
This mod includes the functionality of these mods of mine and should not be used together with any of them. Please uninstall them as this mod contains all of their functionality.

This mod modifies the behaviors of the following script classes and may run into compatibility issues with mods that completely override their behavior:

OccultTracker – The behavior of this class has been heavily modified. Any mod which significantly alters the occult system may have compatibility issues.
TraitTracker – modifies the _send_commodity_list_msg function which determines which needs are displayed in the needs panel.
AppearanceTracker – only slightly modifies the evaluate_appearance_modifiers function which controls how appearance modifiers are displayed on sims. Should be compatible with most mods that alter this.

How does it work?
A sim’s occult status is determined in 2 ways, by their traits and by a hidden number in the game’s script files named “occult_types.”
The traits control the sim’s forms and their access to occult interactions while the “occult_types” number controls how the game renders their needs panel and how the sim is treated in CAS.
Whenever a sim gains an occult trait, the “occult_number” is modified based on the occult traits the sim has. The game checks this number whenever it wants to determine if a sim is a specific occult.
If a sim is a hybrid, the “occult_types” number becomes a value that the game doesn’t understand, which is why CAS has so many issues and why mermaids would get stuck swimming on land.

This mod modifies the how the game checks occult types by making it look at the sim’s traits instead.
This allows the mod to alter the “occult_types” number into something the game can understand without endangering the sim’s forms or access to perks.
This change allows hybrid sims to safely enter CAS and freely switch between forms without suffering from horrible glitches.


Credits: Iced Cream
This content was uploaded by website visitors. If you notice any mistake, please let us know.




Useful Information:
- Do you need any help? Join Sims 4 Modding Discord
- How to Install Sims 4 Mods
- Sims 4 Studio Download
- Sims 4 Mod Manager
- Sims 4 Mod Conflict Detector
- Sims 4 Modding guide / How to Make a Sims 4 Mod
- Sims 4 System Requirements
- How to Uninstall Sims 4 Mods
- Sims 4 Cheats

You may also like...

Leave a Reply

Your email address will not be published. Required fields are marked *