unhashable type: 'RevertableList' ???

Discuss how to use the Ren'Py engine to create visual novels and story-based games. New releases are announced in this section.
Forum rules
This is the right place for Ren'Py help. Please ask one question per thread, use a descriptive subject like 'NotFound error in option.rpy' , and include all the relevant information - especially any relevant code and traceback messages. Use the code tag to format scripts.
Post Reply
Message
Author
User avatar
Kokoro Hane
Eileen-Class Veteran
Posts: 1237
Joined: Thu Oct 27, 2011 6:51 pm
Completed: 30 Kilowatt Hours Left, The Only One Girl { First Quarter }, An Encounter ~In The Rain~, A Piece of Sweetness, Since When Did I Have a Combat Butler?!, Piece by Piece, +many more
Projects: Fateful Encounter, Operation: Magic Hero
Organization: Tofu Sheets Visual
Deviantart: kokoro-hane
itch: tofu-sheets-visual
Contact:

unhashable type: 'RevertableList' ???

#1 Post by Kokoro Hane »

I got the most unusual error while trying to create a new project in Ren'Py and I have no idea what the heck is wrong. I have analyzed my script and nothing seems to be wrong. I have never encountered this error and do not understand it at all. I have included both my script and the traceback, so if there is some subtle thing I am missing in my script to correct, I would be greatful! This is suppose to be a gift for my brother, and I can't work on it if I can't even run it!


This is my script;

Code: Select all

# You can place the script of your game in this file.

# Declare images below this line, using the image statement.
# eg. image eileen happy = "eileen_happy.png"
image bg campus = "campus.jpg"
image nemad = "neru mad.png"
image nesigh = "neru sigh.png"
image nepoint = "neru point.png"

# Declare characters used by this game.
define al = Character('Big Al', color="#e00000")
define mei = Character('Meiko', color="#ef4949")
define kai = Character('Kaito', color="#3434ff")
define rin = Character('Rin', color="#ffdd20")
define len = Character('Len', color="#ffdd20")
define ne = Character('Neru', color="#ffb820")
define li = Character('Lily', color="#f2f438")
define mi = Character ('Miku', color="#59e7c7")
define lu = Character('Luka', color="#ff90f1")
define gak = Character('Gakupo', color="#ae3bd9")
define gu = Character('Gumi', color="#84d231")
define de = Character('Dell', color="#807d7d")
define ha = Character('Haku', color="#b5b1b1")
define defo = Character('Defoko', color="#b14cff")
define te = Character('Teto', color="#ec7381")
define oli = Character('Oliver', color="#ffd325")
define no = Character('???', color="#ffffff")

init:
  
    # The variable we store the entered name of the character in.
    $ povname = ""

    # And this is a DynamicCharacter that has the same stored in
    # povname.
    $ pov = DynamicCharacter("povname", color="#ffffff")
    
    ##flags
    
    


# The game starts here.
label start:

    scene bg campus
    with fade
    
    $ povname = renpy.input("Hello, my name is...")

    "I have to take a math test in my final assessment, and it loosk really difficult!"
    "There is this school that says they can help me prepare for my mathematics and make it fun."
    "You'd think this would be expensive, but it's free. I'm definitely not complaining!"
    "It's a boarding school, too, so I am going to have to live on campus which will be weird for me."
    "Anyway, so far my day has not been good due to one particular incident."
    "You see, on my way to the principal's office, I end up bumping into this girl by mistake!"
    
    with hpunch
    with vpunch

    pov "O-Oh, sorry miss, I didn't mean to! You alright?"
    
    show nemad
        
    no "Are you kidding? Watch where you're going next time!"
    pov "I said sorry..."
    no "Yeah? Then please be more careful next time, you could have broken one of my hips!"
    "That sounds a bit over-exaggerated, but OK..."
    pov "Hey, um, since we so happened to run into each other---"
    no "You're not trying to hit on me, are you?"
    pov "N-No!! You see, I'm a new student here and I need help finding the principal's office!"
    
    hide nemad
    show nesigh
    
    "The girl sighs in frustration, but was curteous enough to answer my question at least."
    
    hide nesigh
    show nepoint 
    
    "She pointed in the direction I needed to go and said..."
    no "Down that way, make a left through the entrance, and its the second door to your right through the hallway."
    
    hide nepoint
    show nesigh
    
    no "Got all that information?"
    pov "Yeah, thanks!"
    no "Pfft, whatever..."
    "Rude, much?"

    return

