Ideas

richvh's avatar
richvh
Seasoned Veteran
2 months ago
Status:
Under Investigation

[HSY] LE: 'Exception raised while trying to restore career event'

I have been noticing UI exceptions on loading into an active high school on exam day (Friday) in modded games. I have played a unmodded save up to exam day and got the following Last UI Exception:. Note that the School Day event UI does not show up, and there is no End of School Report or school Performance change at the end of the day:

<?xml version="1.0" ?><root>
<report><version>2</version><sessionid>b0d9d342ec9f351c683f0df3</sessionid><type>desync</type><sku>ea.maxis.sims4_64.15.pc</sku><createtime>2025-06-03 11:16:40</createtime><buildsignature>Local.Unknown.Unknown.1.115.216.1030-1.200.000.658.Release</buildsignature><categoryid>indexed_manager.py:88</categoryid><desyncid>b0d9d342ec9f351c683f0df3</desyncid><systemconfig/><screenshot/><desyncdata>[tingyul] Exception raised while trying to restore career event. (TypeError: IndexedManager keys must be integers.)&#13;&#10;Traceback (most recent call last):&#13;&#10;&#13;&#10;  File "T:\InGame\Gameplay\Scripts\Server\areaserver.py", line 130, in wrapped&#13;&#10;  File "T:\InGame\Gameplay\Scripts\Server\areaserver.py", line 126, in finally_wrap&#13;&#10;  File "T:\InGame\Gameplay\Scripts\Core\sims4\utils.py", line 157, in wrapper&#13;&#10;  File "T:\InGame\Gameplay\Scripts\Core\sims4\utils.py", line 175, in wrapper&#13;&#10;  File "T:\InGame\Gameplay\Scripts\Server\areaserver.py", line 383, in c_api_client_connect&#13;&#10;  File "T:\InGame\Gameplay\Scripts\Server\zone.py", line 611, in do_zone_spin_up&#13;&#10;  File "T:\InGame\Gameplay\Scripts\Server\zone_spin_up_service.py", line 1740, in update&#13;&#10;  File "T:\InGame\Gameplay\Scripts\Server\zone_spin_up_service.py", line 732, in on_enter&#13;&#10;  File "T:\InGame\Gameplay\Scripts\Server\careers\career_service.py", line 359, in create_career_event_situations_during_zone_spin_up&#13;&#10;  File "T:\InGame\Gameplay\Scripts\Server\careers\career_base.py", line 2806, in create_career_event_situations_during_zone_spin_up&#13;&#10;  File "T:\InGame\Gameplay\Scripts\Server\careers\career_event_manager.py", line 523, in create_career_event_situations_during_zone_spin_up&#13;&#10;  File "T:\InGame\Gameplay\Scripts\Server\careers\career_event_manager.py", line 386, in _start_scorable_situation_from_tuning&#13;&#10;  File "T:\InGame\Gameplay\Scripts\Server\careers\career_event_manager.py", line 395, in _scorable_situation_setup&#13;&#10;  File "T:\InGame\Gameplay\Scripts\Server\situations\situation_manager.py", line 1115, in register_for_callback&#13;&#10;  File "T:\InGame\Gameplay\Scripts\Server\indexed_manager.py", line 88, in __contains__&#13;&#10;TypeError: IndexedManager keys must be integers.rtim=0&#13;&#10;Client Session Time: 22.73&#13; &#10;Num Save Errors: 0&#13; &#10;Num Load Errors: 0&#13; &#10;Current Game State: 0x96d01090&#13; &#10;LoadingScreenActiveFlag: 1&#13; &#10;Origin Version: 13,477,0,5990&#13; &#10;Modded: False&#13; &#10;SystemInfo: Windows 11 10.0.26100 GPU: NVIDIA GeForce RTX 3060 Laptop GPU  32.0.15.6607, GUID: 3570AB96-EDF0-11EF-8AAF-D575D18A1133&#13; &#10;</desyncdata></report>
</root>

