Page 1 of 1

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

Posted: Sat Jan 01, 2011 2:15 pm
by ninjagrass
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?

Re: IndexError: array index out of range?

Posted: Sat Jan 01, 2011 4:14 pm
by PyTom
That's probably something invalid about icon.ico. Try removing it, and see what happens.

Re: IndexError: array index out of range?

Posted: Sat Jan 01, 2011 4:29 pm
by ninjagrass
Thank you! So much for a custom launcher icon...

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

Posted: Sat Jan 01, 2011 5:36 pm
by PyTom
Can you post your icon.ico file? I may be able to figure out what's going wrong.

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

Posted: Sun Jan 02, 2011 6:44 am
by ninjagrass
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.

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

Posted: Sun Jan 02, 2011 9:39 pm
by PyTom
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.

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

Posted: Mon Jan 03, 2011 6:33 am
by ninjagrass
Thank you, I was trying to take the easy way. :oops: