Fulqrum Publishing Home   |   Register   |   Today Posts   |   Members   |   UserCP   |   Calendar   |   Search   |   FAQ

Go Back   Official Fulqrum Publishing forum > Fulqrum Publishing > IL-2 Sturmovik: Cliffs of Dover > FMB, Mission & Campaign builder Discussions

Reply
 
Thread Tools Display Modes
  #1  
Old 05-17-2012, 05:59 PM
Troll2k Troll2k is offline
Approved Member
 
Join Date: Dec 2007
Posts: 722
Default Index Out Of Range

I am getting a lot of "index was out of range" errors.

It does not seem to affect the running of the server.

I would like to neaten up the server though.

See attached picture.
Attached Images
File Type: jpg Clod Server Index Error.JPG (123.1 KB, 10 views)
Reply With Quote
  #2  
Old 05-17-2012, 06:25 PM
FG28_Kodiak FG28_Kodiak is offline
Approved Member
 
Join Date: Dec 2009
Location: Swabia->Bavaria->Germany
Posts: 884
Default

A "index was out of range" Error happens if you try to access an element in a array which not exist. In C# the first element has the index 0 and the last element has n-1. So the error mostly happens if the code acces the n element as last.
You should check the numbers of elements in a list or array with count or lenght. The last element is then count-1 or lenght-1.
Reply With Quote
  #3  
Old 05-17-2012, 07:05 PM
Troll2k Troll2k is offline
Approved Member
 
Join Date: Dec 2007
Posts: 722
Default

Kodiak;

Thank you for your reply.

I do not use any scripts.(except one I d/l from this forum to clean up the AI between missions)

I do use the time spawn triggers as well as the group destroyed triggers.

I am possibly trying to spawn something that does not exist?

I was hoping there was something later in the error message that would help pinpoint where the error was occurring.
Reply With Quote
  #4  
Old 05-17-2012, 07:41 PM
FG28_Kodiak FG28_Kodiak is offline
Approved Member
 
Join Date: Dec 2009
Location: Swabia->Bavaria->Germany
Posts: 884
Default

Can i get the complete mission? It's difficult to find the error without it.
Reply With Quote
  #5  
Old 05-17-2012, 09:18 PM
Troll2k Troll2k is offline
Approved Member
 
Join Date: Dec 2007
Posts: 722
Default

I have 3 maps in rotation.As soon as I figure out which one I will PM you.
Reply With Quote
Reply


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 Off

Forum Jump


All times are GMT. The time now is 03:53 AM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright © 2007 Fulqrum Publishing. All rights reserved.