Page 1 of 1

help!!! problem with menus label and jumps

Posted: Sat Oct 19, 2013 5:49 am
by finalexistence
im trying to make a choice but a error comes in i dont know how to fix this i try every possible solutions i have but none of them worked pls help


I'm sorry, but an uncaught exception occurred.

While running game code:
File "game/script.rpy", line 511, in script
File "game/screens.rpy", line 78, in python
ValueError: need more than 2 values to unpack

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

Full traceback:
File "D:\kryssel\renpy-6.15.7-sdk\renpy\execution.py", line 288, in run
node.execute()
File "D:\kryssel\renpy-6.15.7-sdk\renpy\ast.py", line 1307, in execute
choice = renpy.exports.menu(choices, self.set)
File "D:\kryssel\renpy-6.15.7-sdk\renpy\exports.py", line 512, in menu
rv = renpy.store.menu(items)
File "D:\kryssel\renpy-6.15.7-sdk\renpy\exports.py", line 644, in display_menu
show_screen(screen, items=item_actions, _widget_properties=props, _transient=True, **scope)
File "D:\kryssel\renpy-6.15.7-sdk\renpy\display\screen.py", line 487, in show_screen
renpy.exports.show(name, tag=_tag, what=d, layer=_layer, zorder=d.zorder, transient=_transient, munge_name=False)
File "D:\kryssel\renpy-6.15.7-sdk\renpy\exports.py", line 325, in show
sls.add(layer, img, key, zorder, behind, at_list=at_list, name=name, atl=atl, default_transform=renpy.config.default_transform, transient=transient)
File "D:\kryssel\renpy-6.15.7-sdk\renpy\display\core.py", line 734, in add
self.hide_or_replace(layer, remove_index, "replaced")
File "D:\kryssel\renpy-6.15.7-sdk\renpy\display\core.py", line 756, in hide_or_replace
d = oldsle.displayable._hide(now - st, now - at, prefix)
File "D:\kryssel\renpy-6.15.7-sdk\renpy\display\screen.py", line 189, in _hide
hid.update()
File "D:\kryssel\renpy-6.15.7-sdk\renpy\display\screen.py", line 266, in update
self.screen.function(**self.scope)
File "D:\kryssel\renpy-6.15.7-sdk\renpy\screenlang.py", line 1217, in __call__
renpy.python.py_exec_bytecode(self.code.bytecode, locals=scope)
File "D:\kryssel\renpy-6.15.7-sdk\renpy\python.py", line 1297, in py_exec_bytecode
exec bytecode in globals, locals
File "game/screens.rpy", line 78, in <module>
for caption, action, chosen in items:
ValueError: need more than 2 values to unpack

Windows-7-6.1.7601-SP1
Ren'Py 6.15.7.374
I Wish I Have Three Hearts 1.0

Re: help!!! problem with menus label and jumps

Posted: Sat Oct 19, 2013 9:08 pm
by Human Bolt Diary
What's on line 511 of your script.rpy?

Re: help!!! problem with menus label and jumps

Posted: Fri Nov 01, 2013 2:11 am
by Kari-Chan
Have you forgotten:
A colon at the end of the choices?
Created an unnessecary block?
Haven't created a nessecary block?
Haven't used the correct spacing?
Had less than two choices?
Forgot to include the labels?
Have you fiddled with the settings.rpy?

Have you typed something similar to this?

menu:
"choice1":
jump 1

"choice2":
jump 2

Start off by creating a simple choice question like the one above.
You can't go wrong with a simple menu like that.