Coder Social home page Coder Social logo

Comments (15)

Jeija avatar Jeija commented on August 18, 2024

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

from digilines.

webD97 avatar webD97 commented on August 18, 2024

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 ;)

from digilines.

webD97 avatar webD97 commented on August 18, 2024

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

from digilines.

Jeija avatar Jeija commented on August 18, 2024

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

from digilines.

webD97 avatar webD97 commented on August 18, 2024

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

from digilines.

webD97 avatar webD97 commented on August 18, 2024

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

from digilines.

Jeija avatar Jeija commented on August 18, 2024

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?

from digilines.

webD97 avatar webD97 commented on August 18, 2024

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

from digilines.

webD97 avatar webD97 commented on August 18, 2024

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

from digilines.

Jeija avatar Jeija commented on August 18, 2024

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?

from digilines.

webD97 avatar webD97 commented on August 18, 2024

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

from digilines.

Jeija avatar Jeija commented on August 18, 2024

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).

from digilines.

webD97 avatar webD97 commented on August 18, 2024

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

from digilines.

Uberi avatar Uberi commented on August 18, 2024

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

from digilines.

webD97 avatar webD97 commented on August 18, 2024

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

from digilines.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.