number of enemy units on map limited to 104

How can this be changed

Answer this question

number of enemy units on map limited to 104

  • Nishaz

    This really isn't a hard limit anymore because it was a Multiplayer limit which was removed as part of the Shared Source Release. There still are limits though, in dteam.h you'll find:

    #define MAX_MOVERS_PER_TEAM 120

    (There are 8 teams so 120 x 8 ) = 960 max units per maps. Also important to remember is that there are a lot of UI rescritions and such so unless you start looking to recode the UI you can only have a certian number of Mechs on your team. You can however, have as many enemy units as you need cause they don't use the UI.

    You'll also want to make sure that the ABL scripts don't have any limits in them as well if you're using the scripting system. The editor code that looks for 104 seems to be just a warning, is it preventing you from saving



  • Temoc

    Opening the solution and searching for your error brought me to this code in MechCommander 2:

    MechWarrior* MechWarrior::newWarrior (void) {

     for (long i = 1; i < MAX_WARRIORS; i++)
      if (!warriorListIdea->used) {
       warriorListIdea->used = true;
       return(warriorListIdea);
      }
     return(NULL);
    }

    If that's null you'll get the error you mentioned above. I searched for MAX_WARRIORS and found this in warrior.h

    #define MAX_WARRIORS    120

    You can try upping this number and see if that takes away the problem. It could do wacky things though, the game wasn't designed around being able to tweak those numbers easily so it may not always work.

    BTW the lightbulbs should be [ i ] with no spaces....

     



  • Jeff Schwartz msft

    I can save it but when I start the mission it stops loading with the error message "Too many pilots in this mission!"

    That means it does not really work yet.


  • number of enemy units on map limited to 104