IndexError: array index out of range? (Solved in 119 mins!)

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
ninjagrass
Regular
Posts: 104
Joined: Wed Mar 04, 2009 9:16 am
Projects: To Love Ru Trial Trouble, Bleach Battle Ignition, A new secret project...
Contact:

IndexError: array index out of range? (Solved in 119 mins!)

#1 Post by ninjagrass » Sat Jan 01, 2011 2:15 pm

I have finally completed my game but then whilst building the distributions I get this error:

Code: Select all

I'm sorry, but an uncaught exception occurred.

IndexError: array index out of range

While running game code:
 - script at line 28 of renpy-6.11.2/launcher/distribute.rpy
 - python at line 168 of renpy-6.11.2/launcher/distribute.rpy.

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

  File "C:\Users\tekken6\Documents\Other\Colorisations\Renpy Development\renpy-6.11.2\renpy\bootstrap.py", line 270, in bootstrap
  File "C:\Users\tekken6\Documents\Other\Colorisations\Renpy Development\renpy-6.11.2\renpy\main.py", line 310, in main
  File "C:\Users\tekken6\Documents\Other\Colorisations\Renpy Development\renpy-6.11.2\renpy\main.py", line 93, in run
  File "C:\Users\tekken6\Documents\Other\Colorisations\Renpy Development\renpy-6.11.2\renpy\execution.py", line 259, in run
  File "C:\Users\tekken6\Documents\Other\Colorisations\Renpy Development\renpy-6.11.2\renpy\ast.py", line 574, in execute
  File "C:\Users\tekken6\Documents\Other\Colorisations\Renpy Development\renpy-6.11.2\renpy\python.py", line 957, in py_exec_bytecode
  File "renpy-6.11.2/launcher/distribute.rpy", line 168, in <module>
  File "distribute.py", line 406, in distribute
  File "change_icon.py", line 282, in change_icons
  File "change_icon.py", line 236, in load_icon
  File "change_icon.py", line 22, in u32
IndexError: array index out of range

While running game code:
 - script at line 28 of renpy-6.11.2/launcher/distribute.rpy
 - python at line 168 of renpy-6.11.2/launcher/distribute.rpy.

Ren'Py Version: Ren'Py 6.11.2b
Works perfectly when I launch in Renpy... any help?
Last edited by ninjagrass on Mon Jan 03, 2011 9:30 am, edited 2 times in total.

User avatar
PyTom
Ren'Py Creator
Posts: 15893
Joined: Mon Feb 02, 2004 10:58 am
Completed: Moonlight Walks
Projects: Ren'Py
IRC Nick: renpytom
Github: renpytom
itch: renpytom
Location: Kings Park, NY
Contact:

Re: IndexError: array index out of range?

#2 Post by PyTom » Sat Jan 01, 2011 4:14 pm

That's probably something invalid about icon.ico. Try removing it, and see what happens.
Supporting creators since 2004
(When was the last time you backed up your game?)
"Do good work." - Virgil Ivan "Gus" Grissom
"Silly and fun things are important." - Elon Musk
Software > Drama • https://www.patreon.com/renpytom

ninjagrass
Regular
Posts: 104
Joined: Wed Mar 04, 2009 9:16 am
Projects: To Love Ru Trial Trouble, Bleach Battle Ignition, A new secret project...
Contact:

Re: IndexError: array index out of range?

#3 Post by ninjagrass » Sat Jan 01, 2011 4:29 pm

Thank you! So much for a custom launcher icon...

User avatar
PyTom
Ren'Py Creator
Posts: 15893
Joined: Mon Feb 02, 2004 10:58 am
Completed: Moonlight Walks
Projects: Ren'Py
IRC Nick: renpytom
Github: renpytom
itch: renpytom
Location: Kings Park, NY
Contact:

Re: IndexError: array index out of range? (Solved in 119 min

#4 Post by PyTom » Sat Jan 01, 2011 5:36 pm

Can you post your icon.ico file? I may be able to figure out what's going wrong.
Supporting creators since 2004
(When was the last time you backed up your game?)
"Do good work." - Virgil Ivan "Gus" Grissom
"Silly and fun things are important." - Elon Musk
Software > Drama • https://www.patreon.com/renpytom

ninjagrass
Regular
Posts: 104
Joined: Wed Mar 04, 2009 9:16 am
Projects: To Love Ru Trial Trouble, Bleach Battle Ignition, A new secret project...
Contact:

Re: IndexError: array index out of range? (Solved in 119 min

#5 Post by ninjagrass » Sun Jan 02, 2011 6:44 am

I can't upload .ico files as they are apparently not allowed... but I just changed the file type extension to png just to upload.
Attachments
icon.png
icon.png (6.13 KiB) Viewed 1629 times

User avatar
PyTom
Ren'Py Creator
Posts: 15893
Joined: Mon Feb 02, 2004 10:58 am
Completed: Moonlight Walks
Projects: Ren'Py
IRC Nick: renpytom
Github: renpytom
itch: renpytom
Location: Kings Park, NY
Contact:

Re: IndexError: array index out of range? (Solved in 119 min

#6 Post by PyTom » Sun Jan 02, 2011 9:39 pm

Ah. The problem is that you're renaming a png file to .ico. You have to use a tool like icofx to turn a png file into a .ico file.
Supporting creators since 2004
(When was the last time you backed up your game?)
"Do good work." - Virgil Ivan "Gus" Grissom
"Silly and fun things are important." - Elon Musk
Software > Drama • https://www.patreon.com/renpytom

ninjagrass
Regular
Posts: 104
Joined: Wed Mar 04, 2009 9:16 am
Projects: To Love Ru Trial Trouble, Bleach Battle Ignition, A new secret project...
Contact:

Re: IndexError: array index out of range? (Solved in 119 min

#7 Post by ninjagrass » Mon Jan 03, 2011 6:33 am

Thank you, I was trying to take the easy way. :oops:

Post Reply

Who is online

Users browsing this forum: Google [Bot], Ocelot