Post by ladysunami on Nov 9, 2024 4:30:37 GMT -5
I'm working on a mod with a broadcaster that triggers crushes in any sims fulfilling certain requirements. For some reason, however, I can't get the "relationship condition" test to work properly.
If I tell it to target "All Relationships", regardless of who I select as a participant/subject, the MC Command Center Last Exception Report gives me the following:
The current code for the broadcaster looks like this:
I originally didn't have the '<L n="subject"><E>Listeners</E></L>' portion, but the error seems to indicate something is wrong with the participants so I started experimenting with it. I tried 'Actor,' 'Object,' 'TargetSim' and 'Listeners' with no luck.
Last Module Called: resolver.py
Last Function Called: get_participants
Error message: Exception in <function c_api_server_tick at 0x00007FF4B7744DD0>, args: (382782719575,), kwargs: {} ValueError('Trying to use DoubleObjectResolver with something that is not supported: Participant ParticipantType.AllRelationships for objects and , Resolver DoubleObjectResolver: actor_object: , target_object:') (ValueError: Trying to use DoubleObjectResolver with something that is not supported: Participant ParticipantType.AllRelationships for objects and , Resolver DoubleObjectResolver: actor_object: , target_object:), CategoryID: resolver:1491
Last Function Called: get_participants
Error message: Exception in <function c_api_server_tick at 0x00007FF4B7744DD0>, args: (382782719575,), kwargs: {} ValueError('Trying to use DoubleObjectResolver with something that is not supported: Participant ParticipantType.AllRelationships for objects and , Resolver DoubleObjectResolver: actor_object: , target_object:') (ValueError: Trying to use DoubleObjectResolver with something that is not supported: Participant ParticipantType.AllRelationships for objects and , Resolver DoubleObjectResolver: actor_object: , target_object:), CategoryID: resolver:1491
The current code for the broadcaster looks like this:
<?xml version="1.0"?>
<I c="Broadcaster" s="4185435358" i="broadcaster" m="broadcasters.broadcaster" n="LadySunami_WifeBeam_WifeBeamBroadcaster">
<L n="constraints">
<V t="line_of_sight">
<U n="line_of_sight">
<V n="temporary_los" t="enabled" />
</U>
</V>
</L>
<L n="effects">
<V t="loot">
<U n="loot">
<L n="loot_list">
<T>289891</T>
</L>
<L n="tests">
<L>
<V t="sim_info">
<U n="sim_info">
<V n="ages" t="specified">
<L n="specified">
<E>TEEN</E>
<E>YOUNGADULT</E>
<E>ADULT</E>
</L>
</V>
<V n="gender" t="specified">
<E n="specified">MALE</E>
</V>
<V n="has_been_played" t="enabled">
<T n="enabled">False</T>
</V>
</U>
</V>
<V t="test_set_reference">
<T n="test_set_reference">100585</T>
</V>
<V t="relationship">
<U n="relationship">
<V n="test_incest" t="is not incestuous" />
</U>
</V>
<V t="test_set_reference">
<T n="test_set_reference">294489</T>
</V>
<V t="test_set_reference">
<T n="test_set_reference">303156</T>
</V>
<V t="relationship">
<U n="relationship">
<T n="track">16650</T>
<U n="relationship_score_interval">
<T n="lower_bound">25</T>
</U>
<U n="prohibited_relationship_bits">
<L n="match_any">
<T>15818</T>
<T>15822</T>
<T>15816</T>
<T>15825</T>
<T>99429</T>
<T>15811</T>
<T>15812</T>
<T>15814</T>
<T>15815</T>
<T>15817</T>
</L>
</U>
</U>
</V>
<V t="relationship">
<U n="relationship">
<T n="track">16651</T>
<U n="relationship_score_interval">
<T n="upper_bound">5</T>
</U>
</U>
</V>
<V t="relationship">
<U n="relationship">
<U n="prohibited_relationship_bits">
<L n="match_any">
<T>15816</T>
<T>15822</T>
<T>15818</T>
<T>15825</T>
<T>99429</T>
</L>
</U>
<L n="subject">
<E>Listeners</E>
</L>
<L n="target_sim">
<E>AllRelationships</E>
</L>
</U>
</V>
</L>
</L>
</U>
</V>
</L>
</I>
I originally didn't have the '<L n="subject"><E>Listeners</E></L>' portion, but the error seems to indicate something is wrong with the participants so I started experimenting with it. I tried 'Actor,' 'Object,' 'TargetSim' and 'Listeners' with no luck.
If I remove the "AllRelationships" testing portion of the code the mod works perfectly, but I don't actually want to trigger crushes in sims that already have partners.
I'm insanely new at modding (started a week ago) so there is a good chance I'm missing/misunderstanding something super obvious.
Is there some other test I could implement that would effectively test for the same thing? I wish there was a handy "has partner" trait I could check for, as trait checks work just fine.