Jump to content

Last exception AttributeError: 'NoneType' object


Recommended Posts

Posted

Hey everyone, 
 

I have a minor issue with the Sims4. Everything is running fine, but it will somewhat randomly throw a certain Last Exception. So far I have always been able to map them to specific mods with the help of Better Exceptions, but no luck on this one. It seems to be looking for an object which is not there when trying to apply a buff, I think… But I have no idea which mod could influence something like this.

 

Exception in Sim Timeline: Exception running Element (AttributeError: 'NoneType' object has no attribute 'can_add') 

 

Take a look yourself:

 

Spoiler

Exception in Sim Timeline: Exception running Element (AttributeError: 'NoneType' object has no attribute 'can_add')
Traceback (most recent call last):
  File "T:\InGame\Gameplay\Scripts\Server\scheduling.py", line 212, in simulate
  File "T:\InGame\Gameplay\Scripts\Server\alarms.py", line 260, in _run
  File "T:\InGame\Gameplay\Scripts\Server\statistics\continuous_statistic.py", line 801, in _alarm_callback
  File "T:\InGame\Gameplay\Scripts\Server\statistics\continuous_statistic.py", line 822, in _trigger_callback
  File "T:\InGame\Gameplay\Scripts\Server\statistics\base_statistic_listener.py", line 76, in trigger_callback
  File "T:\InGame\Gameplay\Scripts\Server\statistics\commodity.py", line 1266, in _update_state_down
  File "T:\InGame\Gameplay\Scripts\Server\statistics\commodity.py", line 1513, in _set_state
  File "T:\InGame\Gameplay\Scripts\Server\objects\components\__init__.py", line 459, in exported_func
  File "T:\InGame\Gameplay\Scripts\Server\objects\components\buff_component.py", line 398, in remove_buff
  File "T:\InGame\Gameplay\Scripts\Server\buffs\buff.py", line 1115, in on_remove
  File "T:\InGame\Gameplay\Scripts\Server\objects\components\__init__.py", line 459, in exported_func
  File "T:\InGame\Gameplay\Scripts\Server\objects\components\buff_component.py", line 239, in add_buff_from_op
  File "T:\InGame\Gameplay\Scripts\Server\objects\components\buff_component.py", line 1049, in _can_add_buff_type
AttributeError: 'NoneType' object has no attribute 'can_add'
rtim=0
Client Session Time: 144.05   Num Save Errors: 0   Num Load Errors: 0   Current Game State: 0x96d01090   Origin Version: 10,5,65,38147   Modded: True   SystemInfo: Windows 10 10.0.18362 GPU: NVIDIA GeForce GTX 1080 nvldumdx.dll 26.21.14.3200

 

In the Better exception HTML file I also get a few minor error logs, which may or may not be related. I will provide them in the following spoiler:

 

Spoiler

Tuning | The tag name 'None' was unexpected. Valid tags: who, gender, ages, species, can_age_up, npc, has_been_played, is_active_sim, match_type

 

Tuning | Variant is set to a type that does not exist: loot in Instance: 9446490032171575200 (RTF:CelebrityHangout_ZoneModifier_LotTraitInfo), Types.ZONE_MODIFIER.

 

Tuning | Variant is set to a type that does not exist: loot in Instance: 9446490032171575200 (RTF:CelebrityHangout_ZoneModifier_LotTraitInfo), Types.ZONE_MODIFIER.

 

Tuning | Variant is set to a type that does not exist: loot in Instance: 9446490032171575200 (RTF:CelebrityHangout_ZoneModifier_LotTraitInfo), Types.ZONE_MODIFIER.

 

Tuning | Error while parsing tuning in Instance: 3285809648 (TURBODRIVER:WickedWhims_Narrative_Warning), Types.NARRATIVE

 

Tuning | <UNKNOWN ITEM> has an invalid value for <enum <class 'int'>: NarrativeGroup> specified: 99999. Setting to default value NarrativeGroup.INVALID

 

