CraftFromContainers V1.0

7 days to die craftfromcontainers v1.0

“Regarding the ‘CraftFromContainers’ mod for 7 Days to Die, the original author has not updated it for the latest version of 7 Days to Die (V1.0). Therefore, I have personally updated it for my own use but would like to share it with others as well. Should the original author request a takedown, I will remove it promptly. I have greatly enjoyed this mod and have been using it since the alpha versions. My heartfelt thanks go to the original creator for their work.”

Block Upgrade Handling

Improved Item Removal for Upgrades: Based on user feedback, the RemoveRemainingForUpgrade method has been refined to address issues with accurately removing required items from storage when upgrading blocks. This update ensures a more reliable upgrade process.

Impact: This change enhances the block upgrade functionality, leading to smoother gameplay and correct item handling during upgrades.

Changelog

Version 1.0.8

  • Fixed an issue where upgrading blocks did not grant XP. Players can now earn XP as intended when upgrading blocks.
  • Addressed a critical issue where the “EXC Recursive read lock acquisitions” error appeared, causing the game to freeze. If the problem persists, we welcome further feedback for investigation.

Version 1.7

Several minor adjustments have been made.

When there are not enough resource items in the bag or inventory to perform an upgrade or repair, items from writable containers will now be consumed together with the remaining resources.

Regarding the UI display, for example, when upgrading to a wooden block, if 8 of wood are required but only 2 are available in the bag, the display will now show -6.

Additionally, a fix was made so that the upgrade sound now plays when items are consumed from writable containers, in the same way it does when items are consumed from the bag or inventory.

Version 1.6

Thank you for the numerous feedback comments. I’ve fixed the errors, ensuring that block upgrading and repairing functions work correctly, and that resource items display properly in the UI during upgrades and repairs. I sincerely apologize for the long wait and greatly appreciate the patience of everyone who waited.

Version 1.5

We have made some minor adjustments. The display of consumed resource items has been corrected to show the proper amount. As I work on this project alongside my personal job, my next plan is to modify how item consumption from containers is displayed. Currently, when an item is consumed from a container, it is shown as (-1/(0)). I intend to adjust this in the future, but there is no set timeline yet. I appreciate your patience and understanding. Thank you.

Version 1.4

In the latest update, issues related to repairs have been fixed. Now, the correct resources are used when players repair blocks or items, preventing unexpected errors. This improvement ensures that the repair function works more reliably.

Version 1.3

Addressed feedback regarding block upgrade issues. Fixed a problem where upgrading to more powerful blocks could cause errors. The upgrade logic has been refined to handle more complex upgrades correctly and ensure a smoother upgrade process.

Version 1.2

Fixed an issue where the block upgrade process could freeze after the first upgrade attempt. Previously, upgrades were only successful from wood to stone, but would not continue beyond that. The new logic ensures that upgrades proceed correctly for all upgrade stages and prevents the process from stalling.

Version 1.1

  • Added ownership checks to restrict crafting from other players’ crates.
  • Updated the logic so that crafting is only possible if the crate is owned by the current player.
  • Improved the mod to prevent accidental access to other players’ crates within range.

DOWNLOAD (22 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.

54 Comments
Inline Feedbacks
View all comments
biggieinc
biggieinc
September 7, 2024 7:56 pm

Thank you for all of your hard work!
I have noticed that not all containers are recognized as having items in them, only things like wood/iron/steel crates, items like cabinets and cupboards or anything else with storage capabilities do not seem to work.

biggieinc
biggieinc
September 7, 2024 12:42 pm

When upgrading any block there is no xp gain

llmonmonll
llmonmonll
September 7, 2024 2:38 pm
Reply to  biggieinc

Thank you very much for your feedback. As you pointed out, there was an issue where XP was not being gained when upgrading blocks. We have now fixed this issue, so please enjoy the update. We appreciate your continued feedback and support.

Someone
Someone
September 6, 2024 7:57 am

Just after getting to the wasteland I’m experience an issue whenever I try to open the crafting menu with this mod. I’ve tried multiple times and the problem only happens with this mod installed.

After opening the menu I get a string of red text constantly scrolling by nonstop and I have to force close the game so I wasn’t able to copy paste the errors. I’ve tried resetting my pc, verifying file integrity, and redownloading the mod several times and none of them fixed the error.

Wish I could post images but it’s basically a string of numbers followed by EXC Recursive read lock acquisitions not allowed in this mode. and ERR [CUi] Error while updating window group ‘crafting’:

llmonmonll
llmonmonll
September 7, 2024 2:45 pm
Reply to  Someone

I apologize for the inconvenience caused by this issue. We have worked on improvements in the latest version, but if the problem persists, please feel free to report the issue again. Your feedback is invaluable for future updates. Thank you for your understanding and continued support.

Mav
Mav
September 6, 2024 3:02 am

Only the person who placed the container can craft from it. My teammate placed one storage box “Crafting materials” while I placed the numerous other ones. When using this mod, I must manually grab any material needed from that specific box, while the teammate needs to grab all other items (while not needing to grab materials from the crafting materials box).

biggieinc
biggieinc
September 3, 2024 2:20 pm

upgrade/repair sound stops working

llmonmonll
llmonmonll
September 6, 2024 3:14 am
Reply to  biggieinc

Thank you for your inquiry. Yes, the latest version includes several fixes, including adjustments to sound and other minor improvements. If you encounter any specific issues or have further suggestions, please feel free to share them. Your feedback is always appreciated!

drake jones
drake jones
September 2, 2024 7:53 am

Hi i am getting this error, when opening inventory. This causes my crafting menu to vanish and when i exit it freezes, and the log window opening displaying the following message…

LockRecursionException: Recursive read lock acquisitions not allowed in this mode.

when i remove the mod it fixes the issue

please fix…love the mod and really want to continue having it in my playthrough

DSOmega
DSOmega
September 1, 2024 10:53 pm

My group is getting this error, when opening inventory. This causes the game to freeze, and log window opening displaying the following message:

LockRecursionException: Recursive read lock acquisitions not allowed in this mode.

This does not happen after removing the mod.

drake jones
drake jones
September 2, 2024 4:45 am
Reply to  DSOmega

i am having the same issue

morgan696
morgan696
September 1, 2024 4:57 pm

can’t upgrade storage boxes from wood can’t wait for this to work 100% thanks for your mod your amazing

llmonmonll
llmonmonll
September 1, 2024 5:32 pm
Reply to  morgan696

There may be unexpected issues occurring because the range in the JSON file is set to a negative value. Please try setting it to a positive value and see if the problem persists. If the issue continues, please let us know.

NoneNone
NoneNone
September 2, 2024 4:24 am
Reply to  llmonmonll

Then just fix it and update it. Some of us aren’t really savvy on the xml editting. We would like it to just work. Thanks. This is one of the best QoL mods out there, just needs to work.

morgan696
morgan696
September 2, 2024 5:29 am
Reply to  llmonmonll

yer didn’t work got red messages stop couple other mods from working before i even got to menu deleted and could start game without a problem might have to make a separate mod for upgrades until fixed maybe

biggieinc
biggieinc
September 1, 2024 11:22 am

minor issue, if you have the upgrade materials in your backpack, the mod will consume the materials but not upgrade the block, everything works if all the materials are in storage crates, but there might be times where if in a hurry ie hoard night and you grab upgrade materials but cannot use them properly.

llmonmonll
llmonmonll
September 1, 2024 5:33 pm
Reply to  biggieinc

There may be unexpected issues occurring because the range in the JSON file is set to a negative value. Please try setting it to a positive value and see if the problem persists. If the issue continues, please let us know.

p4malara
p4malara
September 6, 2024 10:14 pm
Reply to  biggieinc

I tested this and found it to exactly the issue I was having. hopefully this helps in finding the issue

ShenaniganJoe
ShenaniganJoe
August 30, 2024 6:33 pm

Wish this was server side only. Not sure it would be possible for that.

gcdragonfli
gcdragonfli
August 29, 2024 5:00 pm

Now you can’t repair ground around the base.
Your first suggestion for a fix Worked for me, but thought I would try this … uninstalled and went to your last fix:
(( go into the json file and change “enableForRepairAndUpgrade”: true, to “enableForRepairAndUpgrade”: false, )) and that fixed the issue.

Ray
Ray
August 29, 2024 3:40 am

Still broken.

biggieinc
biggieinc
August 29, 2024 2:52 am

When trying to upgrade or repair a block I am still receiving this error:

ArgumentNullException: Value cannot be null.
Parameter name: key
@ System.Collections.Generic.Dictionary`2 TKey,TValue . FindEntry *TKey key*
@ System.Collections.Generic.Dictionary`2 TKey,TValue . TryGetValue *TKey key, TValue& value*
@ ItemClass.GetItemClass *System.String _itemName, System.Boolean _caseInsensitive*
@ ItemClass.GetItem *System.String _itemName, System.Boolean _caseInsensitive*
@ CraftFromContainers.CraftFromContainers.RemoveRemainingForRepair *System.Int32 numRemoved, ItemStack _itemStack*
@ *wrapper dynamic-method* ItemActionRepair.DMD
System.Boolean ItemActionRepair:removeRequiredItem*ItemInventoryData, ItemStack* *ItemActionRepair,ItemInventoryData,ItemStack*
@ *wrapper dynamic-method* MonoMod.Utils.DynamicMethodDefinition.SyncProxy
System.Boolean ItemActionRepair:removeRequiredItem*ItemInventoryData, ItemStack* *ItemActionRepair,ItemInventoryData,ItemStack*
@ ItemActionRepair.ExecuteAction *ItemActionData _actionData, System.Boolean _bReleased*
@ ItemClass.ExecuteAction *System.Int32 _actionIdx, ItemInventoryData _data, System.Boolean _bReleased, PlayerActionsLocal _playerActions*
@ Inventory.Execute *System.Int32 _actionIdx, System.Boolean _bReleased, PlayerActionsLocal _playerActions*
@ *wrapper dynamic-method* PlayerMoveController.DMD
System.Void PlayerMoveController:Update**
*PlayerMoveController*
@ *wrapper dynamic-method* MonoMod.Utils.DynamicMethodDefinition.SyncProxy
System.Void PlayerMoveController:Update**
*PlayerMoveController*
//stars = ( and also )

biggieinc
biggieinc
August 29, 2024 4:24 am
Reply to  biggieinc

this only happens on repair not upgrade

BeRightBack
BeRightBack
August 28, 2024 3:16 am

Download link goes to a 404 page not found

meaMea
meaMea
August 28, 2024 6:10 am
Reply to  BeRightBack

Same for me!

llmonmonll
llmonmonll
August 28, 2024 11:44 pm
Reply to  BeRightBack

I apologize for the inconvenience. The link was disabled as a precaution because the game had the potential to crash. I have now addressed the issue, and the link should be active again. Thank you for your understanding.

biggieinc
biggieinc
August 27, 2024 10:43 am

ArgumentNullException: Value cannot be null.
Parameter name: key
at System.Collections.Generic.Dictionary`2[TKey,TValue].FindEntry (TKey key)
at System.Collections.Generic.Dictionary`2[TKey,TValue].TryGetValue (TKey key, TValue& value)
at ItemClass.GetItemClass (System.String _itemName, System.Boolean _caseInsensitive)
at ItemClass.GetItem (System.String _itemName, Systeat CraftFromContainers.CraftFromContainers.RemoveRemainingForRepair (System.Int32 numRemoved, ItemStack _itemStack)m.Boolean _caseInsensitive)

Ray
Ray
August 27, 2024 4:19 am

This mod doesn’t allow for blocks to be upgraded to stronger blocks. It just repeatedly keeps trying to upgrade the block.

Law
Law
August 27, 2024 9:58 pm
Reply to  Ray

yes, its a @bug@, you need to have the materials in your containers, if you have the materials in your inventory, it won’t work and you don’t get experience for it either.

Scrib93
Scrib93
August 26, 2024 10:24 pm

Ошибка с улучшениями – улучшает только один раз, а дальше зависает.
Те с дерева – только до булыжника, а дальше не улучшает…
Ошибка уже новой версии

llmonmonll
llmonmonll
August 27, 2024 1:25 am
Reply to  Scrib93

Hello,

Thank you for your feedback. I’ve looked into the “upgrade issue” you mentioned. In version 1.2, we have fixed the problem where upgrades would only work once and then freeze. Previously, upgrades from wood to stone were functioning, but further upgrades were not progressing. The new version addresses this issue, allowing all upgrade stages to proceed correctly without freezing.

If you continue to experience issues or if the mod does not behave as expected, please let me know via comment so I can further investigate and assist.

Thank you for your continued support.

Best regards,

Batsheva Sida
Batsheva Sida
August 26, 2024 9:21 pm

Not working for me. This for multiplayer? Or only single player?

Boz
Boz
August 26, 2024 2:46 pm

hello
i have a problem with the mods
i have an allied player 30 blocks from my claim and in my workbench i can craft from these resources from his crates at home and my crates are empty
how can i reduce the range of the mode please

gaylordDW
gaylordDW
August 26, 2024 4:27 am

Thank you for the Upgrading/Repairing Block patch. This is very much appreciated!

gcDragonfli
gcDragonfli
August 24, 2024 4:31 pm

I get an Error when trying to repair or upgrade block. I made a copy of it … But can not post it.

Nobody
Nobody
August 24, 2024 1:21 am

Stops me from being able to upgrading Blocks.

nuggzy
nuggzy
August 24, 2024 10:44 pm
Reply to  Nobody

scroll down in the comments, there is a setting that needs changed in the json file.

Zhunter2
Zhunter2
August 23, 2024 10:30 am

Hi.
Friends are asking for it and i installed it on our server. Unfortunately it did not work or it’s supposed to work differently as expected. Tried to cook in Allies base but did not work until i moved stuff to my backpack from the nearby container. Is it Win only (dll found) or require config before been used?

llmonmonll
llmonmonll
August 24, 2024 3:31 am
Reply to  Zhunter2

Thank you for your feedback. I understand there seems to be some confusion regarding how the mod works.

This mod is designed to allow crafting directly from writable containers without needing to open them. Instead, you can open your inventory (crafting window) near the writable container and craft using items from it.

There is a known issue related to block upgrades. To address this, please check the JSON file within the mod’s folder and set enabledForRepairAndUpgrade to false. This adjustment is necessary to resolve the issues with block upgrades. I am actively working on fixing this problem and appreciate your patience.

Regarding platform compatibility, the mod is designed to work on Windows, and no additional configuration should be required.

Thank you for bringing this to my attention, and I appreciate your patience as I work on resolving these issues.

Perry Tedford
Perry Tedford
August 22, 2024 10:54 pm

Just wanted to say thank you for the fix. This is one of my goto mods every plat thru

nuggzy
nuggzy
August 23, 2024 8:04 pm
Reply to  Perry Tedford

fix? it’s still broken, where is the fix?

nuggzy
nuggzy
August 23, 2024 11:53 pm
Reply to  nuggzy

Edit: it only works from writable boxes

SirDemon
SirDemon
August 21, 2024 11:19 pm

Is there some where I can trouble shoot this mod? I installed it on my server and my single player game and can not get it to work on either.

llmonmonll
llmonmonll
August 22, 2024 1:48 am
Reply to  SirDemon

We apologize for the inconvenience. We are currently working on resolving the issue with the mod. Please bear with us a little longer.

lumène
lumène
August 21, 2024 5:11 pm

hello, it’s impossible to upgrade the blocks with any tool when the mod is installed, everything returns to normal without it.

JimmyMnemonic
JimmyMnemonic
August 21, 2024 11:16 pm
Reply to  lumène

Same issue, cannot upgrade blocks

JimmyMnemonic
JimmyMnemonic
August 21, 2024 11:22 pm
Reply to  lumène

hey I fixed it. go into the json file and change “enableForRepairAndUpgrade”: true, to “enableForRepairAndUpgrade”: false,

lumène
lumène
August 22, 2024 1:55 am
Reply to  JimmyMnemonic

tks for info 🙂

asdf
asdf
August 21, 2024 3:38 am

What does this do?

llmonmonll
llmonmonll
August 21, 2024 4:12 am
Reply to  asdf

it’s a … Crafting is possible without removing it from the writable container.

Terrafarmer
Terrafarmer
August 21, 2024 1:07 am

FYI sir. 1.0 is available from his github

Ghost.exe
Ghost.exe
August 21, 2024 1:06 am

And what does he do?

Nocloud4u
Nocloud4u
August 20, 2024 11:32 pm

the amount of people that dont know craft from containers is an option in SCore… And its much more configurable..

Bunk
Bunk
August 20, 2024 8:58 pm

you are a godsend for this