Camiracundus
Refugee
I've been working on re-doing one of my older farm mods to be functional with A21.
It worked perfectly earlier; then all I did was remove 2 recipes from recipe.xml and the matching items from items.xml, fix the name of one recipe ingredient to match its Item name, and now it doesn't work anymore. Or at least, that's what I thought I did; I don't recall doing anything else, and I've scoured both documents to see if any of the three things I touched (Spice Seed, Herb Seed, Cabbage) are unchanged, remaining or hiding, but no such luck; and in the rare instances this happens, the console error usually tells me that it cannot parse recipes because there's no item by a certain ingredient name.
I tried going through process of elimination and had it load perfectly with all but 1 section/line of code (a specific Jar made in a forge) in recipe.xml enabled (I used the <!-- o --> tag), and it worked flawlessly; then I tried simplifying the excluded Jar line that I thought had to be the issue, cause it worked perfectly without it; but when I tried to load again, it spat out the same error.
So I went back to recipes.xml and disabled the newly written Jar code entirely, and fired up the game, expecting it to work just fine - but it spat out that error again. And it keeps doing it now, even when the recipe.xml document consists only of lines that have already worked just fine during my earlier processes.
I'm about to tear my hair out out of frustration with this issue. Hopefully someone here can shed some light on what's going wrong. Thanks in advance!
I've attached the log from the latest error., but it's this part in particular that pops up the console;
2023-10-27T05:45:53 55.593 ERR XML loader: Loading and parsing 'recipes.xml' failed
2023-10-27T05:45:53 55.595 EXC Object reference not set to an instance of an object
at RecipesFromXml+<LoadRecipies>d__1.MoveNext () [0x002be] in <d7dcfa4979674f179c13273f8b30b551>:0
at ThreadManager+<CoroutineWrapperWithExceptionCallback>d__51.MoveNext () [0x00044] in <d7dcfa4979674f179c13273f8b30b551>:0
UnityEngine.StackTraceUtility:ExtractStringFromException(Object)
Log:Exception(Exception)
<>c__DisplayClass52_0:<loadSingleXml>b__2(Exception)
<CoroutineWrapperWithExceptionCallback>d__51:MoveNext()
UnityEngine.SetupCoroutine:InvokeMoveNext(IEnumerator, IntPtr)
https://pastebin.com/ewESwXZC
Thanks!
It worked perfectly earlier; then all I did was remove 2 recipes from recipe.xml and the matching items from items.xml, fix the name of one recipe ingredient to match its Item name, and now it doesn't work anymore. Or at least, that's what I thought I did; I don't recall doing anything else, and I've scoured both documents to see if any of the three things I touched (Spice Seed, Herb Seed, Cabbage) are unchanged, remaining or hiding, but no such luck; and in the rare instances this happens, the console error usually tells me that it cannot parse recipes because there's no item by a certain ingredient name.
I tried going through process of elimination and had it load perfectly with all but 1 section/line of code (a specific Jar made in a forge) in recipe.xml enabled (I used the <!-- o --> tag), and it worked flawlessly; then I tried simplifying the excluded Jar line that I thought had to be the issue, cause it worked perfectly without it; but when I tried to load again, it spat out the same error.
So I went back to recipes.xml and disabled the newly written Jar code entirely, and fired up the game, expecting it to work just fine - but it spat out that error again. And it keeps doing it now, even when the recipe.xml document consists only of lines that have already worked just fine during my earlier processes.
I'm about to tear my hair out out of frustration with this issue. Hopefully someone here can shed some light on what's going wrong. Thanks in advance!
I've attached the log from the latest error., but it's this part in particular that pops up the console;
2023-10-27T05:45:53 55.593 ERR XML loader: Loading and parsing 'recipes.xml' failed
2023-10-27T05:45:53 55.595 EXC Object reference not set to an instance of an object
at RecipesFromXml+<LoadRecipies>d__1.MoveNext () [0x002be] in <d7dcfa4979674f179c13273f8b30b551>:0
at ThreadManager+<CoroutineWrapperWithExceptionCallback>d__51.MoveNext () [0x00044] in <d7dcfa4979674f179c13273f8b30b551>:0
UnityEngine.StackTraceUtility:ExtractStringFromException(Object)
Log:Exception(Exception)
<>c__DisplayClass52_0:<loadSingleXml>b__2(Exception)
<CoroutineWrapperWithExceptionCallback>d__51:MoveNext()
UnityEngine.SetupCoroutine:InvokeMoveNext(IEnumerator, IntPtr)
https://pastebin.com/ewESwXZC
Thanks!