Also, according to Better Exceptions no invalid tuning mods or object CC was found.

 

I'm using lastest version of the game as well as latest patreon releases of WW, NWP (second hotfix after WW SimHub update) and Basemental. 

 

Other information from Better Exceptions:

Game Version: 1.61.15.1020-1.200.000.440.Release

Category ID: buff_component.py:1049

 

I would appreciate any help on this as I don't know what else to check and sadly I have no idea how to debug this in python. :( 

 

Thanks in advance!

 

Edit: I also have no mod conflicts showing in Mod Conflict Detector.

Posted
2 hours ago, tijuanaflow said:

Hey everyone, 
 

I have a minor issue with the Sims4. Everything is running fine, but it will somewhat randomly throw a certain Last Exception. So far I have always been able to map them to specific mods with the help of Better Exceptions, but no luck on this one. It seems to be looking for an object which is not there when trying to apply a buff, I think… But I have no idea which mod could influence something like this.

 

Exception in Sim Timeline: Exception running Element (AttributeError: 'NoneType' object has no attribute 'can_add') 

 

Take a look yourself:

 

  Hide contents

Exception in Sim Timeline: Exception running Element (AttributeError: 'NoneType' object has no attribute 'can_add')
Traceback (most recent call last):
  File "T:\InGame\Gameplay\Scripts\Server\scheduling.py", line 212, in simulate
  File "T:\InGame\Gameplay\Scripts\Server\alarms.py", line 260, in _run
  File "T:\InGame\Gameplay\Scripts\Server\statistics\continuous_statistic.py", line 801, in _alarm_callback
  File "T:\InGame\Gameplay\Scripts\Server\statistics\continuous_statistic.py", line 822, in _trigger_callback
  File "T:\InGame\Gameplay\Scripts\Server\statistics\base_statistic_listener.py", line 76, in trigger_callback
  File "T:\InGame\Gameplay\Scripts\Server\statistics\commodity.py", line 1266, in _update_state_down
  File "T:\InGame\Gameplay\Scripts\Server\statistics\commodity.py", line 1513, in _set_state
  File "T:\InGame\Gameplay\Scripts\Server\objects\components\__init__.py", line 459, in exported_func
  File "T:\InGame\Gameplay\Scripts\Server\objects\components\buff_component.py", line 398, in remove_buff
  File "T:\InGame\Gameplay\Scripts\Server\buffs\buff.py", line 1115, in on_remove
  File "T:\InGame\Gameplay\Scripts\Server\objects\components\__init__.py", line 459, in exported_func
  File "T:\InGame\Gameplay\Scripts\Server\objects\components\buff_component.py", line 239, in add_buff_from_op
  File "T:\InGame\Gameplay\Scripts\Server\objects\components\buff_component.py", line 1049, in _can_add_buff_type
AttributeError: 'NoneType' object has no attribute 'can_add'
rtim=0
Client Session Time: 144.05   Num Save Errors: 0   Num Load Errors: 0   Current Game State: 0x96d01090   Origin Version: 10,5,65,38147   Modded: True   SystemInfo: Windows 10 10.0.18362 GPU: NVIDIA GeForce GTX 1080 nvldumdx.dll 26.21.14.3200

 

In the Better exception HTML file I also get a few minor error logs, which may or may not be related. I will provide them in the following spoiler:

 

  Hide contents

Tuning | The tag name 'None' was unexpected. Valid tags: who, gender, ages, species, can_age_up, npc, has_been_played, is_active_sim, match_type

 

Tuning | Variant is set to a type that does not exist: loot in Instance: 9446490032171575200 (RTF:CelebrityHangout_ZoneModifier_LotTraitInfo), Types.ZONE_MODIFIER.

 