And this is the traceback;
I'm sorry, but an uncaught exception occurred.

While running game code:
File "renpy/common/00start.rpy", line 99, in script call
File "renpy/common/00gltest.rpy", line 340, in script
File "renpy/common/00gltest.rpy", line 340, in python
File "renpy/common/00gltest.rpy", line 266, in python
File "renpy/common/00gltest.rpy", line 305, in python
File "renpy/common/00gltest.rpy", line 224, in python
TypeError: unhashable type: 'RevertableList'

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

Full traceback:
File "C:\Users\Kokoro Hane\Desktop\renpy-6.15.4-sdk\renpy\execution.py", line 288, in run
node.execute()
File "C:\Users\Kokoro Hane\Desktop\renpy-6.15.4-sdk\renpy\ast.py", line 718, in execute
renpy.python.py_exec_bytecode(self.code.bytecode, self.hide, store=self.store)
File "C:\Users\Kokoro Hane\Desktop\renpy-6.15.4-sdk\renpy\python.py", line 1297, in py_exec_bytecode
exec bytecode in globals, locals
File "renpy/common/00gltest.rpy", line 340, in <module>
$ __gl_test()
File "renpy/common/00gltest.rpy", line 266, in _m1_00gltest__gl_test
_gl_performance_test()
File "renpy/common/00gltest.rpy", line 305, in _gl_performance_test
result = ui.interact(suppress_overlay=True, suppress_underlay=True)
File "C:\Users\Kokoro Hane\Desktop\renpy-6.15.4-sdk\renpy\ui.py", line 237, in interact
rv = renpy.game.interface.interact(roll_forward=roll_forward, **kwargs)
File "C:\Users\Kokoro Hane\Desktop\renpy-6.15.4-sdk\renpy\display\core.py", line 1853, in interact
repeat, rv = self.interact_core(preloads=preloads, **kwargs)
File "C:\Users\Kokoro Hane\Desktop\renpy-6.15.4-sdk\renpy\display\core.py", line 2165, in interact_core
self.draw_screen(root_widget, fullscreen_video, (not fullscreen_video) or video_frame_drawn)
File "C:\Users\Kokoro Hane\Desktop\renpy-6.15.4-sdk\renpy\display\core.py", line 1420, in draw_screen
renpy.config.screen_height,
File "render.pyx", line 365, in renpy.display.render.render_screen (gen\renpy.display.render.c:4567)
File "render.pyx", line 166, in renpy.display.render.render (gen\renpy.display.render.c:2032)
File "C:\Users\Kokoro Hane\Desktop\renpy-6.15.4-sdk\renpy\display\layout.py", line 521, in render
surf = render(child, width, height, cst, cat)
File "render.pyx", line 95, in renpy.display.render.render (gen\renpy.display.render.c:2290)
File "render.pyx", line 166, in renpy.display.render.render (gen\renpy.display.render.c:2032)
File "C:\Users\Kokoro Hane\Desktop\renpy-6.15.4-sdk\renpy\display\transition.py", line 362, in render
top = render(self.new_widget, width, height, st, at)
File "render.pyx", line 95, in renpy.display.render.render (gen\renpy.display.render.c:2290)
File "render.pyx", line 166, in renpy.display.render.render (gen\renpy.display.render.c:2032)
File "C:\Users\Kokoro Hane\Desktop\renpy-6.15.4-sdk\renpy\display\layout.py", line 521, in render
surf = render(child, width, height, cst, cat)
File "render.pyx", line 95, in renpy.display.render.render (gen\renpy.display.render.c:2290)
File "render.pyx", line 166, in renpy.display.render.render (gen\renpy.display.render.c:2032)
File "C:\Users\Kokoro Hane\Desktop\renpy-6.15.4-sdk\renpy\display\layout.py", line 521, in render
surf = render(child, width, height, cst, cat)
File "render.pyx", line 95, in renpy.display.render.render (gen\renpy.display.render.c:2290)
File "render.pyx", line 166, in renpy.display.render.render (gen\renpy.display.render.c:2032)
File "renpy/common/00gltest.rpy", line 224, in render
if len(self.times) >= self.frames:
File "C:\Users\Kokoro Hane\Desktop\renpy-6.15.4-sdk\renpy\character.py", line 786, in __call__
what = what_pattern.replace("[what]", sub(what, translate=translate))
File "C:\Users\Kokoro Hane\Desktop\renpy-6.15.4-sdk\renpy\substitutions.py", line 210, in substitute
s = renpy.translation.translate_string(s)
File "C:\Users\Kokoro Hane\Desktop\renpy-6.15.4-sdk\renpy\translation.py", line 359, in translate_string
return stl.translate(s)
File "C:\Users\Kokoro Hane\Desktop\renpy-6.15.4-sdk\renpy\translation.py", line 303, in translate
new = self.translations.get(old, None)
TypeError: unhashable type: 'RevertableList'

