I'm getting an error... the one in the subject. It only happens in one area of the game so far. Though I seem to be partially blind to minor syntax typos, I've tried to look over it and have found no difference to the dialogue in the rest of the game.
This particular issue happens within a player choice menu. Though it's not the only one, just the one that gives me this excellent error.
The error below is what comes from only one of the buttons, though they all do the same thing.
"[playername]" is the name of the player within the dialogue, so that a typed-in name will appear there.
Code: Select all
I'm sorry, but an uncaught exception occurred.
While running game code:
File "game/lstare01.rpy", line 45, in script
me "*You shake your head and rub your face with both hands.*\nSorry... my eyes got stuck."
KeyError: u'playername'
-- Full Traceback ------------------------------------------------------------
Full traceback:
File "game/lstare01.rpy", line 45, in script
me "*You shake your head and rub your face with both hands.*\nSorry... my eyes got stuck."
File "C:\Users\Jared\Desktop\XFer\renpy-6.99.12.2\renpy\ast.py", line 613, in execute
renpy.exports.say(who, what, interact=self.interact)
File "C:\Users\Jared\Desktop\XFer\renpy-6.99.12.2\renpy\exports.py", line 1147, in say
who(what, interact=interact)
File "C:\Users\Jared\Desktop\XFer\renpy-6.99.12.2\renpy\character.py", line 855, in __call__
who = who_pattern.replace("[who]", sub(who))
File "C:\Users\Jared\Desktop\XFer\renpy-6.99.12.2\renpy\character.py", line 850, in sub
return renpy.substitutions.substitute(s, scope=scope, force=force, translate=translate)[0]
File "C:\Users\Jared\Desktop\XFer\renpy-6.99.12.2\renpy\substitutions.py", line 232, in substitute
s = formatter.vformat(s, (), kwargs)
File "/home/tom/ab/x64lucid-deps/install/lib/python2.7/string.py", line 563, in vformat
File "/home/tom/ab/x64lucid-deps/install/lib/python2.7/string.py", line 585, in _vformat
File "/home/tom/ab/x64lucid-deps/install/lib/python2.7/string.py", line 646, in get_field
File "/home/tom/ab/x64lucid-deps/install/lib/python2.7/string.py", line 605, in get_value
KeyError: u'playername'
Windows-7-6.1.7601-SP1
Ren'Py 6.99.12.3.2123
Just_Visiting 1.0