Page 1 of 1

Prototype instance limit

Posted: Fri Apr 23, 2021 12:44 am
by Trific
I note that on the wiki, under Prototype/Tile, it notes "Only 255 instances of this prototype may be defined." I haven't checked all the other prototypes, but those I did have no notation about a limit. 65535? Is the limit for each one documented anywhere? A data dump similar to data.raw for instance?

Re: Prototype instance limit

Posted: Fri Apr 23, 2021 12:00 pm
by Bilka
Which prototypes do you need to know the limit for?

Re: Prototype instance limit

Posted: Fri Apr 23, 2021 12:34 pm
by Trific
Any that are also limited to 255? I'm assuming this limit means the number defined by vanilla plus any defined by mods can't exceed the limit. I would not expect that to be an issue with a limit of 65535, but 255 could be.

Re: Prototype instance limit

Posted: Fri Apr 23, 2021 12:56 pm
by Bilka
The limit of 255 isn't on anything else where it would be relevant. Nevertheless, I have noted the ones that are limited to 255 on the wiki. For your convenience, the following prototype types are limited to 255 instances:
  • DamageType
  • EquipmentCategory
  • EquipmentGridPrototype
  • AmmoCategory
  • ItemGroup
  • ModuleCategory
  • AutoplaceControl
  • Decorative (also known as optimized decorative)
  • Tile
  • ResourceCategory
  • TrivialSmoke
  • FuelCategory