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

error "I'm sorry, but an uncaught exception occurred." in hackathon option #43

Closed franciscomelov closed 2 years ago

franciscomelov commented 2 years ago

What bug did you encounter?

This is the description of error that the game gives

[code] 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 $ 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 $ 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 Mon Jan 3 17:01:33 2022 [/code]

Steps to Reproduce

In the part when I can choose between

Hackathon Hacker space That's everything I need to know

When I choose "hackathon" after Annika explains what a hackathon is, the game trows the error

Screenshots

bug 2

bug

Additional Information

Is I choose ignore error, I can keep playing without problems

RuolinZheng08 commented 2 years ago

Fixed in this commit: 5484a5412fe95923bf5a57e47baa622f4d4cc255