In a two player game, the commanders are IDs 1 and 2, the next thing built is 3, and so forth. This is a departure from how TA did it. TA made it so that with a 500 unit cap, commander 1 was 1, and commander 2 was 501.
All our AI's use arrays of 10,000 to store returned arrays of untis, with the expectation that the engien ahs a maximum of 10000. I knew this was true in version 0.4 but I wasnt aware ti had changed.