Trying to make a Vampire Lover custom trait

Discussion in 'Modding Corner' started by zellzoy, Feb 9, 2019.

  1. If you're not seeing your confirmation registration e-mail in your inbox, make sure you check your spam folder! Contact Us for further assistance or Resend confirmation e-mail !
  1. zellzoy

    zellzoy
    1/12

    Messages:
    5
    Likes Received:
    0
    Trophy Points:
    1
    So, not entirely sure what I am doing wrong. I have the trait showing up in my game, but it doesn't seem to actually affect the sim. I have it set to give +1 happy if there is a vampire on the lot and to replace the recently bitten buff with the recently bitten with permission buff. Neither appears to be working. Could anyone take a look at it and let me know what I am doing wrong?


    I'm using V4.
     

    Attached Files:

  2. zellzoy

    zellzoy
    1/12

    Messages:
    5
    Likes Received:
    0
    Trophy Points:
    1
    Apparently it's causing an exception. Here is the text:
    <?xml version="1.0" ?><root>
    <report><version>2</version><sessionid>24754f5f748423515c5f8972</sessionid><type>desync</type><sku>ea.maxis.sims4_64.15.pc</sku><createtime>2019-02-09 18:22:02</createtime><buildsignature>Local.Unknown.Unknown.1.47.49.1020-1.200.000.373.Release</buildsignature><categoryid>__init__.py:197</categoryid><desyncid>24754f5f748423515c5f8972</desyncid><systemconfig/><screenshot/><desyncdata>Exception when applying action &lt;StatisticSetMaxOp: zellzoy_VampireLover_VampireLover/1950147173 maximum&gt; for loot &lt;class 'sims4.tuning.instances.zellzoy_VampireLover_VampireLover/908622049'&gt; (AttributeError: 'Lot' object has no attribute 'trait_tracker')&#13;&#10;Traceback (most recent call last):&#13;&#10; File "T:\InGame\Gameplay\Scripts\Core\sims4\utils.py", line 179, in wrapper&#13;&#10; File "T:\InGame\Gameplay\Scripts\Server\areaserver.py", line 205, in c_api_server_tick&#13;&#10; File "T:\InGame\Gameplay\Scripts\Server\zone.py", line 462, in update&#13;&#10; File "T:\InGame\Gameplay\Scripts\Server\time_service.py", line 112, in update&#13;&#10; File "T:\InGame\Gameplay\Scripts\Server\scheduling.py", line 212, in simulate&#13;&#10; File "T:\InGame\Gameplay\Scripts\Server\alarms.py", line 260, in _run&#13;&#10; File "T:\InGame\Gameplay\Scripts\Server\statistics\continuous_statistic.py", line 765, in _alarm_callback&#13;&#10; File "T:\InGame\Gameplay\Scripts\Server\statistics\continuous_statistic.py", line 786, in _trigger_callback&#13;&#10; File "T:\InGame\Gameplay\Scripts\Server\statistics\base_statistic_listener.py", line 53, in trigger_callback&#13;&#10; File "T:\InGame\Gameplay\Scripts\Server\statistics\commodity.py", line 1025, in _update_state_down&#13;&#10; File "T:\InGame\Gameplay\Scripts\Server\statistics\commodity.py", line 1272, in _set_state&#13;&#10; File "T:\InGame\Gameplay\Scripts\Server\interactions\utils\loot.py", line 377, in apply_to_resolver&#13;&#10; File "D:\SVN\S4_Modules\mc_cmd_center\mc_utils.py", line 122, in _wrapper_function&#13;&#10; File "T:\InGame\Gameplay\Scripts\Server\event_testing\test_events.py", line 166, in wrapper&#13;&#10;KeyError: (TraitTest(apply_thresholds_on_individual_basis=True, blacklist_traits=(&lt;class 'sims4.tuning.instances.trait_OccultVampire_Cured'&gt;,), num_blacklist_allowed=0, num_whitelist_required=1, subject=ParticipantType.Lot, tooltip=None, whitelist_traits=(&lt;class 'sims4.tuning.instances.trait_OccultVampire'&gt;,)), frozenset({('test_targets', (&lt;world.lot.Lot object at 0x00007FF496264F38&gt;,))}))&#13;&#10;&#13;&#10;During handling of the above exception, another exception occurred:&#13;&#10;&#13;&#10;Traceback (most recent call last):&#13;&#10; File "T:\InGame\Gameplay\Scripts\Server\interactions\utils\loot.py", line 375, in apply_to_resolver&#13;&#10; File "T:\InGame\Gameplay\Scripts\Server\interactions\utils\loot_basic_op.py", line 192, in apply_to_resolver&#13;&#10; File "T:\InGame\Gameplay\Scripts\Server\interactions\utils\loot_basic_op.py", line 155, in test_resolver&#13;&#10; File "T:\InGame\Gameplay\Scripts\Server\event_testing\tests.py", line 392, in run_tests&#13;&#10; File "T:\InGame\Gameplay\Scripts\Server\event_testing\resolver.py", line 127, in __call__&#13;&#10; File "T:\InGame\Gameplay\Scripts\Server\event_testing\test_events.py", line 168, in wrapper&#13;&#10; File "T:\InGame\Gameplay\Scripts\Server\sims\sim_info_tests.py", line 402, in __call__&#13;&#10; File "T:\InGame\Gameplay\Scripts\Server\objects\components\__init__.py", line 197, in __getattr__&#13;&#10;AttributeError: 'Lot' object has no attribute 'trait_tracker'&#13;&#10;rtim=0</desyncdata></report>
    <report><version>2</version><sessionid>24754f5f748423515c5f8972</sessionid><type>desync</type><sku>ea.maxis.sims4_64.15.pc</sku><createtime>2019-02-09 18:22:02</createtime><buildsignature>Local.Unknown.Unknown.1.47.49.1020-1.200.000.373.Release</buildsignature><categoryid>__init__.py:197</categoryid><desyncid>24754f5f748423515c5f8972</desyncid><systemconfig/><screenshot/><desyncdata>Exception in Sim Timeline: Exception running Element (AttributeError: 'Lot' object has no attribute 'trait_tracker')&#13;&#10;Traceback (most recent call last):&#13;&#10; File "T:\InGame\Gameplay\Scripts\Server\event_testing\test_events.py", line 166, in wrapper&#13;&#10;KeyError: (TraitTest(apply_thresholds_on_individual_basis=True, blacklist_traits=(&lt;class 'sims4.tuning.instances.trait_OccultVampire_Cured'&gt;,), num_blacklist_allowed=0, num_whitelist_required=1, subject=ParticipantType.Lot, tooltip=None, whitelist_traits=(&lt;class 'sims4.tuning.instances.trait_OccultVampire'&gt;,)), frozenset({('test_targets', (&lt;world.lot.Lot object at 0x00007FF496264F38&gt;,))}))&#13;&#10;&#13;&#10;During handling of the above exception, another exception occurred:&#13;&#10;&#13;&#10;Traceback (most recent call last):&#13;&#10; File "T:\InGame\Gameplay\Scripts\Server\scheduling.py", line 212, in simulate&#13;&#10; File "T:\InGame\Gameplay\Scripts\Server\alarms.py", line 260, in _run&#13;&#10; File "T:\InGame\Gameplay\Scripts\Server\statistics\continuous_statistic.py", line 765, in _alarm_callback&#13;&#10; File "T:\InGame\Gameplay\Scripts\Server\statistics\continuous_statistic.py", line 786, in _trigger_callback&#13;&#10; File "T:\InGame\Gameplay\Scripts\Server\statistics\base_statistic_listener.py", line 53, in trigger_callback&#13;&#10; File "T:\InGame\Gameplay\Scripts\Server\statistics\commodity.py", line 1025, in _update_state_down&#13;&#10; File "T:\InGame\Gameplay\Scripts\Server\statistics\commodity.py", line 1272, in _set_state&#13;&#10; File "T:\InGame\Gameplay\Scripts\Server\interactions\utils\loot.py", line 378, in apply_to_resolver&#13;&#10; File "T:\InGame\Gameplay\Scripts\Server\interactions\utils\loot.py", line 375, in apply_to_resolver&#13;&#10; File "T:\InGame\Gameplay\Scripts\Server\interactions\utils\loot_basic_op.py", line 192, in apply_to_resolver&#13;&#10; File "T:\InGame\Gameplay\Scripts\Server\interactions\utils\loot_basic_op.py", line 155, in test_resolver&#13;&#10; File "T:\InGame\Gameplay\Scripts\Server\event_testing\tests.py", line 392, in run_tests&#13;&#10; File "T:\InGame\Gameplay\Scripts\Server\event_testing\resolver.py", line 127, in __call__&#13;&#10; File "T:\InGame\Gameplay\Scripts\Server\event_testing\test_events.py", line 168, in wrapper&#13;&#10; File "T:\InGame\Gameplay\Scripts\Server\sims\sim_info_tests.py", line 402, in __call__&#13;&#10; File "T:\InGame\Gameplay\Scripts\Server\objects\components\__init__.py", line 197, in __getattr__&#13;&#10;AttributeError: 'Lot' object has no attribute 'trait_tracker'&#13;&#10;rtim=0</desyncdata></report>
    </root>
     
  3. zellzoy

    zellzoy
    1/12

    Messages:
    5
    Likes Received:
    0
    Trophy Points:
    1
    Ok, so apparently Lot in the participants trait test is for checking traits on the lot. I am trying to figure out which one of them would let me test for sims on the lot but none seem to fit.
     
  4. zellzoy

    zellzoy
    1/12

    Messages:
    5
    Likes Received:
    0
    Trophy Points:
    1
    In case anyone comes across this, I did figure out that I need to use TargetSim for my test of sims around my sim with the trait. Does anyone know where I could find a list of explanations of all of the things on that list? Would nice to know how to use them all.
     

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.