I have a problem with the code for the windows i created as addition to the existing models. I want to place the windows on the ground floor like doors but this doesn’t work as indeed,
Does setting the fixture bottom margin to 0 help? Do the regions graphically correspond to where you think they should via the region debug tool? Does specifying a region_origin help?
@paulthegreat i will try the option with the bottom margin 0 today. The region of the model is already correct, Everything worked fine before the last Radiant SH Update, the final one.
Interesting… so it’s not trying to maintain a bottom margin of 1, it’s trying to remain 2 above ground level. It seems like there’s some sort of collision detection going awry then, but your region looks fine. I wonder if it has something to do with it having a storage component.
If it worked fine before the latest patch, then it’s probably a change in one of these files from the change log:
I’m sorry, but that’s where the extent of my knowledge and contribution end. Perhaps someone from Radiant or someone else more knowledgeable about the building system can help more.
@pingu, I downloaded your mod from the Workshop, and just added
"placeable_on_ground": true,
to the entity forms, and then they were able to place them (I used the placement menu).
Not sure what is happening in your version since the code you show above already has that property set to true.
I also tried adding the model and region origins (which you don’t seem to have in your ghost json file). At first it seemed like it was only placing the window adjacent to walls. The windows usually have this too:
Like I said, the version that is on the workshop can be placed on the ground just by adding the "placeable_on_ground": true, flag (I’m on the unstable branch). And hearthlings put items in it too.
BTW, “valign” / “cursor” / “margin” : {} are not in use any more.
I missunderstood everything, sorry! Yes, the mob collission solved all the problems. Deleted also all the obsolete code lines. Finally i can update this mod