[Mod] Digilines [digilines]
- Linuxdirk
- Member
- Posts: 3416
- Joined: Wed Sep 17, 2014 11:21
- In-game: Linuxdirk
- Location: Germany
- Contact:
Re: [Mod] Digilines [digilines]
I wonder if the mod is still in development.
Despite being basically undocumented, the last commit was July 2021.
Despite being basically undocumented, the last commit was July 2021.
- Miniontoby
- Member
- Posts: 621
- Joined: Fri Mar 01, 2019 19:25
- GitHub: Miniontoby
- IRC: Miniontoby
- In-game: Miniontoby
- Location: The Netherlands
Re: [Mod] Digilines [digilines]
Is it me or is the texture of the LCD backwards now which also makes the text not visible.
- NicoKaiserHello
- Member
- Posts: 84
- Joined: Sat Jul 06, 2024 17:34
- GitHub: Nico K
- In-game: NicoKaiser
- Location: Germany/Bavaria
- Contact:
Re: [Mod] Digilines [digilines]
How can I control the "Lane control lights" with the Lua controller and Digiline cable?
I like building and programming!
- NicoKaiserHello
- Member
- Posts: 84
- Joined: Sat Jul 06, 2024 17:34
- GitHub: Nico K
- In-game: NicoKaiser
- Location: Germany/Bavaria
- Contact:
Re: [Mod] Digilines [digilines]
How can I control the "Lane control lights" with the Lua controller and Digiline cable?
I like building and programming!
- Blockhead
- Moderator
- Posts: 2991
- Joined: Wed Jul 17, 2019 10:14
- GitHub: Montandalar
- IRC: Blockhead256
- In-game: Blockhead Blockhead256
- Location: Land Down Under
- Contact:
Re: [Mod] Digilines [digilines]
I'd like to help but I really don't know what mod the "Lane control lights" are from, as they're not in digilines or ltc4000e. Do you mean the "Lane Use Signal" from cheapie's roads/streets?NicoKaiserHello wrote: ↑Sat Jul 06, 2024 17:59How can I control the "Lane control lights" with the Lua controller and Digiline cable?
/˳˳_˳˳]_[˳˳_˳˳]_[˳˳_˳˳\ Advtrains enthusiast | My map: Noah's Railyard | My Content on ContentDB ✝️♂
- NicoKaiserHello
- Member
- Posts: 84
- Joined: Sat Jul 06, 2024 17:34
- GitHub: Nico K
- In-game: NicoKaiser
- Location: Germany/Bavaria
- Contact:
- NicoKaiserHello
- Member
- Posts: 84
- Joined: Sat Jul 06, 2024 17:34
- GitHub: Nico K
- In-game: NicoKaiser
- Location: Germany/Bavaria
- Contact:
Re: [Mod] Digilines [digilines]
And I need the commands for the LUA controller, such as for the screens digiline_send("a","Hello")
I like building and programming!
- Blockhead
- Moderator
- Posts: 2991
- Joined: Wed Jul 17, 2019 10:14
- GitHub: Montandalar
- IRC: Blockhead256
- In-game: Blockhead Blockhead256
- Location: Land Down Under
- Contact:
Re: [Mod] Digilines [digilines]
Alright, so as usual the "documentation" is in the source code (this is typical for far too many digilines devices!):NicoKaiserHello wrote: ↑Mon Jul 29, 2024 12:56And I need the commands for the LUA controller, such as for the screens digiline_send("a","Hello")
Code: Select all
digiline = {
receptor = {},
effector = {
action = function(pos, node, channel, msg)
local setchan = minetest.get_meta(pos):get_string("channel")
if setchan ~= channel or type(msg) ~= "string" then
return
end
msg = string.lower(msg)
if (msg=="off") then
node.name = "infrastructure:lane_control_lights_1"
elseif (msg=="green") then
node.name = "infrastructure:lane_control_lights_3"
elseif (msg=="red") then
node.name = "infrastructure:lane_control_lights_2"
elseif (msg=="yellowleft") then
node.name = "infrastructure:lane_control_lights_5"
elseif (msg=="yellowright") then
node.name = "infrastructure:lane_control_lights_4"
elseif (msg=="yellow") then
node.name = "infrastructure:lane_control_lights_6"
end
minetest.set_node(pos,node)
minetest.get_meta(pos):set_string("channel",setchan)
end
}
The lane control light accepts 6 string states as input:
- "off"
- "red"
- "green"
- "yellowleft"
- "yellowright"
- "yellow"
For example to set the light on channel "lane" to the "red" state, the Luacontroller line of code would be:
Code: Select all
digiline_send("lane", "red")
I hope that helps. For any other devices see the source code or ask if needed :)
/˳˳_˳˳]_[˳˳_˳˳]_[˳˳_˳˳\ Advtrains enthusiast | My map: Noah's Railyard | My Content on ContentDB ✝️♂
- NicoKaiserHello
- Member
- Posts: 84
- Joined: Sat Jul 06, 2024 17:34
- GitHub: Nico K
- In-game: NicoKaiser
- Location: Germany/Bavaria
- Contact:
-
TigerMask
- New member
- Posts: 1
- Joined: Sun Dec 29, 2024 09:16
- GitHub: TigerMask1
- IRC: TigerMask
- In-game: TigerMask
Re: [Mod] Digilines [digilines]
where can i get some good build machines?? blueprint :)
- NicoKaiserHello
- Member
- Posts: 84
- Joined: Sat Jul 06, 2024 17:34
- GitHub: Nico K
- In-game: NicoKaiser
- Location: Germany/Bavaria
- Contact:
Re: [Mod] Digilines [digilines]
I'm again. Where can i find the code for toutch screen? Because i want do a display to see which track is selected for the bus (line track) and i need lines to do that.
I like building and programming!
- Blockhead
- Moderator
- Posts: 2991
- Joined: Wed Jul 17, 2019 10:14
- GitHub: Montandalar
- IRC: Blockhead256
- In-game: Blockhead Blockhead256
- Location: Land Down Under
- Contact:
Re: [Mod] Digilines [digilines]
That's part of digistuff, not the base digilinesNicoKaiserHello wrote: ↑Wed Feb 18, 2026 23:52I'm again. Where can i find the code for toutch screen? Because i want do a display to see which track is selected for the bus (line track) and i need lines to do that.
/˳˳_˳˳]_[˳˳_˳˳]_[˳˳_˳˳\ Advtrains enthusiast | My map: Noah's Railyard | My Content on ContentDB ✝️♂
- NicoKaiserHello
- Member
- Posts: 84
- Joined: Sat Jul 06, 2024 17:34
- GitHub: Nico K
- In-game: NicoKaiser
- Location: Germany/Bavaria
- Contact:
Re: [Mod] Digilines [digilines]
Ok thanks. I will beter and beter in lua... i already can javascript, html and pythonBlockhead wrote: ↑Thu Feb 19, 2026 05:52That's part of digistuff, not the base digilinesNicoKaiserHello wrote: ↑Wed Feb 18, 2026 23:52I'm again. Where can i find the code for toutch screen? Because i want do a display to see which track is selected for the bus (line track) and i need lines to do that.
I like building and programming!
- NicoKaiserHello
- Member
- Posts: 84
- Joined: Sat Jul 06, 2024 17:34
- GitHub: Nico K
- In-game: NicoKaiser
- Location: Germany/Bavaria
- Contact:
Re: [Mod] Digilines [digilines]
But do you know how to add a line? With command="addline" it didnt worked. Tipp: im using this time 5.9Blockhead wrote: ↑Thu Feb 19, 2026 05:52That's part of digistuff, not the base digilinesNicoKaiserHello wrote: ↑Wed Feb 18, 2026 23:52I'm again. Where can i find the code for toutch screen? Because i want do a display to see which track is selected for the bus (line track) and i need lines to do that.
I like building and programming!
- Blockhead
- Moderator
- Posts: 2991
- Joined: Wed Jul 17, 2019 10:14
- GitHub: Montandalar
- IRC: Blockhead256
- In-game: Blockhead Blockhead256
- Location: Land Down Under
- Contact:
Re: [Mod] Digilines [digilines]
Ah, setting or setting a line on a train, bus or ferry is doable with get_line() and set_line(line). This has to be done with LuaATC components specifically: The LuaATC tracks go under the trains, and then to send messages, you use digilines connected to a LuaATC Operation Panel. Those can be connected to touchscreens and Luacontrollers, but, try not to make something that needs human intervention or the chunks to be loaded. I recommend you read the wiki pages including the examples. If that doesn't make sense, I can give an example maybe, though I'm still not 100% sure what program you want.NicoKaiserHello wrote: ↑Thu Feb 19, 2026 12:30But do you know how to add a line? With command="addline" it didnt worked. Tipp: im using this time 5.9Blockhead wrote: ↑Thu Feb 19, 2026 05:52That's part of digistuff, not the base digilinesNicoKaiserHello wrote: ↑Wed Feb 18, 2026 23:52I'm again. Where can i find the code for toutch screen? Because i want do a display to see which track is selected for the bus (line track) and i need lines to do that.
/˳˳_˳˳]_[˳˳_˳˳]_[˳˳_˳˳\ Advtrains enthusiast | My map: Noah's Railyard | My Content on ContentDB ✝️♂
- NicoKaiserHello
- Member
- Posts: 84
- Joined: Sat Jul 06, 2024 17:34
- GitHub: Nico K
- In-game: NicoKaiser
- Location: Germany/Bavaria
- Contact:
Re: [Mod] Digilines [digilines]
No i mean add a line on toutchscreen from digistuff (for example button: command="addbutton")Blockhead wrote: ↑Thu Feb 19, 2026 17:29Ah, setting or setting a line on a train, bus or ferry is doable with get_line() and set_line(line). This has to be done with LuaATC components specifically: The LuaATC tracks go under the trains, and then to send messages, you use digilines connected to a LuaATC Operation Panel. Those can be connected to touchscreens and Luacontrollers, but, try not to make something that needs human intervention or the chunks to be loaded. I recommend you read the wiki pages including the examples. If that doesn't make sense, I can give an example maybe, though I'm still not 100% sure what program you want.NicoKaiserHello wrote: ↑Thu Feb 19, 2026 12:30But do you know how to add a line? With command="addline" it didnt worked. Tipp: im using this time 5.9
I like building and programming!
Who is online
Users browsing this forum: No registered users and 1 guest