KeyError: u'properties' after updating

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
ezyn
Newbie
Posts: 3
Joined: Sat Jan 20, 2018 5:10 pm
Deviantart: ezyn
Contact:

KeyError: u'properties' after updating

#1 Post by ezyn »

I recently updated renpy and change/update GUI.
Now the game runs into errors when I load certain saves.
When I start from the beginning it doesn't happen.

Here's the traceback:

Code: Select all

I'm sorry, but an uncaught exception occurred.

While running game code:
  File "game/script9.rpy", line 1035, in script
    n "and slit her throat."
  File "renpy/common/00nvl_mode.rpy", line 357, in do_display
    **display_args)
  File "renpy/common/00nvl_mode.rpy", line 205, in nvl_show_core
    return __nvl_show_screen("nvl", items=[ ])
  File "renpy/common/00nvl_mode.rpy", line 193, in _m1_00nvl_mode__nvl_show_screen
    widget_properties, dialogue, show_args = __nvl_screen_dialogue()
  File "renpy/common/00nvl_mode.rpy", line 149, in _m1_00nvl_mode__nvl_screen_dialogue
    for k, v in kwargs["properties"].items():
KeyError: u'properties'

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

Full traceback:
  File "C:\Users\irene_000\Desktop\renpy-6.14.1-sdk\renpy\bootstrap.py", line 306, in bootstrap
    renpy.main.main()
  File "C:\Users\irene_000\Desktop\renpy-6.14.1-sdk\renpy\main.py", line 520, in main
    run(restart)
  File "C:\Users\irene_000\Desktop\renpy-6.14.1-sdk\renpy\main.py", line 149, in run
    renpy.execution.run_context(True)
  File "C:\Users\irene_000\Desktop\renpy-6.14.1-sdk\renpy\execution.py", line 835, in run_context
    context.run()
  File "game/script9.rpy", line 1035, in script
    n "and slit her throat."
  File "C:\Users\irene_000\Desktop\renpy-6.14.1-sdk\renpy\ast.py", line 643, in execute
    renpy.exports.say(who, what, interact=self.interact, *args, **kwargs)
  File "C:\Users\irene_000\Desktop\renpy-6.14.1-sdk\renpy\exports.py", line 1175, in say
    who(what, *args, **kwargs)
  File "C:\Users\irene_000\Desktop\renpy-6.14.1-sdk\renpy\character.py", line 1013, in __call__
    self.do_display(who, what, cb_args=self.cb_args, **display_args)
  File "renpy/common/00nvl_mode.rpy", line 357, in do_display
    **display_args)
  File "C:\Users\irene_000\Desktop\renpy-6.14.1-sdk\renpy\character.py", line 531, in display_say
    what_text = show_function(who, what_string)
  File "renpy/common/00nvl_mode.rpy", line 205, in nvl_show_core
    return __nvl_show_screen("nvl", items=[ ])
  File "renpy/common/00nvl_mode.rpy", line 193, in _m1_00nvl_mode__nvl_show_screen
    widget_properties, dialogue, show_args = __nvl_screen_dialogue()
  File "renpy/common/00nvl_mode.rpy", line 149, in _m1_00nvl_mode__nvl_screen_dialogue
    for k, v in kwargs["properties"].items():
KeyError: u'properties'

Windows-8-6.2.9200
Ren'Py 6.99.14.3135
Ignis Avis Venatio 0.0
I don't know what this means and where it is coming from.
I checked the line 1035 and there's doesn't seem to be anything different about it compared to my other lines.
The 'n' stands for narrator which is defined before label starts.

Code: Select all

define n = Character(None, kind=nvl, what_color="ffffff")
I tried searching other similar errors about keyerror: u 'something' and most of the problem came to 'something' not being defined but I don't know where 'properties' comes from in my case.

User avatar
Remix
Eileen-Class Veteran
Posts: 1628
Joined: Tue May 30, 2017 6:10 am
Completed: None... yet (as I'm still looking for an artist)
Projects: An un-named anime based trainer game
Contact:

Re: KeyError: u'properties' after updating

#2 Post by Remix »

Certain older version saves will likely have stored some objects (including any Character objects) within the save. If the version update includes changes to those objects (which 6.99.14 probably did for Character to allow attributes/properties within the say routine, e.g. multi-character and other arguments after the dialogue) the saved object might not have those attributes, thus causing the error.
No real way to quick-fix as far as I know, except by playing through and re-saving at similar points... or by downgrading the version again.

Don't take my reply as gospel though... just seems likely.
Frameworks & Scriptlets:

User avatar
PyTom
Ren'Py Creator
Posts: 16093
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: KeyError: u'properties' after updating

#3 Post by PyTom »

This is probably a bug, I'm planning on fixing it tonight.
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

Post Reply

Who is online

Users browsing this forum: No registered users