Mods / TentBag-Reworked
Author: safwyl
Side: Both
Created: Mar 14th at 2:29 AM
Last modified: Apr 6th at 4:01 AM
Downloads: 6067
Follow Unfollow 152
Latest release (for Vintage Story 1.20.6 - 1.20.7 and 1.20.8 - 1.20.10, outdated):
tentbagreworked_3.1.1.zip
1-click install
Summary:
Rework of BillyGalbreath's VS-Tentbag to scale satiety cost of packing/unpacking based on the number of solid blocks in the "tent".
This mod allows for the user to pack an in game build within a pre-determined maximum size into a "TentBag" to be quickly re-deployed in a separate location.
Changes:
- BuildEffort is per solid block
- When packing/unpacking the mod counts solid blocks (not air) and multiplies this by build effort to reduce the player's satiety
- If the player's remaining satiety is lower than the required amount to pack/unpack then the game will show an error to the player
- Creative mode disables satiety check before packing/unpacking
- New bag shape and textures (use colored linen to make colored bags)
- Schematics are saved to disk with a rolling count of 10 per user (saved server side in ModData/TentBagReworked)
- Waypoint drop on unpack, removal on pack
ATTENTION: Re: Version 3.1.0+
Version 3.1.0 is a major refactor fo the code base, I've moved the entire code base to a different modid and namespace to avoid conflicts with BillyGalbreath's version of the mod or any other TentBag mods that may come to be.
As such your existing bag will cease to work if you remove an earlier version of the game!
Steps to migrate to the new version:
- Install 3.1.0 alongside 3.0.5 (or earlier versions)
- Give players (or have them craft) the new tentbag item (linen duffle bag item)
- Place any packed tents from 3.0.5 version (blue plaid cloth item)
- Pickup the tent with the new 3.1.0 version (linen duffle)
- Dispose of the old tentbag item
- Remove 3.0.5 from client/server and restart
Configurable options:
- Build Radius
- Build Height
- Build Effort (satiety cost per block)
- Clear Rocks/Grass
- Copy Mode (copies build rather than picking it up)
- Auto Pickup of Tent Item
- Error Highlight Color
- Waypoint Drop
- Waypoint Icon
- Pin Waypoint
- MaxSchematicHistory (rolling files saved to disk per user)
- Chat Notification with block count and saturation expense
- Allow List Mode (only allows packing of explicitly defined blocks)
- Banned Blocks
- Allowed Blocks (block whitelist for allowListMode, ignored otherwise)
Sample (Default) Config:
{
"maxRadius": 10,
"maxHeight": 20,
"buildEffort": 3.0,
"requireSolidGround": false,
"grabFloor": true,
"copyMode": false,
"replacePlantsAndRocks": true,
"putTentInInventoryOnUse": true,
"highlightErrorColor": "#2FFF0000",
"dropWaypoint": true,
"waypointIcon": "home",
"waypointColor": "crimson",
"pinWaypoint": true,
"maxSchematicHistory": 10,
"allowListMode": false,
"showChatNotification": true,
"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"
],
"allowedBlocks": [
"game:soil-*"
]
}
Known Issues:
- Chandeliers and Paper Lanterns do not relight properly when unpacking
- Grass takes forever to grow back (if it does at all), this seems to be related to the base game not something this mod does
To-Do:
- AllowListMode: ability to swap between blacklist and whitelist for blocks DONE!
- Fix bug where chunk relighting can sometimes crash the game/server DONE! (please let me know if further issues persist)
| Mod Version | Mod Identifier | For Game version | Downloads | Released | Changelog | Download | 1-click mod install* |
|---|---|---|---|---|---|---|---|
| 3.1.1 | tentbagreworked | 4311 | Apr 6th at 4:01 AM | tentbagreworked_3.1.1.zip | 1-click install | ||
| |||||||
| 3.1.0 | tentbagreworked | 134 | Apr 4th at 9:09 PM | tentbagreworked_3.1.0.zip | 1-click install | ||
| |||||||
| 3.0.5 | tentbag-reworked | 1093 | Mar 23rd at 11:34 PM | TentBag-Reworked_3.0.5.zip | 1-click install | ||
|
- Changed dependencies to 1.20.*, this will work with any version 1.20.0 or above | |||||||
| 3.0.4 | tentbag-reworked | 145 | Mar 22nd at 5:06 PM | TentBag-Reworked_3.0.4.zip | 1-click install | ||
| |||||||
| 3.0.2 | tentbag-reworked | 282 | Mar 15th at 4:08 PM | TentBag-Reworked_3.0.2.zip | 1-click install | ||
| |||||||
| 3.0.1 | tentbag-reworked | 100 | Mar 14th at 9:02 PM | Empty | TentBag-Reworked_3.0.1.zip | 1-click install | |
Is there any fix for Cellar losing the cellar status?
Ruina
I'm not really sure why, but those were the banned blocks from the original tentbag in jakecool's useful stuff mod. I figure jake did some testing and blacklisted them for a reason.
Why is anvil and forge black listed?
One of the best mods, still working on 1.21.4!)
is it possible to have crops growing in/on the structure?
Here's updated russian translation! Thanks for amazing mod))
working in 1.21 creative.
I have some strange question. Anyone know server with this mod?
I really waiting for an update :(
Love it, love it, love it! One of my favorite mods, it's so atmospheric
safwyl
Game Version 1.20.12 Multiplayer
Mod Version 3.1.1
i have changed the size of the tent bags to be greater than default, wanting bigger bags
the issue is it is not properly reloading the packed structure, i have initially tried a radius of 10(21x21 area) with height of 10(plus floor) and radius of 7(15x15 area) with height of 7(plus floor)
both situations only half the structure renders in, the other half does not and you have to force render it by placing stuff or relaunching the game
all stuff is still there and functional, just the rendering issue of half of the tent that requires a reload to get it to render
also an auto remove map marker when you pick up the tent location aswell if at all possible
safwyl
If you are still working on this, it looks like something was changed in 1.21 that stops your mod from correctly recognizing item/blocks (bowls, crocks, with or without food, etc). Would be great if you could look into that, as well as if the mod can detect this stuff when it is on a shelf. I really want to add a large number of these types of things to make camps/tents a bit more involved to setup instead of being a shulker box. Also, I have tested the reinforcement thing RaptorMother asked about, it would be nice to be able to reinforce and place locks on doors for when drifters can open doors (danatweaks thing I believe) but this is just a wishlist item. If you do decide to add this, compat with the Thievery mod would be cool too! https://news.kalataka.ru/thievery
And I have no idea if it's possible, but a ghost of the structure appearing and the ability to rotate the placement is something I've always wanted for this mod.
Last wishlist I swear, the tentbag item is extremely cool, would love to be able to place them on the ground.
RaptorMother
It does not, currently. The reinforced states are not saved.
Hai! Got a question for usage on servers: does the tentbag respect reinforcements? As is: does a block reinforced to someone in a group you're not in prevent it being packed up?
I've noticed an odd bug. When I built my tent it was registering as a cellar. Once I packed it and placed it again it was registering as a greenhouse. When I relog it shows as a cellar again till I repack and place.
Found a weird bug. I placed a crafted crate in my tentbag and the capacity was changed from 1280 items to 1024 after packing and unpacking it.
I am playing on an SMP with 1.20.11 and version 3.1.1.
Torches also do not relight properly when unpacking.
Mobs are able to go through any door I place after placing down my tent.
More specifically, if there is a door that is part of the tent when I pack it up, placing the tent causes the doors to not block entry to entities; they walk right through it and can throw rocks through it like it isn't there.
Pamela the other tentbag mod? no, they are mutually exclusive since they use the same recipe
Can I not use this mod with the original? I can't get it to craft.....just goes to the old one.
I totally removed the ban list. And I'm not using allow mode.
Pamela can you share your config? Perhaps one of the floor blocks was a banned block? or if youre using allowlist mode it might not have been in the allowlist
So, I removed all the banned blocks, and that didn't do it. I had set the config to pick up the floor, but that was the issue. When I set that to false, it worked.
Pamela make sure there are no banned blocks within the outer bounds of your max size. even if its outside what you built your tent at it will prevent anything from being picked up. Your tent doesn't need to be the max size specified but you do need to make sure the max area specified is clear
I can't pick up my tent bag. My dimensions are set to 17 x 20 and my tent is 11 x 11 x 4. What is the problem?
So, I'm having an issue with picking up my tent. I set the config file to 17 x 20 and BuildEffot to 0.1. My tent is 11 x 11 x 4, but I can't pick it up. Does it HAVE to be the size specified in the config file? It's just a right click to pick it up, correct?
Excarnis %appdata%\VintagestoryData\ModConfig\tentbagreworked.json
Hey, I might seem like a total noob, but where do I edit or place the config file ?
Warlord_Hlt
You'll need to load it in via creative worldedit mode. Go to creative, hit ~ key to open the world edit menu. Load the schematic and place it. If you're not an admin on your server you'll need to ask them to bring it in for you
Thanks I've found it but how do i make it my current file for ingame??
Warlord_Hlt
If you're using the latest version check ModData/TentbagReworked folder for the schematics. They are saved on pack per user
any way to get back tent back save? when placed at world height limit entire buidling with chests and all disappeared.
safwyl
Cheers! The config edits fine now. Thank you for the fix. BTW I love the new tent bag model.
Can the last version of the mod be compatible with 1.20.6? when I start my save it says the mod requires 1.20.7 (I can't update the game yet because of other mods)
Tisajokt
For multiblock blocks like doors, gates, trunks you'll want to add "game:mulitblock-*" to your allow list. A wildcard like this should be fine since the origin block for the item will still need to be indicated to pick up the whole block.
safwyl
Happy to report that the config works now! I am now encountering a different issue; when I try to include doors in the whitelist, it seems to reject the top half of the door. What code do I need to include in the whitelist to allow the full door? (And I haven't tested it, but might this happen for the secondary halves of beds and trunks as well?)
Tisajokt Zer0Pig316
Figured out the issue with the config not working in single player, the original code I forked was only instantiating the config server side so it never looks for client side changes. As of version 3.1.1 I've reworked the file watcher and config instantiation so it should now work in both single and multiplayer. Please give it a shot and let me know!
Haven't updated to the new version yet, but I just want to put out there that I am also having the issue of the config file not affecting the mod's behavior, in singleplayer. Tried adding a whitelist and changing radius, but no change to the tent bag's behavior.
Zer0Pig316
After some tests with the calendar speed set at 1000x it seems grass just doesnt grow back in general. I removed grass with the tent bag and by hand and both didnt seem to come back even after years. I'm wondering if its something to do with how the game handles grass propagation (or rather doesnt). I did however see that very very slowly exposed dirt blocks will grow a grass texture on them (not tall grass), but its like over in game years.
CHR3S Paddon
Unfortunately, the schematic isn't saved to disk as a schematic json but is stored in the TentBag item's attributes (this is a carryover from the original mod). I'll look at making a backup at the time of pack to a json in case this occurs in the future
Zer0Pig316
1. Not sure why the grass wouldn't grow again. I'll fiddle with how its clearing grass/rocks and see if theres something to it. If I had to guess it's storing a permanent air block in that location. Have you tried placing blocks manually above the area and then removing them? Just out of curiosity
2. Are you playing on a dedicated server? Or single player instance? If on a server you have to edit the config in the server's ModConfig folder. Client edits won't work there. Do you see the config changed notification in the log? I'll try messing with the config in single player, I haven't done much in SP with this mod. No idea if notepad++ is at fault, doubt it, but I use visual studio code as my primary config editor.
I've got the same issue as CHR3S - server seemed to desync and according to the logs, put it in a chest halfway across the world that had crashed my game earlier, it's empty now weirdly. I'm hoping the schematics still exist somewhere for me to spawn it back in
Hello, I am trying to retrieve my tent due to it dissapearing somehow (It was in my tentbag before but now it's gone). Does anybody know where these Schematics or the files for the contents of a tent are stored so that you can restore it?
safwyl Fairly new to the game but I absolutely love this mod and the rp elements it adds for me. Thank you for sharing the rework.
A couple things I noticed:
safwyl
you're a super star! Thanks!
SteelFire
I've changed the dependency in the modinfo.json with v3.0.5 so you shouldn't have issues, it may yell about not finding the game version but you can safely ignore. It should work with any version of the game later than 1.20.0
Can we get this to be 1.20.5 dependency also, instead of just 1.20.6? 1.20.6 is a server-side update that clients don't technically need; especially single player clients.
Murazama
should be fixed now
Crashed entire server placing tent bag :(
Edit 1: Seems to be lighting error. :+(
Edit 2: Much like Britney Spears: Oops, I did it again.
Testing to see if being further from our predesignated safe space will break it or not. Might be something with Paper Lanterns / Lanterns causing lighting errors when near other major light sources?
Edit 3: Seems to be a relighting issue when going to a chunk with prior lighting.
Dythanos
Allow list mode has been added
LiothTheBrave
I've been able to successfully change the size up to a radius of 50 blocks without issue, I didn't change the code related to size though so I'm not sure why it wouldn't work with the other version.
Is it possible to change the size now as well? Changing those parameters in the old mod's config didn't actually do anything.
LiothTheBrave
It should work fine for 1.20.4, I set the minimum required version initially but I've updated it to 1.20.4
Dythanos
I'll look into that and see whats feasible
Update to 1.20.4 please.
Would you consider making the ban list a white list instead or have a configuration option for which to use?
screen shots? Info of any kind?