PDA

View Full Version : Invalid Index???


Drake113
January 18th, 2004, 03:08 AM
I've spent two days working on a new map and now that I've finally thrown it through the map generator, I get an Invalid Index error when I try to run that campaign. Anyone have any idea what causes that, or how to fix it? Thanks in advance.

Drake113
January 18th, 2004, 04:29 AM
Ok, never mind that. I found the problem: invalid entries in my QuadrantMap.txt file. Handy tip: to find a system that's misbehaving in this situation, do a search for ":= 0", since systems that incorrectly reference one another invariably give a 0 for the link ID number.

Ok, new problem: every time I go to look at the quadrant map, I get one of my beloved Range Check Errors. Is this because the map exceeds a certain size (my map is 66 wide, 45 high)? Anyone? Anyone?

Phoenix-D
January 18th, 2004, 05:33 AM
Never got a range check error on the quadrent map myself. It just stopped displaying the systems after a certain point. I'd suggest throwing a double space into your quadrent data file, checking to see if the error still occurs, then moving the double space and repeating (SF treats double space as end of file)

On your earlier problem: this can happen when a aystem is linked to itself, or to a system that doesn't like back. The quadrent map display smooths over these errors, but the campaigndata.txt doesn't.

Drake113
January 18th, 2004, 06:27 AM
Thanks, Phoenix-D- that pointed me in the right direction. I was able to determine that the map seems top out around 60 units in width. Now, all I have to do is re-figure the X coordinates for about 80 systems http://forum.shrapnelgames.com/images/smilies/rolleyes.gif
Guess I know what I'm doing tomorrow...

Phoenix-D
January 18th, 2004, 06:35 AM
heh. I'm definitely glad I thought to check that before I laid out mine. Made things so much easier.

EDIT: oh, and the height allowed is different than the width. Smaller, IIRC..around 42 squares.

[ January 18, 2004, 04:36: Message edited by: Phoenix-D ]

Drake113
January 18th, 2004, 09:35 PM
42?? That figures... My map is 45 units high... Guess I'll be changing that, too...

Phoenix-D
January 18th, 2004, 10:20 PM
Be sure to test it, I'm not 100% sure that's the actual value.