Prototype instance limit

Place to get help with not working mods / modding interface.
Post Reply
Trific
Fast Inserter
Fast Inserter
Posts: 122
Joined: Thu Dec 31, 2020 7:57 pm
Contact:

Prototype instance limit

Post 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?

Bilka
Factorio Staff
Factorio Staff
Posts: 2790
Joined: Sat Aug 13, 2016 9:20 am
Contact:

Re: Prototype instance limit

Post by Bilka »

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.

Trific
Fast Inserter
Fast Inserter
Posts: 122
Joined: Thu Dec 31, 2020 7:57 pm
Contact:

Re: Prototype instance limit

Post 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.

Bilka
Factorio Staff
Factorio Staff
Posts: 2790
Joined: Sat Aug 13, 2016 9:20 am
Contact:

Re: Prototype instance limit

Post 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
I'm an admin over at https://wiki.factorio.com. Feel free to contact me if there's anything wrong (or right) with it.

Post Reply

Return to “Modding help”