Mods / TentBag
Author: BillyGalbreath
Side: Both
Created: Jan 24th at 2:09 AM
Last modified: Aug 28th at 8:42 PM
Downloads: 9363
Follow Unfollow 116
Latest file for Various v1.19.x:
TentBag-2.1.3.zip
1-click install
I took the tentbag from jakecool19's Useful Stuff and made it better.
-------------------------------------------------------------------------------------------------------------
Changes I've made:
- changed the model to the unused bag-roll item instead of a linen sack
- changed the recipe so it does not conflict with Useful Stuff's version (check handbook, you can have both installed at same time)
- option of requiring solid ground/floor or not
- replacing plants and rocks instead of having to clear out an area
- placing the tentbag back into your inventory after use so you dont end up forgetting to pick it back up and it despawns into the abyss
- moved all operations to server side to prevent client-prediction desyncs
- various other code optimizations
-------------------------------------------------------------------------------------------------------------
Config options in %appdata%/VintagestoryData/ModConfig/tentbag.json
{
"radius": 3,
"height": 7,
"buildEffort": 0.0,
"requireFloor": false,
"replacePlantsAndRocks": true,
"putTentInInventoryOnUse": true,
"highlightErrorColor": "#2FFF0000",
"bannedBlocks": [
"game:log-grown-*",
"game:log-resin-*",
"game:log-resinharvested-*",
"game:statictranslocator-*",
"game:teleporterbase",
"game:crop-*",
"game:herb-*",
"game:mushroom-*",
"game:smallberrybush-*",
"game:bigberrybush-*",
"game:water-*",
"game:lava-*",
"game:farmland-*",
"game:rawclay-*",
"game:peat-*",
"game:rock-*",
"game:ore-*",
"game:crock-burned-*",
"game:bowl-meal",
"game:claypot-cooked",
"game:anvil-*",
"game:forge"
]
}
The mod will automagically reload the config when you save the modified file.
-------------------------------------------------------------------------------------------------------------
So what even is a tentbag?
Seems some people are not familiar with this mechanism, so I'll try to explain. A tentbag is an item that can hold a player made structure (within reason, illegal blocks listed below). The default config allows for a 3 block radius and a 7 block high area to be used, which makes a max of 7x7x7 in the world that is centered on the block clicked as the floor. The floor is not included.
I don't think my description does it justice, so here's a short video of me unpacking and packing one of my tentbags (this one is mostly full of trunks to collect stuff while exploring ruins).
-------------------------------------------------------------------------------------------------------------
Here is the list of illegal blocks that cannot be packed into a tentbag.
- game:log-grown-*
- game:log-resin-*
- game:log-resinharvested-*
- game:statictranslocator-*
- game:teleporterbase
- game:crop-*
- game:herb-*
- game:mushroom-*
- game:smallberrybush-*
- game:bigberrybush-*
- game:water-*
- game:lava-*
- game:farmland-*
- game:rawclay-*
- game:peat-*
- game:rock-*
- game:ore-*
- game:crock-burned-*
- game:bowl-meal
- game:claypot-cooked
- game:anvil-*
- game:forge
This is the banned list from the original mod. I have no idea if there is a technical reason for them to be illegal. I do plan to make this list configurable, eventually.
Update: This list is now configurable in 2.1.0 and above
-------------------------------------------------------------------------------------------------------------
Remember, I build these mods for myself and my family. Not you. I owe you nothing. I just like sharing what I've built with others for free. You will receive minimal to no support when using any of my mods.
-------------------------------------------------------------------------------------------------------------
Version | For Game version | Downloads | Release date | Changelog | Download | 1-click mod install* |
---|---|---|---|---|---|---|
v2.1.3 | 1361 | Aug 28th at 8:42 PM | Show | TentBag-2.1.3.zip | Install now | |
v2.1.2 | 128 | Aug 27th at 3:50 PM | Show | TentBag-2.1.2.zip | Install now | |
v2.1.1 | 1185 | Jul 20th at 8:16 PM | Show | TentBag-2.1.1.zip | Install now | |
v2.1.0 | 482 | Jul 11th at 12:46 AM | Show | TentBag-2.1.0.zip | Install now | |
v2.0.0 | 1197 | Jun 12th at 10:33 PM | Show | TentBag-2.0.0.zip | Install now | |
v1.1.2 | 2077 | Mar 29th at 2:47 PM | Show | TentBag-1.1.2.zip | Install now | |
v1.1.1 | 1319 | Feb 16th at 9:48 AM | Show | TentBag-1.1.1.zip | Install now | |
v1.1.0 | 477 | Feb 7th at 10:50 PM | Show | TentBag-1.1.0.zip | Install now | |
v1.0.3 | 472 | Jan 29th at 11:44 PM | Show | TentBag-1.0.3.zip | Install now | |
v1.0.2 | 407 | Jan 24th at 6:53 PM | Show | TentBag-1.0.2.zip | Install now | |
v1.0.1 | 121 | Jan 24th at 4:52 PM | Show | TentBag-1.0.1.zip | Install now | |
v1.0.0 | 137 | Jan 24th at 2:13 AM | Show | TentBag-1.0.0.zip | Install now |
how can you get a visual on what you're putting in/out of the bag? is there any way to turn something like this on? i.e the radius of whats being sucked in.
BillyGalbreath
i tried increasing the radius and height of the tent but when i reloaded my world it didnt make any change. did i miss something?
hmmm. I'm still getting the room errors, where my mobile cellar is still registering as a greenhouse sometimes.
Sounds like a super cool mod, but after installing it, i noticed my launch times tripled (from 13 minutes to 40+), and once i got into the game, the game spent more time frozen than playable (ie every 20 seconds to 1 minute the game froze for 5-8 minutes) i dont know how such a small mod tanks performance so much but it's just not usable for me
i'm running a windows installation steam deck if you're curious about my specs, running on 1.19.2 with a handful of other mods
Awesome, I'll give it a try thanks!
v2.1.2 should fix lighting and room issues Zeorik. Consequently, it looks like it also fixed the issue we saw with large gears. ^_^
Update to my recent comment: It seems the cellar is being treated as a greenhouse, so somehow light is being 'trapped' in the room upon re-placement in the same space or otherwise causing issues. Filling the room with blocks and breaking them returned the room to proper functionality.
So, new bug/ thing to note. Apparently creating a functional cellar, placing it in a tent bag, then re-placing the cellar in the same spot does something to ruin the cellar calculations somehow.
Yep, Just posting it here to let you know there's issues with it in case you want to add it to the 'default' ban list. Plus possibly other multiblock "single item" structures, but I can't think of any more offhand like the large gear.
Sounds like the large gear needs to be added as an illegal block, Zeorik
Hey, I've found a bug/ issue. It seems that Large Wooden Gears absolutely do not like being picked up by the bag. I'm not sure what's exactly causing the issue in terms of technical detail (I don't have access to server logs) but I made a three-piece windmill withthe large wooden gear at the top of the 'bottom bag', which I click on to pick up/ deploy the second layer of the windmill. Twice now while deploying the windmill, I've climbed up my ladder... and the moment I can see the large wooden gear my game crashes. It doesn't crash the server, just the client. If I can use the delay before I crash to move out of sight of it (a block inbetween my sight and the gear stops it) I can re-tent bag the gear and place it elsewhere, which seems to 'fix' it... after crashing multiple times.And whne I do go to break the large gear after this bug occurrs, there's indestructible invisible blocks for the gear multiblock that I need to use Creative to break. Going into a singleplayer world to try and replicate.
Just wanted to say how much I appreciate this mod! I'm unbearably picky about where I settle down--like, I want to be near water but I also want to be near mountains for the goats, and I like stretches of green plains but I don't like living in virtual Kansas so I need a pretty backdrop, and I want it to rain but not too much...I did say "unbearable," right? :D And I get tired of rerolling new worlds and tell myself I'm going to Actually Explore, but then I get impatient because I feel like I'm not getting anything accomplished with my wandering.
Since downloading this mod, I give myself one thing to start--a tent bag--and it has been so satisfying. I still have storage limits, they're just larger. And I still have technology limits, they're just based on how much food I'm able to forage before I have to dismantle everything and move on. I even have a goal in "upgrading" my tent, from a quick dirt hut to a wood and cobblestone house with a nice roof and better storage. And even if I STILL don't find anywhere I want to live, I can sink an in-game week or two into the nomad life and not feel impatient to get things "started." It's incredibly relaxing, and I'm spending more time actually enjoying the game instead of endlessly rerolling in search of a unicorn. So thank you so much, this was exactly what I needed to slow down and enjoy the game!
Heya, love the fork of the tentbag. I just have... one request. Is there any chance at all of making the tent bags renamable? I use several for travel (You can fit a cementation furnace in one!) and sometimes have to fiddle with them to find the one i need.
Changing the config json doesn't appear to do anything. Tried restarting the game and even created a new world with no luck.
I've noticed that if the thing that you are packing up are one block to either the East or South or the diagnal of the two side it goes one block in that direction when unpacking but if there is 2 blocks in those directions it stops drifting (for a lack of better word)
In the north or west directions it seems to be fine and it appears to not matter the orientation of the player so that isn't a factor
Edit: turns out this is the case for the old versions as well I didn't notice it before since I filled the first layer of the 7x7 for a floor
is there any way to disable the ability to pick up reinforced items? if there isnt please add it!
Appreciate the fix!
ImNuts42 from Discord (idk who to tag here on moddb) was able to pinpoint the exact cause for the decor duplication issues DanaCraluminum
I found a critical bug in the mod, you can dupe linen when it is placed as decor
Tyllandian
What? No. In fact, it's even more editable than the yaml was. I added the highlight color and the banned blocks list to it. Just open the json file and edit the values, just like you did for the yaml file.
Does the change in file type mean it is no longer editable? The file in the modconfig folder is a .json. I ask because my save was built around a mobile base that isnt all that mobile anymore x.x
BillyGalbreath
Sorry about that, Tyllandian. Starting with v2.0.0 I changed the config from YAML to JSON, so the new file would be tentbag.json
Since new update, modifying the config to increase the size does not seem to work. Any idea why this might be?
Interesting. I do I have DanaTweaks installed, and I actually went into it's config first thing after experiancing this to disable the drop tweaks. Unfortunately it seems that even with them disabled, the tent is still affected. I'll confirm if it is that, and if it is, maybe Dana will look into it! Thanks.
Maamessu
Do you have a mod called "Dana Tweaks"? Because it alters decor drops. And maybe you can disable it in that mod to fix this issue.
Maamessu This has been reported to me, and I am unable to reproduce this behavior. Here's a video of me testing with wallpapers that was reported to me on a CoB servers https://www.youtube.com/watch?v=6_G1VuCdQ50 We came to the conclusion that it must be an incompatibility with another mod, but we don't know what. Either way, it's nothing on my end.
Wanted to report a dupe problem with the tent bag. Any surface attachable blocks such as vines, rush mats, carpets, wallpaper, etc, will "explode" out of the structure when packed into a tent bag, dropping all over the ground. The things is, when you next unpack the tent bag, those items will still be attached to where they should be in the strucutre... So my wallpaper lined support beam still has wallpaper on it. Basicaly, every time the tent bag is packed up, those blocks duplicate by both going inside the tent bag and also dropping to the ground.
Oh, this was fixed a week ago Flufee. Only took me a few minutes once I was made aware of it. ;)
BillyGalbreath Hey Billy. Love your work. Keep in mind that currently this does not seem to happen with any other mod (for anyone else wondering, there is nothing wrong with Billy's mod, just mere coincidence of choice of library), so only proceed if it's not too much hastle to replace any logic to be using a standard library. See you in the server, pal!
I'm not sure if this is intentional or not, but it seems that because there are only three dimensions specified (WxHxW), it is possible to actually dig out and have a 'basement' be packed up into the tent bag, as you can also go 'height' blocks down, not just up. Figured I'd report the behaviour just in case it was a bug. I'll also hand it to the player on my server for figuring it out!
(I'd also love to see that illegal block list become configurable one you get around to it. It'd be nice to blacklist containers, for example.)
2.0.0 works as expected in an existing world, with my mod selection that was running fine with 1.1.2. I did nothing past swapping the mods out. Anyone wondering whether you can do the same, I wouldn't be concerned about any issues unless previous versions were causing you grief.
Sorry about that, Flufee
I had no idea there was an assembly conflict with the yaml library. I'll be switching that out for the standard built-in json library in all my mods, starting with PlayerList and TentBag.
Sorry im late, guys. I reuploaded the mod with the conflict with TentBag resolved:
mods.vintagestory.at/volumetricyamldotnetcompatibility
yatsu you were correct I removed volumetric shading and removed its entry from cash folder now tent bag is working. Thanks again for the info. I'm going to post a link to this conversation to volumetric shading page, hope he can fix it.
Thank you VERY much yatsu I do use volumetric shading, so I bet you hit the nail on the head, ill try what you posted and if it works will post back so others know. Also, might post to VS in hopes he can fix it on his end. I would hate to give VS up.
Mendall , i had this problem too, in my case it turned out to be some kind of conflict with the Volumetric Shading mod. i'm assuming it has something to do with the fact that both mods have a yamldotnet dll file, but i'm not a modder, so i'm not sure. anyway, i deleted the volumetric shading mod from my mod folder, deleted my cache folder, and reloaded the game and the tent bag works now.
Well if no one knows why this stopped working, ill go back to still useful stuff for now.
When I first installed this mod it was there I checked, but when I finally got around to making one it has disappeared from my world altogether. No crafting recipe, no object in creative menu. Not even a config file (tentbag.yml) in the folder. The mod is in my mod folder, it's up-to-date, and I'm not using useful stuff. But the only mention of it I can find anywhere else is this error in the log files
25.5.2024 11:27:10 [Error] [tentbag] An exception was thrown when trying to load assembly:
25.5.2024 11:27:10 [Error] [tentbag] Exception: Assembly with same name is already loaded
at System.Runtime.Loader.AssemblyLoadContext.g____PInvoke|5_0(IntPtr ptrNativeAssemblyBinder, UInt16* ilPath, UInt16* niPath, ObjectHandleOnStack retAssembly)
at System.Runtime.Loader.AssemblyLoadContext.LoadFromAssemblyPath(String assemblyPath)
at System.Reflection.Assembly.LoadFrom(String assemblyFile)
at System.Linq.Enumerable.SelectListIterator`2.MoveNext()
at System.Linq.Enumerable.WhereEnumerableIterator`1.ToList()
at Vintagestory.Common.ModContainer.LoadAssembly(ModCompilationContext compilationContext, ModAssemblyLoader loader) in VintagestoryLib\Common\API\ModContainer.cs:line 481.
Anyone know what this means or how I can fix this.
I reloaded a couple of times to make sure It's not just a fluke, and I uninstalled/reinstalled mod with no joy.
I'm not sure what else to do. I was looking forward to trying this.
I am not immune to advertising by shitty pun.
im not entirely sure if its just this mod doing this, but thought id bring it to your attention. the doors arent stopping creatures from entering. tried all doors on home base and works fine. but when its on a structure i place with the tent bag. it acts like its there but not there. they do have a bit of pushback, but eventually phase thru it. also tried replacing doors after placing to see if it wasnt recognizing it and still creatures walk thru. again not entirely sure if its just this mod causing this. Great mod! great job!
I love the idea of having the options of a portable base like this, at least until we get boats/airships/wagons to use as a portable base.
However I got this error on my client first time trying to log in after installing tentbag onto my dedicated server (and my client).
Running on 64 bit Windows 10.0.22631.0 with 32644 MB RAM
Game Version: v1.19.7 (Stable)
19.04.2024 16:10:49: Critical error occurred
Loaded Mods: bushmeat_meals@1.0.7, viescraftmachines@2.3.1, volumetricshadingreupdated@0.7.5, game@1.19.7, zoombuttonreborn@1.6.0, blocksoverlay@3.2.1, levelup@1.1.3, spawnhighlight@1.2.0, creative@1.19.7, survival@1.19.7
System.Exception: Don't know how to instantiate item of class 'TentBag' did you forget to register a mapping?
at Vintagestory.Common.ClassRegistry.CreateItem(String itemClass) in VintagestoryLib\Common\ClassRegistry.cs:line 274
at Vintagestory.Common.ItemTypeNet.ReadItemTypePacket(Packet_ItemType packet, IWorldAccessor world, ClassRegistry registry) in VintagestoryLib\Common\Network\ItemTypeNet.cs:line 18
at Vintagestory.Client.NoObf.ClientSystemStartup.PopulateItems(List`1 items, Int32 listSize) in VintagestoryLib\Client\Systems\Startup.cs:line 587
at Vintagestory.Client.NoObf.ClientSystemStartup.LoadItemTypes() in VintagestoryLib\Client\Systems\Startup.cs:line 399
at Vintagestory.Client.NoObf.ClientSystemStartup.HandleServerAssets_Step1() in VintagestoryLib\Client\Systems\Startup.cs:line 341
at Vintagestory.API.Common.TyronThreadPool.<>c__DisplayClass12_0.<QueueTask>b__0(Object a) in VintagestoryApi\Common\TyronThreadPool.cs:line 120
at System.Threading.QueueUserWorkItemCallback.Execute()
at System.Threading.ThreadPoolWorkQueue.Dispatch()
at System.Threading.PortableThreadPool.WorkerThread.WorkerThreadStart()
I did install this mod into an existing world, if that helps/causes any issues.
BillyGalbreath
No worries at all about the delay! I read and understood your disclaimer at the bottom.
For what it's worth, the error is gone and the mod is once again working. Thank you very much!
CKitt, sorry for the late reply. That is indeed an odd error. Its stating that the client side is trying to reload the mod's config file, which it shouldn't be doing even in single player. I went ahead and just applied the recommendation the error is suggesting, but i feel there might be some deeper issue going on.
BillyGalbreath
I had been successfully using this mod for a while, and it abruptly stopped working properly. Now, when I attempt to pick up a tent, I get the following crash:
Running on 64 bit Windows 10.0.19045.0 with 130848 MB RAM
Game Version: v1.19.4 (Stable)
3/20/2024 5:55:40 PM: Critical error occurred in the following mod: tentbag@1.1.1
Loaded Mods: game@1.19.4, tentbag@1.1.1, creative@1.19.4, survival@1.19.4
System.InvalidOperationException: Cannot call this method outside the main thread. Not thread safe to do so. You can use the thread safe method .EnqueueMainThreadTask() to queue up the register on the main thread instead.
at Vintagestory.Client.NoObf.ClientEventAPI.RegisterCallback(Action`1 OnTimePassed, Int32 millisecondDelay) in VintagestoryLib\Client\API\ClientEventAPI.cs:line 542
at TentBag.Configuration.FileWatcher.QueueReload(Nullable`1 change) in C:\Users\Billy\RiderProjects\TentBag\src\Configuration\FileWatcher.cs:line 48
at TentBag.Configuration.FileWatcher.Changed(Object sender, FileSystemEventArgs e) in C:\Users\Billy\RiderProjects\TentBag\src\Configuration\FileWatcher.cs:line 26
at System.IO.FileSystemWatcher.NotifyFileSystemEventArgs(WatcherChangeTypes changeType, ReadOnlySpan`1 name)
at System.IO.FileSystemWatcher.ParseEventBufferAndNotifyForEach(ReadOnlySpan`1 buffer)
at System.IO.FileSystemWatcher.ReadDirectoryChangesCallback(UInt32 errorCode, UInt32 numBytes, AsyncReadState state)
at System.IO.FileSystemWatcher.<>c.b__85_0(UInt32 errorCode, UInt32 numBytes, NativeOverlapped* overlappedPointer)
at System.Threading.PortableThreadPool.IOCompletionPoller.Callback.Invoke(Event e)
at System.Threading.ThreadPoolTypedWorkItemQueue`2.System.Threading.IThreadPoolWorkItem.Execute()
at System.Threading.ThreadPoolWorkQueue.Dispatch()
at System.Threading.PortableThreadPool.WorkerThread.WorkerThreadStart()
I figured you'd want to know that it was crashing with no other mods enabled whatsoever.
I'm loving the use of it, one quick suggestion came to mind.
Can you automate a waypoint creation at the centerpoint of the tentbag during the unpack, and label it "Tentbag" or "Tent" or "Camp" etc?. (Even better, pin the created waypoint so we can't easily forget it!)
You could also automate the removal of the waypoint during the packing operation.
I've been trying to use this mod for the past couple days, I'm still running 1.18.15 and when I download it doesn't want to add to the game. The file is in the mods folder but no config file is loading. I've tried all the versions that are supported for 1.18. Am I doing something wrong or missing a step? I have the useful mod and that is working for me fine. Any advice would be appreciated. :)
Thanks for the answer the food spoiling thing will not affect me, I used the original tent bag to allow me to travel long distances for a long period of time (like a full in game year or more) while I find the perfect place to build. Plus, I just kinda like the nomad lifestyle. When moving every day like that, all you need to do is forage. So I never store food any way. The best thing about this mod is not having to clear a spot of all grass. Thing is, I can't give up the chiseling bench and trader welcome mat from useful stuff, so will probably be running both. Hopefully your tent bag is more stable as well, that was my only gripe b4 it crashed the game a lot when packing your tent up again.
Mendall Yes, you can use chiseled blocks. The mod is affected by a bug which I think is VS related in that insulated rooms turn into greenhouses instead of cellars when placed down again (I could replicate this with the worldedit move tool too). This will consequently cause food items to spoil much quicker. So right now I'd treat this more of a quick & dirty way to quickly plonk down something to sleep, not something to camp out in for a while in a region.
See: https://github.com/anegostudios/VintageStory-Issues/issues/3542
I used the original mod and was able to turn off the limitation on storage, keeping its inventory in the config files as well as making it a little larger. In short, my chests could keep storage.
I didn't have a food vessel, though, so cant say if it would have been possible.
The original tent bag was a bit unstable if a small animal was inside when you tried to pack it up the game would crash, if grass had grown to close outside when you packed it the game would crash. ECT.... but over all it made for a fun play style just wandering around setting up a tent for the night.
One question, can you use chiseled blocks in this version?
I play single player world.
I second the storage issue. I'd kinda like to have a storage vessel inside for better spoilage time but not if it keeps its items. Like, worst case we ban all storage containers (might be hard with modded ones?) and carry one extra that we plonk down inside of it. But dropping a 7x7 area full of trunks seems bonkers and cheaty.
BillyGalbreath
When I download the world gives the following error:
30.1.2024 18:28:55 [Error] [configlib] An exception was thrown when trying to load assembly:
30.1.2024 18:28:55 [Error] [configlib] Exception: Assembly with same name is already loaded
at System.Runtime.Loader.AssemblyLoadContext.g____PInvoke|5_0(IntPtr ptrNativeAssemblyBinder, UInt16* ilPath, UInt16* niPath, ObjectHandleOnStack retAssembly)
at System.Runtime.Loader.AssemblyLoadContext.LoadFromAssemblyPath(String assemblyPath)
at System.Reflection.Assembly.LoadFrom(String assemblyFile)
at Vintagestory.Common.ModAssemblyLoader.LoadFrom(String path) in VintagestoryLib\Common\API\ModAssemblyLoader.cs:line 34
at Vintagestory.Common.ModContainer.<>c__DisplayClass35_0.b__0(String path) in VintagestoryLib\Common\API\ModContainer.cs:line 449
at System.Linq.Enumerable.SelectListIterator`2.MoveNext()
at System.Linq.Enumerable.WhereEnumerableIterator`1.ToList()
at Vintagestory.Common.ModContainer.LoadAssembly(ModCompilationContext compilationContext, ModAssemblyLoader loader) in VintagestoryLib\Common\API\ModContainer.cs:line 448
Before that, I tested the Still Usefull Staff mod
I think the banned list is to prevent people from making portable farms, or using tent bags as a quick way to excavate large areas. Just my 2 cents.
is it possible to make it so firews and chests can not either be part of the tent or at least they can not hold items?.. notice if we pick up ternt with fire even lit not only does the wood remain in it also the fire is still lit when we place it again. I ask because i know if i use this mod on my server people will turn t into one giant chest. Just asking, if not no huge issue. thanks
So you could have like a max 5x5x2 type of interior, excluding chiseled half spaces of course, right? Assuming you use the entire space for a "tent". VS really needs wool blocks or something though.
ChadStevens
I got you, fam. ^_^
Needs screenshots
Love this idea. Thanks for sharing the mod.