Rigor Module


New type of module: Rigor modules. Rigor modules increase the probability of a recipe returning its most valuable product.

Content
3 hours ago
2.0 - 2.1
29.3K
Manufacturing

g Rigor Module and prototype count

4 months ago

Hei it s me again :D

I recently noticed that factorio was returning an erorr when adding multiple mods. With chatpgt I ve checked this error

Failed to load mods: Reached id limit for recipe. The game can't contain more than 65535 instances of this prototype due to hardcoded limits of the engine. See the log file for more detail.

Investigating further into the log it seems that rigor module is creating 72484 prototypes. I am not sure what it means, however, seems a huge number compared to other mods.

I am copy pasting the info below
I checked your actual factorio-current.log, and the culprit is much clearer now.

🚨 The main culprit is rigor-module

Your log reports:

rigor-module: 72484

recipes attributed to that mod.

That's enormous considering Factorio's hard limit is 65,535 recipes total. And there's another very revealing number:

umr_crafting_entity_2_category = 52283

inside Rigor's processing.

So this isn't simply "you have too many mods." Rigor Module is generating tens of thousands of additional recipe prototypes.

What's happening

rigor-module appears to be creating recipe variants for different machines/tiers. Your log shows recipes such as:

umr_crafting_entity_2_10x__advanced-anorthite-crushing
umr_crafting_entity_2_10x__advanced-bone-processing
umr_crafting_entity_2_10x__advanced-carbonic-asteroid-crushing
...

and there are 52,283 recipes/categories associated with umr_crafting_entity_2 alone.

Your modpack is also absolutely huge: you've got a very large collection of Space Age planets and production mods, including things like Rubia, Muluna, Moshine, Cerys, Rabbasca, Tiberium, Linox, Paracelsin, etc. The log confirms all of these are being loaded.

That makes Rigor particularly problematic because it appears to be processing recipes from practically your entire modpack.

Why it suddenly fails

The loading sequence gets all the way through the mods and then Factorio produces the prototype counts:

rigor-module: 72484

followed immediately by:

Reached id limit for recipe.
The game can't contain more than 65535 instances

So we can be pretty confident about the diagnosis:

Your modpack + Rigor Module = more than Factorio's recipe prototype limit.

4 months ago

I am removing other old mods to make it work, however, leaving out some interesting others. Anything you can do to fix somehow or limit the number to fit all together?

4 months ago

I have to add

What is actually happening

Your load order has:

umrFixed 2.0.67
rigor-module 1.1.17

UMR is designed to make its exotic machines work with modded recipes, including recipes from other planets/mods. The mod author explicitly describes its heavy manufacturing facility as being able to use recipes from other worlds and mods.

Your log then shows Rigor processing the resulting UMR recipe category:

umr_crafting_entity_2_category = 52283

and then:

umr_crafting_entity_2_10x__advanced-anorthite-crushing
umr_crafting_entity_2_10x__advanced-bone-processing
umr_crafting_entity_2_10x__advanced-carbonic-asteroid-crushing
...

So the chain is essentially:

Hundreds of mods → UMR makes their recipes available to its universal machines → Rigor sees those recipes as eligible → Rigor creates additional variants → 65,535 recipe limit is exceeded.

And there's an especially strong confirmation in your log:

Removing invalid rigor sensitivity ...
'umr_crafting_entity_2_10x__muluna-anorthite-chunk-upcycling'

So Rigor is definitely touching UMR-generated recipes.

https://mods.factorio.com/mod/umrFixed?utm_source=chatgpt.com

4 months ago

Can you uplaod your log file?

4 months ago

No cannot in here, and gitlab is requesting a credit card just to register for free. Any other secure way?

4 months ago

GitLab doesn't need a credit for a regular account, only for the premium features. But anyway, you can also use the discord, or just share a link to google drive or dropbox or something.

4 months ago

no they change policy i believe, now always with credit card. Anyway will drop you a discord message!

4 months ago

