Name '_history' is not defined and name 'quick_menu' is not defined?

Forum organization and occasional community-building.
Forum rules
Questions about Ren'Py should go in the Ren'Py Questions and Announcements forum.
Post Reply
Message
Author
Nightmarecool2
Newbie
Posts: 12
Joined: Thu Aug 11, 2022 5:38 pm
Contact:

Name '_history' is not defined and name 'quick_menu' is not defined?

#1 Post by Nightmarecool2 »

Here are the tracebacks:

This is the first one:

Code: Select all

I'm sorry, but an uncaught exception occurred.

While running game code:
  File "renpy/common/00start.rpy", line 232, in script
    $ _old_history = _history
  File "renpy/common/00start.rpy", line 232, in <module>
    $ _old_history = _history
NameError: name '_history' is not defined

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

Full traceback:
  File "renpy/common/00start.rpy", line 232, in script
    $ _old_history = _history
  File "C:\Users\<username>\Desktop\Current progress visual novel\renpy-7.4.4-sdk\renpy\ast.py", line 1131, in execute
    renpy.python.py_exec_bytecode(self.code.bytecode, self.hide, store=self.store)
  File "C:\Users\<username>\Desktop\Current progress visual novel\renpy-7.4.4-sdk\renpy\python.py", line 1049, in py_exec_bytecode
    exec(bytecode, globals, locals)
  File "renpy/common/00start.rpy", line 232, in <module>
    $ _old_history = _history
NameError: name '_history' is not defined

Windows-10-10.0.22621 AMD64
Ren'Py 8.0.1.22070801
The Eerie Town of Tora 1.0
Wed Jul 19 12:09:44 2023


When I press ignore and continue:


Code: Select all

I'm sorry, but an uncaught exception occurred.

While running game code:
  File "renpy/common/00start.rpy", line 244, in script
    $ _history = _old_history
  File "renpy/common/00start.rpy", line 244, in <module>
    $ _history = _old_history
NameError: name '_old_history' is not defined

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

Full traceback:
  File "renpy/common/00start.rpy", line 244, in script
    $ _history = _old_history
  File "C:\Users\<username>\Desktop\Current progress visual novel\renpy-7.4.4-sdk\renpy\ast.py", line 1131, in execute
    renpy.python.py_exec_bytecode(self.code.bytecode, self.hide, store=self.store)
  File "C:\Users\<username>\Desktop\Current progress visual novel\renpy-7.4.4-sdk\renpy\python.py", line 1049, in py_exec_bytecode
    exec(bytecode, globals, locals)
  File "renpy/common/00start.rpy", line 244, in <module>
    $ _history = _old_history
NameError: name '_old_history' is not defined

Windows-10-10.0.22621 AMD64
Ren'Py 8.0.1.22070801
The Eerie Town of Tora 1.0
Wed Jul 19 12:12:55 2023

When I press ignore again:

Code: Select all

I'm sorry, but an uncaught exception occurred.

While running game code:
  File "renpy/common/00start.rpy", line 245, in script
    $ del _old_history
  File "renpy/common/00start.rpy", line 245, in <module>
    $ del _old_history
NameError: name '_old_history' is not defined

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

Full traceback:
  File "renpy/common/00start.rpy", line 245, in script
    $ del _old_history
  File "C:\Users\<username>\Desktop\Current progress visual novel\renpy-7.4.4-sdk\renpy\ast.py", line 1131, in execute
    renpy.python.py_exec_bytecode(self.code.bytecode, self.hide, store=self.store)
  File "C:\Users\<username>\Desktop\Current progress visual novel\renpy-7.4.4-sdk\renpy\python.py", line 1049, in py_exec_bytecode
    exec(bytecode, globals, locals)
  File "renpy/common/00start.rpy", line 245, in <module>
    $ del _old_history
NameError: name '_old_history' is not defined

Windows-10-10.0.22621 AMD64
Ren'Py 8.0.1.22070801
The Eerie Town of Tora 1.0
Wed Jul 19 12:13:16 2023
When I press ignore and then start:

Code: Select all

I'm sorry, but an uncaught exception occurred.

