Not all recipes are shown in modded assmebling Space Age (works in 2.0)

Place to get help with not working mods / modding interface.
aram
Burner Inserter
Burner Inserter
Posts: 14
Joined: Fri Dec 18, 2020 8:12 pm
Contact:

Not all recipes are shown in modded assmebling Space Age (works in 2.0)

Post by aram »

Hello,

I'm not sure if there is something extra that must be done but one of the mods I had made doesn't show all the recipes to be assembled in Space Age, but it shows them in Factorio 2.0.

I tried this on a new game just to be sure it's not a save issue, ran unlock all research technologies as enabled cheat mode to be sure.

The content is like to like with assembling-machine-3 with some minor parameter modifications (attached).

Note that as attached, the machine is set to enabled = true from the start and running

Code: Select all

/c game.player.force.research_all_technologies();
should take care of all locked technologies.

If you happen to know what's going on and have a solution, I appreciate if you could point me in the right direction.

Thank you
Attachments
Factorio_SpaceAge.png
Factorio_SpaceAge.png (554.48 KiB) Viewed 205 times
Factorio_2.0.png
Factorio_2.0.png (421.93 KiB) Viewed 205 times
assembling-machine-3.txt
(4.11 KiB) Downloaded 14 times
assembling-machine-x.txt
(4.03 KiB) Downloaded 15 times
aram
Burner Inserter
Burner Inserter
Posts: 14
Joined: Fri Dec 18, 2020 8:12 pm
Contact:

Re: Not all recipes are shown in modded assmebling Space Age (works in 2.0)

Post by aram »

It turns out that Space Age modifies the assembling machine categories in base-data-updates stage which makes some items not appear in the list of recipes in the modded assembling machine (more info on viewtopic.php?f=23&t=121020).

To fix this, I added the following in the data-final-fixes.lua which is copied from the internal file in Factorio:

Code: Select all

if feature_flags["space_travel"] then
  data.raw["assembling-machine"]["assembling-machine-x"].crafting_categories = {"basic-crafting", "crafting", "advanced-crafting", "crafting-with-fluid", "electronics", "electronics-with-fluid", "pressing", "metallurgy-or-assembling", "organic-or-hand-crafting", "organic-or-assembling", "electronics-or-assembling", "cryogenics-or-assembling", "crafting-with-fluid-or-metallurgy"}
end
Post Reply

Return to “Modding help”