You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Additional context
This is new code, I'm guessing it just needs a check that age exists before it runs
Screenshots
File "C:\Users\mbake\Documents B\ClanGen\ClanGen\clangen\scripts\events.py", line 137, in one_moon
self.one_moon_cat(cat)
File "C:\Users\mbake\Documents B\ClanGen\ClanGen\clangen\scripts\events.py", line 1211, in one_moon_cat
triggered_death = self.handle_injuries_or_general_death(cat)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\mbake\Documents B\ClanGen\ClanGen\clangen\scripts\events.py", line 2158, in handle_injuries_or_general_death
triggered_death = Condition_Events.handle_injuries(cat, random_cat)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\mbake\Documents B\ClanGen\ClanGen\clangen\scripts\events_module\condition_events.py", line 397, in handle_injuries
handle_short_events.handle_event(
File "C:\Users\mbake\Documents B\ClanGen\ClanGen\clangen\scripts\events_module\handle_short_events.py", line 192, in handle_event
self.handle_new_cats()
File "C:\Users\mbake\Documents B\ClanGen\ClanGen\clangen\scripts\events_module\handle_short_events.py", line 322, in handle_new_cats
create_new_cat_block(
File "C:\Users\mbake\Documents B\ClanGen\ClanGen\clangen\scripts\utility.py", line 522, in create_new_cat_block
if age <= 6 and not bs_override:
^^^^^^^^
TypeError: '<=' not supported between instances of 'NoneType' and 'int'
The text was updated successfully, but these errors were encountered:
Type: (only select one)
Describe the bug
Game crashed when I timeskipped due to age being None in create_new_cat_block when creating a cat for an event
Grade: (only select one)
Reproduce
Steps to reproduce the behavior:
Commit # or Game Version Number:
Commit: 6486cb4
Additional context
This is new code, I'm guessing it just needs a check that age exists before it runs
Screenshots
File "C:\Users\mbake\Documents B\ClanGen\ClanGen\clangen\scripts\events.py", line 137, in one_moon
self.one_moon_cat(cat)
File "C:\Users\mbake\Documents B\ClanGen\ClanGen\clangen\scripts\events.py", line 1211, in one_moon_cat
triggered_death = self.handle_injuries_or_general_death(cat)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\mbake\Documents B\ClanGen\ClanGen\clangen\scripts\events.py", line 2158, in handle_injuries_or_general_death
triggered_death = Condition_Events.handle_injuries(cat, random_cat)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\mbake\Documents B\ClanGen\ClanGen\clangen\scripts\events_module\condition_events.py", line 397, in handle_injuries
handle_short_events.handle_event(
File "C:\Users\mbake\Documents B\ClanGen\ClanGen\clangen\scripts\events_module\handle_short_events.py", line 192, in handle_event
self.handle_new_cats()
File "C:\Users\mbake\Documents B\ClanGen\ClanGen\clangen\scripts\events_module\handle_short_events.py", line 322, in handle_new_cats
create_new_cat_block(
File "C:\Users\mbake\Documents B\ClanGen\ClanGen\clangen\scripts\utility.py", line 522, in create_new_cat_block
if age <= 6 and not bs_override:
^^^^^^^^
TypeError: '<=' not supported between instances of 'NoneType' and 'int'
The text was updated successfully, but these errors were encountered: