[Mod] Digilines [minetest-mod-digilines]

User avatar
Jeija
Member
 
Posts: 686
Joined: Fri Dec 23, 2011 21:46

[Mod] Digilines [minetest-mod-digilines]

by Jeija » Mon Mar 25, 2013 13:02

The digilines mod existed for some time already, even without getting noticed by many people. Now I decided to release it aside from mesecons to spread it.
In fact it's not only and addition to mesecons, but can also be used by other mods, use your creativity!
Presenting: The minetest counterpart for real-life digital bus systems like i2c, SPI, RS232, USB, OneWire, ...

So, what is it good for?
Image
Use case 1: Link luacontrollers together; Use them as port expanders or even create a dynamic network. For this use case, I can recommand The Tic-Tac-Toe Machine on the Mesecons Lab by Uberi which demonstrates this feature impressively.

Data is always consists of a channel and a message to be sent. See the luacontroller documentation for more information.

Image
Use case 2: Hook up external Hardware to a luacontroller. At the moment a Real Time Clock (RTC) that gives you the current timeofday, a light sensor and an LCD display are included.
For the display, just send your text on the channel you selected when right-clicking it, in order to retrieve time or light data, send a "GET" to RTC or light sensor on the selected channel.

For developers: See the RTC, Light Sensor and LCD code to develop your own things using the digilines features.

Download
as .zip | as .tar.gz
GitHub project page

License:
  • Code: LGPL
  • Textues: WTFPL
Dependencies: none, but currently not usable without luacontrollers (=mesecons); no crafting recipes, so creative is also recommended
Last edited by Jeija on Fri Apr 08, 2016 18:59, edited 2 times in total.
Redstone for minetest: Mesecons (mesecons.net)
 

User avatar
Traxie21
Member
 
Posts: 753
Joined: Mon Dec 31, 2012 10:48

by Traxie21 » Mon Mar 25, 2013 13:03

So people could create extra hardware to interface with diglines?
 

User avatar
Jeija
Member
 
Posts: 686
Joined: Fri Dec 23, 2011 21:46

by Jeija » Mon Mar 25, 2013 13:32

Traxie21 wrote:So people could create extra hardware to interface with diglines?

Yes, that would be awesome. You could make inputs (temperature, moisture, pressure sensor, keyboard input or Node detector), computing stuff (memory chips, or sth. like the luacontroller) or effectors (displays, lights, node placer).

Just think of what bus systems are used for in real life, they're just everywhere!
Redstone for minetest: Mesecons (mesecons.net)
 

User avatar
webdesigner97
Member
 
Posts: 1307
Joined: Mon Jul 30, 2012 19:16
GitHub: webD97
IRC: webdesigner97
In-game: webdesigner97

by webdesigner97 » Mon Mar 25, 2013 13:42

Why do you make so awesome mods, Jeija?? O.o
 

User avatar
Traxie21
Member
 
Posts: 753
Joined: Mon Dec 31, 2012 10:48

by Traxie21 » Mon Mar 25, 2013 14:25

Are you asking Jeija to stop making awesome mods? :L
 

User avatar
webdesigner97
Member
 
Posts: 1307
Joined: Mon Jul 30, 2012 19:16
GitHub: webD97
IRC: webdesigner97
In-game: webdesigner97

by webdesigner97 » Mon Mar 25, 2013 16:35

of course no! :D
 

User avatar
12Me21
Member
 
Posts: 826
Joined: Tue Mar 05, 2013 00:36

by 12Me21 » Mon Mar 25, 2013 19:06

There should be a type of ore that after you mine it, you can craft it into digiline parts, like mese with mesecons. I will try to do that, but I need to wait until I can use a computer that minetest works on.
Last edited by 12Me21 on Mon Mar 25, 2013 19:08, edited 1 time in total.
This is a signature virus. Add me to your signature so that I can multiply.
Don't ever save anything as a JPEG.
 

User avatar
jordan4ibanez
Member
 
