Forum Discussion

MAL22's avatar
6 years ago

Adding custom familiars (Realm of Magic) without overriding tuning files [SOLVED]

Hi! I have been looking to add new familiars without adding the possibility of them being overwritten by another mod that aims to add their own. Here is my progress thus far:

There are 2 things that need to be changed in order to add a familiar in the game using Python:

1. familiars.familar_enums
with FamiliarType.make_mutable():
FamiliarType._add_new_enum_value("nameofthesummon", IDofthesummon)


This enum is easily modifiable and poses no problem.

2. familiars.familiar_tracker

Within this one is contained the FAMILIAR_DATA TunableMapping. The structure of which is found within the familiars-familiar_tracker.tdesc.
The problem that I have encountered, however, is that I find myself unable to inject additional data within that FAMILIAR_DATA as it is immutable.

So my problem is that I cannot add familiars without editing the familiar_tracker tuning itself which is undesirable and increases the chances of conflicts immensely. Is there a possible workaround to this or a change that Maxis could make in order to allow us to add new familiars through scripting?

EDIT: I have solved this problem.

4 Replies

  • Out of curiosity, how did you solve this?

    I'd love to be able to add custom familiars too, but everything I've found searching either concluded it wasn't currently possible or the threads asking just die without answers. :(
  • @VieraRedMage You can use my Familiar Injector if you want to add custom familiars. https://www.nexusmods.com/thesims4/mods/196/

    The procedure and requirements are clearly explained and the script handles all the Python stuff for you.
  • Hi, do you think you have any knowledge that could help me trying to add a custom collection but without luck as nothing shows up. Does the custom familiars show up as collectibles? I wanted to add some custom made cards to collect, looking like the VoidCritters but others... I am not sure this is possible without using scripts. Or do you believe it could be possible to create a collectible-injector somehow? That adds a new collection and even the contents, and an option if you would like to inject new objects like new frogs or whatever into any existing collection.
  • "sweetlilja;c-17321317" wrote:
    Hi, do you think you have any knowledge that could help me trying to add a custom collection but without luck as nothing shows up. Does the custom familiars show up as collectibles? I wanted to add some custom made cards to collect, looking like the VoidCritters but others... I am not sure this is possible without using scripts. Or do you believe it could be possible to create a collectible-injector somehow? That adds a new collection and even the contents, and an option if you would like to inject new objects like new frogs or whatever into any existing collection.


    I will post this to the nexusmods page as well, not sure where you mostly reads.

About The Sims 4 Mods & Custom Content

Find expert tips, troubleshooting help, tutorials for mods and custom content, and The Sims 4 patch files in our forum.15,367 PostsLatest Activity: 2 hours ago