"Reached id limit for entity" problem

Place to get help with not working mods / modding interface.
ExarKun626
Manual Inserter
Manual Inserter
Posts: 2
Joined: Sat May 06, 2017 1:54 am
Contact:

"Reached id limit for entity" problem

Post by ExarKun626 »

Hello Everyone,

Since 0.15 I have a particular problem. Somehow I intend to throw as many mods as possible in my games. I have reached over 200 mods in Factorio 0.14.
But now I'm struggling to get even 100 mods. The problem is that I'm not sure what has changed. I get the following error message:

Error Loading mods
Failed to load mods: Reached id limit for entity. The game can't contain more than 65535 instances of this prototype due to hardcoded limits of the engine.


My mod backbone is something like this:
AAI, Angel, Bob, Yuoki and many more and small ones, currently working with 70 mods installed

My questions:
What exactly is this instances of this prototype?
Mostly mods, which adds new items? or researches? or scripts?
Why do I reach this limit now (0.15) and not before(0.14)?

I'm feeling quite a bit sad that I have to sort out some mods now. I know I'm selfish. But Devs and Modders: Thank you very much for giving me so many countless hours of fun.

Greetings Exar
321freddy
Fast Inserter
Fast Inserter
Posts: 125
Joined: Fri Sep 23, 2016 10:16 pm
Contact:

Re: "Reached id limit for entity" problem

Post by 321freddy »

65535 instances of this prototype means that you have 65535 buildings of the same type (for example 65535 yellow belts or something like that) which is a lot.
I don't think there is an actual limit on how many different types of buildings you can have. 65535 is the maximum number for an unsigned 16-bit integer, so they might have implemented this limit for performance reasons because they didn't think that anybody would ever reach it.
Do you have a lot of any specific type of building? If that's the case you can load the save in 0.14 and remove some of them.
Choumiko
Smart Inserter
Smart Inserter
Posts: 1352
Joined: Fri Mar 21, 2014 10:51 pm
Contact:

Re: "Reached id limit for entity" problem

Post by Choumiko »

ExarKun626 wrote:Error Loading mods
Failed to load mods: Reached id limit for entity. The game can't contain more than 65535 instances of this prototype due to hardcoded limits of the engine.
It might either mean you have more than 65k different entities total (entities are miners, belts, assemblers, etc) or it means a certain entity type, e.g. more than 65k different types of belt (yellow, red,blue, and a whole lot more others)

Certainly looks like some faulty code in a mod.
I'd first look for some kind of loop in data-final-fixes.lua, data-updates.lua, data.lua that is running wild
posila
Former Staff
Former Staff
Posts: 5448
Joined: Thu Jun 11, 2015 1:35 pm
Contact:

Re: "Reached id limit for entity" problem

Post by posila »

Choumiko wrote:or it means a certain entity type, e.g. more than 65k different types of belt (yellow, red,blue, and a whole lot more others)
It is this except all types of entities total (all types of belts, inserters, buildings, biters, vehicles, trees, resources ...). But that is still huge amount.
Nexela
Smart Inserter
Smart Inserter
Posts: 1828
Joined: Wed May 25, 2016 11:09 am
Contact:

Re: "Reached id limit for entity" problem

Post by Nexela »

It is from data-raw-prototypes mod and possibly other mods that simulate this behaviour (helmod)

There should be an update to data-raw-prototypes that fixes the issue.
ExarKun626
Manual Inserter
Manual Inserter
Posts: 2
Joined: Sat May 06, 2017 1:54 am
Contact:

Re: "Reached id limit for entity" problem

Post by ExarKun626 »

Thanks much for your answers.

After countless of restarts and trying out a selection of mods. I found out, it was indeed the fault of the mod data-raw-prototypes.
So i disabled it and I could start a game with all mods enabled again.

Today there was an update from the data-raw-prototypes mod and the problem was solved. I can use now over 140 mops again with AAI. Thank you very much for fixing the problem Earendel :)
Post Reply

Return to “Modding help”