Introducing the Highly-Anticipated Expansion of the CraftFromContainers Mod!
With this mod, the Steel Wall Cabinet now boasts the same functionality as CraftFromContainers, allowing you to access and craft using items stored inside. But that’s not all—this mod also enables seamless sharing of storage access within party groups, enhancing your cooperative gameplay experience.
New Feature: Ownership and Range Check
We have introduced a feature that checks both the ownership of land claim blocks and the proximity of the player before allowing access to containers for crafting or upgrading. If the player is not the owner or the object (such as Writable Crates or Secure Loot Containers) is outside the allowed range, the following messages will be displayed:
If the container is locked:
“Crafting or Upgrade is not allowed as the WritableCrate is Locked.”
“Crafting or Upgrade is not allowed as the SteelWallCabinetSecure is Locked.”
If the player is not the owner or out of range:
“The owner of the land claim block is not or is out of range.”
This new functionality ensures that only the owner within a defined range can interact with the relevant storage containers or secure loot containers. Unauthorized players, or those too far away, will receive the appropriate warning, enhancing the security and control of crafting operations.
Don’t miss out on this essential upgrade for your 7 Days to Die gameplay—build, craft, and conquer like never before!
Configuration
{
"modEnabled": true,
"isDebug": false,
"enableForRepairAndUpgrade": true,
"partyEnabled": true,
"range": -1.0
}
Changelog
- (NEW) Fixed a critical issue where container locking functionality was not working as intended. Containers now properly lock and unlock based on player actions and conditions.
- Resolved a problem where containers without an associated land claim would remain permanently locked. Containers now rely on player range (config.range) when no land claim exists.
- (NEW) Refined the logic for container locking and unlocking, ensuring consistent behavior in both land claim and non-land claim scenarios.
- Added clear tooltip messages for locked containers when the player is out of range or outside the land claim area.
- Improved debugging logs to track container lock state changes for better troubleshooting.
- Storage access for local players and party members only: changed so that only local players and their party members have access when a party is enabled.
- Revised overall logic.
- When placing a WritableCrateContainer with a LandClaim, the WritableCrateContainer will lock if the player moves outside the LandClaim area and unlocks upon returning within the area.
- When in a party, as long as the local player or any party member remains within the LandClaim area, the CraftFromContainer functionality will continue to work, even if other members move outside the area.
== If any issues arise, please let me know. ==
DOWNLOAD Craft from Container Plus (with LandClaim and Range Check) (36 KB)
Credits: llmonmonll, aedenthorn
If you have any questions or have any problems/bugs, please use the support link (Discord, Forum Topic, GitHub Issues, etc.) in the post. If there is no support link in the post, please use the comments section.
I am unable to see the materials needed to craft an item when it is in my party members created storage but as soon as I put it into a storage that I created i’m able to pull from it. Is there a way to pull from all storage chests or is it intended like this?
Hello, im hosting local game with friend. I can use this normally, but my friend cant unless he places boxes.
Hello! I install this mod, place it in my mods folder but it just doesn’t work and I’m not sure what I’m doing wrong? I’m hosting a local game. Please help, do I need to do anything extra?
Thanks for the update.
Will it fix the dupe bug?
How difficult would it be to add support for the Ravenhearst mod?
Right now, similar to TR2085XO, the other party members can’t access storage (from a crafting station, vanilla or modlet) when crafting, even though all storage containers are not locked.
In 1.1 crates get locked for party members (hosting game locally).
After unlocking the crates, if the other players get out the claim block area, crates get locked again.
Is the problem that if one local player is within range of a land claim block, it is normal, but if you form a party and the local player (you) is in range but one of the party members goes out of range, the container is locked? This needs to be reviewed. Thank you for your feedback.
Basically, if party members leave claim block area, the storage gets locked for them.
Last time we used the mod, I unlocked everything but party members could not interact with the container.
We’ll try again, and if any errors come up, I can provide the logs if you want to.
Hi, I-ve also been experiencing this, I’m playing solo, and when I get out of the land claim block zone my crates get locked with a message that says “(craftfromcontainer) crafting or upgrade is not allowed as the writablecrate is locked”
Very Thx for support The Wasteland MOD.
@llmonmonll Could you adapt your mod to the Global update of The Wasteland ?
Thought I would leave this here, works 100% in singleplayer, on dedicated server:
2024-10-29T23:00:04 182.481 EXC Object reference not set to an instance of an object
at CraftFromContainers.CraftFromContainers.ReloadStorages () [0x000fb] in :0
at CraftFromContainers.CraftFromContainers.AddAllStorageStacks (System.Collections.Generic.List`1[T] items) [0x00001] in :0
at (wrapper dynamic-method) XUiC_RecipeList.DMD(XUiC_RecipeList,single)
at (wrapper dynamic-method) MonoMod.Utils.DynamicMethodDefinition.SyncProxy(XUiC_RecipeList,single)
at XUiController.Update (System.Single _dt) [0x00084] in :0
at XUiController.Update (System.Single _dt) [0x00084] in :0
at XUiC_CraftingListInfo.Update (System.Single _dt) [0x00080] in :0
at XUiController.Update (System.Single _dt) [0x00084] in :0
at XUi.OnUpdateDeltaTime (System.Single updateDeltaTime) [0x00159] in :0
UnityEngine.StackTraceUtility:ExtractStringFromException(Object)
Log:Exception(Exception)
XUi:OnUpdateDeltaTime(Single)
XUiUpdater:Update()
XUiUpdateHelper:LateUpdate()
Update, the original version is working now! perfect, thank you kind sir
Great mod, unfortunately the original version doesn’t work at all on 1.1, the landclaim and range check version does work, however, when you leave your base all containers are locked, when you come back you have to manually unlock all of them before you can continue to craft, this is a bit annoying and essentially not saving any time on crafting, holding E to unlock is the same time as just taking wood out of the container. Great mod otherwise, unfortunately not usable for now.
How did you solve it? I also have this question.
I tried your mod and it didn’t seem to be working by itself. When I added it together with the non-plus version, then I was able to craft with items from containers.
It seems it requires the original mod but perhaps you forgot to mention it?
Either way, thank you for the great work!
Thank you for your feedback! The Plus version should indeed work independently. It’s interesting that it only worked when combined with the non-Plus version. I’ll investigate this further to ensure there are no overlooked dependencies or conflicts between the two. If both versions are needed for functionality, I’ll make sure to clarify that in the instructions. Thanks again for bringing this to my attention, and I appreciate your support!
Hey! Thanks for coding this mod! Unfortunately same symptoms as described above – only seems to work once I install the v2 and we currently struggle to make it work with the party! Can you kindly mention in the comments when you updated the files last? I installed a week ago or so, maybe you uploaded a newer version meanwhile I can try?
No problem. I ended up having to use the basic version until a patch is released, but then noticed I was able to upgrade blocks (wood to cobble, and wooden spikes to iron as well) without needing the resources. If I had them, they worked correctly, if not then upgrades just happened and nothing deduced from nowhere.
I know I play a heavily modded vanilla and triple checked if any mods could be interfering, but might be worth checking this as well.
Thanks!
Thank you for your feedback. Could you let us know the specific timing when this issue occurs? For example, which upgrade types (like wood to cobblestone or spikes to iron) or resource conditions in the inventory or containers show this behavior where resources aren’t being consumed? Any additional details would be helpful. Thank you!
Im using latest game version and this mod is not working for my, any ideas or suggestion? Was trying to use all version Plus and non plus
Yea, I don’t know why. Its not giving me an error. Its just not working.
I apologize for the long wait. I’ve just returned from my business trip and have settled in. I’m currently working on the fixes, so please bear with me a little longer. I may be able to release it soon.
qual a chance desse mod funcionar junto com o mod war3zuk?
yes it works
fiz de tudo e n funcionou… qual seria o problema?
Is there anyway to adjust the range that it pulls from? I like the mod, but I feel a bit OP when i can craft from halfway across the city. I’d prefer to put it as something maybe slightly larger than the claim block area so it is more just for when I’m in the base? I tried changing the
“range”: -1.0
to
“range”: -0.5
But it didn’t seem to affect anything (unless maybe i needed to start a new game or put down new storages or something)
i agree i’d try to change that as will its rang is 115 blocks away thats far
Please adapt this mod for Afterlife 🙁
I love this Plus enhancement over previous mod!
And I have one suggestion: if storage is locked, do not craft. Why? Iron storage and exceptions, for example for cooking
This doesnt seem to repair from storage?
I love this mod and the idea behind it. I installed this to a fully stable modded game and now it’s broken. If I enter my inventory/crafting outside of a claim block I get a recurring XUI error that never stops. Again, everything works fine inside of a claimed area but outside the inventory opens but the console opens displaying hundreds of thousands of the below error:
2024-10-07T20:09:53 140.507 ERR [XUi] Error while updating window group ‘crafting’:
2024-10-07T20:09:53 140.508 EXC Object reference not set to an instance of an object
at CraftFromContainers.CraftFromContainers.ProcessWritableCrate (System.Collections.Generic.KeyValuePair2[TKey,TValue] keyValuePair, UnityEngine.Vector3 position, System.Boolean& anyWritableCrateOrSafeFound) [0x0004f] in <9f8ccbbf4c68484eb57b134afeead769>:0
at CraftFromContainers.CraftFromContainers.ReloadStorages () [0x000e9] in <9f8ccbbf4c68484eb57b134afeead769>:0
at CraftFromContainers.CraftFromContainers.AddAllStorageStacks (System.Collections.Generic.List1[T] items) [0x00001] in :0
at (wrapper dynamic-method) XUiC_RecipeList.DMD(XUiC_RecipeList,single)
at (wrapper dynamic-method) MonoMod.Utils.DynamicMethodDefinition.SyncProxy(XUiC_RecipeList,single)
at XUiController.Update (System.Single _dt) [0x00084] in :0
at XUiController.Update (System.Single _dt) [0x00084] in :0
at XUiC_CraftingListInfo.Update (System.Single _dt) [0x00080] in :0
at XUiController.Update (System.Single _dt) [0x00084] in :0
at XUi.OnUpdateDeltaTime (System.Single updateDeltaTime) [0x00159] in :0
UnityEngine.StackTraceUtility:ExtractStringFromException(Object)
Log:Exception(Exception)
XUi:OnUpdateDeltaTime(Single)
XUiUpdater:Update()
XUiUpdateHelper:LateUpdate()
To follow up the error is gone after moving this mods file out of the folder. Any idea whats causing it? I really like this mod lol
Can you try changing the order of loading by adding A-Z to the folder name of this mod and see if the error still occurs? As an example, zzzz_CraftFromContainers.
Hello, Thanks for the reply,
I added the zzz to the start to make it load last like you suggested but the same error occurred. Here is my mod list in case its important for diagnosing: https://ibb.co/8NThTL6 (screengrab on imgbb)
Its interesting that it fixes itself when inside the claim area however but breaks outside. Hopefully we can fix I love this mod 🙁
I can see one of the older mods had several people bring up this issue so it seems like its not going to get fixed 🙁 I am hoping someone will swoop in with a fix. Going to remove all of my mod and see if it does it on vanilla to rule out any of my mods I have installed