Hi everyone,
I'm having a little problem with a selectionbox and after playing around a while i don't find my mistake.
So here's the problem: The selectionbox off the nodebox(top-part of door) should be set to the nodebox below. Otherway round (so from the lower to the upper) it works fine, but this way it always produces an error.
To make it more clear i created a screenshot of the error:
The red boxes are the selectionboxes(redrawn by me). The right one is created right, but it is too tall (y2=0.9). So to fit perfectly it has to be y2=0.5. In the left picture it is created with y2=0.5, but then it produces that strange error and outlines the block nearby (see left pic).
left: {-0.5, -1.5, -0.5, 0.5, 0.5, -0.5+1.5/16}
right {-0.5, -1.5, -0.5, 0.5, 0.9, -0.5+1.5/16}
So does someone see my mistake or is it a bug in minetest?
Thanks for help!
Where is the mistake?
- Likwid H-Craft
- Member
- Posts: 1113
- Joined: Sun Jan 06, 2013 14:20
- Location: Lost in Crypt
I don't understand what the problem but I think it since the, door titles.
My Domain's/others:
http://likwidtest.hj.cx/ (Not Done)
http://likwidtest.hj.cx/ (Not Done)
4aiman wrote:One question: do you set this nodeboxes with values, or by using variables which were assigned beforehand?
with values, so here it is set like this:
Code: Select all
selection_box = {
type = "fixed",
fixed = {-0.5, -1.5, -0.5, 0.5, 0.5, -0.5+1.5/16}
},
- VanessaE
- Moderator
- Posts: 4655
- Joined: Sun Apr 01, 2012 12:38
- GitHub: VanessaE
- IRC: VanessaE
- In-game: VanessaE
- Location: Western NC
- Contact:
This also happens to me (and has for quite some time), and not just default doors but with all kinds of similar vertical flat objects such as homedecor doors, pilzadam's signs, etc.
You might like some of my stuff: Plantlife ~ More Trees ~ Home Decor ~ Pipeworks ~ HDX Textures (64-512px)
I found a workaround for the moment:
When using a nodebox ({0.4, -0.5, -0.5, 0.5, 0.5, 0.5}) and 2nd identical nodebox above,
following selectionbox is useable, but draws an unwanted line at bottom (y1=-0.3)
Thanks for support until now,
and if someone finds/knows a solution to make a working selectionbox like that {0.4, -0.5, -0.5, 0.4, 1.5, 0.5} plz post it here, thx
When using a nodebox ({0.4, -0.5, -0.5, 0.5, 0.5, 0.5}) and 2nd identical nodebox above,
following selectionbox is useable, but draws an unwanted line at bottom (y1=-0.3)
Code: Select all
selection_box = {
type = "fixed",
fixed = {{0.5, -0.5, -0.5, 0.5, -0.5, 0.5},{0.4, -0.3, -0.5, 0.5, 1.5, 0.5},{0.4, -0.5, -0.5, 0.4, 1.5, 0.5}}
},
and if someone finds/knows a solution to make a working selectionbox like that {0.4, -0.5, -0.5, 0.4, 1.5, 0.5} plz post it here, thx
- VanessaE
- Moderator
- Posts: 4655
- Joined: Sun Apr 01, 2012 12:38
- GitHub: VanessaE
- IRC: VanessaE
- In-game: VanessaE
- Location: Western NC
- Contact:
Since the first post is missing its example image, here is an equivalent using doors from my Home Decor mod, which has the same problem. The red lines are drawn over the in-game black selection box as in the first post to highlight them. The door in the left half is properly selected. Move the pointer a bit and it no longer is, as seen on the right (extrapolated selection box behind the door indicated by the dashed line).
In my case, each door consists of two normal-sized nodes that are 1.0 tall, 1.0 wide and 0.125 thick, and a selection box that is 2.0 tall, 1.0 wide, and 0.125 thick (positioned so that it looks the same whether you point to the top or bottom half).
You might like some of my stuff: Plantlife ~ More Trees ~ Home Decor ~ Pipeworks ~ HDX Textures (64-512px)
Who is online
Users browsing this forum: No registered users and 55 guests