Closed MrMadMask closed 6 months ago
Can you show your file directory structure leading to your custom json, and possibly a log file? The file directory structure needs to be quite specific.
Just ran a quick test, you made a typo where the log tells you the problem:
[Error :SCPCBDunGen] Failed to deserialize file: E:\SteamLibrary\steamapps\common\Lethal Company\BepInEx\plugins\SCPCBDunGen\badhamknibbs-scp914-recipes\custom.json. Exception: Invalid character after parsing property name. Expected ':' but got: }. Path '[62].VeryFineResults', line 64, position 182.
It's telling you the problem is on line 64, 182 characters in, where the issue is clear:
{"ItemName":"tea kettle", "RoughResults":["*"], "CoarseResults":["flask"], "OneToOneResults":["@"], "FineResults":["@"], "VeryFineResults":["chemical jug", "golden cup"], "brain jar"},
It looks like you were trying to add brain jar to the very fine results; moving it into the array like so:
"VeryFineResults":["chemical jug", "golden cup", "brain jar"]},
Loads the recipes.
Oh, thank you very much. I'll pay more attention to the logs going forward.
Hello, after following the written instructions in the README to add custom recipes, the 914 machine refuses to use the .json where I write the new recipes. I've tried carefully spellchecking the whole code, removing the default.json, renaming the custom one to "default", but the 914 either always picks the default.json or completely ignores the other one. I'm at my wits' end trying to get it to work, so I hope at least someone here can help me understand what I'm doing wrong. I'll leave the code I'm trying to use for custom recipes below. Thank you for any help.