Hi! I have been looking to inject new familiars into the game but I am currently stuck on one problem I can't seem to resolve. Here's what I've done so far:
1. I added a new entry to
familiars.familiar_enums.
2. I created a copy of
familiars.familiar_tracker.FAMILIAR_DATA, added a new familiar (key, value pair) to it and replaced the original
FAMILIAR_DATA with it.
FamiliarTypeTuple = namedtuple('familiar_type', ['familiar_description', 'familiar_object', 'familiar_token_object', 'follow_affordance', 'name_list'])
ValueTuple = namedtuple('value', ['familiar_type', 'icon'])
4. Created a new familiar and familiar orb with new tunings and assigned them to the new familiar.
The problem is that if I try to bind that new familiar to a sim, I get a LastException that says:
AttributeError: 'NoneType' object has no attribute 'name_list' within the
bind_familiar function inside of
familiar_tracker.py. I have checked my generated familiar entry against the existing entries and they're exactly the same structure and type wise.
If I assign my new familiar's data to any of the existing familiar entries in
FAMILIAR_DATA, the binding works. If I assign the data of any existing familiars to my new entry in
FAMILIAR_DATA, the binding fails.
EDIT:
<?xml version="1.0" ?><root>
<report><version>2</version><sessionid>e0cd5b62d4bb68955d819c68</sessionid><type>desync</type><sku>ea.maxis.sims4_64.15.pc</sku><createtime>2019-09-17 22:55:55</createtime><buildsignature>Local.Unknown.Unknown.1.55.105.1020-1.200.000.408.Release</buildsignature><categoryid>familiar_tracker.py:350</categoryid><desyncid>e0cd5b62d4bb68955d819c68</desyncid><systemconfig/><screenshot/><desyncdata>Exception in Unknown timeline: Exception running Element (AttributeError: 'NoneType' object has no attribute 'name_list') Traceback (most recent call last): File "T:\InGame\Gameplay\Scripts\Server\scheduling.py", line 212, in simulate File "T:\InGame\Gameplay\Scripts\Server\elements.py", line 335, in _run File "T:\InGame\Gameplay\Scripts\Server\interactions\utils\interaction_elements.py", line 162, in _behavior_element File "T:\InGame\Gameplay\Scripts\Server\familiars\familiar_elments.py", line 126, in _do_behavior File "T:\InGame\Gameplay\Scripts\Server\familiars\familiar_elments.py", line 77, in bind_familiar File "T:\InGame\Gameplay\Scripts\Server\familiars\familiar_tracker.py", line 350, in bind_familiar AttributeError: 'NoneType' object has no attribute 'name_list' rtim=0</desyncdata></report>
</root>
I was hoping that
@SimGuruModSquad or
@SimGuruTwoLegs could enlighten me a bit on how the whole familiar process works.
Thank you.
Comments