Valheim

Valheim

Losing resource while dismantling building items
I'm not getting back the full resource when I dismantle it. Is this a bug? Things like the stakes doesn't give me back my core wood when I dismantle it. I dismantled an anvil and I didn't get back the resource. Anyone have a solution? I thought all items give back full resource. Thanks in advance.
< >
Showing 1-15 of 21 comments
J Feb 24, 2021 @ 10:44pm 
make sure you repair it first

though i have noticed things like portals and stonecutters not giving the full resource back sometimes even when repaired
Karax Feb 24, 2021 @ 10:50pm 
Thats strange...never happened to me so far, make sure you have enough space in the inventory, and you are not encumbered before dismantling, there might be a chance you dont actually pick up the resources.
Ketamarine Feb 24, 2021 @ 10:50pm 
Nothing to do with repairing the item. That is a myth.

This is a known bug and the devs haven't bothered to fix it since launch...
Snakester95 Feb 24, 2021 @ 10:56pm 
This seems to be a common bug for many people, unfortunately. Agreeing with Ketamarine, you don't need to repair a building to get the resources back. This is especially true since enemies can break walls or even boats and the resources will remain. I'm not sure if it's an official bug tracker or not, but people have pointed out this being a common issue over here[valheimbugs.featureupvote.com].

If you end up losing major resources that you want to get back, you can always try spawning them in (guide here[www.slythergames.com]). But, that's purely up to you of course.
Wariat117 Feb 24, 2021 @ 11:07pm 
in my experience
it doesn't happen on single at all

on server we have noticed that if I build something, we restart server and someone else destroys it... they get no resources
But if I destroy it.. I get resources

If I build something, and we don't restart then others can destroy it and get resources



when I look at the code... it simply looks like the game forgot what was used to craft the building... like literally it forgot
the fix would be to have list/array with all buildings and costs, and each time player destroys something... just check the costs in this list/array

btw if you destroy buildings that aren't player made then game is set to return only 33% resources ;D
Last edited by Wariat117; Feb 24, 2021 @ 11:10pm
Ketamarine Feb 24, 2021 @ 11:13pm 
Originally posted by Wariat117:
in my experience
it doesn't happen on single at all

on server we have noticed that if I build something, we restart server and someone else destroys it... they get no resources
But if I destroy it.. I get resources

If I build something, and we don't restart then others can destroy it and get resources



when I look at the code... it simply looks like the game forgot what was used to craft the building... like literally it forgot
the fix would be to have list/array with all buildings and costs, and each time player destroys something... just check the costs in this list/array

btw if you destroy buildings that aren't player made then game is set to return only 33% resources ;D

How does the code "forget" the build cost of something?

Is it adding too many items to an array and overflowing it or something?

That seems extremely amateurish...
Doctor3D Feb 24, 2021 @ 11:17pm 
Is it really a bug? When the pieces get rained on, they lose strength & you don't get as much back if you dismantle it. That's how I thought it was supposed to work.
Wariat117 Feb 24, 2021 @ 11:18pm 
Originally posted by Ketamarine:
How does the code "forget" the build cost of something?

Is it adding too many items to an array and overflowing it or something?

That seems extremely amateurish...
I have no idea
But that's how it looks like ;d

Code for dropping items iterates throught costs array and drops them (while lowering their amount to 33% if not built by player) and that's it
Codes that activate this dropping-code don't interfere with costs at all
They don't check HP of buildings either (so destroying with weapon should return the same resources as hammer, simply weapon is slower)

Maybe somewhere else is code that screws up costs and I missed it


to anyone who wonders
It's the same costs array as the one when you are building it (exactly the same)
game uses it to take resources out of your inventory, and uses it to check whether you can build it or not

that's why I say game "forgets", game obviously used this array already and it worked, but for whatever reason it stops working later...
Last edited by Wariat117; Feb 24, 2021 @ 11:27pm
Ketamarine Feb 25, 2021 @ 8:12am 
Originally posted by Wariat117:
Originally posted by Ketamarine:
How does the code "forget" the build cost of something?

Is it adding too many items to an array and overflowing it or something?

That seems extremely amateurish...
I have no idea
But that's how it looks like ;d

Code for dropping items iterates throught costs array and drops them (while lowering their amount to 33% if not built by player) and that's it
Codes that activate this dropping-code don't interfere with costs at all
They don't check HP of buildings either (so destroying with weapon should return the same resources as hammer, simply weapon is slower)

Maybe somewhere else is code that screws up costs and I missed it


to anyone who wonders
It's the same costs array as the one when you are building it (exactly the same)
game uses it to take resources out of your inventory, and uses it to check whether you can build it or not

that's why I say game "forgets", game obviously used this array already and it worked, but for whatever reason it stops working later...
Amazing.

It's to the point where we recite a prayer every time we try to move anything expensive.

By Odin's will, let us harvest our own surtling cores!
Ghostlight Feb 25, 2021 @ 8:14am 
It's an extremely common bug. You will get 1 of each resource type that was used in construction instead of the actual number used. Most people don't notice it because you wouldn't, unless you are dismantling an expensive thing.
Last edited by Ghostlight; Feb 25, 2021 @ 8:15am
Liquid_Shadow_JC Feb 25, 2021 @ 6:18pm 
Thank you all. I guess it is a bug. They need to fix this! I'm scare to build anything now! lol
CrazyOdd Feb 25, 2021 @ 6:24pm 
I noticed that with my coal kilns, that they some times spits coal out behind them and through walls. If something coded to spit out resources at a spesific spot, do that, who knows what the random desconstruct do?

So do a double take in the area and check if you really picked everything up.
Flak Feb 25, 2021 @ 6:26pm 
Originally posted by Jaw:
make sure you repair it first

though i have noticed things like portals and stonecutters not giving the full resource back sometimes even when repaired
I had one portal give me only 1 of each resource back and another give me everything. Both were placed outdoors in safe territory and only up for a short time. Both had been used at least once.

No clue what that's about.
Ketamarine Feb 25, 2021 @ 6:43pm 
Originally posted by Flak:
Originally posted by Jaw:
make sure you repair it first

though i have noticed things like portals and stonecutters not giving the full resource back sometimes even when repaired
I had one portal give me only 1 of each resource back and another give me everything. Both were placed outdoors in safe territory and only up for a short time. Both had been used at least once.

No clue what that's about.

Happening all the time. Pay attention and you will notice it. I would say it happens between 5-10% of the time. More in areas with more buildings going on...
Aleos Feb 25, 2021 @ 6:50pm 
The exact reason you're experiencing this issue (one that I have recreated consistently) is due to the amount of space in your inventory. If you do not have enough space in your inventory when the item is deconstructed. The item will drop less than.

It's essentially like trying to craft a stack of arrows with a full inventory. It will say you have no room even though the stack is 20/100

I have confidence in this answer based on it is the ONLY time i have ever experienced the issue in all my game time.
Last edited by Aleos; Feb 25, 2021 @ 6:52pm
< >
Showing 1-15 of 21 comments
Per page: 1530 50

Date Posted: Feb 24, 2021 @ 10:43pm
Posts: 21