I looked into this a bit and it seems GitLab will only require a credit card in some circumstances, like creating an account with a shared IP address or VPN, or anything that gets flagged as "suspicious" (to stop bitcoin miners abusing free CI minutes apparently). But I digress. Discord is usually easiest.

4 months ago

Should be fixed in v1.1.18. I had to ban rigor modules in UMR crafters, otherwise they cause too many compatibility issues.

4 months ago

Hei thanks a lot for fixing it. I guess was the easiest way to make it work

All good now!

a month ago

appears in my setting, too (current 1.1.22). 58578 item IDs.

I mean I know that I have a rather large amount of mods installed (trying to include every at least a little sensible planet), works in 2.0.77, crashes in 2.1.24.

main suspects (i.e. 1,000) according to the log:
Number of rigor-affected recipes by crafting category:
["basic-crushing"] = 1358,
["castra-dps-recipe-category_dps-equipment-enhancer"] = 1170,
chemistry = 2910,
crafting = 1746,
crushing = 3589,
["igrys-enriched-science-pack"] = 5238,
organic = 14259,
recycling = 1843,
smelting = 1455,
["space-cultivation"] = 4800,
training = 4050,

I can post the whole log if you need it. But it seems a basic problem, I mean the more mods you have the more rigor stuff is created. Can there be a way to configure for which mods or crafting categories rigor should be enabled?

I'm also not sure, is it really necessary to have this huge amount of recipes added, since rigor only applies to recipes with probabilistic outcome? or are all these 50k+ recipes probabilistic? Maybe you can generically narrow down for which recipes rigor is really useful (the Crucible ones e.g. obviously), but I believe nobody will push 50k+ recipes with rigor?

No idea about the inner workings of course, just my thoughts... what do you think?

Thanks very much for your mods and for porting them to 2.1! :-)

a month ago

The full log would definitely be helpful!

There is a way to only enable rigor for a small, curated subset of recipes, which is to enable "compatibility mode." That changes the logic to only allow rigor for recipes that have been explicitly opted in by their mods; which are currently: Crucible, (optionally) vanilla Factorio+SA, and Muluna.

That number of recipes isn't the number of original recipes, but the number after Rigor Module has made all its duplicates. It should actually list in the logs every (original) recipe that Rigor Module has duplicated.

a month ago

Thank you for your quick response! ok should I open a new work item in your gitlab repo and post the log there?

a month ago

Yes, thanks!

a month ago

I made some compatibility improvements in v1.1.23 that should hopefully fix this.

a month ago

Thank you, that's way better, it's down to 27,130 recipe items now! :-D

Unfortunately, there are still some mods with a lot of recipes, so the error still appears. For the sake of reference and maybe other people in the future who may run into this, these are other threads I opened:
https://mods.factorio.com/mod/foliax/discussion/6aebbe5683fb8387e569bd85
https://mods.factorio.com/mod/Paracelsin/discussion/6aeced2ad36ccc4b7bbe300b
https://mods.factorio.com/mod/panglia_planet/discussion/6aeced65181cfe1e488a5941
https://mods.factorio.com/mod/rubia/discussion/6aecedcde7366ef4fda6c341

If you have other ideas to decrease the number of recipes, that'd be great, but it's great that you cut them in half, so maybe let's see if other mods come up with some ideas, too (or, in the end, I might have to face the truth that I maybe have too many mods installed :-).

a month ago

Well it's an improvement lol.

It might just be necessary to enable Rigor Module's compatibility mode. That would reduce the number of recipe by like 80 or 90%. I do have some ideas and works in progress for further cutting down on the number of recipes, and for more dynamic compatibility options; but they're a lot more technically involved and introduce a bunch of edge cases.

a month ago

thanks a lot again for your work and improvements, I'm sure I'll figure it out one way or the other. :-)

13 days ago

added some info here about what I found to lower the recipes: https://mods.factorio.com/mod/rubia/discussion/6aecedcde7366ef4fda6c341

New response