I have started to make my own mod to add some new furniture and decorations into the game. Mainly for my own use but will share it as I think others might benefit. I’m having a strange issue. The new item is a book shelf and it is placeable on walls, but only some walls and when placed the hearthlings build the ladder but never actually place the item, it just remains as a ghost and in storage. I have added some screenshots of the placement issues below, and have also added a link to my github to see if there is anything noticeable with what is going wrong.
I had this issue too when doing wall furniture, and asked Froggy about it in the past since he has the mill for the Stonehearth Cafe mod.
It seems to be something related with the distance of the ladder to the wall. The hearthlings can’t reach the wall to place the shelf because it’s somewhat far. It’s really tricky to get it working. I finally finished a working shelf, but for placing items on it you had to manually place a ladder.
My suggestion would be to fiddle with the collision regions and the adjacency.
it determines the destination region and the adjacency. I guess you should avoid to have adjacency with the part that touches the wall, you might encounter the situation I mentioned above
Also there’s a property ( “allow_vertical_adjacent”: true ) mentioned in ghost files of entities like curtains or banners. I think it’s used to allow placing items on top of items, but I’m not sure how it works.
Edit: first just try to modify the collision shape. If the ladder problem persist, then yes, try things with the other regions.
That was a very helpful read haha. I have fixed the boxes/positioning etc. Will try and see if that helps with wall placement. I have attached a screenshot showing the new boxes. Any idea what the purple one represents?
YAY! They now place the bookshelf on the wall, so must have been the boxes not set properly. Now just need figure out what is preventing it from being placed on certain walls? Seems to be if the wall is a certain angle?
Edit: Actually that fixed both of the issues. They were both caused by improper positioning of collision/placement boxes. Glad that is sorted, was really making me pull my hair out haha. Thanks for all your help @Relyss and @Wiese2007. I have pushed the new changes to github and here is a smod file, would appreciate it if yourself or anyone else could give it try make sure I found the problem .
It might be. I remember some time ago Froggy complaining that you couldn’t place items if the wall was facing certain directions, but I don’t remember what was the reason for it. On a second thought, I think it was a different issue, directly related to the regions. Here it just shows you the red cross without any possibility