Prototype instance limit
Prototype instance limit
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
Which prototypes do you need to know the limit for?
I'm an admin over at https://wiki.factorio.com. Feel free to contact me if there's anything wrong (or right) with it.
Re: Prototype instance limit
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
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
I'm an admin over at https://wiki.factorio.com. Feel free to contact me if there's anything wrong (or right) with it.