Official Fulqrum Publishing forum

Official Fulqrum Publishing forum (http://forum.fulqrumpublishing.com/index.php)
-   FMB, Mission & Campaign builder Discussions (http://forum.fulqrumpublishing.com/forumdisplay.php?f=203)
-   -   Index Out Of Range (http://forum.fulqrumpublishing.com/showthread.php?t=32203)

Troll2k 05-17-2012 05:59 PM

Index Out Of Range
 
1 Attachment(s)
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.

FG28_Kodiak 05-17-2012 06:25 PM

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.

Troll2k 05-17-2012 07:05 PM

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.

FG28_Kodiak 05-17-2012 07:41 PM

Can i get the complete mission? It's difficult to find the error without it. :rolleyes:

Troll2k 05-17-2012 09:18 PM

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


All times are GMT. The time now is 07:41 PM.

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