config.auto_choice_delay causing TypeError

Discuss how to use the Ren'Py engine to create visual novels and story-based games. New releases are announced in this section.
Forum rules
This is the right place for Ren'Py help. Please ask one question per thread, use a descriptive subject like 'NotFound error in option.rpy' , and include all the relevant information - especially any relevant code and traceback messages. Use the code tag to format scripts.
Post Reply
Message
Author
User avatar
wyverngem
Miko-Class Veteran
Posts: 594
Joined: Mon Oct 03, 2011 7:27 pm
Completed: Simple as Snow, Lady Luck's Due,
Projects: Aether Skies, Of the Waterfall
Tumblr: casting-dreams
itch: castingdreams
Location: USA
Contact:

config.auto_choice_delay causing TypeError

#1 Post by wyverngem » Wed Mar 27, 2019 3:59 pm

Code: Select all

define config.auto_choice_delay = 1
Causes this:

Code: Select all

I'm sorry, but an uncaught exception occurred.

While running game code:
  File "game/script.rpy", line 2205, in script
    menu:
TypeError: list indices must be integers, not ChoiceReturn

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

Full traceback:
  File "game/script.rpy", line 2205, in script
    menu:
  File "G:\Creative\VN\Renpy\renpy\ast.py", line 1608, in execute
    next_node(self.items[choice][2][0])
TypeError: list indices must be integers, not ChoiceReturn

Windows-7-6.1.7601-SP1
Ren'Py 7.2.0.424
newproject 1.0
Wed Mar 27 14:57:03 2019

Post Reply

Who is online

Users browsing this forum: DragoonHP, FangH