Tuning | Variant is set to a type that does not exist: loot in Instance: 9446490032171575200 (RTF:CelebrityHangout_ZoneModifier_LotTraitInfo), Types.ZONE_MODIFIER.

 

Tuning | Variant is set to a type that does not exist: loot in Instance: 9446490032171575200 (RTF:CelebrityHangout_ZoneModifier_LotTraitInfo), Types.ZONE_MODIFIER.

 

Tuning | Error while parsing tuning in Instance: 3285809648 (TURBODRIVER:WickedWhims_Narrative_Warning), Types.NARRATIVE

 

Tuning | <UNKNOWN ITEM> has an invalid value for <enum <class 'int'>: NarrativeGroup> specified: 99999. Setting to default value NarrativeGroup.INVALID

 

Also, according to Better Exceptions no invalid tuning mods or object CC was found.

 

I'm using lastest version of the game as well as latest patreon releases of WW, NWP (second hotfix after WW SimHub update) and Basemental. 

 

Other information from Better Exceptions:

Game Version: 1.61.15.1020-1.200.000.440.Release

Category ID: buff_component.py:1049

 

I would appreciate any help on this as I don't know what else to check and sadly I have no idea how to debug this in python. :( 

 

Thanks in advance!

 

Edit: I also have no mod conflicts showing in Mod Conflict Detector.

Road to fame could be the problem.....

Posted
2 hours ago, procian said:

Road to fame could be the problem.....

Thank you, I will take it out and see if I still get LE's. I will update this if it worked. 

Posted
On 3/14/2020 at 2:44 PM, procian said:

Road to fame could be the problem.....

Sorry, didn't have enough time to test the last days. So, after playing for a few hours (without road to fame), I get a different exception, again I could not define a specific situation where this occured.

 

Spoiler

Exception in <function c_api_wall_contour_update at 0x00007FF4C55EE290>, args: (1093260629335688122, 2), kwargs: {}
TypeError('get_wall_contours() argument 3 must be _pathing.SurfaceIdentifier, not None') (TypeError: get_wall_contours() argument 3 must be _pathing.SurfaceIdentifier, not None)
Traceback (most recent call last):
  File "T:\InGame\Gameplay\Scripts\Core\sims4\utils.py", line 183, in wrapper
  File "D:\Projects\Sims 4 Modding\Mods\TMex Mods 2018\Tmex-AllCheats\PublicUnlock.py", line 14, in _unlock
  File "D:\Projects\Sims 4 Modding\Mods\TMex Mods 2018\Tmex-BetterExceptions\tmex_BetterExceptions_Hooks.py", line 96, in tm_be_class_exceptions
  File "T:\InGame\Gameplay\Scripts\Server\sims\masked\v152\injector.py", line 26, in _wrapped_function
  File "T:\InGame\Gameplay\Scripts\Server\sims\masked\v152\exceptions_feedback.py", line 18, in _on_exception_occurrence
  File "E:\Builds\MCCC_7_0_0\mc_cmd_center\mc_utils.py", line 145, in _wrapper_function
  File "T:\InGame\Gameplay\Scripts\Core\sims4\utils.py", line 179, in wrapper
  File "T:\InGame\Gameplay\Scripts\Server\build_buy.py", line 648, in c_api_wall_contour_update
  File "T:\InGame\Gameplay\Scripts\Core\sims4\callback_utils.py", line 222, in __call__
  File "T:\InGame\Gameplay\Scripts\Core\sims4\callback_utils.py", line 158, in __call__
  File "T:\InGame\Gameplay\Scripts\Server\objects\components\line_of_sight_component.py", line 395, in _on_wall_contours_updated
  File "T:\InGame\Gameplay\Scripts\Server\objects\components\line_of_sight_component.py", line 447, in _generate_los
  File "T:\InGame\Gameplay\Scripts\Server\objects\components\line_of_sight_component.py", line 156, in generate
TypeError: get_wall_contours() argument 3 must be _pathing.SurfaceIdentifier, not None
rtim=0

 

 

