Hi Leniad,
I took some time to try to debug your recipes because i love them and i'm willing to help to resolve correctly the current LE message every time i go from World to lot.
I have all expansions + stuffs packs + free stuffs and i'm updated to last EA update. Cache cleared
I only installed in my mod folder :
MCCC
Icemunmun haverstables
UI cheats extension
TMEX Better exceptions
andrew_craftables.ts4script
SrslySims_LenaidMenuExpander_2.1-TESTING.package
SrslySims_LenaidMenuExpander-SCRIPT.ts4script
All your recipes :
- drinks Bar,wines,distilled (only the nonspoiling version)
- and all foods
And your cooking furnitures :
- Distillery
- JuiceMaker
- Icecream maker
- customTeasingleCupMachine
- CoffeMakerSIngleCup
- FirePlaceOvenGrill
So as i said i have a LE each time i enter from world to a lot
i have no LE while cooking, and no LE using prepared food or drink, but i can't confirm about the spoiling mechanism.
Here the Last Exception i have from Better Exception :
Possible Cause
(Confidence: 100%)
\Leniad\Drinks\Distilled\DistilledCremeDeCacaoLiqueurSnippet2.package
Reason [cjiang] Caught exception loading reference. RefName:
15561817960004736728 Manager: InstanceManager_object_state. TunableReference is set to a value that is not allowed by its class restriction. (ValueError: TunableReference
is set to a value that is not allowed by its class restriction.)
The following mods should be removed or updated:
Package File Invalid Tuning
\Leniad\Drinks\Distilled\DistilledCognacAperitifSnippet2.package
Leniad_recipe_Food_Homestyle_AperitifCognac-Large2
\Leniad\Drinks\Distilled\DistilledCognacCourvoisierAperitifSnippet2.package
Leniad_recipe_Food_Homestyle_BrandyCourvoisierAperitif-Large
\Leniad\Drinks\Distilled\DistilledCognacGrandMarnierOrangeAperitifSnippet2.package
Leniad_recipe_Food_Homestyle_GrandMarnierOrangeAperitif-Large
\Leniad\Drinks\Distilled\DistilledCremeDeCacaoLiqueurSnippet2.package Leniad_recipe_Food_Homestyle_CremeDeCacaoLiqueur-Large
\Leniad\Drinks\Distilled\DistilledHimbeergeistRaspberrySchnappsLiqueurSnippet2.package
Leniad_recipe_Food_Homestyle_HimbeergeistRaspberrySchnappsLiqueur-Large
\Leniad\Drinks\Distilled\DistilledJackDanielsHoneyWhiskySpiritSnippet2.package
Leniad_recipe_Food_Homestyle_JDHoneyWhiskey-Large
\Leniad\Drinks\Wines\Wine-ChardonnaySnippet2UpdateSP.package
Leniad_recipe_Food_Homestyle_WineChardonnay-Single
\Leniad\Drinks\Wines\Wine-ChardonnaySnippet2UpdateSP.package
Leniad_recipe_Food_Homestyle_WineChardonnay-Large
\Leniad\Drinks\Wines\Wine-MerlotGalloSnippet2.package
Leniad_recipe_Food_Homestyle_WineMerlotGallo-Large
\Leniad\Drinks\Wines\Wine-SchottsbrookeChardonnaySnippet2.package
Leniad_recipe_Food_Homestyle_WineSchottsbrookeChardonnay-Large
\Leniad\Drinks\Wines\WineStrawberrySnippet2.package
Leniad_recipe_Food_Homestyle_WineStrawberry-Large
And this list is highly probably incomplete, it's seems at least that all drinks that can possibly spoil have this LE (i saw that distilled and wine drinks have this problem)
checking the recipe tuning xml concerned :
i took
Leniad_recipe_Food_Homestyle_CremeDeCacaoLiqueur-Large
(instance D7FA4D18B9383BDD) to check
<T n="delta_ingredient_price">4</T>
<U n="final_product">
<L n="apply_states">
<T>15323<!--Servings_LargeUntouched--></T>
<T>10412<!--CraftingSkill_01--></T>
<T>76724<!--Trash_Consumable_HasFood--></T>
<T>15561817960004736728<!--Leniad:FreshnessAlways--></T>
</L>
if i remove this line (bold) i have no more LE for this package.
15561817960004736728 is an obect tuning (instance D7F6AEFC0D6056D8) you use the same for all you concerned drinks :
<I c="CommodityBasedObjectState" i="object_state" m="objects.components.state" n="Leniad:FreshnessAlways" s="15561817960004736728">
<L n="_values">
<T>15189<!--Freshness_Fresh--></T>
<T>15191<!--Freshness_Untouched--></T>
</L>
<T n="linked_stat">14201651813448330923<!--Leniad:commodity_freshness_Always--></T>
</I>
For my test i removed all other drinks and kept DistilledCremeDeCacaoLiqueurSnippet2.package
I thought as described in the LE report that the value returned by this tuning wasn't authorized by the recipe class, so i just
copied the code from in the obect tuning
15189 and
replace the
whole tuning code in the recipe tuning
15561817960004736728.
But i got exactly the same LE, so i made multiple other try, the only things that worked (to get no LE) was to replace <T>15561817960004736728<!--Leniad:FreshnessAlways--></T>
in the recipe tuning directly by the 2 lines : <T>15189<!--Freshness_Fresh--></T>
and <T>15191<!--Freshness_Untouched--></T>
Ty in advance for your time checking this !