It's a fairly involved process and this mod is very depreciated. I'd recommend you wait until AzuCraftyBoxes on Thunderstore is updated but, if you're dead-set on doing it yourself, you'll need dotpeek (or some other decompiler) and visual studio. No idea what program people are using to recompile the DLL since visual studio seems unable to do so.
I'm using AzuCraftyBoxes for the sake of demonstration, since it has the same outdated remote procedure calls (RPCs) as this mod and isn't dead like this mod is, but the general process is the same: decompile, edit, recompile. Major difference is that the two files aren't laid out similarly, so the code you need to edit will take some finding.
Once you've decompiled the dll and exported it as a visual studio project, you'll need to replace the outdated RPCs in four different areas:
CookingStationOnAddFuelSwitchPatch.cs
FireplaceInteractPatch.cs
SmelterOnAddFuelPatch.cs
SmelterOnAddOrePatch.cs
These are the lines to edit in AzuCraftyBoxes' SmelterOnAddFuelPatch.cs file, for example. The problem with these files is that the procedure called by this code has been renamed, which is why Loki eats your coal when you try to pull them into a smelter from a nearby chest. It subtracts the materials from the nearby chest, but can't add them because the RPC is for an unrecognized procedure. The new procedures are "RPC_AddFuel" and "RPC_AddOre". Continuing with the previous example, the code should look like this once you've fixed the SmelterOnAddFuelPatch.cs file.
Once you've fixed the patches above (there should only be minor edits to a line or two per .cs file), you can recompile the DLL. Good luck trying to recompile it, though, because I have no idea why VS throws a fit about it and the documentation is less than helpful.
This mod is broken on the PTR, when ran you can still use mats from containers but when you try to add wood to a kiln the wood is just deleted entirely instead of going in the kiln.
This was annoying me as well. I could see the RPC call failing in the BepinEx log window.
I pulled apart the mod and recompiled it using the latest BepinEx and Harmony DLL's.
I don't really know modding for Valheim that well, I'm just learning how it all works. I checked Azumatt's latest code for his variation of a mod like this in his GitHub repo to see what he changed to get his to work (his mod is on Thunderstore - don't think he's released his latest code updates though).
The code issue is that: -___m_nview.InvokeRPC("AddFuel", new object[] { }); ___m_nview.InvokeRPC("AddOre", new object[] { });
Needs to be updated to the below for the RPC call to work: -
___m_nview.InvokeRPC("RPC_AddFuel", new object[] { }); ___m_nview.InvokeRPC("RPC_AddOre", new object[] { });
There are some repoints for DLL’s that need to be updated in the project settings file too since they shifted some stuff around.
Once I did that and recompiled it works just fine :)
Valheim version 0.217.46 seems to have cause this mod (among others) to break the console. I'm now getting the following error whenever I have this mod loaded and I run any console command (I tested this with the "help" command).
Can confirm this. Have anyone any idea of this is only a issues if you like to use the console, and it's no problem running this none-updated mod on dedicated server?
Same problem. It's working if you don't use the console. It's the same situation for many addons like Craft Build Smelt Cook Fuel Pull From Containers :/
Aedenthorn's discord server is "defunct and unmonitored." Makes me worried about updates to this lovely mod. Do yall know of any alternative craft/build from container mods that works?
Hmmm.. Last active on Nexus; Unknown (but uploaded a Stardew Valley-mod 5 months ago). Last active on GitHub; 8th of January Youtube page; Last upload last year, Stardew Valley related
The main alternative is AzuCraftyBoxes (on Thunderstore). Idk about latest patch because I'm not playing recently, but that author is active so maybe ask in their Discord.
I have the same request... These drawers work with the latest game version: https://valheim.thunderstore.io/package/KGvalheim/ItemDrawers/ But they're not compatible with CFC.
Just tried to do a fresh install of this and it doesn't work. BepInEx reports it as loading fine, but crafting table doesn't seen any materials in a chest next to it.
If anyone is wondering how to disable cooking stations, edit your OreDisallowTypes in the config to this: OreDisallowTypes = RoundLog,FineWood,NeckTail,RawMeat,FishRaw,DeerMeat,WolfMeat,SerpentMeat,LoxMeat,HareMeat,BugMeat
hello hello, having an issue--the game doesn't seem to recognize this mod. I downloaded using Vortex, from what i can tell bepinex is in the game folder and the mod is in that bepinex folder. When I boot up my game, the menu doesn't have the bepinex text in the upper left i've seen in other screenshots, and my table doesn't craft the containers.
697 comments
I'm using AzuCraftyBoxes for the sake of demonstration, since it has the same outdated remote procedure calls (RPCs) as this mod and isn't dead like this mod is, but the general process is the same: decompile, edit, recompile. Major difference is that the two files aren't laid out similarly, so the code you need to edit will take some finding.
Once you've decompiled the dll and exported it as a visual studio project, you'll need to replace the outdated RPCs in four different areas:
- CookingStationOnAddFuelSwitchPatch.cs
- FireplaceInteractPatch.cs
- SmelterOnAddFuelPatch.cs
- SmelterOnAddOrePatch.cs
These are the lines to edit in AzuCraftyBoxes' SmelterOnAddFuelPatch.cs file, for example. The problem with these files is that the procedure called by this code has been renamed, which is why Loki eats your coal when you try to pull them into a smelter from a nearby chest. It subtracts the materials from the nearby chest, but can't add them because the RPC is for an unrecognized procedure. The new procedures are "RPC_AddFuel" and "RPC_AddOre". Continuing with the previous example, the code should look like this once you've fixed the SmelterOnAddFuelPatch.cs file.Once you've fixed the patches above (there should only be minor edits to a line or two per .cs file), you can recompile the DLL. Good luck trying to recompile it, though, because I have no idea why VS throws a fit about it and the documentation is less than helpful.
I pulled apart the mod and recompiled it using the latest BepinEx and Harmony DLL's.
I don't really know modding for Valheim that well, I'm just learning how it all works. I checked Azumatt's latest code for his variation of a mod like this in his GitHub repo to see what he changed to get his to work (his mod is on Thunderstore - don't think he's released his latest code updates though).
The code issue is that: -
___m_nview.InvokeRPC("AddFuel", new object[] { });
___m_nview.InvokeRPC("AddOre", new object[] { });
Needs to be updated to the below for the RPC call to work: -
___m_nview.InvokeRPC("RPC_AddFuel", new object[] { });
___m_nview.InvokeRPC("RPC_AddOre", new object[] { });
There are some repoints for DLL’s that need to be updated in the project settings file too since they shifted some stuff around.
Once I did that and recompiled it works just fine :)
I would love to test this.
I am PC via steam not in PTB.
[Error : Unity Log] TypeLoadException: Failure has occurred while loading a type.
Stack trace:
(wrapper dynamic-method) Terminal.DMD<Terminal::InputText>(Terminal)
Terminal.SendInput () (at <da52c09f594f4a7480000b7420815ba7>:0)
UnityEngine.Events.InvokableCall.Invoke () (at <ab14d35a27c043688812ae199c64b5aa>:0)
UnityEngine.Events.UnityEvent`1[T0].Invoke (T0 arg0) (at <ab14d35a27c043688812ae199c64b5aa>:0)
GUIFramework.GuiInputField.onInputSubmit (System.String text) (at <1c0bbb94c86e42bb92d9376327e3b555>:0)
UnityEngine.Events.InvokableCall`1[T1].Invoke (T1 args0) (at <ab14d35a27c043688812ae199c64b5aa>:0)
UnityEngine.Events.UnityEvent`1[T0].Invoke (T0 arg0) (at <ab14d35a27c043688812ae199c64b5aa>:0)
TMPro.TMP_InputField.SendOnSubmit () (at <99900a1f9e2a471c8b46c2c560e4eba9>:0)
TMPro.TMP_InputField.OnUpdateSelected (UnityEngine.EventSystems.BaseEventData eventData) (at <99900a1f9e2a471c8b46c2c560e4eba9>:0)
UnityEngine.EventSystems.ExecuteEvents.Execute (UnityEngine.EventSystems.IUpdateSelectedHandler handler, UnityEngine.EventSystems.BaseEventData eventData) (at <a01fe238487248d39ba352ec152ec890>:0)
UnityEngine.EventSystems.ExecuteEvents.Execute[T] (UnityEngine.GameObject target, UnityEngine.EventSystems.BaseEventData eventData, UnityEngine.EventSystems.ExecuteEvents+EventFunction`1[T1] functor) (at <a01fe238487248d39ba352ec152ec890>:0)
UnityEngine.EventSystems.EventSystem:Update()
Do yall know of any alternative craft/build from container mods that works?
Last active on Nexus; Unknown (but uploaded a Stardew Valley-mod 5 months ago).
Last active on GitHub; 8th of January
Youtube page; Last upload last year, Stardew Valley related
This is the License on Github:
The main alternative is AzuCraftyBoxes (on Thunderstore). Idk about latest patch because I'm not playing recently, but that author is active so maybe ask in their Discord.
But they're not compatible with CFC.
UPD: Its OK now, bepinex was standard, not valheim.
OreDisallowTypes = RoundLog,FineWood,NeckTail,RawMeat,FishRaw,DeerMeat,WolfMeat,SerpentMeat,LoxMeat,HareMeat,BugMeat