Tuple index out of range Error

In this forum we discuss the future of Ren'Py, both bug fixes and longer-term development. Pre-releases are announced and discussed here.
Post Reply
Message
Author
Uchiha Echinox
Newbie
Posts: 14
Joined: Fri Feb 13, 2015 9:17 am
Contact:

Tuple index out of range Error

#1 Post by Uchiha Echinox »

Code: Select all

default Champion_List_Holder_All_Champions = []


label Call_Hero_Champions_Initial_Settings:


    # Caracter: Name Here
    $ Champion_List_Holder_All_Champions.append({"icon": "Characters/Champions/Serafim/Icon.png","name": "Serafim","damage_min":7,"damage_max":12,"defence":8,"current_hp": 140})

    "[Champion_List_Holder_All_Champions][0][name]"
    $ renpy.notify("Hero Initialization Complete")

    jump Call_Label_Lobby_Room
Error: tuple index out of range

Code: Select all

I'm sorry, but an uncaught exception occurred.

While running game code:
  File "game/character_champion_holder.rpy", line 11, in script
    "[Champion_List_Holder_All_Champions][0][name]"
IndexError: tuple index out of range
-- Full Traceback ------------------------------------------------------------

Full traceback:
  File "game/character_champion_holder.rpy", line 11, in script
    "[Champion_List_Holder_All_Champions][0][name]"
  File "D:\Games\Renpy\renpy-6.99.14.2-sdk\renpy\ast.py", line 652, in execute
    renpy.exports.say(who, what, interact=self.interact, *args, **kwargs)
  File "D:\Games\Renpy\renpy-6.99.14.2-sdk\renpy\exports.py", line 1199, in say
    who(what, *args, **kwargs)
  File "D:\Games\Renpy\renpy-6.99.14.2-sdk\renpy\character.py", line 1003, in __call__
    what = what_pattern.replace("[what]", sub(what, translate=translate))
  File "D:\Games\Renpy\renpy-6.99.14.2-sdk\renpy\character.py", line 985, in sub
    return renpy.substitutions.substitute(s, scope=scope, force=force, translate=translate)[0]
  File "D:\Games\Renpy\renpy-6.99.14.2-sdk\renpy\substitutions.py", line 242, 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 603, in get_value
IndexError: tuple index out of range

Windows-8-6.2.9200
Ren'Py 7.0.0.196
Project_Battle_Tactical 1.0
Fri Aug 03 11:38:09 2018

Uchiha Echinox
Newbie
Posts: 14
Joined: Fri Feb 13, 2015 9:17 am
Contact:

Re: Tuple index out of range Error

#2 Post by Uchiha Echinox »

Fixed!

Post Reply

Who is online

Users browsing this forum: No registered users