Posted
3 hours ago, tijuanaflow said:

Sorry, didn't have enough time to test the last days. So, after playing for a few hours (without road to fame), I get a different exception, again I could not define a specific situation where this occured.

 

  Reveal hidden contents

Exception in <function c_api_wall_contour_update at 0x00007FF4C55EE290>, args: (1093260629335688122, 2), kwargs: {}
TypeError('get_wall_contours() argument 3 must be _pathing.SurfaceIdentifier, not None') (TypeError: get_wall_contours() argument 3 must be _pathing.SurfaceIdentifier, not None)
Traceback (most recent call last):
  File "T:\InGame\Gameplay\Scripts\Core\sims4\utils.py", line 183, in wrapper
  File "D:\Projects\Sims 4 Modding\Mods\TMex Mods 2018\Tmex-AllCheats\PublicUnlock.py", line 14, in _unlock
  File "D:\Projects\Sims 4 Modding\Mods\TMex Mods 2018\Tmex-BetterExceptions\tmex_BetterExceptions_Hooks.py", line 96, in tm_be_class_exceptions
  File "T:\InGame\Gameplay\Scripts\Server\sims\masked\v152\injector.py", line 26, in _wrapped_function
  File "T:\InGame\Gameplay\Scripts\Server\sims\masked\v152\exceptions_feedback.py", line 18, in _on_exception_occurrence
  File "E:\Builds\MCCC_7_0_0\mc_cmd_center\mc_utils.py", line 145, in _wrapper_function
  File "T:\InGame\Gameplay\Scripts\Core\sims4\utils.py", line 179, in wrapper
  File "T:\InGame\Gameplay\Scripts\Server\build_buy.py", line 648, in c_api_wall_contour_update
  File "T:\InGame\Gameplay\Scripts\Core\sims4\callback_utils.py", line 222, in __call__
  File "T:\InGame\Gameplay\Scripts\Core\sims4\callback_utils.py", line 158, in __call__
  File "T:\InGame\Gameplay\Scripts\Server\objects\components\line_of_sight_component.py", line 395, in _on_wall_contours_updated
  File "T:\InGame\Gameplay\Scripts\Server\objects\components\line_of_sight_component.py", line 447, in _generate_los
  File "T:\InGame\Gameplay\Scripts\Server\objects\components\line_of_sight_component.py", line 156, in generate
TypeError: get_wall_contours() argument 3 must be _pathing.SurfaceIdentifier, not None
rtim=0

 

 

Please upload the full lastException.txt file instead of these snipped pieces. Otherwise we can't get the full picture of what's going on.

Just drag it on to the white paperclip.

Udklip.PNG.d9b605fe685d4c713ab53c892571e111.PNG

Posted
10 hours ago, tijuanaflow said:

Sorry, didn't have enough time to test the last days. So, after playing for a few hours (without road to fame), I get a different exception, again I could not define a specific situation where this occured.

 

  Reveal hidden contents

 

 

What Lazlo says....post the L/E file using the white paper clip....try not to use cut and paste ;)

 

Posted
10 hours ago, Lazlo_71 said:

Please upload the full lastException.txt file instead of these snipped pieces. Otherwise we can't get the full picture of what's going on.

Just drag it on to the white paperclip.

 

 

3 hours ago, procian said:

What Lazlo says....post the L/E file using the white paper clip....try not to use cut and paste ;)

 

 

Oh, I’m sorry, I didn‘t think that would be useful. Would the Better exceptions HTML file also be ok? It also includes all currently running script mods and such.

 

I‘ll upload it in the next few hours, have to do some work right now.

Posted
3 hours ago, procian said:

What Lazlo says....post the L/E file using the white paper clip....try not to use cut and paste ;)

 

 

10 hours ago, Lazlo_71 said:

