Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Transport signal vertically #11

Closed
webD97 opened this issue Apr 24, 2014 · 15 comments
Closed

Transport signal vertically #11

webD97 opened this issue Apr 24, 2014 · 15 comments

Comments

@webD97
Copy link

webD97 commented Apr 24, 2014

I'd like to register a node which conducts the digiline signal vertically. Any idea how to do this?

@Jeija
Copy link
Collaborator

Jeija commented Apr 24, 2014

I just had to fix something to allow this in fa3f9ce
Now it is easily possible. The following node looks like bricks and conducts signals just like mese conducts mesecons signals in mesecons, so both horizontally and vertically:

local rules_any =
{
    {x= 0, y= 0, z=-1},
    {x= 1, y= 0, z= 0},
    {x=-1, y= 0, z= 0},
    {x= 0, y= 0, z= 1},
    {x= 1, y= 1, z= 0},
    {x= 1, y=-1, z= 0},
    {x=-1, y= 1, z= 0},
    {x=-1, y=-1, z= 0},
    {x= 0, y= 1, z= 1},
    {x= 0, y=-1, z= 1},
    {x= 0, y= 1, z=-1},
    {x= 0, y=-1, z=-1},
    {x= 0, y=-1, z= 0},
    {x= 0, y= 1, z= 0}
}

minetest.register_node("digiline_vertical:wire", {
    description = "Vertical digiline",
    tiles = {"default_brick.png"},
    wield_image = "digiline_std_inv.png",
    paramtype = "light",
    digiline = 
    {
        wire = 
        {
            rules = rules_any
        }
    },
    groups = {dig_immediate = 3}
})

@Jeija Jeija closed this as completed Apr 24, 2014
@webD97
Copy link
Author

webD97 commented Apr 24, 2014

Very cool ! Thank you so much for your fast reaction!
I'm sure you'll like how I use it in my most popular mod ;)

@webD97
Copy link
Author

webD97 commented Apr 24, 2014

Hm, these rules don't seem to work :( I tried it with my node, and with your example node you gave me...
screenshot_1037458
The lower LCDs show text, the upper one doesn't... Code:

minetest.register_node(":streets:bigpole", {
    description = "Pole",
    paramtype = "light",
    paramtype2 = "facedir",
    drawtype = "nodebox",
    tiles = {"streets_pole.png"},
    groups = {cracky = 1, level = 2, bigpole = 1},
    node_box = {
        type = "fixed",
        fixed = {
            {-0.15, -0.5, -0.15, 0.15, 0.5, 0.15}
        }
    },
    on_place = minetest.rotate_node,
    digiline = {
        wire = {
            rules = streets.rules_pole
        }
    }
})

@Jeija
Copy link
Collaborator

Jeija commented Apr 24, 2014

Your rules are propably wrong. Could you post them here? Also, make sure you got the channels right.
I tried just the same thing with my rules:
screenshot_2480642304

@webD97
Copy link
Author

webD97 commented Apr 24, 2014

I copied the rules you gave me, but I'll try again.

@webD97
Copy link
Author

webD97 commented Apr 24, 2014

Once again: Same problem.
The mod itself uses latest git version. All mdevices on channel "a". Luacontroller: digiline_send("a", "bla")
screenshot_3197368

@Jeija
Copy link
Collaborator

Jeija commented Apr 24, 2014

That ... is just weird?!?
screenshot_2481812456

That is my build (WorldEdit):
http://www.mediafire.com/view/t1njgllm1a6y84c/digilines.we

And this is the complete mod I use for it:
http://www.mediafire.com/download/w3hnm6i6s1jfq4w/digiline_vertical.zip

Can you try exactly those files?

@webD97
Copy link
Author

webD97 commented Apr 24, 2014

Yep, but later (in 6h), I'm on the road now ;)

@webD97
Copy link
Author

webD97 commented Apr 24, 2014

Nope, still not working... Same result as with my tries...

@Jeija Jeija reopened this Apr 24, 2014
@Jeija
Copy link
Collaborator

Jeija commented Apr 24, 2014

Is there someone else who can try the same thing to find out if this issue is specifically related to @webdesigner97 or if something is wrong? It works fine for me here.
@webdesigner97 Could you open a server for me to join in and try it out?

@webD97
Copy link
Author

webD97 commented Apr 24, 2014

I also pulled the repo again, but it is up-to-date. Sure, I'll open it in around 2 hours. Pls wait on #minetest for me, I'll come on, too :)

@Jeija
Copy link
Collaborator

Jeija commented Apr 24, 2014

I just cloned the latest minetest, mesecons, digilines, minetest_game and inserted the mod and it worked just fine. So honestly, I have no idea why it doesn't work (btw. I have my mods in minetest_game/mods but that should be the cause).

@webD97
Copy link
Author

webD97 commented Apr 24, 2014

@Jeija Server is ready, pls join #minetest to get info :)

@Uberi
Copy link

Uberi commented Apr 24, 2014

I can't reproduce the issue on MT 0.4.9 with latest Git Mesecons.

@webD97
Copy link
Author

webD97 commented Apr 25, 2014

What we found out yesterday:

  • the bug only appears, when streets is activated
  • the nodes conduct up to a certain relative height above the luacontroller, but then stop

@Jeija Jeija closed this as completed Nov 19, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants