CraftFromContainerPlus

7 days to die craftfromcontainerplus

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

Share this with your friends:
Subscribe
Notify of
guest

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.

36 Comments
Inline Feedbacks
View all comments
Uzzy
Uzzy
November 19, 2024 4:18 am

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?

Seba
Seba
November 18, 2024 9:24 pm

Hello, im hosting local game with friend. I can use this normally, but my friend cant unless he places boxes.

Hannah
Hannah
November 17, 2024 2:13 am

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?

Tr2085xo
Tr2085xo
November 15, 2024 7:29 am

Thanks for the update.
Will it fix the dupe bug?

Jarlaxel
Jarlaxel
November 12, 2024 5:52 pm

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.

TR2085XO
TR2085XO
November 10, 2024 8:20 pm

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.

llmonmonll
llmonmonll
November 11, 2024 1:51 am
Reply to  TR2085XO

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.

TR2085XO
TR2085XO
November 12, 2024 4:07 pm
Reply to  llmonmonll

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.

MadShark
MadShark
November 12, 2024 4:20 pm
Reply to  llmonmonll

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”

Mitsuomi
Mitsuomi
November 7, 2024 2:41 am

Very Thx for support The Wasteland MOD.

Mitsuomi
Mitsuomi
November 2, 2024 8:52 pm

@llmonmonll Could you adapt your mod to the Global update of The Wasteland ?

Lahabria
Lahabria
October 30, 2024 12:06 am

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

Lahabria
Lahabria
October 29, 2024 11:47 pm

Update, the original version is working now! perfect, thank you kind sir

Lahabria
Lahabria
October 29, 2024 11:29 pm

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.

Hartmann
Hartmann
November 10, 2024 2:12 pm
Reply to  Lahabria

How did you solve it? I also have this question.

Alexandre
Alexandre
October 20, 2024 9:43 pm

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!

llmonmonll
llmonmonll
October 21, 2024 7:12 am
Reply to  Alexandre

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!

Sebastian
Sebastian
October 23, 2024 9:59 am
Reply to  llmonmonll

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?

Alexandre
Alexandre
October 26, 2024 8:31 pm
Reply to  llmonmonll

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!

llmonmonll
llmonmonll
October 27, 2024 3:11 am
Reply to  Alexandre

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!

Getoryx
Getoryx
October 20, 2024 9:38 pm

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

Atimus7
Atimus7
October 17, 2024 1:20 am

Yea, I don’t know why. Its not giving me an error. Its just not working.

llmonmonll
llmonmonll
October 19, 2024 9:23 pm
Reply to  Atimus7

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.

Diego
Diego
October 15, 2024 12:09 am

qual a chance desse mod funcionar junto com o mod war3zuk?

erik
erik
October 15, 2024 7:32 am
Reply to  Diego

yes it works

Diego
Diego
October 15, 2024 6:07 pm
Reply to  erik

fiz de tudo e n funcionou… qual seria o problema?

Zero
Zero
October 14, 2024 8:38 pm

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)

Goat
Goat
October 27, 2024 7:08 pm
Reply to  Zero

i agree i’d try to change that as will its rang is 115 blocks away thats far

Fungor
Fungor
October 11, 2024 3:02 am

Please adapt this mod for Afterlife 🙁

Petr Gašparík
Petr Gašparík
October 10, 2024 8:45 pm

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

Joseph Sugamele
Joseph Sugamele
October 9, 2024 3:19 am

This doesnt seem to repair from storage?

Punisher3990
Punisher3990
October 7, 2024 10:18 pm

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

Punisher3990
Punisher3990
October 7, 2024 10:27 pm
Reply to  Punisher3990

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

llmonmonll
llmonmonll
October 8, 2024 9:07 am
Reply to  Punisher3990

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.

Punisher3990
Punisher3990
October 8, 2024 8:56 pm
Reply to  llmonmonll

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 🙁

Punisher3990
Punisher3990
October 9, 2024 9:28 pm
Reply to  Punisher3990

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