OutOfRangeException

Do you need help installing or using ZunTzu? Would you like to report a bug?

Moderators: Ichibrothers, Cambronne

Post Reply
Hedge-o-Matic
010
Posts: 42
Joined: 20 Apr 2008, 01:43
Location: The back of your mind

OutOfRangeException

Post 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?
User avatar
Jerome
Site Admin
Posts: 974
Joined: 22 Jun 2006, 21:31
Location: France
Contact:

Post 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.
Jerome, ZunTzu developer.
Hedge-o-Matic
010
Posts: 42
Joined: 20 Apr 2008, 01:43
Location: The back of your mind

Post 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!
Post Reply