Code: Select all
menu:
"Choice 1":
"text"
"Choice 2":
"text"
And my choice screen config:I'm sorry, but an uncaught exception occurred.
While running game code:
File "scenario/day3/day3.rpy", line 1491, in script
TypeError: list indices must be integers, not str
-- Full Traceback ------------------------------------------------------------
Full traceback:
File "C:\GAMES\iichan\everlasting_summer-1.0-all\renpy\execution.py", line 288, in run
node.execute()
File "C:\GAMES\iichan\everlasting_summer-1.0-all\renpy\ast.py", line 1310, in execute
next_node(self.items[choice][2][0])
TypeError: list indices must be integers, not str
Windows-7-6.1.7601-SP1
Ren'Py 6.15.7.374
Everlasting Summer 1.0
Code: Select all
screen choice:
python:
choice_colors_hover={
'day': "#9dcd55",
'night': "#3ccfa2",
'sunset': "#dcd168",
'prologue': "#98d8da"
}
choice_colors={
'day': "#466123",
'night': "#145644",
'sunset': "#69652f",
'prologue': "#496463"
}
window background Frame(get_image("gui/choice/"+persistent.timeofday+"/choice_box.png"),50,50) xfill True yalign 0.5 left_padding 75 right_padding 75 bottom_padding 50 top_padding 50:
vbox xalign 0.5 yalign 0.5:
for caption, action in items:
if action and caption:
button background None:
action action
text caption font "fonts/corbel.ttf" size 35 hover_size 37 color choice_colors[persistent.timeofday] hover_color choice_colors_hover[persistent.timeofday] text_align 0.5
else:
text caption font "fonts/corbel.ttf" size 35 color choice_colors[persistent.timeofday]
For now I have absolutely no ideas and my best guess that it's renpy bug.
Any help would be appreciated!
