.com.unity Forums
  The Official e-Store of Shrapnel Games

This Month's Specials

Raging Tiger- Save $9.00
winSPMBT: Main Battle Tank- Save $6.00

   







Go Back   .com.unity Forums > Shrapnel Community > Space Empires: Starfury

Reply
 
Thread Tools Display Modes
  #1  
Old January 18th, 2004, 03:08 AM

Drake113 Drake113 is offline
Corporal
 
Join Date: Oct 2003
Location: Chicago
Posts: 77
Thanks: 0
Thanked 0 Times in 0 Posts
Drake113 is on a distinguished road
Default Invalid Index???

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.
__________________
In theory, there's no difference between theory and practice, but in practice, there is.
Reply With Quote
  #2  
Old January 18th, 2004, 04:29 AM

Drake113 Drake113 is offline
Corporal
 
Join Date: Oct 2003
Location: Chicago
Posts: 77
Thanks: 0
Thanked 0 Times in 0 Posts
Drake113 is on a distinguished road
Default Re: Invalid Index???

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?
__________________
In theory, there's no difference between theory and practice, but in practice, there is.
Reply With Quote
  #3  
Old January 18th, 2004, 05:33 AM

Phoenix-D Phoenix-D is offline
National Security Advisor
 
Join Date: Nov 2000
Posts: 5,085
Thanks: 0
Thanked 0 Times in 0 Posts
Phoenix-D is on a distinguished road
Default Re: Invalid Index???

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.
__________________
Phoenix-D

I am not senile. I just talk to myself because the rest of you don't provide adequate conversation.
-Digger
Reply With Quote
  #4  
Old January 18th, 2004, 06:27 AM

Drake113 Drake113 is offline
Corporal
 
Join Date: Oct 2003
Location: Chicago
Posts: 77
Thanks: 0
Thanked 0 Times in 0 Posts
Drake113 is on a distinguished road
Default Re: Invalid Index???

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
Guess I know what I'm doing tomorrow...
__________________
In theory, there's no difference between theory and practice, but in practice, there is.
Reply With Quote
  #5  
Old January 18th, 2004, 06:35 AM

Phoenix-D Phoenix-D is offline
National Security Advisor
 
Join Date: Nov 2000
Posts: 5,085
Thanks: 0
Thanked 0 Times in 0 Posts
Phoenix-D is on a distinguished road
Default Re: Invalid Index???

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 ]
__________________
Phoenix-D

I am not senile. I just talk to myself because the rest of you don't provide adequate conversation.
-Digger
Reply With Quote
  #6  
Old January 18th, 2004, 09:35 PM

Drake113 Drake113 is offline
Corporal
 
Join Date: Oct 2003
Location: Chicago
Posts: 77
Thanks: 0
Thanked 0 Times in 0 Posts
Drake113 is on a distinguished road
Default Re: Invalid Index???

42?? That figures... My map is 45 units high... Guess I'll be changing that, too...
__________________
In theory, there's no difference between theory and practice, but in practice, there is.
Reply With Quote
  #7  
Old January 18th, 2004, 10:20 PM

Phoenix-D Phoenix-D is offline
National Security Advisor
 
Join Date: Nov 2000
Posts: 5,085
Thanks: 0
Thanked 0 Times in 0 Posts
Phoenix-D is on a distinguished road
Default Re: Invalid Index???

Be sure to test it, I'm not 100% sure that's the actual value.
__________________
Phoenix-D

I am not senile. I just talk to myself because the rest of you don't provide adequate conversation.
-Digger
Reply With Quote
Reply

Bookmarks


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is On

Forum Jump


All times are GMT -4. The time now is 06:03 PM.


Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©1999 - 2024, Shrapnel Games, Inc. - All Rights Reserved.