October 18 - Take a look at the Friday Highlight and discover some awesim discussions! Click me!
October 18, correction: 11AM PDT - Join us for a Guru Garage! Details here.
October 10 - A new The Sims 4 update is ready for you on Xbox One and PlayStation 4! Details here

[Bug Report] Pool Seat Posture Position & Routing Surface Computation Error

Hello @SimGuruModSquad, I was told by you to report bugs on the forums and hopefully, this is the best place for it, aside from the Answers HQ.

In-code error, "PoolSeat" class (objects.pools.pool_seat), method "_compute_position_and_routing_surface_for_posture" returns an empty tuple when 'world_location' or 'pool_location' is None.

This causes the "_cache_and_return_position_and_routing_surface_for_posture" function to fail unpacking of the positions tuple.

I can only assume that the "_compute_position_and_routing_surface_for_posture" method should follow how the "_compute_locations_for_posture" method works and return a tuple with two tuples within it (to have something to unpack) instead of an empty tuple. Or check if the returned values are correct before caching.

Ultimately I don't know what is the exact purpose of this or how it works, but you can see this causing the lastException below. I hope this might help you resolve it.
<?xml version="1.0" ?>
<root>
    <report>
        <version>2</version>
        <sessionid>f0ea25a4c715ce055c03206b</sessionid>
        <type>desync</type>
        <sku>ea.maxis.sims4_64.15.pc</sku>
        <createtime>2018-12-01 22:03:49</createtime>
        <buildsignature>Local.Unknown.Unknown.1.47.51.1020-1.200.000.375.Release</buildsignature>
        <categoryid>pool_seat.py:279</categoryid>
        <desyncid>f0ea25a4c715ce055c03206b</desyncid>
        <systemconfig/>
        <screenshot/>
        <desyncdata>Exception when applying action <ReactionLootOp ParticipantType.Actor> for loot <class 'sims4.tuning.instances.loot_Reaction_Pristine_Sim'> (ValueError: not enough values to unpack (expected 2, got 0))
