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

game crash when discussing hackathon with Annika (on August 4) #29

Closed SHANbic closed 2 years ago

SHANbic commented 2 years ago

What bug did you encounter?

[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 "/Users/lambert_pierre/Desktop/LearnToCodeRPG.app/Contents/Resources/autorun/renpy/ast.py", line 923, in execute renpy.python.py_exec_bytecode(self.code.bytecode, self.hide, store=self.store) File "/Users/lambert_pierre/Desktop/LearnToCodeRPG.app/Contents/Resources/autorun/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 "/Users/lambert_pierre/Desktop/LearnToCodeRPG.app/Contents/Resources/autorun/renpy/python.py", line 875, in do_mutation return method(self, *args, **kwargs) KeyError: u'Hackathon'

Darwin-19.6.0-x86_64-i386-64bit Ren'Py 7.4.8.1895 Learn to Code RPG 1.0 Sun Dec 26 23:12:25 2021 [/code]

Steps to Reproduce

on the 4th of August, ask Annika about Hackathon to eventually have the game crashing at some point in the discussion. Unfortunately, it appears you can't really avoid it as the "That's everything I need to know" option is not clickable.

Screenshots

No response

Additional Information

No response

RuolinZheng08 commented 2 years ago

Duplicate of #14. Fixed. Please feel free to download the updated version from itch. Your saved game should carry over without a problem.