I downloaded this mod from https://valheim.thunderstore.io/, it works fine and doesn't give me errors (at least from the thunderstore version, the nexus version before if it gave me errors). The bad thing about this mod is that it requires a roof, you put a simple roof and it requires you to put walls and in the end you end up building a little house. With sleep control mods (search for sleep on nexus), you can remove those ceiling or fire requirements, I recommend using this type of mod if you want to use sleeping bag.
Possibly related to this error the mod loader it mentiones the sleeping bag and seems to indicate a failure to hook bed interactions most likely the game falling back to default bed interactions.
Could there be a toggle on/off for making the sleeping bag your spawn point? I would love to carry one around with me to sleep at night and rest / role play camping, but not always set my spawn away from my main base.
Personally a config file would be fine. It would be less hassle than for example a yes/no option every time you place it if you want to set your spawn where you are at.
Letting people decide through a config file would let them play with their preference without bloating the functionality of the mod. For my play style, I would only ever use the sleeping bag to camp at night without setting my spawn. If I died I would want to be back at my base where I can eat up and go venture to get my stuff back.
The more I think about it, the more I really like this idea.
I've already got a Tent mod installed and keep enough materials on my boats just in case I need to setup camp quick while exploring.
But being able to "sleep through the night" without it resetting my spawn point, would be a perfect addition. Definitely looking forward to it's implementation!
Hi SawlGoodman, thx for the mod, loving it, but then there's a tiny little drawback. The placement for sleeping bag only works on actual ground, but not the stone/wood floors. Can u make the bags able to be placed on Stone/Wooden Floor as well?
I will surely reduce the technical debt at some point, when I will be a little bit more experienced at modding (this is really a first shot). However, even if not for this mod, I would really consider Jotunn the Valheim Library (which depends on HookGenPatcher anyway) as it has a strong community and a lot of available and upcoming features. You may see an increasing number of mods using it. Anyway, I totally get your point - it will just take some time as I think I'm gonna focus on features first.
Loving the idea of camping, but I'm not too fond of the model of your campsite. It's the arrows, the coins lying strewn about, the blood... it just seems a bit much for having just set up your tent in the middle of the forest. Otherwise love it. :)
Actually I did ! I am just still unsure on the best way to deal with this, either with a separate placeable object allowing you to shelter whatever you want, including a sleeping bag, or with a bundled sleeping bag + tent (+ campfire?) object, with less customisation but easier to set up while wandering in the forest Also, this was really a first shot to see how it goes. Comments are encouraging, there will be a 1.1 version with a tent. Thanks a lot for your suggestion.
Adds 3 full tents too the game all that can be slept in - the large one counts as a structure to build within as well. theres also a custom materials use to build on of the campsite you can keep on your for ease when travelling.
22 comments
The bad thing about this mod is that it requires a roof, you put a simple roof and it requires you to put walls and in the end you end up building a little house.
With sleep control mods (search for sleep on nexus), you can remove those ceiling or fire requirements, I recommend using this type of mod if you want to use sleeping bag.
https://valheim.thunderstore.io/package/DeMiNe0/SawlGoodman_Valheim_Sleeping_Bag/
Sleepover - Total Bed Control - Valheim BepInEx Plugin
Sleep
[Error : Unity Log] InvalidOperationException: Parameter #0 of hook for Boolean Interact(Humanoid, Boolean, Boolean) doesn't match, must be Bed or related
Stack trace:
MonoMod.RuntimeDetour.Hook..ctor (System.Reflection.MethodBase from, System.Reflection.MethodInfo to, System.Object target, MonoMod.RuntimeDetour.HookConfig& config) (at <33dff776d87748ecb372a90c5ddfc734>:0)
MonoMod.RuntimeDetour.Hook..ctor (System.Reflection.MethodBase from, System.Reflection.MethodInfo to, System.Object target, MonoMod.RuntimeDetour.HookConfig config) (at <33dff776d87748ecb372a90c5ddfc734>:0)
MonoMod.RuntimeDetour.Hook..ctor (System.Reflection.MethodBase from, System.Reflection.MethodInfo to, System.Object target) (at <33dff776d87748ecb372a90c5ddfc734>:0)
MonoMod.RuntimeDetour.Hook..ctor (System.Reflection.MethodBase method, System.Delegate to) (at <33dff776d87748ecb372a90c5ddfc734>:0)
MonoMod.RuntimeDetour.HookGen.HookEndpoint._NewHook (System.Reflection.MethodBase from, System.Delegate to) (at <33dff776d87748ecb372a90c5ddfc734>:0)
MonoMod.RuntimeDetour.HookGen.HookEndpoint._Add[TDelegate] (System.Func`3[T1,T2,TResult] gen, TDelegate hookDelegate) (at <33dff776d87748ecb372a90c5ddfc734>:0)
MonoMod.RuntimeDetour.HookGen.HookEndpoint.Add (System.Delegate hookDelegate) (at <33dff776d87748ecb372a90c5ddfc734>:0)
MonoMod.RuntimeDetour.HookGen.HookEndpointManager.Add (System.Reflection.MethodBase method, System.Delegate hookDelegate) (at <33dff776d87748ecb372a90c5ddfc734>:0)
MonoMod.RuntimeDetour.HookGen.HookEndpointManager.Add[T] (System.Reflection.MethodBase method, System.Delegate hookDelegate) (at <33dff776d87748ecb372a90c5ddfc734>:0)
On.Bed.add_Interact (On.Bed+hook_Interact ) (at <658692ad086f4b8a8eae79e4270841aa>:0)
SleepingBag.SleepingBag.Awake () (at <f9fff85cd90e4e579b89dfcbd84b4081>:0)
UnityEngine.GameObject:AddComponent(Type)
BepInEx.Bootstrap.Chainloader:Start()
UnityEngine.Application:.cctor()
Letting people decide through a config file would let them play with their preference without bloating the functionality of the mod. For my play style, I would only ever use the sleeping bag to camp at night without setting my spawn. If I died I would want to be back at my base where I can eat up and go venture to get my stuff back.
I've already got a Tent mod installed and keep enough materials on my boats just in case I need to setup camp quick while exploring.
But being able to "sleep through the night" without it resetting my spawn point, would be a perfect addition. Definitely looking forward to it's implementation!
Your Tent Mod
https://www.nexusmods.com/valheim/mods/1211/?tab=description&jump_to_comment=96010913
I have a 4th tent to add, a sleeping bag and a travelling wagon that can be slept in as well.
Let me know what you think, could be fun!
Also, this was really a first shot to see how it goes. Comments are encouraging, there will be a 1.1 version with a tent. Thanks a lot for your suggestion.
Adds 3 full tents too the game all that can be slept in - the large one counts as a structure to build within as well.
theres also a custom materials use to build on of the campsite you can keep on your for ease when travelling.