Skip to main content

On Sale: GamesAssetsToolsTabletopComics
Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
TagsGame Engines

Whoops, I found a bug on the bonus route. I think it's because it doesn't remember the name I entered from previous runs.

While running game code:

  File "game/bonus.rpy", line 20, in script

    mc "YES! It's her! She's coming here to find me!"

KeyError: u'mcname'

Full traceback:

  File "game/bonus.rpy", line 20, in script

    mc "YES! It's her! She's coming here to find me!"

  File "renpy/ast.py", line 921, in execute

    renpy.exports.say(who, what, *args, **kwargs)

  File "renpy/exports.py", line 1373, in say

    who(what, *args, **kwargs)

  File "renpy/character.py", line 1251, in __call__

    who = self.prefix_suffix("who", self.who_prefix, who, self.who_suffix)

  File "renpy/character.py", line 1172, in prefix_suffix

    return (sub(prefix) + sub(body) + sub(suffix))

  File "renpy/character.py", line 1152, in sub

    return renpy.substitutions.substitute(s, scope=scope, force=force, translate=translate)[0]

  File "renpy/substitutions.py", line 278, in substitute

    s = formatter.vformat(s, (), kwargs) # type: ignore

  File "/home/tom/ab/renpy-build/tmp/install.linux-x86_64/lib/python2.7/string.py", line 563, in vformat

  File "/home/tom/ab/renpy-build/tmp/install.linux-x86_64/lib/python2.7/string.py", line 585, in _vformat

  File "renpy/substitutions.py", line 168, in get_field

    obj, arg_used = super(Formatter, self).get_field(field_name, args, kwargs)

  File "/home/tom/ab/renpy-build/tmp/install.linux-x86_64/lib/python2.7/string.py", line 646, in get_field

  File "/home/tom/ab/renpy-build/tmp/install.linux-x86_64/lib/python2.7/string.py", line 605, in get_value

KeyError: u'mcname'

Oh wow, didn't see that one yet. I will take a look at it later and see how to fix it. Thank you for reporting it!

Deleted 1 year ago

I think I was able to fix the bug/issue on the new uploaded version 0.16... You were right, it was because of the name.