Spaceblock


Who wants to go planetside? It's dirty and disgusting, doesn't support engineer life, and has an unpleasant smell. Why not instead grow the factory from orbit?

Mod packs
3 days ago
2.0
1.01K
Factorio: Space Age Icon Space Age Mod
Planets Environment

b Mod conflict

15 days ago

Automated crushers are not compatable with this mod I already spoke with mods author and he pointed out the issue. Long story short you define recipes twice and that overrites his patch here is a full message so you don't have to look for it.

Malidictus:
"I figured it out. For whatever reason, yunrus-space-block (the mod you linked me to) runs its recipe creation script twice - once at the data stage, once at data-updates. My mod successfully catches the modified and new recipes from yunrus-space-block, but then yunrus-space-block just re-defines them a second time. If you want, I can solve this on my end by adding a soft/optional dependency. My recipe changes happen at the data-updates stage, so the dependency will ensure I change recipe categories AFTER they have been re-defined.

However, a proper fix would be for yunrus-space-block to not define recipes twice. There's really no reason to create recipes during data-updates, as they're defined raw - without trying to account for changes which other mods might have made. I recommend leaving a comment on the yunrus-space-block to let the mod author know. My guess is that this is an oversight. If the author did what I do (which is copy-paste Lua files and then edit them with new contents), then it's possible a couple of lines were left over from data into data-updates. Specifically, the following two:

require("prototypes.technology-updates")
require("prototypes.recipe")

On lines 157 and 158 of data-updates.lua. Removing those two lines from yunrus-space-block fixes the compatibility issue. In general, redefining entire recipes is poor form if you're only changing a few aspects. However, if you have to do full overwrites, then doing so at the data stage is preferable, since that's when data is supposed to be created. data-updates is for mods making changes to other mods."

14 days ago

Nod nod! I'm working on big changes (basically adding a new location to fly to to speed up resource gathering, and then undoing changes made to compensate for said lack of resources) so might not patch it for a bit, but internally change made!

14 days ago

Cool, it was quite a fun bug to tackle altho it was Malidictus who cracked it but I still had fun looking for possible causes and solutions

New response