This repository has been archived by the owner on Oct 5, 2023. It is now read-only.
[BUG] "Ask" as verb often causes the generator to run for a very long time #131
Labels
bug
Something isn't working
Describe the bug
Some verbs, like "ask," very frequently cause the generator to run forever without outputting text or giving control back to the user. This is frustrating because if you have to terminate the process in Windows (while running locally) it prevents the game from being saved.
To Reproduce
Steps to reproduce the behavior: Unfortunately I don't have a save on hand in a situation where this is guaranteed, but here is an example from earlier: "ask the little girl who all these people are" results in the infinite loop. Reloading (I remembered to make a manual save before trying "ask" that time) at the same point and trying "make the little girl tell you who all these people are" works fine, as expected.
The problem seems worse in long-running games. In case it is relevant, note that I have self.memory = 15 in story_manager.py because 20 was causing 1024 token crashes (see issue #68).
Expected behavior
Preferably it outputs something even if it's nonsense, or else it returns control to me and lets me input something else.
Screenshots
If applicable, add screenshots to help explain your problem.
Additional context
The text was updated successfully, but these errors were encountered: