dmkilday / GameMaster-GPT

GameMasterGPT is an exciting new open-source project aimed at revolutionizing the world of role-playing games (RPGs) by introducing an AI-powered Game Master. With the power of OpenAI's cutting-edge language model, this project enables the creation and facilitation of immersive RPG adventures like never before.
GNU General Public License v3.0
5 stars 1 forks source link

log and exit is broken #13

Open depwl9992 opened 1 year ago

depwl9992 commented 1 year ago
Player: Continue onward!!
Invalid request to OpenAI API: This model's maximum context length is 4097 tokens. However, your messages resulted in 4177 tokens. Please reduce the length of the messages.
Player: log and exit
Traceback (most recent call last):
  File "D:\My Programs\GameMaster-GPT\gm-gpt.py", line 349, in <module>
    start_new_adventure()
  File "D:\My Programs\GameMaster-GPT\gm-gpt.py", line 209, in start_new_adventure
    if log_file_name == "":
       ^^^^^^^^^^^^^
UnboundLocalError: cannot access local variable 'log_file_name' where it is not associated with a value

I'm guessing something with the refactoring was missed..

dmkilday commented 1 year ago

Sorry...I probably broke this. Note, i changed the log directory name from "Logs" to "log". I did the same thing with Data.