Container Inception Bug

This bug predates A18. I’ve seen it in at least A17, if not earlier. For a while, I couldn’t quite figure out how to describe it, let alone reproduce it, but I think I finally got it.

When AI paths are long enough AND hearthlings are busy enough at the time, hearthlings will confuse a container that the player has requested to be moved, with a container that’s currently in storage nearby. The hearthling will then place a different empty container where to-be-moved container should have gone. This will result in the to-be-moved container being placed into storage – EVEN IF that container is not empty.

Non-empty containers within other containers has been fixed at least once before, but it appears as though a version of that bug remains unsolved.

Steps to reproduce:

  1. Load this save (2.7 MB). In it, you’ll find a stone chest that contains 21 stone chests. Inside one of those 21 chests is a chest full of wood.
  2. Using the place item UI, place stone chests anywhere outside the walls, a few at a time, until the one containing wood has been placed.
  3. Very deliberately, undeploy EMPTY chests a few at a time until all available hearthlings are actively in the process of hauling a chest.
  4. Once everyone is actively hauling a chest, instruct your hearthlings to MOVE the chest containing wood to an open space right next to the town flag.
  5. Observe a different hearthling eventually pull a spare chest out of inventory and plop it down where the wood chest was supposed to go. Once that happens, you’ll see that the wood chest is instead placed into storage.

Expected Results:
The wood chest should be placed where instructed, and all empty chests should end up back in storage.

Actual Results:
See #5 above

Version Number and Mods in use:
A18 D3092


This happens for other furniture as well:

I’ve seen at least these two other cases (both in A17) in addition to the “ordered moved, but new one get placed”

  • I placed a fence via “p” ui. I got a window “installed” instead.
  • I built a building from template with windows. A dining table got “installed” instead.

something is messing up the entity references.


Confirmed, also seeing this issue in A18 r3092.

Moving almost any item will result in a new one being placed if it is available.

@8BitCrab @jomaxro @Relyss - tagging/visibility help?

1 Like

definitely have seen this in the past myself, i thought it was fixed though, must be going crazy… anyways, paging @yshan and @sdee

1 Like

I have a fix for this. Look for it in the next unstable release.
Thanks for reporting this


Victorious! :smiley:

Having this in one game, first time in this release. A20 r701 One game out of 6 or so.Not fixed by reloads. Currently the problem is with Fine Leather Bound Chests, haven’t seen it with the other containers. I assume that might be a not normally in use container, with multiples enough to cause this problem. Most games I use Stone Chests for long distance hauling, never had a problem. No idea if the fix was container specific or not so figured I’d detail that.

Only the move/new instead part is still in effect, the full chest isn’t going into storage, just remains where it was indefinitely, with the move icon dropped. Similar subject thread that was the only other I could find (might be a search words used problem, and there are more): Moving chest causes hearthlings to place new

Both of these are in support, which I am not eligible for (long ago started doing the inventory cap removal, because of how I gather my resources), so this is more of an informational update, not a support request. Only ‘mod’ I use is the remove cap change in user settings. Just in case it could matter though, 28 hearthlings, Inventory items 3133.

Not game breaking,because you can still get them to inch the container along, just more micro-management heavy. All from a desire to maximize the net worth of each item I was keeping in game. :stuck_out_tongue:

Update: Seems confined to Fine Leather Bound Chests, possibly tangled with building code. Not just happening in long hauls. Chest sitting successfully finally outside the building, won’t get the move icon to go into the building at all, and instead a fresh empty chest is placed in the building.
Workaround is inching the chest to outside building. Then setting the filter to none, so that the contents gets restocked indoors.

Thanks for the heads up, @Mysticanon.

Paging @not_owen_wilson and @Albert: Are you the right folks to look into AI logic issues like this one?