Page 1 of 1

Droid limits

Posted: 09 Dec 2012, 10:43
by aubergine
With the new functions that allow setting / getting of droid limits, how do they deal with the difference between single player and multiplayer games?

The old hard-coded constants were:

#define MAX_MP_DROIDS 150
#define MAX_SP_DROIDS 100
#define MAX_SP_AI_DROIDS 999

I wasn't sure if SP = campaign only, or also included skirmish and challenges?

EDIT: Also, what happens with the overall game limit of 999 droids (across all players)?

Maybe setDroidLimit(player, limit, droidType) could accept ALL_PLAYERS as it's first parameter (forcing droidType to default to DROID_ANY) thus allowing the overall game limit to be set? And getDroidLimit() could work in a similar way?

Re: Droid limits

Posted: 09 Dec 2012, 12:47
by Per
There is no hard upper limit anymore.

Re: Droid limits

Posted: 09 Dec 2012, 13:25
by aubergine
Ah, nice!

Also I noticed that the data/base/script/rules.js sets 100 droids and data/mp/multiplay/skirmish/rules.js sets 150 droids (so 100 droids max in campaign, 150 droids max in all other modes).