9 Comments

  • richvh's avatar
    richvh
    Seasoned Veteran
    2 months ago

    On my last gaming session on an unmodded save I started to investigate UI exceptions I've been getting on a modded game, I got both a UI exception and a last exception file. I posted a separate thread for the UI exception, here is the last exception:

    <?xml version="1.0" ?><root>
    <report><version>2</version><sessionid>364e0566bf1ad0e5683f7d46</sessionid><type>desync</type><sku>ea.maxis.sims4_64.15.pc</sku><createtime>2025-06-03 21:22:05</createtime><buildsignature>Local.Unknown.Unknown.1.115.216.1030-1.200.000.658.Release</buildsignature><categoryid>indexed_manager.py:88</categoryid><desyncid>364e0566bf1ad0e5683f7d46</desyncid><systemconfig/><screenshot/><desyncdata>[tingyul] Exception raised while trying to restore career event. (TypeError: IndexedManager keys must be integers.)&#13;&#10;Traceback (most recent call last):&#13;&#10;&#13;&#10;  File "T:\InGame\Gameplay\Scripts\Server\areaserver.py", line 130, in wrapped&#13;&#10;  File "T:\InGame\Gameplay\Scripts\Server\areaserver.py", line 126, in finally_wrap&#13;&#10;  File "T:\InGame\Gameplay\Scripts\Core\sims4\utils.py", line 157, in wrapper&#13;&#10;  File "T:\InGame\Gameplay\Scripts\Core\sims4\utils.py", line 175, in wrapper&#13;&#10;  File "T:\InGame\Gameplay\Scripts\Server\areaserver.py", line 383, in c_api_client_connect&#13;&#10;  File "T:\InGame\Gameplay\Scripts\Server\zone.py", line 611, in do_zone_spin_up&#13;&#10;  File "T:\InGame\Gameplay\Scripts\Server\zone_spin_up_service.py", line 1740, in update&#13;&#10;  File "T:\InGame\Gameplay\Scripts\Server\zone_spin_up_service.py", line 732, in on_enter&#13;&#10;  File "T:\InGame\Gameplay\Scripts\Server\careers\career_service.py", line 359, in create_career_event_situations_during_zone_spin_up&#13;&#10;  File "T:\InGame\Gameplay\Scripts\Server\careers\career_base.py", line 2806, in create_career_event_situations_during_zone_spin_up&#13;&#10;  File "T:\InGame\Gameplay\Scripts\Server\careers\career_event_manager.py", line 523, in create_career_event_situations_during_zone_spin_up&#13;&#10;  File "T:\InGame\Gameplay\Scripts\Server\careers\career_event_manager.py", line 386, in _start_scorable_situation_from_tuning&#13;&#10;  File "T:\InGame\Gameplay\Scripts\Server\careers\career_event_manager.py", line 395, in _scorable_situation_setup&#13;&#10;  File "T:\InGame\Gameplay\Scripts\Server\situations\situation_manager.py", line 1115, in register_for_callback&#13;&#10;  File "T:\InGame\Gameplay\Scripts\Server\indexed_manager.py", line 88, in __contains__&#13;&#10;TypeError: IndexedManager keys must be integers.rtim=0&#13;&#10;Client Session Time: 33.52&#13; &#10;Num Save Errors: 0&#13; &#10;Num Load Errors: 0&#13; &#10;Current Game State: 0x96d01090&#13; &#10;LoadingScreenActiveFlag: 1&#13; &#10;Origin Version: 13,477,0,5990&#13; &#10;Modded: False&#13; &#10;SystemInfo: Windows 11 10.0.26100 GPU: NVIDIA GeForce RTX 3060 Laptop GPU  32.0.15.6607, GUID: 3570AB96-EDF0-11EF-8AAF-D575D18A1133&#13; &#10;</desyncdata></report>
    </root>

    Since the error message is mentioning trying to restore a career event, I assume this is related to the previously reported UI exception on starting an active high school day on exam day, as the gaming session started at the start of Friday's school day at school, where I had saved after having that previously reported UI exception.

    Edit By Crinrict: Adjusted Title

  • crinrict's avatar
    crinrict
    Hero+
    2 months ago

    When do you get the LE ? Does anything visible happen in the game ?

  • richvh's avatar
    richvh
    Seasoned Veteran
    2 months ago

    Since I don't have mods enabled, so don't get reports from Better Exceptions or MCCC when the LE occurs, I don't know exactly when they occurred. I didn't notice them until I exited the game and checked PlumbBuddy. Things I did this game session: Logged in at the beginning of exam day (exam day event UI not present), completed the school day (did not get any school performance change), went on a weekend trip to Selvadorado excavating several dig piles and the temple, returned home, invited Cassandra Goth over and did homework, went to school on Monday. My best guess is that the LE occurred on Friday as it's the only thing that seems to fit the error text.

  • crinrict's avatar
    crinrict
    Hero+
    2 months ago

    Turns out, it's the same like you reported yesterday. I've merged your posts.

  • richvh's avatar
    richvh
    Seasoned Veteran
    2 months ago

    The LE on restarting a save on exam day (which was also Love Day) in the unmodded game looks similar if not the same as the LE on restarting a modded game on a regular school day that fell on Lottery Day. I suspect that this is due to the decision to use the holiday system to revamp the active school days, and the scheduled holiday is overriding the active school day, preventing it from being displayed/affecting school performance. So the fix for multiple teen sims not being able to participate in active school days broke active school days on holidays.

     LE from modded game:

    <?xml version="1.0" ?>
    <root>
     <BetterExceptions>
      <BEversion>v3.14</BEversion>
      <WasBlank>False</WasBlank>
      <TuningLoadFinished>True</TuningLoadFinished>
      <BadObjectCC>True</BadObjectCC>
      <Advice>This is likely due to bad object CC. Check the Summary and Broken Mods section in BE Report.</Advice>
     </BetterExceptions>
     <report>
      <version>2</version>
      <sessionid>c451a613fa4c386c684167c9</sessionid>
      <type>desync</type>
      <sku>ea.maxis.sims4_64.15.pc</sku>
      <createtime>2025-06-05 05:52:20</createtime>
      <buildsignature>Local.Unknown.Unknown.1.115.216.1030-1.200.000.658.Release</buildsignature>
      <categoryid>indexed_manager.py:88</categoryid>
      <desyncid>c451a613fa4c386c684167c9</desyncid>
      <systemconfig/>
      <screenshot/>
      <desyncdata>
       [tingyul] Exception raised while trying to restore career event. (TypeError: IndexedManager keys must be integers.)&#13;&#10;
       Traceback (most recent call last):&#13;&#10;
      &#13;&#10;
       File "T:\InGame\Gameplay\Scripts\Server\areaserver.py", line 130, in wrapped&#13;&#10;
       File "T:\InGame\Gameplay\Scripts\Server\areaserver.py", line 126, in finally_wrap&#13;&#10;
       File "T:\InGame\Gameplay\Scripts\Core\sims4\utils.py", line 157, in wrapper&#13;&#10;
       File "T:\InGame\Gameplay\Scripts\Core\sims4\utils.py", line 175, in wrapper&#13;&#10;
       File "T:\InGame\Gameplay\Scripts\Server\areaserver.py", line 383, in c_api_client_connect&#13;&#10;
       File "T:\InGame\Gameplay\Scripts\Server\zone.py", line 611, in do_zone_spin_up&#13;&#10;
       File "T:\InGame\Gameplay\Scripts\Server\zone_spin_up_service.py", line 1740, in update&#13;&#10;
       File "T:\InGame\Gameplay\Scripts\Server\zone_spin_up_service.py", line 732, in on_enter&#13;&#10;
       File "T:\InGame\Gameplay\Scripts\Server\careers\career_service.py", line 359, in create_career_event_situations_during_zone_spin_up&#13;&#10;
       File "T:\InGame\Gameplay\Scripts\Server\careers\career_base.py", line 2806, in create_career_event_situations_during_zone_spin_up&#13;&#10;
       File "T:\InGame\Gameplay\Scripts\Server\careers\career_event_manager.py", line 523, in create_career_event_situations_during_zone_spin_up&#13;&#10;
       File "T:\InGame\Gameplay\Scripts\Server\careers\career_event_manager.py", line 386, in _start_scorable_situation_from_tuning&#13;&#10;
       File "T:\InGame\Gameplay\Scripts\Server\careers\career_event_manager.py", line 395, in _scorable_situation_setup&#13;&#10;
       File "T:\InGame\Gameplay\Scripts\Server\situations\situation_manager.py", line 1115, in register_for_callback&#13;&#10;
       File "T:\InGame\Gameplay\Scripts\Server\indexed_manager.py", line 88, in __contains__&#13;&#10;
       TypeError: IndexedManager keys must be integers.rtim=0&#13;&#10;Client Session Time: 42.16&#13; &#10;
       Num Save Errors: 0&#13; &#10;
       Num Load Errors: 0&#13; &#10;
       Current Game State: 0x96d01090&#13; &#10;
       LoadingScreenActiveFlag: 1&#13; &#10;
       Origin Version: 13,477,0,5990&#13; &#10;
       Modded: True&#13; &#10;
       SystemInfo: Windows 11 10.0.26100 GPU: NVIDIA GeForce RTX 3060 Laptop GPU  32.0.15.6607, GUID: 3570AB96-EDF0-11EF-8AAF-D575D18A1133&#13; &#10;
      </desyncdata>
     </report>
    </root>

    I don't know why the Better Exceptions section mentions bad CC, I don't have any CC (just mods) and the BE-ExceptionReport.html doesn't identify any broken mods/CC.

  • richvh's avatar
    richvh
    Seasoned Veteran
    2 months ago

    Got an LE rather than a UI exception on zone in to an active school day on Love Day this time. Again, as I stated in my last UI exception report,I have started a new game with mods enabled, but only Better Exceptions in the mod folder, so I am alerted exactly when the exception occurs.

    <?xml version="1.0" ?>
    <root>
    <BetterExceptions><BEversion>v3.14</BEversion>
    <WasBlank>False</WasBlank>
    <TuningLoadFinished>True</TuningLoadFinished>
    <BadObjectCC>True</BadObjectCC>
    <Advice>This is likely due to bad object CC. Check the Summary and Broken Mods section in BE Report.</Advice>
    </BetterExceptions>
    <report>
    <version>2</version>
    <sessionid>b331174bc673ccd16842132a</sessionid>
    <type>desync</type>
    <sku>ea.maxis.sims4_64.15.pc</sku>
    <createtime>2025-06-05 22:20:36</createtime>
    <buildsignature>Local.Unknown.Unknown.1.115.216.1030-1.200.000.658.Release</buildsignature>
    <categoryid>indexed_manager.py:88</categoryid>
    <desyncid>b331174bc673ccd16842132a</desyncid>
    <systemconfig/>
    <screenshot/>
    <desyncdata>[tingyul] Exception raised while trying to restore career event. (TypeError: IndexedManager keys must be integers.)&#13;&#10;
    Traceback (most recent call last):&#13;&#10;
    &#13;&#10;
      File "T:\InGame\Gameplay\Scripts\Server\areaserver.py", line 130, in wrapped&#13;&#10;
      File "T:\InGame\Gameplay\Scripts\Server\areaserver.py", line 126, in finally_wrap&#13;&#10;
      File "T:\InGame\Gameplay\Scripts\Core\sims4\utils.py", line 157, in wrapper&#13;&#10;
      File "T:\InGame\Gameplay\Scripts\Core\sims4\utils.py", line 175, in wrapper&#13;&#10;
      File "T:\InGame\Gameplay\Scripts\Server\areaserver.py", line 383, in c_api_client_connect&#13;&#10;
      File "T:\InGame\Gameplay\Scripts\Server\zone.py", line 611, in do_zone_spin_up&#13;&#10;
      File "T:\InGame\Gameplay\Scripts\Server\zone_spin_up_service.py", line 1740, in update&#13;&#10;
      File "T:\InGame\Gameplay\Scripts\Server\zone_spin_up_service.py", line 732, in on_enter&#13;&#10;
      File "T:\InGame\Gameplay\Scripts\Server\careers\career_service.py", line 359, in create_career_event_situations_during_zone_spin_up&#13;&#10;
      File "T:\InGame\Gameplay\Scripts\Server\careers\career_base.py", line 2806, in create_career_event_situations_during_zone_spin_up&#13;&#10;
      File "T:\InGame\Gameplay\Scripts\Server\careers\career_event_manager.py", line 523, in create_career_event_situations_during_zone_spin_up&#13;&#10;
      File "T:\InGame\Gameplay\Scripts\Server\careers\career_event_manager.py", line 386, in _start_scorable_situation_from_tuning&#13;&#10;
      File "T:\InGame\Gameplay\Scripts\Server\careers\career_event_manager.py", line 395, in _scorable_situation_setup&#13;&#10;
      File "T:\InGame\Gameplay\Scripts\Server\situations\situation_manager.py", line 1115, in register_for_callback&#13;&#10;
      File "T:\InGame\Gameplay\Scripts\Server\indexed_manager.py", line 88, in __contains__&#13;&#10;
      TypeError: IndexedManager keys must be integers.rtim=0&#13;&#10;
      Client Session Time: 30.53&#13; &#10;
      Num Save Errors: 0&#13; &#10;Num Load Errors: 0&#13; &#10;
      Current Game State: 0x96d01090&#13; &#10;LoadingScreenActiveFlag: 1&#13; &#10;
      Origin Version: 13,477,0,5990&#13; &#10;
      Modded: True&#13; &#10;
      SystemInfo: Windows 11 10.0.26100 GPU: NVIDIA GeForce RTX 3060 Laptop GPU  32.0.15.6607, GUID: 3570AB96-EDF0-11EF-8AAF-D575D18A1133&#13; &#10;
      </desyncdata>
      </report>
    </root>

    I still think these and the UI exceptions are due to conflicts between scheduled holidays and active school days, due to the recent change in how active school days are coded.

  • ciciihh's avatar
    ciciihh
    New Spectator
    2 months ago

    Whenever i follow my teenage sim to highschool the ui bar on the top left keeps glitching / appearing bugged or either not appearing / showing up at all.