Page 1 of 1

Crash when hitting the turn button

Posted: Sun Dec 08, 2013 12:53 pm
by adi
I added a new starbase level for all races and now i am getting a crash when hitting turn on turn one; anyone knows what this log says? Too many ships in the game?

Edit: Yes, i think that was it; i had 256 ships in the game from id 0 to id 255; i deleted a few; is there a limit on how many ships available to build, including upgrades?

-------------------------------------
ST:BOF Sun Dec 8 11:48:21 2013

Version Under Test: 72
File: ..\..\source\ai\aiempecn.c, Line: 1007, pass < AI_MAX_BUILD_LIST_ITERATIONS
Initialize State: 31
Player Empire: 1 Starting Seed: 1386520900
Galaxy shape: 0 Galaxy Size: 2

-------------------------------------
ST:BOF Sun Dec 8 11:48:53 2013

Version Under Test: 72
File: ..\..\source\ai\aiempecn.c, Line: 1007, pass < AI_MAX_BUILD_LIST_ITERATIONS
Initialize State: 31
Player Empire: 1 Starting Seed: 1386520900
Galaxy shape: 0 Galaxy Size: 2

-------------------------------------
ST:BOF Sun Dec 8 11:50:16 2013

Version Under Test: 72
File: ..\..\source\ai\aiempecn.c, Line: 1007, pass < AI_MAX_BUILD_LIST_ITERATIONS
Initialize State: 31
Player Empire: 1 Starting Seed: 1386520900
Galaxy shape: 0 Galaxy Size: 2

Re: Crash when hitting the turn button

Posted: Sun Dec 08, 2013 1:20 pm
by thunderchero
iirc the limit should be 256. but this includes minors and aliens/monsters.

thunderchero

Re: Crash when hitting the turn button

Posted: Sun Dec 08, 2013 4:05 pm
by adi
yes, all of them; after i deleted 5 starbases, then ids go from 0 to 250 and no more crashes; i guess the limit is 255;

Re: Crash when hitting the turn button

Posted: Sun Dec 08, 2013 6:26 pm
by Flocke
11111111 = 128 + 64 + 32 + 16 + 8 + 4 + 2 + 1 = 255, zero not counted
yeah, they just left us one byte for the ships :mad: