’>’ not supported between instances of ’NoneType’ and ’int’ #100

Closed
opened 2025-07-04 10:25:22 -04:00 by tjohnman · 2 comments
tjohnman commented 2025-07-04 10:25:22 -04:00 (Migrated from github.com)

There seems to be an issue with the mood parameter being set to 0. My game crashed just after an "anything story" was created, where I specified "0" as the mood when asked to set it between -5 and 5.

LlamaTale-0.38.0\tale\parse_utils.py”, line 500, in mood_string_from_int
Source code:
    base_mood = ’friendly’ if mood > 0 else ’hostile’

Local values:
    mood = None
There seems to be an issue with the `mood` parameter being set to 0. My game crashed just after an "anything story" was created, where I specified "0" as the mood when asked to set it between -5 and 5. ``` LlamaTale-0.38.0\tale\parse_utils.py”, line 500, in mood_string_from_int Source code: base_mood = ’friendly’ if mood > 0 else ’hostile’ Local values: mood = None ```
neph1 commented 2025-07-05 01:11:30 -04:00 (Migrated from github.com)

Thanks, I'll see if I can reproduce it

Thanks, I'll see if I can reproduce it
neph1 commented 2025-07-05 01:22:14 -04:00 (Migrated from github.com)

Must be something pythonic along the way where 0 is handled as None. Fixed on the receiving end.

Must be something pythonic along the way where 0 is handled as None. Fixed on the receiving end.
Sign in to join this conversation.
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
neph1/LlamaTale#100
No description provided.