Traceback (most recent call last):
  File "T:\InGame\Gameplay\Scripts\Core\sims4\utils.py", line 179, in wrapper
  File "T:\InGame\Gameplay\Scripts\Server\areaserver.py", line 205, in c_api_server_tick
  File "T:\InGame\Gameplay\Scripts\Server\zone.py", line 469, in update
  File "T:\InGame\Gameplay\Scripts\Server\broadcasters\broadcaster_service.py", line 524, in update
  File "T:\InGame\Gameplay\Scripts\Server\broadcasters\broadcaster_service.py", line 594, in _update
  File "T:\InGame\Gameplay\Scripts\Server\broadcasters\broadcaster.py", line 493, in apply_broadcaster_effect
  File "T:\InGame\Gameplay\Scripts\Server\broadcasters\broadcaster_effect.py", line 90, in apply_broadcaster_effect
  File "T:\InGame\Gameplay\Scripts\Server\broadcasters\broadcaster_effect.py", line 722, in _apply_broadcaster_effect
  File "T:\InGame\Gameplay\Scripts\Server\interactions\utils\loot.py", line 377, in apply_to_resolver
  File "T:\InGame\Gameplay\Scripts\Server\interactions\utils\loot.py", line 375, in apply_to_resolver
  File "T:\InGame\Gameplay\Scripts\Server\interactions\utils\loot_basic_op.py", line 201, in apply_to_resolver
  File "T:\InGame\Gameplay\Scripts\Server\interactions\utils\reactions.py", line 358, in _apply_to_subject_and_target
  File "T:\InGame\Gameplay\Scripts\Server\interactions\utils\reactions.py", line 320, in _push_si_reaction
  File "T:\InGame\Gameplay\Scripts\Server\interactions\utils\reactions.py", line 123, in __call__
  File "T:\InGame\Gameplay\Scripts\Server\sims\sim.py", line 3516, in push_super_affordance
  File "T:\InGame\Gameplay\Scripts\Server\interactions\aop.py", line 236, in test_and_execute
  File "T:\InGame\Gameplay\Scripts\Server\interactions\aop.py", line 224, in execute
  File "T:\InGame\Gameplay\Scripts\Server\interactions\aop.py", line 212, in execute_interaction
  File "T:\InGame\Gameplay\Scripts\Server\interactions\interaction_queue.py", line 1331, in append
  File "T:\InGame\Gameplay\Scripts\Lib\contextlib.py", line 119, in __exit__
  File "T:\InGame\Gameplay\Scripts\Server\interactions\interaction_queue.py", line 878, in _head_change_watcher
  File "T:\InGame\Gameplay\Scripts\Server\interactions\interaction_queue.py", line 962, in _get_head
  File "T:\InGame\Gameplay\Scripts\Server\interactions\interaction_queue.py", line 339, in get_next_unblocked_interaction
  File "T:\InGame\Gameplay\Scripts\Server\interactions\base\super_interaction.py", line 2416, in get_sims_with_invalid_paths
  File "T:\InGame\Gameplay\Scripts\Server\interactions\base\super_interaction.py", line 2380, in _generate_connectivity
  File "T:\InGame\Gameplay\Scripts\Server\postures\transition_sequence.py", line 1457, in compute_transition_connectivity
  File "T:\InGame\Gameplay\Scripts\Server\postures\transition_sequence.py", line 1504, in run_transitions
  File "T:\InGame\Gameplay\Scripts\Server\postures\transition_sequence.py", line 3361, in _build_transitions
  File "T:\InGame\Gameplay\Scripts\Server\postures\transition_sequence.py", line 3152, in _build_and_log_transitions_for_sim
  File "T:\InGame\Gameplay\Scripts\Server\postures\transition_sequence.py", line 3214, in _build_transitions_for_sim
  File "T:\InGame\Gameplay\Scripts\Server\postures\transition_sequence.py", line 2692, in get_transitions_for_sim
  File "T:\InGame\Gameplay\Scripts\Server\postures\transition_sequence.py", line 2870, in _get_transitions_for_sim
  File "T:\InGame\Gameplay\Scripts\Server\postures\posture_graph.py", line 5718, in generate_connectivity_handles
  File "T:\InGame\Gameplay\Scripts\Server\postures\posture_graph.py", line 5531, in _get_segmented_path_connectivity_handles
  File "T:\InGame\Gameplay\Scripts\Server\postures\posture_graph.py", line 545, in generate_right_paths
  File "T:\InGame\Gameplay\Scripts\Server\postures\posture_graph.py", line 4139, in _right_path_gen
  File "T:\InGame\Gameplay\Scripts\Server\postures\posture_graph.py", line 679, in _shortest_path_gen
  File "T:\InGame\Gameplay\Scripts\Core\algos.py", line 121, in shortest_path_gen
  File "T:\InGame\Gameplay\Scripts\Core\algos.py", line 121, in <listcomp>
  File "T:\InGame\Gameplay\Scripts\Core\caches.py", line 281, in __missing__
  File "T:\InGame\Gameplay\Scripts\Server\postures\posture_graph.py", line 4094, in heuristic_fn_right
  File "T:\InGame\Gameplay\Scripts\Server\postures\posture_graph.py", line 3778, in _get_destination_locations_for_estimate
  File "T:\InGame\Gameplay\Scripts\Server\objects\pools\pool_seat.py", line 279, in _cache_and_return_position_and_routing_surface_for_posture
ValueError: not enough values to unpack (expected 2, got 0)
rtim=0</desyncdata>
    </report>
    <report>
        <version>2</version>
        <sessionid>f0ea25a4c715ce055c03206b</sessionid>
        <type>desync</type>
        <sku>ea.maxis.sims4_64.15.pc</sku>
        <createtime>2018-12-01 22:03:50</createtime>
        <buildsignature>Local.Unknown.Unknown.1.47.51.1020-1.200.000.375.Release</buildsignature>
        <categoryid>pool_seat.py:279</categoryid>
        <desyncid>f0ea25a4c715ce055c03206b</desyncid>
        <systemconfig/>
        <screenshot/>
        <desyncdata>Exception in <function c_api_server_tick at 0x00007FF450B73DD0>, args: (195361429366,), kwargs: {}
