Closed Audixas closed 4 years ago
Does it also crash when you do /save
/save does not crash the game.
Happens consistently
Traceback (most recent call last):
File "play.py", line 292, in <module>
play_aidungeon_2()
File "play.py", line 127, in play_aidungeon_2
while story_manager.story is None:
AttributeError: 'UnconstrainedStoryManager' object has no attribute 'story'
It's due to
https://github.com/AIDungeon/AIDungeon/blob/f158fa08cdc8b381e0fd806d24dbc2151e65a1d8/play.py#L128-L129
deleting the story
attribute, leading to the error when the loop immediately after tries to access it. Change it to something like story_manager.story = None
should fix it.
happens to me aswell
Latest commits have fixed the issue, restarting now works as intended.
🐛 Bug Report
Describe the bug Game crashes completely upon restarting a story by either ending it or using the /restart command.
How to Reproduce
Expected behavior It is expected that the game would let you restart with a new story normally.
Additional context