freeCodeCamp / LearnToCodeRPG

A visual novel video game where you learn to code and get a dev job 🎯
https://www.freecodecamp.org/news/learn-to-code-rpg-1-5-update/
BSD 3-Clause "New" or "Revised" License
1.06k stars 110 forks source link

Got an error my guys #14

Closed anrizald closed 2 years ago

anrizald commented 2 years ago

What bug did you encounter?

I'm sorry, but an uncaught exception occurred.

While running game code:
  File "game/script.rpy", line 817, in script call
    call ask_hackathon from _call_ask_hackathon
  File "game/scripts/labels/npc_question_and_answer.rpy", line 51, in script
    $ topics_to_ask.remove('Hackathon')
  File "game/scripts/labels/npc_question_and_answer.rpy", line 51, in <module>
    $ topics_to_ask.remove('Hackathon')
KeyError: u'Hackathon'

-- Full Traceback ------------------------------------------------------------

Full traceback:
  File "game/script.rpy", line 817, in script call
    call ask_hackathon from _call_ask_hackathon
  File "game/scripts/labels/npc_question_and_answer.rpy", line 51, in script
    $ topics_to_ask.remove('Hackathon')
  File "renpy/ast.py", line 923, in execute
    renpy.python.py_exec_bytecode(self.code.bytecode, self.hide, store=self.store)
  File "renpy/python.py", line 2235, in py_exec_bytecode
    exec(bytecode, globals, locals)
  File "game/scripts/labels/npc_question_and_answer.rpy", line 51, in <module>
    $ topics_to_ask.remove('Hackathon')
  File "renpy/python.py", line 875, in do_mutation
    return method(self, *args, **kwargs)
KeyError: u'Hackathon'

Windows-10-10.0.19041
Ren'Py 7.4.8.1895
Learn to Code RPG 1.0
Fri Dec 24 02:24:45 2021

Steps to Reproduce

August 4, called my Lydia and chose Hackathon

Screenshots

No response

Additional Information

No response

enterpreneur369 commented 2 years ago

I have the same error in the hackaton topic part. bug-hachaton )

RuolinZheng08 commented 2 years ago

Fixed in https://github.com/freeCodeCamp/LearnToCodeRPG/commit/5484a5412fe95923bf5a57e47baa622f4d4cc255. Thanks!