Where is the mistake?

Post Reply
User avatar
BlockMen
Developer
Posts: 768
Joined: Fri Mar 01, 2013 17:24
GitHub: BlockMen
Location: Germany

Where is the mistake?

by BlockMen » Post

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:
Image

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!
Last edited by BlockMen on Mon Mar 04, 2013 12:24, edited 1 time in total.

User avatar
Likwid H-Craft
Member
Posts: 1113
Joined: Sun Jan 06, 2013 14:20
Location: Lost in Crypt

by Likwid H-Craft » Post

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)

4aiman
Member
Posts: 1208
Joined: Mon Jul 30, 2012 05:47

by 4aiman » Post

One question: do you set this nodeboxes with values, or by using variables which were assigned beforehand?

aximx51v
Member
Posts: 60
Joined: Fri Dec 07, 2012 03:47

by aximx51v » Post

what's your nodebox definitions for the door open/closed?

User avatar
BlockMen
Developer
Posts: 768
Joined: Fri Mar 01, 2013 17:24
GitHub: BlockMen
Location: Germany

by BlockMen » Post

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}
        },

User avatar
VanessaE
Moderator
Posts: 4655
Joined: Sun Apr 01, 2012 12:38
GitHub: VanessaE
IRC: VanessaE
In-game: VanessaE
Location: Western NC
Contact:

by VanessaE » Post

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)

User avatar
BlockMen
Developer
Posts: 768
Joined: Fri Mar 01, 2013 17:24
GitHub: BlockMen
Location: Germany

by BlockMen » Post

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)

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}}
    },
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

User avatar
VanessaE
Moderator
Posts: 4655
Joined: Sun Apr 01, 2012 12:38
GitHub: VanessaE
IRC: VanessaE
In-game: VanessaE
Location: Western NC
Contact:

by VanessaE » Post

Image

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)

Post Reply

Who is online

Users browsing this forum: No registered users and 55 guests