Windows-Vista-6.0.6002-SP2
Ren'Py 6.15.4.320
A Ren'Py Game 0.0
PROJECTS:
Operation: Magic Hero [WiP]
Piece By Piece [COMPLETE][Spooktober VN '20]
RE/COUNT RE:VERSE [COMPLETE][RPG]
Since When Did I Have a Combat Butler?! [COMPLETE][NaNoRenO2020+]
Crystal Captor: Memory Chronicle Finale [COMPLETE][RPG][#1 in So Bad It's Good jam '17]

But dear God, You're the only North Star I would follow this far
Owl City "Galaxies"

User avatar
PyTom
Ren'Py Creator
Posts: 16096
Joined: Mon Feb 02, 2004 10:58 am
Completed: Moonlight Walks
Projects: Ren'Py
IRC Nick: renpytom
Github: renpytom
itch: renpytom
Location: Kings Park, NY
Contact:

Re: unhashable type: 'RevertableList' ???

#2 Post by PyTom »

You're on an ancient version of Ren'Py.

I don't think the problem is in your script file. I'd need to see the whole game to have a chance of figuring out what's wrong.
Supporting creators since 2004
(When was the last time you backed up your game?)
"Do good work." - Virgil Ivan "Gus" Grissom
Software > Drama • https://www.patreon.com/renpytom

User avatar
Kokoro Hane
Eileen-Class Veteran
Posts: 1237
Joined: Thu Oct 27, 2011 6:51 pm
Completed: 30 Kilowatt Hours Left, The Only One Girl { First Quarter }, An Encounter ~In The Rain~, A Piece of Sweetness, Since When Did I Have a Combat Butler?!, Piece by Piece, +many more
Projects: Fateful Encounter, Operation: Magic Hero
Organization: Tofu Sheets Visual
Deviantart: kokoro-hane
itch: tofu-sheets-visual
Contact:

Re: unhashable type: 'RevertableList' ???

#3 Post by Kokoro Hane »

Huh, but all of my current projects are working, and I have not tried anything new in this new script except maybe it has trouble with the names' custom colors since I almost always have used white? If you want, I can send you the project file? There is only 4 pictures in it, so shouldn't take much. Though I might try 6.18 to see if that fixes the problem...
PROJECTS:
Operation: Magic Hero [WiP]
Piece By Piece [COMPLETE][Spooktober VN '20]
RE/COUNT RE:VERSE [COMPLETE][RPG]
Since When Did I Have a Combat Butler?! [COMPLETE][NaNoRenO2020+]
Crystal Captor: Memory Chronicle Finale [COMPLETE][RPG][#1 in So Bad It's Good jam '17]

But dear God, You're the only North Star I would follow this far
Owl City "Galaxies"

Post Reply

Who is online

Users browsing this forum: Ahrefs [Bot], Doeny, Google [Bot], Semrush [Bot]