Valheim

File information

Last updated

Original upload

Created by

aedenthorn

Uploaded by

aedenthorn

Virus scan

Safe to use

697 comments

  1. Reviveee
    Reviveee
    • member
    • 1 kudos
    Can anyone upload a version of this that works or tell me how to update plz
    1. DeltaScorch105
      DeltaScorch105
      • member
      • 3 kudos
      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.
  2. BruceLeeRoyOVER9000
    BruceLeeRoyOVER9000
    • member
    • 0 kudos
    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.
    1. Stollie
      Stollie
      • premium
      • 15 kudos
      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 :)
    2. saosin18
      saosin18
      • premium
      • 0 kudos
      Could you provide the compiled file? :)
      I would love to test this.
    3. DeltaScorch105
      DeltaScorch105
      • member
      • 3 kudos
      How did you manage to recompile it? Visual studio spits out like 2000 different errors when I try to do so
  3. qldgamer
    qldgamer
    • member
    • 0 kudos
    Devcommands is throwing a null error with this mod installed.

    I am PC via steam not in PTB.
  4. Pnaraasi94
    Pnaraasi94
    • supporter
    • 0 kudos
    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).

    [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()
    1. gyrofalcon
      gyrofalcon
      • premium
      • 27 kudos
      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).

      [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()

      Add a reply
      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?
    2. cuterain02
      cuterain02
      • member
      • 0 kudos
      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 :/
    3. Telrond
      Telrond
      • member
      • 0 kudos
      yeh same here, cant use console anymore. With this mod on.
    4. lobosan
      lobosan
      • premium
      • 1 kudos
      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?
    5. gyrofalcon
      gyrofalcon
      • premium
      • 27 kudos
      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

      This is the License on Github:
      This entire repository's contents, as far as legally possible and unless a project specifies otherwise, are released into the public domain. The creator of this file disavows any copyright over any content in this repository, and content licensed from other sources is clearly labeled as such.
    6. jn64
      jn64
      • premium
      • 50 kudos
      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?

      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.
  5. shemzahai
    shemzahai
    • member
    • 0 kudos
    Tried installing with vortex, tried manually copying the files, wouldn't work. On a fresh game install with no prior modding
  6. reavesinc
    reavesinc
    • member
    • 0 kudos
    Any chance this could work with item drawers?
    1. Geethebluesky
      Geethebluesky
      • member
      • 0 kudos
      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.
    2. Deantendo
      Deantendo
      • premium
      • 34 kudos
      Came to ask the same thing
  7. Cmellis
    Cmellis
    • member
    • 0 kudos
    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.
    1. khelgarr
      khelgarr
      • member
      • 0 kudos
      Same
  8. scrappycoco88
    scrappycoco88
    • member
    • 0 kudos
    3.5.1 not working. any idea how to fix? was manually setup in bepinex.
    UPD: Its OK now, bepinex was standard, not valheim.
    1. repairmobi
      repairmobi
      • member
      • 0 kudos
      mod 3.5.1 + game 0.217.38 everything is working
  9. Reikokuu
    Reikokuu
    • member
    • 17 kudos
    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
    1. ahad1101
      ahad1101
      • member
      • 0 kudos
      thanks
  10. BridgetJ95
    BridgetJ95
    • member
    • 0 kudos
    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. 
    1. euro3er
      euro3er
      • premium
      • 0 kudos
      I'm having the same issue.