Coder Social home page Coder Social logo

Comments (10)

numberZero avatar numberZero commented on August 18, 2024 2

Alternative suggestion: “hardware” digiline filter (that lets only certain channels pass) and diode (that lets the signal pass in one direction only). That would be way nicer and faster, both in terms of server load and digiline network bandwidth, than using multiple controllers.

from digilines.

electrodude avatar electrodude commented on August 18, 2024

digiline_send(channel, msg) is a Mesecons Luacontroller function. Is that what you're talking about? If so, it is not currently possible to do what you say, but it would be very easy to add. Normally, though, you can just use different channels so you don't need to worry about sides.

The only use I really can see for this (other than for getting around poorly written mods) would be for making a digilines network switch to reduce congestion on large networks that branch at central points. And side selection isn't even necessary for a switch - you could just use multiple luacontrollers.

from digilines.

Desour avatar Desour commented on August 18, 2024

I just don't want digiline event echo/duplication.

from digilines.

Jeija avatar Jeija commented on August 18, 2024

And side selection isn't even necessary for a switch - you could just use multiple luacontrollers.

I have to agree with this, so I'm not in favor of adding this functionality. The idea behind digilines is to abstract mesecons away from from the physical layout of the schematic to a system that is based on channels (so that code using digilines can be copied and pasted without caring about the physical location / surroundings of the luacontroller). Sending signals in only one direction doesn't really fit in that concept.

from digilines.

Desour avatar Desour commented on August 18, 2024

@numberZero That would be good. If it's not wanted in digilines mod it could be done in a separate mod.

from digilines.

numberZero avatar numberZero commented on August 18, 2024

@DS-Minetest https://github.com/numberZero/digiline_routing

  • Diode works right now (no crafting yet). Note that it acts as a repeater rather than conventional wire so don’t short-circuit it or it will overheat.
  • Filter is on my TODO list. It has to span 2 blocks to work with unmodified digilines.
  • Splitter: the same.

from digilines.

Desour avatar Desour commented on August 18, 2024

@numberZero Nice!
It would be nice if it would be configurable like a luacontroller like port.a = pin.b or if pin.a.channel == "bla" then port.a = pin.b end or something like that.
I'll close this issue.

from digilines.

numberZero avatar numberZero commented on August 18, 2024

@DS-Minetest:
numberZero/digiline_routing#1
numberZero/digiline_routing#2
Feel free to add other device requests. I don’t want to overcomplicate this (that’s “hardware” processing, after all) but still there is a variety of possibilities.

from digilines.

Emojigit avatar Emojigit commented on August 18, 2024

Sending messages to multiple sides is terrifying. I am building a easy programable computer with luacontrollers and the messages goes to the wrong way causes security problem!

Also, a lot of mrssages makes the controller brurn!

from digilines.

numberZero avatar numberZero commented on August 18, 2024

New digiline hardware (obsoletes my digiline_routing): https://github.com/OgelGames/digicontrol
Warning: it patches digilines! (in runtime only ofc)

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.