Posts: 1865
Joined: Tue Sep 27, 2011 18:44
GitHub: jordan4ibanez
IRC: jordan4ibanez
In-game: jordan4ibanez

by jordan4ibanez » Mon Mar 25, 2013 19:09

Add this to mesecons extensions on the site yes?
If you can think it, you can make it.
 

prestidigitator
Member
 
Posts: 632
Joined: Thu Feb 21, 2013 23:54

by prestidigitator » Mon Mar 25, 2013 20:03

Wow. That LCD display is insane! I tried to do the same sort of texture combining to tile a background color for "dyed" stone with an overlaid texture, but I guess my texture names were WAY to long for even a few tiles (crashed the server when the final texture string was apparently long enough it didn't want to send it to the client). Seems like we might need some kind of API method for at least simple text-based dynamic texture creation....
Last edited by prestidigitator on Mon Mar 25, 2013 20:04, edited 1 time in total.
 

Sokomine
Member
 
Posts: 2980
Joined: Sun Sep 09, 2012 17:31

by Sokomine » Mon Mar 25, 2013 20:28

Very intresting! That makes making circuits far more intresting since we don't have to do the low level stuff anymore. Thanks for the mod!
A list of my mods can be found here.
 

Nore
Member
 
Posts: 468
Joined: Wed Nov 28, 2012 11:35
GitHub: Ekdohibs

by Nore » Tue Mar 26, 2013 05:36

For digilines crafting recipes, maybe you could use floatstone, since I think floatlands have been recently merged.
 

User avatar
Jeija
Member
 
Posts: 686
Joined: Fri Dec 23, 2011 21:46

by Jeija » Tue Mar 26, 2013 06:23

Is there really a need for crafting recipes? I mean, I would never use something like digilines in survival mode, the gameplay in survival is just totally different.
You likely only need these things to make giant structures (for most use cases at least) and you wouldn't build them in survival mode anway IMO.
Redstone for minetest: Mesecons (mesecons.net)
 

User avatar
jordan4ibanez
Member
 
Posts: 1865
Joined: Tue Sep 27, 2011 18:44
GitHub: jordan4ibanez
IRC: jordan4ibanez
In-game: jordan4ibanez

by jordan4ibanez » Tue Mar 26, 2013 16:37

Jeija wrote:Is there really a need for crafting recipes? I mean, I would never use something like digilines in survival mode, the gameplay in survival is just totally different.
You likely only need these things to make giant structures (for most use cases at least) and you wouldn't build them in survival mode anway IMO.

There is always a need for crafting recipes. People like me find a lot of joy making things like this in survival mode because it has a feeling of accomplishment and it definately gives you an additional thing to add to your survival house. So please, create a crafting recipe.
If you can think it, you can make it.
 

User avatar
12Me21
Member
 
Posts: 826
Joined: Tue Mar 05, 2013 00:36

by 12Me21 » Tue Mar 26, 2013 19:04

You can just add some yourself, you know.
This is a signature virus. Add me to your signature so that I can multiply.
Don't ever save anything as a JPEG.
 

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

by Likwid H-Craft » Tue Mar 26, 2013 19:15

Hey, Jeija do you think it possible you and I can management a way make GLaDOS with how good you at making all, this power and, wiring stuff...

Well I was really thinking make GLaDOS a mob but, I don't think it possible make her that big and everything...

Edit:Oh yours wiring mods, reminds me of Gmod Wire Mod take a look at it you may possible make, Wire mod possible on Minetest.
Last edited by Likwid H-Craft on Tue Mar 26, 2013 19:17, edited 1 time in total.
My Domain's/others:
http://likwidtest.hj.cx/ (Not Done)
 

oxenfreedan
Member
 
Posts: 218
Joined: Tue Jan 22, 2013 01:39

by oxenfreedan » Tue Mar 26, 2013 22:07

So I didn't really get it.... So can someone explain what this mod really does.
My Awesome Map please try:
http://forum.minetest.net/viewtopic.php?id=5028
I've played minetest since 0.3.1 came out!
Mostly when on forums I'm using a uniden tablet!
 

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

by Likwid H-Craft » Wed Mar 27, 2013 01:05

oxenfreedan wrote:So I didn't really get it.... So can someone explain what this mod really does.


Form my understanding it allows you do something in real life...

...
.....
........
Oh now this is so cool!
http://www.youtube.com/watch?v=jo_GT6a4M90
My Domain's/others:
http://likwidtest.hj.cx/ (Not Done)
 

User avatar
0gb.us
Member
 
Posts: 841
Joined: Sun Sep 16, 2012 01:55

by 0gb.us » Wed Mar 27, 2013 02:37

Nore wrote:For digilines crafting recipes, maybe you could use floatstone, since I think floatlands have been recently merged.


I think the version of flolands that was merged uses regular dirt and stone.
 

User avatar
jojoa1997
Member
 
Posts: 2890
Joined: Thu Dec 13, 2012 05:11

by jojoa1997 » Wed Mar 27, 2013 03:30

What are float lands now in default? Where are they?
Coding;
1X coding
3X debugging
12X tweaking to be just right
 

User avatar
Jeija
Member
 
Posts: 686
Joined: Fri Dec 23, 2011 21:46

by Jeija » Wed Mar 27, 2013 06:54

Likwid H-Craft wrote:
oxenfreedan wrote:So I didn't really get it.... So can someone explain what this mod really does.

Form my understanding it allows you do something in real life...
Oh now this is so cool!
http://www.youtube.com/watch?v=jo_GT6a4M90

Not really, thtat video would have also been possible without digilines. You know, mesecons is some kind of low level electronic stuff that all sorts of modern electronic devices use. But often, different parts of devices need to communicate, like your Computer with a USB stick or a washing machine's control panel with the interior. It would be too complicated to make this kind of communication on a low level base, instead, you create some bus wire like i2c, USB or digilines that makes communication easier and on a high level.See the TicTacToe-Machine on http://uberi.mesecons.net for an example usage. If you still don't understand what I'm talking about, this mod was not made for you, just ignore it.
Redstone for minetest: Mesecons (mesecons.net)
 

User avatar
brandedangel
Member
 
Posts: 25
Joined: Wed Mar 06, 2013 19:40

by brandedangel » Thu Mar 28, 2013 18:48

this whole thing is just confusing to me
 

lordcirth
New member
 
Posts: 9
Joined: Tue Apr 09, 2013 23:51

by lordcirth » Tue Apr 09, 2013 23:53

jordan4ibanez wrote:
Jeija wrote:Is there really a need for crafting recipes? I mean, I would never use something like digilines in survival mode, the gameplay in survival is just totally different.
You likely only need these things to make giant structures (for most use cases at least) and you wouldn't build them in survival mode anway IMO.

There is always a need for crafting recipes. People like me find a lot of joy making things like this in survival mode because it has a feeling of accomplishment and it definately gives you an additional thing to add to your survival house. So please, create a crafting recipe.


I agree, I have been experimenting with mesecons in a Survival Mode world, and I'm working on creating & balancing digilines recipes. I will probably submit to the github when I'm done. Thanks Jeija for making such a cool mod!
 

clarksallador
Member
 
Posts: 57
Joined: Sun Sep 30, 2012 03:18

by clarksallador » Wed Apr 10, 2013 05:43

how do you use this ?
 

User avatar
Jeija
Member
 
Posts: 686
Joined: Fri Dec 23, 2011 21:46

by Jeija » Wed Apr 10, 2013 12:08

clarksallador, if you don't get what this is then nevermind, this mod was not made for you.
If you have trouble with some specific thing, tell me what exactly what you want to know.
Redstone for minetest: Mesecons (mesecons.net)
 

lordcirth
New member
 
Posts: 9
Joined: Tue Apr 09, 2013 23:51

by lordcirth » Sun May 12, 2013 17:46

lordcirth wrote:
jordan4ibanez wrote:
Jeija wrote:Is there really a need for crafting recipes? I mean, I would never use something like digilines in survival mode, the gameplay in survival is just totally different.
You likely only need these things to make giant structures (for most use cases at least) and you wouldn't build them in survival mode anway IMO.

There is always a need for crafting recipes. People like me find a lot of joy making things like this in survival mode because it has a feeling of accomplishment and it definately gives you an additional thing to add to your survival house. So please, create a crafting recipe.


I agree, I have been experimenting with mesecons in a Survival Mode world, and I'm working on creating & balancing digilines recipes. I will probably submit to the github when I'm done. Thanks Jeija for making such a cool mod!


Jeija, I have created recipes for digiline and digiline_lcd , and have submitted a pull request on the digiline Github. Please review when you get the chance.

If anyone wants to add these recipes right now, replace your minetest-mod-digilines folder with git clone git://github.com/lordcirth/minetest-mod-digilines.git .
 

User avatar
Inocudom
Member
 
Posts: 2889
Joined: Sat Sep 29, 2012 01:14
IRC: Inocudom
In-game: Inocudom

by Inocudom » Sun May 12, 2013 18:34

Concerning what the digilines could be made out of, it could be a type of crystal similar to mese, but stronger than it and diamond. It could be called CONS and have the letters of that name on its blocks. Obviously, it could be a very rare find (it too could be of extraterrestrial origin just like mese is.)
 

lordcirth
New member
 
Posts: 9
Joined: Tue Apr 09, 2013 23:51

by lordcirth » Sun May 12, 2013 19:33

Inocudom wrote:Concerning what the digilines could be made out of, it could be a type of crystal similar to mese, but stronger than it and diamond. It could be called CONS and have the letters of that name on its blocks. Obviously, it could be a very rare find (it too could be of extraterrestrial origin just like mese is.)


I think that digilines should be crafted out of insulated mesecons, just as our data wires are bundles of insulated wire. It makes the most sense and avoids adding more wacky ores to the game.
 

pheonixfire
Member
 
Posts: 66
Joined: Sun Oct 21, 2012 06:25

by pheonixfire » Tue Jun 18, 2013 13:48

How does the get statement work for a light sensor, do I need to use it with a variable

I was hoping I could use it by testing if it was on
"e.g. if (port.a == 1) then
do this
endif"

would it be possible to provide an example?

any help is appreciated
pheonixfire
 

User avatar
Jeija
Member
 
Posts: 686
Joined: Fri Dec 23, 2011 21:46

by Jeija » Tue Jun 18, 2013 13:56

This is some untested sample code for the light sensor:
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
digiline_send("channel_of_lightsensor", "GET")

if (event.type == "digiline" and event.channel == "channel_of_lightsensor") then
  lightvalue = event.msg
end


What happens?
First, you need to request data from the lightsensor by sending the string "GET" on it's digiline channel. The light sensor will then answer with the light value on the same channel. This answer throws an interrupt of type "digiline", the light value is contained in event.msg.
The channel of the Light Sensor can be set by right-clicking on it.
By the way, the RTC works in the same way. I hope the example works for you, tell me if I made a mistake.

If you just want a light there / light missing answer you could use the solar panel from mesecons instead with
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
if pin.a == true then
  -- do something
end
Last edited by Jeija on Tue Jun 18, 2013 13:58, edited 1 time in total.
Redstone for minetest: Mesecons (mesecons.net)
 

pheonixfire
Member
 
Posts: 66
Joined: Sun Oct 21, 2012 06:25

by pheonixfire » Wed Jun 19, 2013 01:18

Do I just put "port.a =" in front of the digiline_send to specify which port
is used to send the request?

any help is appreciated
pheonixfire
 

Next

Return to Mod Releases

Who is online

Users browsing this forum: No registered users and 2 guests

cron