Body:
Hi, I'm running Factorio 2.1 with the following relevant mods:
• loaders-modernized 2.1.3
• loaders-modernized-integrations 2.1.3
• Krastorio2-spaced-out 2.0.17
• space-age 2.1.14
• Krastorio2
When loaders-modernized-integrations is enabled, the game fails to load with this error:
text


复制


下载
Error in assignID: entity with name 'mdm-superior-loader-wfs' does not exist.
At ROOT.loader-1x1.mdm-turbo-loader-wfs.next_upgrade
Source: mdm-turbo-loader-wfs (loader-1x1).


What I've tried:
• Updated both loaders-modernized and loaders-modernized-integrations to 2.1.3.
• Rolled loaders-modernized-integrations back to 2.1.2 — same error.
• Reset mod settings — no change.
• Confirmed there are no deprecated addons like loaders-modernized-k2 installed.
• Moved require("prototypes.k2so.k2so") from data.lua to data-updates.lua in the integrations mod — this did not fix the issue. The error still points to mdm-turbo-loader-wfs's next_upgrade.
My analysis:
It looks like loaders-modernized creates mdm-turbo-loader-wfs and sets its next_upgrade to mdm-superior-loader-wfs too early, before K2SO (or the K2SO compatibility code) has created the mdm-superior-loader-wfs entity. This seems to be a load-order issue between the base mod and the K2SO integration.
Disabling loaders-modernized-integrations allows the game to load normally, but then K2SO loader compatibility is lost.
Could you please take a look? Thanks!