Code: Select all
I'm sorry, but an uncaught exception occurred.
While running game code:
File "game/chargen.rpy", line 239, in script
$ ui.interact()
File "C:\- indie dev -\games\renpy.new\Spirited Heart\game/chargen.rpy", line 266, in python
$ ui.interact()
IndexError: tuple index out of range
-- Full Traceback ------------------------------------------------------------
Full traceback:
File "C:\- indie dev -\games\renpy\renpy\execution.py", line 261, in run
File "C:\- indie dev -\games\renpy\renpy\ast.py", line 630, in execute
File "C:\- indie dev -\games\renpy\renpy\python.py", line 960, in py_exec_bytecode
File "C:\- indie dev -\games\renpy.new\Spirited Heart\game/chargen.rpy", line 266, in <module>
File "C:\- indie dev -\games\renpy\renpy\ui.py", line 236, in interact
File "C:\- indie dev -\games\renpy\renpy\display\core.py", line 1641, in interact
File "C:\- indie dev -\games\renpy\renpy\display\core.py", line 2057, in interact_core
File "C:\- indie dev -\games\renpy\renpy\display\predict.py", line 105, in prediction_coroutine
File "common/00library.rpy", line 365, in predict
File "C:\- indie dev -\games\renpy\renpy\display\screen.py", line 402, in has_screen
IndexError: tuple index out of range
Windows-Vista-6.0.6002-SP2
Ren'Py 6.12.1.1501
Code: Select all
label back01:
$ starting_class=1
scene bg_poor with dissolve
$ ui.window(xpos=512,ypos=500,xmaximum=1024,ymaximum=200,background="#0009")
$ ui.text("{size=48}{color=#FF0}The Farmers{/color}{/size}{p}{size=20}A couple of peasants found you in a nearby field, under a big old tree. They decided to take you with them and raise you as their own child. Living here will greatly increase your strength and stamina, but will lower wisdom and charisma.{/size}",justify=True, text_align=0.5, xalign=0.5,xmaximum=800)
$ layout.button(u"Next", None, clicked=ui.jumps("back02"),ypos=400,xalign=1.0)
$ layout.button(u"Prev", None, clicked=ui.jumps("back04"),ypos=400,xalign=0.0)
$ layout.button(u"Select this one", None, clicked=ui.jumps("earlylife"),yalign=0.95,xalign=0.5)
$ ui.interact()
label back02:
$ starting_class=2
scene bg_artist with dissolve
$ ui.window(xpos=512,ypos=500,xmaximum=1024,ymaximum=200,background="#0009")
$ ui.text("{size=48}{color=#FF0}The Artist{/color}{/size}{p}{size=20}A famous artist found you in his garden, tucked away in his gazebo. Being single, he decided to raise you with the help of several of his partners: he was a sort of a libertine. With this choice you'll have the chance to increase social skill and creativity, at the expense of reduced dexterity and concentration.{/size}",justify=True, text_align=0.5, xalign=0.5,xmaximum=800)
$ layout.button(u"Next", None, clicked=ui.jumps("back03"),ypos=400,xalign=1.0)
$ layout.button(u"Prev", None, clicked=ui.jumps("back01"),ypos=400,xalign=0.0)
$ layout.button(u"Select this one", None, clicked=ui.jumps("earlylife"),yalign=0.95,xalign=0.5)
$ ui.interact()
label back03:
$ starting_class=3
scene bg_general with dissolve
$ ui.window(xpos=512,ypos=500,xmaximum=1024,ymaximum=200,background="#0009")
$ ui.text("{size=48}{color=#FF0}The General{/color}{/size}{p}{size=20}When returning home from a battle, the general of the emperor's army found you near a big rock on the side of a road. He decided to adopt you as his only child. With this choice, you'll have increased concentration and dexterity, but decreased creativity and social skills.{/size}",justify=True, text_align=0.5, xalign=0.5,xmaximum=800)
$ layout.button(u"Next", None, clicked=ui.jumps("back04"),ypos=400,xalign=1.0)
$ layout.button(u"Prev", None, clicked=ui.jumps("back02"),ypos=400,xalign=0.0)
$ layout.button(u"Select this one", None, clicked=ui.jumps("earlylife"),yalign=0.95,xalign=0.5)
$ ui.interact()
label back04:
$ starting_class=4
scene bg_noble with dissolve
$ ui.window(xpos=512,ypos=500,xmaximum=1024,ymaximum=200,background="#0009")
$ ui.text("{size=48}{color=#FF0}The Noble{/color}{/size}{p}{size=20}A couple of local lords were unable to have children, so they decided to adopt you after you were found abandoned near their castle. Living your life as a noble during the early years of your life, you'll have increased charisma and wisdom, but decreased strength and stamina.{/size}",justify=True, text_align=0.5, xalign=0.5,xmaximum=800)
$ layout.button(u"Next", None, clicked=ui.jumps("back01"),ypos=400,xalign=1.0)
$ layout.button(u"Prev", None, clicked=ui.jumps("back03"),ypos=400,xalign=0.0)
$ layout.button(u"Select this one", None, clicked=ui.jumps("earlylife"),yalign=0.95,xalign=0.5)
$ ui.interact()