Where is the mistake?

User avatar
BlockMen
Member
 
Posts: 768
Joined: Fri Mar 01, 2013 17:24
GitHub: BlockMen

Where is the mistake?

by BlockMen » Sun Mar 03, 2013 21:16

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

by Likwid H-Craft » Sun Mar 03, 2013 21:33

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 » Sun Mar 03, 2013 21:47

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 » Sun Mar 03, 2013 21:47

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

User avatar
BlockMen
Member
 
Posts: 768
Joined: Fri Mar 01, 2013 17:24
GitHub: BlockMen

by BlockMen » Sun Mar 03, 2013 21:53

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:

Your phone or window isn't wide enough to display the code box. If it's a phone, try rotating it to landscape mode.
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
Member
 
Posts: 3894
Joined: Sun Apr 01, 2012 12:38
GitHub: VanessaE
IRC: VanessaE
In-game: VanessaEzekowitz

by VanessaE » Sun Mar 03, 2013 21:59

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 (16-512px)
Tips (BTC): 13LdcdUFcNCFAm7HfvAXh5GHTjCnnQj6KE
 

User avatar
BlockMen
Member
 
Posts: 768
Joined: Fri Mar 01, 2013 17:24
GitHub: BlockMen

by BlockMen » Mon Mar 04, 2013 04:19

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)
Your phone or window isn't wide enough to display the code box. If it's a phone, try rotating it to landscape mode.
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
Member
 
Posts: 3894
Joined: Sun Apr 01, 2012 12:38
GitHub: VanessaE
IRC: VanessaE
In-game: VanessaEzekowitz

by VanessaE » Mon Mar 04, 2013 06:57

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 (16-512px)
Tips (BTC): 13LdcdUFcNCFAm7HfvAXh5GHTjCnnQj6KE
 


Return to WIP Mods

Who is online

Users browsing this forum: No registered users and 11 guests

cron