Issue with directions and location during start location generation #107

Closed
opened 2025-10-26 03:15:18 -04:00 by neph1 · 0 comments
neph1 commented 2025-10-26 03:15:18 -04:00 (Migrated from github.com)

There is a long running issue with directions being None when start location is generated during anything stories. This may cause issues with returning to the location, and also exceptions in "look" commands. This is what a result might look like:

{
                    "name": "Willowdale",
                    "descr": "",
                    "short_descr": "",
                    "exits": [
                        {
                            "name": "Winding way",
                            "short_descr": "To the None you see Winding Way.",
                            "long_descr": "To the None you see Winding Way.",
                            "direction": null
                        },
                        {
                            "name": "Winding way",
                            "short_descr": "To the None you see Winding Way.",
                            "long_descr": "To the None you see Winding Way.",
                            "direction": null
                        }
                    ],
                    "world_location": [
                        0,
                        0,
                        0
                    ],
                    "built": false,
                    "items": []
                },

note the None where there should be North, South, East or West

Exception which I think is related:

  File “/LlamaTale/tale/base.py”, line 791, in Location.look
  Source code:
      for exit_name in sorted(self.exits):
  Local values:
      exclude_living = <Player 'arto' #15 @ 0x7fdd236d6170, privs:->
      exit_paragraph = []
      exits_seen = set()
      paragraphs = [’[Willowdale]’, ’A picturesque meadow filled with vibrant wildflowers in the heart of Willowdale. Delicate lavender sways in the gentle breeze, releasing a soothing, sweet fragrance.’]
      self = <Location 'Willowdale Meadow' #20 @ 0x7fdd23235b10>
      short = False
   EXCEPTION HERE: TypeError: ’<' not supported between instances of 'NoneType' and 'str'

This is likely not caused by the LLM's response, and is more likely a parsing issue. Seems to only occur when generating start locations for anything stories

There is a long running issue with directions being None when start location is generated during anything stories. This may cause issues with returning to the location, and also exceptions in "look" commands. This is what a result might look like: ``` { "name": "Willowdale", "descr": "", "short_descr": "", "exits": [ { "name": "Winding way", "short_descr": "To the None you see Winding Way.", "long_descr": "To the None you see Winding Way.", "direction": null }, { "name": "Winding way", "short_descr": "To the None you see Winding Way.", "long_descr": "To the None you see Winding Way.", "direction": null } ], "world_location": [ 0, 0, 0 ], "built": false, "items": [] }, ``` note the `None` where there should be North, South, East or West Exception which I think is related: ``` File “/LlamaTale/tale/base.py”, line 791, in Location.look Source code: for exit_name in sorted(self.exits): Local values: exclude_living = <Player 'arto' #15 @ 0x7fdd236d6170, privs:-> exit_paragraph = [] exits_seen = set() paragraphs = [’[Willowdale]’, ’A picturesque meadow filled with vibrant wildflowers in the heart of Willowdale. Delicate lavender sways in the gentle breeze, releasing a soothing, sweet fragrance.’] self = <Location 'Willowdale Meadow' #20 @ 0x7fdd23235b10> short = False EXCEPTION HERE: TypeError: ’<' not supported between instances of 'NoneType' and 'str' ``` This is likely not caused by the LLM's response, and is more likely a parsing issue. Seems to only occur when generating start locations for anything stories
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#107
No description provided.