ValueError('not enough values to unpack (expected 2, got 0)') (ValueError: not enough values to unpack (expected 2, got 0))
Traceback (most recent call last):
  File "T:\InGame\Gameplay\Scripts\Server\areaserver.py", line 205, in c_api_server_tick
  File "T:\InGame\Gameplay\Scripts\Server\zone.py", line 469, in update
  File "T:\InGame\Gameplay\Scripts\Server\broadcasters\broadcaster_service.py", line 524, in update
  File "T:\InGame\Gameplay\Scripts\Server\broadcasters\broadcaster_service.py", line 594, in _update
  File "T:\InGame\Gameplay\Scripts\Server\broadcasters\broadcaster.py", line 493, in apply_broadcaster_effect
  File "T:\InGame\Gameplay\Scripts\Server\broadcasters\broadcaster_effect.py", line 90, in apply_broadcaster_effect
  File "T:\InGame\Gameplay\Scripts\Server\broadcasters\broadcaster_effect.py", line 722, in _apply_broadcaster_effect
  File "T:\InGame\Gameplay\Scripts\Server\interactions\utils\loot.py", line 378, in apply_to_resolver
  File "T:\InGame\Gameplay\Scripts\Server\interactions\utils\loot.py", line 375, in apply_to_resolver
  File "T:\InGame\Gameplay\Scripts\Server\interactions\utils\loot_basic_op.py", line 201, in apply_to_resolver
  File "T:\InGame\Gameplay\Scripts\Server\interactions\utils\reactions.py", line 358, in _apply_to_subject_and_target
  File "T:\InGame\Gameplay\Scripts\Server\interactions\utils\reactions.py", line 320, in _push_si_reaction
  File "T:\InGame\Gameplay\Scripts\Server\interactions\utils\reactions.py", line 123, in __call__
  File "T:\InGame\Gameplay\Scripts\Server\sims\sim.py", line 3516, in push_super_affordance
  File "T:\InGame\Gameplay\Scripts\Server\interactions\aop.py", line 236, in test_and_execute
  File "T:\InGame\Gameplay\Scripts\Server\interactions\aop.py", line 224, in execute
  File "T:\InGame\Gameplay\Scripts\Server\interactions\aop.py", line 212, in execute_interaction
  File "T:\InGame\Gameplay\Scripts\Server\interactions\interaction_queue.py", line 1331, in append
  File "T:\InGame\Gameplay\Scripts\Lib\contextlib.py", line 119, in __exit__
  File "T:\InGame\Gameplay\Scripts\Server\interactions\interaction_queue.py", line 878, in _head_change_watcher
  File "T:\InGame\Gameplay\Scripts\Server\interactions\interaction_queue.py", line 962, in _get_head
  File "T:\InGame\Gameplay\Scripts\Server\interactions\interaction_queue.py", line 339, in get_next_unblocked_interaction
  File "T:\InGame\Gameplay\Scripts\Server\interactions\base\super_interaction.py", line 2416, in get_sims_with_invalid_paths
  File "T:\InGame\Gameplay\Scripts\Server\interactions\base\super_interaction.py", line 2380, in _generate_connectivity
  File "T:\InGame\Gameplay\Scripts\Server\postures\transition_sequence.py", line 1457, in compute_transition_connectivity
  File "T:\InGame\Gameplay\Scripts\Server\postures\transition_sequence.py", line 1504, in run_transitions
  File "T:\InGame\Gameplay\Scripts\Server\postures\transition_sequence.py", line 3361, in _build_transitions
  File "T:\InGame\Gameplay\Scripts\Server\postures\transition_sequence.py", line 3152, in _build_and_log_transitions_for_sim
  File "T:\InGame\Gameplay\Scripts\Server\postures\transition_sequence.py", line 3214, in _build_transitions_for_sim
  File "T:\InGame\Gameplay\Scripts\Server\postures\transition_sequence.py", line 2692, in get_transitions_for_sim
  File "T:\InGame\Gameplay\Scripts\Server\postures\transition_sequence.py", line 2870, in _get_transitions_for_sim
  File "T:\InGame\Gameplay\Scripts\Server\postures\posture_graph.py", line 5718, in generate_connectivity_handles
  File "T:\InGame\Gameplay\Scripts\Server\postures\posture_graph.py", line 5531, in _get_segmented_path_connectivity_handles
  File "T:\InGame\Gameplay\Scripts\Server\postures\posture_graph.py", line 545, in generate_right_paths
  File "T:\InGame\Gameplay\Scripts\Server\postures\posture_graph.py", line 4139, in _right_path_gen
  File "T:\InGame\Gameplay\Scripts\Server\postures\posture_graph.py", line 679, in _shortest_path_gen
  File "T:\InGame\Gameplay\Scripts\Core\algos.py", line 121, in shortest_path_gen
  File "T:\InGame\Gameplay\Scripts\Core\algos.py", line 121, in <listcomp>
  File "T:\InGame\Gameplay\Scripts\Core\caches.py", line 281, in __missing__
  File "T:\InGame\Gameplay\Scripts\Server\postures\posture_graph.py", line 4094, in heuristic_fn_right
  File "T:\InGame\Gameplay\Scripts\Server\postures\posture_graph.py", line 3778, in _get_destination_locations_for_estimate
  File "T:\InGame\Gameplay\Scripts\Server\objects\pools\pool_seat.py", line 279, in _cache_and_return_position_and_routing_surface_for_posture
ValueError: not enough values to unpack (expected 2, got 0)
rtim=0</desyncdata>
    </report>
</root>

Game Version: 1.47.51.1020
Sorry, but not sorry tumblr_paqcr5LaDB1vwgrfio1_r1_75sq.png

Comments

This discussion has been closed.
Return to top