A downloadable mod

Compatible with patch 1.77.146 / Cottage Living

This script makes possible the addition of new crafting recipes to the Eco Lifestyle Fabricator.

Creating a snippet tuning that makes usage of this script is very easy. A reference package file can be downloaded as well as the TDESC associated with the M22FabricatorInjector class, which handles the process.

That being said, there are certain elements of the recipes themselves that need to be taken into account when creating them. Each object has a base recipe and recipes for each of the colors that the fabricator offers. These "sub-recipes" all have a tag that links them to the base recipe to group them within a single slot.

Base recipe

<v n="base_recipe" t="disabled" />

Swatch recipe

<v n="base_recipe" t="enabled">
    <t n="enabled">17262947985861714804<!--MAL22:recipe_Fabricator_HouseholdInventory_H2_ToddlerBed--></t>
</v>

The other point of interest is the interaction associated with the START_PHASE of each recipe. The fabricator has one starting interaction per color and the correct interaction must be assigned to whatever the color of your recipe is meant to be.

Start interaction of the black swatch

<e n="key">START_PHASE</e>
<v n="value" t="simple_phase">
    <u n="simple_phase">
        <l n="next_phases">
            <e>2-Staging</e>
        </l>
    <t n="super_affordance">236930<!--fabricator_Start_Black--></t>
    </u>
</v>


Download

Download
Fabricator Injector v1.0.0 15 kB
Download
Fabricator Injector Test Package 4.9 kB
Download
M22FabricatorInjector Tuning Description 301 bytes

Install instructions

Copy MAL22_FabricatorInjector.ts4script to your Mods folder. Note that this script will not do anything without installing mods that make use of it.

Comments

Log in with itch.io to leave a comment.

?does the 1 in front fix the problem??

I've been testing my mods and it seems this is throwing an exception with the trait injector, "No module named 'M22.files.error_utils'".
The Exception is thrown by the Trait injector however, even if you put a 1 at the beginning of the file name to load it first