Buildingclass limit for maps made in worldbuilder

FiresForever

Prince
Joined
Sep 30, 2010
Messages
584
I thought I would post this here in case it helps anybody who is developing a large mod, and I haven’t seen it posted before.

At the CCTP mod we have been having an array error message popping up when using it and starting games using maps made in world builder, I traced it back to the buildings file and in particular the number of “buildingclass” entries.
There seems to be a limit of around 300-400 of these allowed as a pure guestimate if you are starting a game using a map made in world builder. Other map types such as continents are not affected since they load a different way and have no need to make a list of building classes in game for building the map. This seems to be hardcoded as I have not seen anything in the lua files.

If anyone is interested the proof of this can be seen by:
Activate CTP and start a game selecting the earth map, which is a worldbuilder made map – Array Error pops up.
Activate CTP and start a game selecting continents map, which is not a worldbuider made map – NO array error Message pops up.
Delete MonopolyBuildings.xml file from CTP mod, this removes a large number of buildingclasses
Activate CTP and start a game selecting earth map – NO Array error message pops up
 
Back
Top Bottom