Forum Discussion

T0RN_x's avatar
T0RN_x
Seasoned Veteran
5 months ago
Solved

[ARCHIVED] [S] Holidays without a day off work causes LE (time_off_work)

Product: The Sims 4
Platform: PC
Which language are you playing the game in? Deutsch
How often does the bug occur? Every time (100%)
What is your current game version number? 1.110.311.1020
What expansions, game packs, and stuff packs do you have installed? Everthing.
Steps: How can we find the bug ourselves? Create a holiday and leave no check mark for the day off from work/school.
What happens when the bug occurs? If the holiday was created and I restart the game (i think), an LE is created and the holiday cannot be edited. (The Holiday can still be deleted.)
What do you expect to see? That no LE is created and the holiday can also be edited.
Have you installed any customization with the game, e.g. Custom Content or Mods? Not now. I've removed them.
Did this issue appear after a specific patch or change you made to your system? No.


Error message:

Error message: Exception in Sim Timeline: Exception running Element (AttributeError: 'NoneType' object has no attribute 'time_off_work'), CategoryID: custom_holiday:95

LE:

Spoiler
<?xml version="1.0" ?><root>
<report><version>2</version><sessionid>fceffa2193a7c513674da896</sessionid><type>desync</type><sku>ea.maxis.sims4_64.15.pc</sku><createtime>2024-12-02 13:39:46</createtime><buildsignature>Local.Unknown.Unknown.1.110.311.1020-1.300.000.196.Release</buildsignature><categoryid>holiday_service.py:308</categoryid><desyncid>fceffa2193a7c513674da896</desyncid><systemconfig/><screenshot/><desyncdata>Exception in Sim Timeline: Exception running Element (AttributeError: 'NoneType' object has no attribute 'time_off_work')&#13;&#10;Traceback (most recent call last):&#13;&#10; File "T:\InGame\Gameplay\Scripts\Server\scheduling.py", line 231, in simulate&#13;&#10; File "T:\InGame\Gameplay\Scripts\Server\alarms.py", line 260, in _run&#13;&#10; File "T:\InGame\Gameplay\Scripts\Server\scheduler.py", line 282, in _early_warning_alarm_callback&#13;&#10; File "T:\InGame\Gameplay\Scripts\Server\careers\career_base.py", line 2084, in early_warning_callback&#13;&#10; File "T:\InGame\Gameplay\Scripts\Server\careers\career_base.py", line 2179, in _get_drama_node_time_off_reason&#13;&#10; File "T:\InGame\Gameplay\Scripts\Server\holidays\holiday_drama_node.py", line 137, in get_time_off_reason&#13;&#10; File "T:\InGame\Gameplay\Scripts\Server\holidays\holiday_service.py", line 308, in get_holiday_time_off_work&#13;&#10; File "T:\InGame\Gameplay\Scripts\Server\holidays\custom_holiday.py", line 95, in time_off_workAttributeError: 'NoneType' object has no attribute 'time_off_work'rtim=0&#13;&#10;Client Session Time: 18.49&#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,350,0,5863&#13; &#10;Modded: False&#13; &#10;SystemInfo: Windows 10 10.0.19045 GPU: NVIDIA GeForce RTX 4060 nvldumdx.dll 32.0.15.6614, GUID: D7B71E3E-6BC2-11CF-046E-6E710EC2ED35&#13; &#10;</desyncdata></report>
</root>

WORKAROUND:
Open your Save Game in Sims 4 Studio
and then at Game Save Data under holiday_service and click on edit items next to holiday and see if some holidays time_off_for_school and time_off_for_work are not checked? If not, then check both of them. Then save and try to edit the holiday in the game. Because I have the problem that I have to set these hooks so that the holiday no longer creates LE's and I can edit it.

Occurs in version:
1.110.311
1.111.102

1.112.481

About The Sims 4 Bug Reports - Archive

This is a read-only archive of bugs previously reported on Answers HQ. Click "The Sims 4 Bug Reports" in the right-rail to browse and create new bugs.14,624 PostsLatest Activity: 6 months ago