Page 1 of 1

OutOfRangeException

Posted: 15 Apr 2009, 04:09
by Hedge-o-Matic
I was close to finishing my latest gamebox, and a tweak to my game-box.xml file now causes this error on open (which fails):

Error of type IndexOtOfRangeException: Index was outside the bounds of the array.

I checked my images, to see if I was designating pixels outside the image, or something like htat, since that was so sort of change I was making. I can't find such a mistake. Am I on the right track?

Posted: 15 Apr 2009, 10:26
by Jerome
For a complete diagnostics, try using the "Add" button in the Game Library dialog box.

Have you changed your game-box.xml file since you saved your default scenario?
Make sure your default scenario doesn't use more pieces than are available in the game box: remove all counter data from the scenario file and see if the problem is still there.

Posted: 16 Apr 2009, 12:54
by Hedge-o-Matic
Yep, that was it. You're amazing. Even having developed the program, I'd expect you to be stumped, sometimes, given the number of possible causes to problems. But nope, never happens.

Thanks again!