Dev error with crash following

this is the error here

Assert @ c:\projects\Perforce\SinsDiplomacy\main\CodeSource\Engine/DataStructures/DynamicArray.h(128)

i < size

4,803 views 13 replies
Reply #1 Top

It could be a bad value added somewhere. I found something similar in celestial bodies where the total max asteroids was less than the metal asteroids. They had total asteroids at 4 and 3 crystal and 5 metal and the game spit out the "i < size" error because the max should have been at 8.

Reply #2 Top

would a string error do the same thing???

it wasnt doing it this morning till i added in the pirate ship name and some more tech and advent names

Reply #3 Top

Sometimes errors don't show up until you load a specific race with the error or a game event happens that contains the error.

How many names and how long are the names? Hard Code Limits does not show name limitss but may very well be hard coded. Start by looking at the very long names then how many you have.

 

Reply #4 Top

there where 4 names for the tec and advent and 52 for the pirates......

probally is the queen anns revenge and the rising sun

Reply #5 Top

wasnt those dont know what it is but i cant even start up the game without the error i posted

Reply #6 Top

it appears that every three times i start the game it works????? doesnt make much sense

 

Reply #7 Top

The only time I've had a game minidump at startup only to occasionally work without changing anything had to do with the order I put things in the GalaxySenarioDef file. Basically I had a planet call a template I made before it was defined in the file. The same might hold true for other files, I don't know.

Reply #8 Top

Your error is popping up from the map that gets loaded for the menu background, it loads an actual game map, starting objects and all.  Hence the working occasionally, a map that precludes the offending object.

Reply #9 Top

thanks all for the help psychoak and Goa can you pm me with more details please so i can them to figure it out because the error is annyoing

Reply #10 Top

That's too indeterminate an error for someone to just tell you what it is.

 

We've had a couple of these issues pop up in the course of developing SGI and SOA2.  You can try the eclipse plugin and see if that catches them for you, otherwise start digging through assets you've changed.  Start with ones that are loaded by maps.  Pirates, resources, planets.

 

I'd guess it's the pirate names, you probably screwed up an index value on one of them.  If there's a bad number in there, or if there are just too many of them and it has a cow whenever it tries to read above a certain number, that would explain your frequent, but inconsistent error.  Not every name would be used every instance.

Reply #11 Top

problem is though i cant even get to the game menu to select if pirates are on

Reply #12 Top

you need to backtrack your changes until you loose the error. I already stated that is probably your names. Too many pirate names, get rid of all of them (original file replacement) and if no more error then add 1 or 2 at a time until you get the error back. Then post back with how many name you can add without crashing.

Or its the length of the names. If you have some longs ones, get rid of them and test.

Backtrack, test. Backtrack test. Backtrack test. 

If that fails, start over and do more testing as you change files.

Reply #13 Top

right figured out the max length for ship names it is 13