While running game code:
  File "game/script.rpy", line 463, in script
    "{i}{color=#FF00FF}Chapter 1: Welcome to Tōra.{/i}"
  File "renpy/common/000window.rpy", line 114, in _window_auto_callback
    _window_show(auto=True)
  File "renpy/common/000window.rpy", line 69, in _window_show
    renpy.with_statement(trans)
  File "game/screens.rpy", line 267, in execute
    screen quick_menu():
  File "game/screens.rpy", line 267, in execute
    screen quick_menu():
  File "game/screens.rpy", line 272, in execute
    if quick_menu:
  File "game/screens.rpy", line 272, in <module>
    if quick_menu:
NameError: name 'quick_menu' is not defined

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

Full traceback:
  File "game/script.rpy", line 463, in script
    "{i}{color=#FF00FF}Chapter 1: Welcome to Tōra.{/i}"
  File "C:\Users\<username>\Desktop\Current progress visual novel\renpy-7.4.4-sdk\renpy\ast.py", line 891, in execute
    statement_name("say")
  File "C:\Users\<username>\Desktop\Current progress visual novel\renpy-7.4.4-sdk\renpy\ast.py", line 47, in statement_name
    i(name)
  File "renpy/common/000window.rpy", line 114, in _window_auto_callback
    _window_show(auto=True)
  File "renpy/common/000window.rpy", line 69, in _window_show
    renpy.with_statement(trans)
  File "C:\Users\<username>\Desktop\Current progress visual novel\renpy-7.4.4-sdk\renpy\exports.py", line 1653, in with_statement
    return renpy.game.interface.do_with(trans, paired, clear=clear)
  File "C:\Users\<username>\Desktop\Current progress visual novel\renpy-7.4.4-sdk\renpy\display\core.py", line 2798, in do_with
    return self.interact(trans_pause=True,
  File "C:\Users\<username>\Desktop\Current progress visual novel\renpy-7.4.4-sdk\renpy\display\core.py", line 3377, in interact
    repeat, rv = self.interact_core(preloads=preloads, trans_pause=trans_pause, pause=pause, pause_start=pause_start, **kwargs) # type: ignore
  File "C:\Users\<username>\Desktop\Current progress visual novel\renpy-7.4.4-sdk\renpy\display\core.py", line 3804, in interact_core
    root_widget.visit_all(lambda i : i.per_interact())
  File "C:\Users\<username>\Desktop\Current progress visual novel\renpy-7.4.4-sdk\renpy\display\core.py", line 582, in visit_all
    d.visit_all(callback, seen)
  File "C:\Users\<username>\Desktop\Current progress visual novel\renpy-7.4.4-sdk\renpy\display\core.py", line 582, in visit_all
    d.visit_all(callback, seen)
  File "C:\Users\<username>\Desktop\Current progress visual novel\renpy-7.4.4-sdk\renpy\display\core.py", line 582, in visit_all
    d.visit_all(callback, seen)
  [Previous line repeated 1 more time]
  File "C:\Users\<username>\Desktop\Current progress visual novel\renpy-7.4.4-sdk\renpy\display\screen.py", line 451, in visit_all
    callback(self)
  File "C:\Users\<username>\Desktop\Current progress visual novel\renpy-7.4.4-sdk\renpy\display\core.py", line 3804, in <lambda>
    root_widget.visit_all(lambda i : i.per_interact())
  File "C:\Users\<username>\Desktop\Current progress visual novel\renpy-7.4.4-sdk\renpy\display\screen.py", line 462, in per_interact
    self.update()
  File "C:\Users\<username>\Desktop\Current progress visual novel\renpy-7.4.4-sdk\renpy\display\screen.py", line 653, in update
    self.screen.function(**self.scope)
  File "game/screens.rpy", line 267, in execute
    screen quick_menu():
  File "game/screens.rpy", line 267, in execute
    screen quick_menu():
  File "game/screens.rpy", line 272, in execute
    if quick_menu:
  File "game/screens.rpy", line 272, in <module>
    if quick_menu:
NameError: name 'quick_menu' is not defined

Windows-10-10.0.22621 AMD64
Ren'Py 8.0.1.22070801
The Eerie Town of Tora 1.0
Wed Jul 19 12:13:55 2023
I think there are a couple of missing lines in the 000window.rpy file and 00start.rpy file but that's only a guess. Does anyone know how to fix this problem?







Edit: Nevermind I fixed it by deleting renpy and reinstalling it

Post Reply

Who is online

Users browsing this forum: Semrush [Bot]