[Mod] Digilines LED marquee [git][led_marquee]

User avatar
VanessaE
Moderator
 
Posts: 4244
Joined: Sun Apr 01, 2012 12:38
Location: Waynesville, NC
GitHub: VanessaE
IRC: VanessaE
In-game: VanessaE

[Mod] Digilines LED marquee [git][led_marquee]

by VanessaE » Wed Aug 15, 2018 15:41

LED marquee mod



Image

This mod provides a set of LED panels to form a marquee, controlled by Mesecons' Digilines mod.

Simply place one or more panels, either in a line or forming a wall, and set a channel on just the left-most or upper-left one.

Then send a character, a string, or one of several control words or codes to that channel from a Mesecons Lua Controller and the mod will try to display it.
+ Detailed usage...

Crafting:

Image

Three glass, three Mesecons lamps, two of any kind of wood, and a Mesecons Microcontroller (not a LuaC)
+ "More screenshots"


Download: https://gitlab.com/VanessaE/led_marquee ... master.zip
...or browse the code: https://gitlab.com/VanessaE/led_marquee

License: LGPL v3 for code, WTFPL for media

Dependencies: Minetest 0.4.17.1 and minetest_game/default, digilines, Mesecons LuaControllers. Mesecons Microcontrollers and Lamps are optional and only needed for crafting (you can use just the individual sub-mods if you don't want all of Mesecons)
Attachments
Screenshot_2018-08-21_01-33-12.png
(837.44 KiB) Not downloaded yet
Screenshot_2018-08-21_01-32-28.png
(947.54 KiB) Not downloaded yet
Screenshot_2018-08-21_00-25-29.png
(25.67 KiB) Not downloaded yet
Screenshot_2018-08-15_11-28-57.png
(115.07 KiB) Not downloaded yet
You might like some of my stuff: Plantlife ~ More Trees ~ Home Decor ~ Pipeworks ~ HDX Textures (16-512px)
 

User avatar
rubenwardy
Moderator
 
Posts: 5457
Joined: Tue Jun 12, 2012 18:11
Location: United Kingdom
GitHub: rubenwardy
IRC: rubenwardy
In-game: rubenwardy
 

User avatar
LegoLogger
Member
 
Posts: 33
Joined: Thu Sep 01, 2016 16:08
Location: Somewhere on mars.....
GitHub: BakerPrime
IRC: BakerPrime
In-game: BakerPrime

Re: [Mod] Digilines LED marquee [git][led_marquee]

by LegoLogger » Wed Aug 15, 2018 16:22

Very nice looking mod! I'll have to test this on your servers soon. And probably install them on mine. Very useful, something I've wanted for a long time! Thanks

EDIT: Now we can do Times Square in Minetest! lol

~~Logger
For those who complain about radiation, I should remind you that every time you leave your house, you step into
the worlds largest radiation beam. (Why else do you think us programmers hide in basements? ;P )

if you need to speak to me, you can catch me on #VE-Minetest-Servers, #RRH-Servers, ##Minetestwithunk, or #Minetest
 

User avatar
GreenDimond
Member
 
Posts: 1171
Joined: Wed Oct 28, 2015 01:26
Location: {x=0,y=0,z=0}
GitHub: GreenXenith
IRC: GreenDimond
In-game: GreenDimond

Re: [Mod] Digilines LED marquee [git][led_marquee]

by GreenDimond » Wed Aug 15, 2018 16:29

Houston, I think we have a problem.
Image
My YuTube channel | I moderate the HOMETOWN Server. | Click here to see my (6) mods! ~Using gradient signatures since 2017. ✂️- - - - -
 

User avatar
garywhite
Member
 
Posts: 102
Joined: Fri Feb 12, 2016 16:19
Location: San Francisco, CA
GitHub: garywhite207
IRC: same as MT name
In-game: garywhite garywhite1

Re: [Mod] Digilines LED marquee [git][led_marquee]

by garywhite » Wed Aug 15, 2018 17:07

Same thing for me (would post a photo but I forgot how)
 

User avatar
VanessaE
Moderator
 
Posts: 4244
Joined: Sun Apr 01, 2012 12:38
Location: Waynesville, NC
GitHub: VanessaE
IRC: VanessaE
In-game: VanessaE

Re: [Mod] Digilines LED marquee [git][led_marquee]

by VanessaE » Wed Aug 15, 2018 18:32

Yeah, my bad. Brain-o on my part. Fixed in git.

Note that you may have to dig-up and re-place the panels due to the change to proper wallmounting.
You might like some of my stuff: Plantlife ~ More Trees ~ Home Decor ~ Pipeworks ~ HDX Textures (16-512px)
 

User avatar
VanessaE
Moderator
 
Posts: 4244
Joined: Sun Apr 01, 2012 12:38
Location: Waynesville, NC
GitHub: VanessaE
IRC: VanessaE
In-game: VanessaE

Re: [Mod] Digilines LED marquee [git][led_marquee]

by VanessaE » Wed Aug 15, 2018 21:54

Update: this mod now supports the ISO-8859-1 character set. Of course since Lua has no concept of what a character set is (nevermind trying to use Unicode/UTF-8 :-P in this particular situation), you'll have to use string.char() to specify them. I'll try to work out something better later.

There are also a bunch of symbols stuffed into the empty 128-159 range that should be useful on a marquee:

  • 128,129: musical notes
  • 130-140: box drawing glyphs
  • 141-144: block shades
  • 145-152: arrows
  • 153-156: explosion/splat
  • 157-159: smileys
Plus, I changed the "all on" keyword to point to char(144), and "cursor" is moved to char(31).
You might like some of my stuff: Plantlife ~ More Trees ~ Home Decor ~ Pipeworks ~ HDX Textures (16-512px)
 

User avatar
GreenDimond
Member
 
Posts: 1171
Joined: Wed Oct 28, 2015 01:26
Location: {x=0,y=0,z=0}
GitHub: GreenXenith
IRC: GreenDimond
In-game: GreenDimond

Re: [Mod] Digilines LED marquee [git][led_marquee]

by GreenDimond » Thu Aug 16, 2018 04:27

Ohhhh man do I love this mod.
With the power of luatransform to create 4800 panels at once, set each one to a unique xy channel name, and put a digimese wall behind them, plus a luacontroller that is gonna have a bad day, and some code (below), I have created a totally efficient and completely optimal full UltraHD LED screen.
Image
In fact it's so efficient I stopped it loading because I was too impatient (4 pixels per second, man!).
Ok, it's not very fast and its only 80x60, but it's still cool!
+ Code

I tried a few different variations of the code (10x10 chunks, odd/even at the same time), and it ended up that having 2 luacontrollers with the code but one starting at the top was the "fastest". There are so many things one could do with a smaller screen! :D

I am currently in the process of making a game of pong with this.. we'll see how that goes.

Because this was totally what this mod was meant for, right?
My YuTube channel | I moderate the HOMETOWN Server. | Click here to see my (6) mods! ~Using gradient signatures since 2017. ✂️- - - - -
 

User avatar
VanessaE
Moderator
 
Posts: 4244
Joined: Sun Apr 01, 2012 12:38
Location: Waynesville, NC
GitHub: VanessaE
IRC: VanessaE
In-game: VanessaE

Re: [Mod] Digilines LED marquee [git][led_marquee]

by VanessaE » Thu Aug 16, 2018 06:46

Now featuring multi-line support (GreenDimond's hack is obsolete ;-) ). See README or first post for details.
You might like some of my stuff: Plantlife ~ More Trees ~ Home Decor ~ Pipeworks ~ HDX Textures (16-512px)
 

User avatar
VanessaE
Moderator
 
Posts: 4244
Joined: Sun Apr 01, 2012 12:38
Location: Waynesville, NC
GitHub: VanessaE
IRC: VanessaE
In-game: VanessaE

Re: [Mod] Digilines LED marquee [git][led_marquee]

by VanessaE » Thu Aug 16, 2018 18:09

Added basic "cursor position" support, and rudimentary UTF-8 string translation.
You might like some of my stuff: Plantlife ~ More Trees ~ Home Decor ~ Pipeworks ~ HDX Textures (16-512px)
 

User avatar
Andrey01
Member
 
Posts: 2123
Joined: Wed Oct 19, 2016 15:18
Location: Russia, Moscow
GitHub: Andrey2470T
In-game: Andrey01

Re: [Mod] Digilines LED marquee [git][led_marquee]

by Andrey01 » Thu Aug 16, 2018 20:23

May i know how did you make that mod? I mean probably did you register black panels with all kinds of symbols on it and each symbol with each color? I think you would have very many nodes.
DL9Eh7xVBw7DXwLAMX1lStE21bSD2XUQ
 

User avatar
VanessaE
Moderator
 
Posts: 4244
Joined: Sun Apr 01, 2012 12:38
Location: Waynesville, NC
GitHub: VanessaE
IRC: VanessaE
In-game: VanessaE

Re: [Mod] Digilines LED marquee [git][led_marquee]

by VanessaE » Thu Aug 16, 2018 20:33

There are 224 nodes - one for each character from 0x20 to 0xFF. The textures are a sort of black plastic for the "frame" and back side, a background image of 8x8 LEDs (all turned off) for the front, and an overlay face is used for the character glyph (textures thereof are drawn as if they're made of white LEDs).

They use param2 for colorization of the overlay containing the white glyphs ("colorwallmounted" mode which is why the color selection is somewhat limited).
You might like some of my stuff: Plantlife ~ More Trees ~ Home Decor ~ Pipeworks ~ HDX Textures (16-512px)
 

User avatar
VanessaE
Moderator
 
Posts: 4244
Joined: Sun Apr 01, 2012 12:38
Location: Waynesville, NC
GitHub: VanessaE
IRC: VanessaE
In-game: VanessaE

Re: [Mod] Digilines LED marquee [git][led_marquee]

by VanessaE » Fri Aug 17, 2018 15:51

More keywords added again, and some stupid ones removed. :-)

Fixed a few minor bugs also, see commit log and README (or first post here).
You might like some of my stuff: Plantlife ~ More Trees ~ Home Decor ~ Pipeworks ~ HDX Textures (16-512px)
 

User avatar
Isja Krass
Member
 
Posts: 23
Joined: Sat Aug 18, 2018 19:30
Location: Bavaria, Germany
In-game: isjakrass

Re: [Mod] Digilines LED marquee [git][led_marquee]

by Isja Krass » Mon Aug 20, 2018 11:44

how can i change the COLOR of the Digilines LED marquee?
Last edited by Isja Krass on Mon Aug 20, 2018 15:20, edited 1 time in total.
[ OK ] signature status
 

User avatar
GreenDimond
Member
 
Posts: 1171
Joined: Wed Oct 28, 2015 01:26
Location: {x=0,y=0,z=0}
GitHub: GreenXenith
IRC: GreenDimond
In-game: GreenDimond

Re: [Mod] Digilines LED marquee [git][led_marquee]

by GreenDimond » Mon Aug 20, 2018 14:58

Isja Krass wrote:how can i change the COLOR of the Digilines LED marquee?


VanessaE wrote:A byte value of 0 to 27 in a string will change colors (i.e. string.char(0 to 27) ).

Color values 0 to 11 are:

Red (0), orange, yellow, lime, green, aqua, cyan, sky blue, blue, violet, magenta, or red-violet (11)

Colors 12 to 23 are the same as 0 to 11, but lower brightness.

Colors 24 - 27 are white, light grey, medium grey, and dim grey (or think of them as full bright white, a bit less bright, medium brightness, and dim white).

The last color that was used is stored in the left-most/upper-left "master" panel's metadata, and defaults to red. It should persist across reboots.


Therefore, doing something like
Code: Select all
digline_send("My channel", string.char(4).."My awesome message!")

Should send a green message.

And please use a normal font size in your posts.
My YuTube channel | I moderate the HOMETOWN Server. | Click here to see my (6) mods! ~Using gradient signatures since 2017. ✂️- - - - -
 

User avatar
Isja Krass
Member
 
Posts: 23
Joined: Sat Aug 18, 2018 19:30
Location: Bavaria, Germany
In-game: isjakrass

Re: [Mod] Digilines LED marquee [git][led_marquee]

by Isja Krass » Mon Aug 20, 2018 15:22

Thanks for your for your support. :-)
and I will use a normal size in the future
[ OK ] signature status
 

User avatar
VanessaE
Moderator
 
Posts: 4244
Joined: Sun Apr 01, 2012 12:38
Location: Waynesville, NC
GitHub: VanessaE
IRC: VanessaE
In-game: VanessaE

Re: [Mod] Digilines LED marquee [git][led_marquee]

by VanessaE » Mon Aug 20, 2018 21:26

Note that I'm going to change how colors work. It'll be proper readable strings using a forward slash as the key, instead of string.char() codes. i.e. "foo/1bar/2/baz/3blah" will print foo in red, bar in orange, baz in yellow, blah in lime. Colors > 10 will use letters i.e. "/A" through "/R" (or lowercase).

I'll post a follow-up when that change goes live.
You might like some of my stuff: Plantlife ~ More Trees ~ Home Decor ~ Pipeworks ~ HDX Textures (16-512px)
 

User avatar
VanessaE
Moderator
 
Posts: 4244
Joined: Sun Apr 01, 2012 12:38
Location: Waynesville, NC
GitHub: VanessaE
IRC: VanessaE
In-game: VanessaE

Re: [Mod] Digilines LED marquee [git][led_marquee]

by VanessaE » Tue Aug 21, 2018 00:35

That change is live now. Also, char(10) is newline now, like it should be. See first post or README.
You might like some of my stuff: Plantlife ~ More Trees ~ Home Decor ~ Pipeworks ~ HDX Textures (16-512px)
 

User avatar
v-rob
Member
 
Posts: 539
Joined: Thu Mar 24, 2016 03:19
GitHub: v-rob

Re: [Mod] Digilines LED marquee [git][led_marquee]

by v-rob » Wed Aug 22, 2018 00:32

I decided to write this post on my new HD screen, but if you want to read it in normal text (or you can't see the images), it's as following:

I made some alternate textures for this mod which are 32 x 32 pixels instead of 64 x 64, and instead of being round, they're square. I think it looks better, and if anyone else wants them, I attached them to the post.

While I was making the square textures, I noticed a problem with some of the original textures. Some of them have LED lights that are offset by a pixel so that they don't match up properly. I didn't keep a log of which ones they were, but the ones that I remember were the smileys (157 - 159) and some of the block shades (141 - 144), although there are many more. Look at the bottom screenshot or the numbers I specified to see what I mean.

And here are the images:

Image
(Nearly) full post on an HD LED screen.

Image
Close-up on the square textures.

Image
Notice the offset LED lights in the right one.
Attachments
textures.zip
(89.95 KiB) Downloaded 5 times
 

User avatar
VanessaE
Moderator
 
Posts: 4244
Joined: Sun Apr 01, 2012 12:38
Location: Waynesville, NC
GitHub: VanessaE
IRC: VanessaE
In-game: VanessaE

Re: [Mod] Digilines LED marquee [git][led_marquee]

by VanessaE » Wed Aug 22, 2018 01:16

Nice :-)

Shifted pixels fixed in git (it was just two of the block shades, the smileys are fine). If you find any others, please give me a list.
You might like some of my stuff: Plantlife ~ More Trees ~ Home Decor ~ Pipeworks ~ HDX Textures (16-512px)
 


Return to Mod Releases



Who is online

Users browsing this forum: No registered users and 6 guests