Quality Effects


This mod adds more ways that quality affects assembling machines

Tweaks
4 months ago
2.0
628
Manufacturing

b Crashing when placing Electromagnetic plant at T5+

4 months ago
(updated 4 months ago)

Thanks for the mod and I enjoy the gamebreaking a little too much. NVM everything else that used to be here, just a mod loading order issue. It'd be great if you added the dependency!

I'm using IndustrialCraft - More Qualities (https://mods.factorio.com/mod/ic-more-qualities) for the increased tiers.

Edit: The crash

The mod Quality Effects (0.1.1) caused a non-recoverable error.
Please report this error to the mod author.

Error while running event QualityEffects::on_built_entity (ID 6)
Unknown entity name: QualityEffects-unique-electromagnetic-plant
stack traceback:
[C]: in function 'create_entity'
QualityEffects/control.lua:33: in function <QualityEffects/control.lua:17>

4 months ago

So I've actually seen this same issue with IndustrialCraft - More Qualities (1.0.5) and I could not fix it by adding my own dependency to Quality Effects' info.json to make Quality Effects load later.

It looks like the issue is More Qualities doesn't insert their new qualities during the "data" phase, it waits until the "data-updates" phase of load. Since Quality Effects scans the qualities and makes prototypes during the "data" phase (e.g. before More Qualities has added their new ones), it doesn't know the other qualities exist and crashes the game when it tries to reference them.

The easy solution is to open the .zip and rename the "data.lua" file to "data-updates.lua" as well as adding the line "? ic-more-qualities >= 1.0.0" to the "dependencies" section of the "info.json" file. I have confirmed that this fixes this particular issue.

4 months ago

Maybe I have no clue what I'm doing, but I did exactly that after extracting the zip file and compressing it again, but factorio doesn't include the changed mod and in the mod listing upon loading. Still a zip file, still called the same thing. Changing the files without extracting does the same thing.

I'm hopelessly confused, lol. Thanks for the help regardless!

New response