Please upload the full lastException.txt file instead of these snipped pieces. Otherwise we can't get the full picture of what's going on.

Just drag it on to the white paperclip.

 

 

7 minutes ago, tijuanaflow said:

Oh, I’m sorry, I didn‘t think that would be useful. Would the Better exceptions HTML file also be ok? It also includes all currently running script mods and such.

 

I‘ll upload it in the next few hours, have to do some work right now.

On second thought, better to supply them now before I do work :D 

Funnily enough, my last exception files are all empty, so I can only supply the BE HTML. Hope that is ok for you guys and thanks for your help!

 

BE-ExceptionReport.html

Posted
49 minutes ago, tijuanaflow said:

 

 

On second thought, better to supply them now before I do work :D 

Funnily enough, my last exception files are all empty, so I can only supply the BE HTML. Hope that is ok for you guys and thanks for your help!

 

BE-ExceptionReport.html 29.73 kB · 1 download

For starters... You don't need Scumbumbo's TeleportAnySim. The function is incorporated in MCCC.
Likewise with NisaK Lot Trait Extender. That's buildt in to NWP.
Those two things alone could mess things up alot. Espesially NLTE.

 

You also need to update Better Exceptions. Latest version there is (as far as I know) 1.07.

 

Otherwise I'm afraid that I'm a bit perplexed. Try the things I've mentioned here and see what that does to your game.
Otherwise make sure that ALL your mods are up-to-date.  If you still get LE's please post them here.

Posted
1 hour ago, Lazlo_71 said:

For starters... You don't need Scumbumbo's TeleportAnySim. The function is incorporated in MCCC.
Likewise with NisaK Lot Trait Extender. That's buildt in to NWP.
Those two things alone could mess things up alot. Espesially NLTE.

 

You also need to update Better Exceptions. Latest version there is (as far as I know) 1.07.

 

Otherwise I'm afraid that I'm a bit perplexed. Try the things I've mentioned here and see what that does to your game.
Otherwise make sure that ALL your mods are up-to-date.  If you still get LE's please post them here.

Thank you for having a look! I removed TeleportAnySim and NLTE and updated BetterExceptions to the newest version. 

 

I‘ll take another look if all my mods are up-to-date, but generally I only do game updates 1-2 weeks after release when all modders had the time to update. Then I‘ll go trough all my mods and update anything that needs to and remove mods which have not been updated. But as you can see, some mods just slip trough the cracks ;) 

 

If I still get LE‘s after that, I‘ll post them here. But again, thanks so much for your help, it is highly appreciated!!

Posted

Whew, so after doing this I still got LE's. I checked all mods again and still nothing. But a few hours ago I got it to a point where I had saved right before an LE popped up. So I started doing the 50/50 method and ended up finding the culprit in one of KawaiiStacie's Mods. I guess it is one of her event mods, but I'm not 100% sure as I just threw out everything I did not use and that fixed the LE popping up. Fingers crossed that this was the culprit of the random LE's I've been getting.

I also ended up removing other mods I don't use and updating some I had missed, so I'm pretty sure this will have solved most issues.

Posted
3 hours ago, tijuanaflow said:

Whew, so after doing this I still got LE's. I checked all mods again and still nothing. But a few hours ago I got it to a point where I had saved right before an LE popped up. So I started doing the 50/50 method and ended up finding the culprit in one of KawaiiStacie's Mods. I guess it is one of her event mods, but I'm not 100% sure as I just threw out everything I did not use and that fixed the LE popping up. Fingers crossed that this was the culprit of the random LE's I've been getting.

I also ended up removing other mods I don't use and updating some I had missed, so I'm pretty sure this will have solved most issues.

Well you beat me to it then. I was going to suggest 50/50 as the next thing. Good that you found the culprit and even though you're not quite sure there is the added benefit of getting a more tidy mods folder ?.

Fingers crossed that you found it though. 

Archived

This topic is now archived and is closed to further replies.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...