[Modpack] Digiline Stuff [digiline_stuff] - digiline devices
- jogag
- Member
- Posts: 106
- Joined: Wed Aug 12, 2015 18:32
- GitHub: jogag
- IRC: jogag
- In-game: jogag
- Location: Online
Re: [Modpack] Digiline Stuff [digiline_stuff] - digiline dev
I HAVE AN IDEA: a new digiline-based protocol made specifically for memory chips. Something like i2c.
Should I call it "mt_I2C"? :)
Should I call it "mt_I2C"? :)
- programmingchicken
- Member
- Posts: 540
- Joined: Sat Apr 18, 2015 02:20
- GitHub: pchicken
- IRC: chicken pchicken
- Location: not here
- Contact:
Re: [Modpack] Digiline Stuff [digiline_stuff] - digiline dev
m2t
<gamerdude> I apologize for the above content
- jogag
- Member
- Posts: 106
- Joined: Wed Aug 12, 2015 18:32
- GitHub: jogag
- IRC: jogag
- In-game: jogag
- Location: Online
Re: [Modpack] Digiline Stuff [digiline_stuff] - digiline dev
+1programmingchicken wrote:m2t
COMING SOON IN MINETEST: M2T bus and dedicated chips (memory, multiplexers, expanders...)
And the Arduino killing luacontrollers? :)
- rubenwardy
- Moderator
- Posts: 6978
- Joined: Tue Jun 12, 2012 18:11
- GitHub: rubenwardy
- IRC: rubenwardy
- In-game: rubenwardy
- Location: Bristol, United Kingdom
- Contact:
Re: [Modpack] Digiline Stuff [digiline_stuff] - digiline dev
The keyboard does not send on a channel, I get this when doing print(event) in the lua controller:
The problem is here:
You meant to do meta:set_string("channel", fields.channel)
pull request: https://github.com/jogag/digiline-stuff/pull/1
Code: Select all
{
type = "digiline",
msg = "sdsdsd",
channel = ""
}
Code: Select all
on_receive_fields = function(pos, formname, fields, sender)
local meta = minetest.get_meta(pos)
local channel = meta:get_string("channel")
if fields.channel then
meta:set_string("channel") -- <--- this line
meta:set_string("formspec", "field[text;Enter text;]")
elseif fields.text then
digiline:receptor_send(pos, digiline.rules.default, channel, fields.text)
end
pull request: https://github.com/jogag/digiline-stuff/pull/1
- jogag
- Member
- Posts: 106
- Joined: Wed Aug 12, 2015 18:32
- GitHub: jogag
- IRC: jogag
- In-game: jogag
- Location: Online
Re: [Modpack] Digiline Stuff [digiline_stuff] - digiline dev
Thanks for posting it, I merged it. I also updated my local code.rubenwardy wrote:pull request: https://github.com/jogag/digiline-stuff/pull/1
And I'm still working on the complicated ESP8266s in the IoT mod.
- programmingchicken
- Member
- Posts: 540
- Joined: Sat Apr 18, 2015 02:20
- GitHub: pchicken
- IRC: chicken pchicken
- Location: not here
- Contact:
Re: [Modpack] Digiline Stuff [digiline_stuff] - digiline dev
lol see what i did there?jogag wrote:+1programmingchicken wrote:m2t
COMING SOON IN MINETEST: M2T bus and dedicated chips (memory, multiplexers, expanders...)
And the Arduino killing luacontrollers? :)
mine2test hrhrhhrhrhrrhr
<gamerdude> I apologize for the above content
- jogag
- Member
- Posts: 106
- Joined: Wed Aug 12, 2015 18:32
- GitHub: jogag
- IRC: jogag
- In-game: jogag
- Location: Online
Re: [Modpack] Digiline Stuff [digiline_stuff] - digiline dev
I will post the JTAG debugger/programmer today.
It can:
Supported commands are:
Or if you want to make 100% automated clock factory! :D
PS: I will also upload the CRT screen mod!
EDIT: I forgot, you have to place the luacontroller in front of the JTAG, on the small connector. Then you have to send "CONNECT". If the led turns green, the target controller was connected. WARNING: do not dig or right-click the target chip while the led is green! Send "DISCONNECT" first.
It can:
- Get hidden parameters of a luacontroller, such as the temporary ID
- Read, write and delete the lua code on a luacontroller
- Reset the controller
- Burn it!!!
Supported commands are:
- CONNECT - connects to the luacontroller
- DISCONNECT - disconnects the attached target
- RUN [event lua table] - resets the luacontroller with optional event
- GET_ID - gets the temporary ID, warning: this changes if you change the code
- READ - reads the lua code
- WRITE <code> - changes the lua code
- ERASE - deletes the lua code
- MEM_READ - reads the mem variable
- MEM_WRITE <lua table> - changes the mem variable
- MEM_ERASE - sets the mem variable to {}
Or if you want to make 100% automated clock factory! :D
PS: I will also upload the CRT screen mod!
EDIT: I forgot, you have to place the luacontroller in front of the JTAG, on the small connector. Then you have to send "CONNECT". If the led turns green, the target controller was connected. WARNING: do not dig or right-click the target chip while the led is green! Send "DISCONNECT" first.
- benrob0329
- Member
- Posts: 1341
- Joined: Thu Aug 06, 2015 22:39
- GitHub: Benrob0329
- IRC: benrob0329
- In-game: benrob03
- Location: Michigan
- Contact:
Re: [Modpack] Digiline Stuff [digiline_stuff] - digiline dev
Sorry it took so long, but I've been experimenting with Mesecons lately and built a password protected door:
- benrob0329
- Member
- Posts: 1341
- Joined: Thu Aug 06, 2015 22:39
- GitHub: Benrob0329
- IRC: benrob0329
- In-game: benrob03
- Location: Michigan
- Contact:
Re: [Modpack] Digiline Stuff [digiline_stuff] - digiline dev
No more Light telling me when I can unlock the door!I made my door slightly more compact...
- jogag
- Member
- Posts: 106
- Joined: Wed Aug 12, 2015 18:32
- GitHub: jogag
- IRC: jogag
- In-game: jogag
- Location: Online
Re: [Modpack] Digiline Stuff [digiline_stuff] - digiline dev
Did you used a delayer-based timer in the first version?
It's not reliable... it stops after a game restart...
Why did you don't use red plants, they generate an interrupt every 3 seconds!
And why do you need a hardware timer?
Here's my improved code, it does not need any hardware timer.
Port D is used as alarm output if the password is wrong.
Sorry for the very long while waiting for JTAG, I'm doing heavy bugfixing...
(And working on Javascript and Lua for my DIY embedded system in a cardboard box... basically a luacontroller in real life, and kept in a cardboard box together with crappy LCD monochrome display, 4x4 keypad, Wi-Fi chip and some batteries).
It's not reliable... it stops after a game restart...
Why did you don't use red plants, they generate an interrupt every 3 seconds!
And why do you need a hardware timer?
Here's my improved code, it does not need any hardware timer.
Port D is used as alarm output if the password is wrong.
Code: Select all
digiline_send("keyboard","Please enter password:") -- change keyboard message
if event.type=="interrupt" then -- timer expired
port.c=true -- close door
port.d=false -- disable alarm output
elseif event.type=="digiline" and event.channel=="keyboard" then
if event.msg=="password" then
-- correct password
digiline_send("printer","Log: correct password") -- adding timestamp with RTC?
port.c=false -- open door
interrupt(5) -- schedule closing after 5 seconds
else
-- wrong password
digiline_send("printer","Log: wrong password "..event.msg) -- also include wrong password
port.d=true -- output alarm signal
interrupt(3) -- schedule alarm off after 3 seconds
end
end
(And working on Javascript and Lua for my DIY embedded system in a cardboard box... basically a luacontroller in real life, and kept in a cardboard box together with crappy LCD monochrome display, 4x4 keypad, Wi-Fi chip and some batteries).
- benrob0329
- Member
- Posts: 1341
- Joined: Thu Aug 06, 2015 22:39
- GitHub: Benrob0329
- IRC: benrob0329
- In-game: benrob03
- Location: Michigan
- Contact:
Re: [Modpack] Digiline Stuff [digiline_stuff] - digiline dev
It currently does not need a hardware timer, it simply closes the door after 10 seconds using an interrupt.
I have also since added LCD screens (as seen on the "Post Your Screenshots" thread.
I want to improve it further (e.g. by adding a timestamp and maybe a piston to punch the paper out from in from of the printer)
I have also since added LCD screens (as seen on the "Post Your Screenshots" thread.
I want to improve it further (e.g. by adding a timestamp and maybe a piston to punch the paper out from in from of the printer)
- jogag
- Member
- Posts: 106
- Joined: Wed Aug 12, 2015 18:32
- GitHub: jogag
- IRC: jogag
- In-game: jogag
- Location: Online
Re: [Modpack] Digiline Stuff [digiline_stuff] - digiline dev
I'm working on something more interesting: a fully automated digital clock factory!
It takes your orders via digiline and make a clock as you want (you can customize light colors and the base material, and even add a custom alarm!) It programs the luacontrollers with my JTAG programmer mod (still in alpha -- I will add it to digiline stuff when fixed) and assembles everything by taking materials from chests and putting them together with pistons. It's very complicated (and glitchy)!
I will post the map and some screenshot when finished.
It takes your orders via digiline and make a clock as you want (you can customize light colors and the base material, and even add a custom alarm!) It programs the luacontrollers with my JTAG programmer mod (still in alpha -- I will add it to digiline stuff when fixed) and assembles everything by taking materials from chests and putting them together with pistons. It's very complicated (and glitchy)!
I will post the map and some screenshot when finished.
- benrob0329
- Member
- Posts: 1341
- Joined: Thu Aug 06, 2015 22:39
- GitHub: Benrob0329
- IRC: benrob0329
- In-game: benrob03
- Location: Michigan
- Contact:
Re: [Modpack] Digiline Stuff [digiline_stuff] - digiline dev
That sound cool! When I "finish" my door I'll post the .we and code for the Luacontroller.
- jogag
- Member
- Posts: 106
- Joined: Wed Aug 12, 2015 18:32
- GitHub: jogag
- IRC: jogag
- In-game: jogag
- Location: Online
Re: [Modpack] Digiline Stuff [digiline_stuff] - digiline dev
The same for my JTAG and the clock factory. It consists of four parts: the stocking unit, with chests for luacontrollersand materials, the programming factory that programs several luacontrollers with the display drivers and the timekeeping program, the factory assembling the clock and the remote terminal to order (it's connected with a digiline bus).
The clocks are built like this.
The clocks are built like this.
- jan6
- Member
- Posts: 64
- Joined: Wed Dec 02, 2015 17:58
- GitHub: jan69
- IRC: jan6
- In-game: jan6
- Location: Estonia
Re: [Modpack] Digiline Stuff [digiline_stuff] - digiline dev
i'll be really happy when digiline command blocks are avaiable...also a handheld keyboard would be cool too (this pack is really useful,i don't have to use luacontroller for everything anymore :) )
I know everything, exept what I know...
I have a secret..it's so secret even I don't know what it is
I have a secret..it's so secret even I don't know what it is
- benrob0329
- Member
- Posts: 1341
- Joined: Thu Aug 06, 2015 22:39
- GitHub: Benrob0329
- IRC: benrob0329
- In-game: benrob03
- Location: Michigan
- Contact:
Re: [Modpack] Digiline Stuff [digiline_stuff] - digiline dev
Perhaps some kind of a PiDA (See what I did there?) aka a Digiline PDA, that you could use for multiple things (Time, Lua, Digiline and Mesecons signals, Sending messages to other LiSA's wirelessly, etc.)
- programmingchicken
- Member
- Posts: 540
- Joined: Sat Apr 18, 2015 02:20
- GitHub: pchicken
- IRC: chicken pchicken
- Location: not here
- Contact:
Re: [Modpack] Digiline Stuff [digiline_stuff] - digiline dev
Digilines is the future. Digiline Stuff is the futuristic future.
Minecraft is the now....
#REKT
Minecraft is the now....
#REKT
<gamerdude> I apologize for the above content
- jogag
- Member
- Posts: 106
- Joined: Wed Aug 12, 2015 18:32
- GitHub: jogag
- IRC: jogag
- In-game: jogag
- Location: Online
Re: [Modpack] Digiline Stuff [digiline_stuff] - digiline dev
I'm not sure about digiline command blocks.
They are easy to make, but there are security issues:
Then should I add digiline command blocks?
They are easy to make, but there are security issues:
- Minetest allows executing commands only by players
- unlike Minecraft that has a special safe "bot" used by command blocks
- Mesecon command blocks are locked and only the owner can change commands
- but anyone can connect to a digiline and send any command
- and it will be executed with the privs of the player "owning" the command block
Then should I add digiline command blocks?
- jan6
- Member
- Posts: 64
- Joined: Wed Dec 02, 2015 17:58
- GitHub: jan69
- IRC: jan6
- In-game: jan6
- Location: Estonia
Re: [Modpack] Digiline Stuff [digiline_stuff] - digiline dev
if they are so insecure then maybe you don't need to add them ... Commands need to be changed by owner that's one sure thing(maybe some sort of hidden keyboard that is obtainable only by /give or a special privilege that can change commands),otherwise it would be way too easy to break the world...
maybe a separate package/mod for it so that if you want,then you enable/install it
also another idea: what about something computer-like that can send a message and display/recive another message at the same time(so i don't have to type a message,look at lcd for response,type another one etc. also, i have to aim quite accurately to use keyboard as it's much smaller than other things),would be useful for controlling systems
maybe a separate package/mod for it so that if you want,then you enable/install it
also another idea: what about something computer-like that can send a message and display/recive another message at the same time(so i don't have to type a message,look at lcd for response,type another one etc. also, i have to aim quite accurately to use keyboard as it's much smaller than other things),would be useful for controlling systems
I know everything, exept what I know...
I have a secret..it's so secret even I don't know what it is
I have a secret..it's so secret even I don't know what it is
- jogag
- Member
- Posts: 106
- Joined: Wed Aug 12, 2015 18:32
- GitHub: jogag
- IRC: jogag
- In-game: jogag
- Location: Online
Re: [Modpack] Digiline Stuff [digiline_stuff] - digiline dev
About the screen + keyboard set, there is a mod that has one, but I can add it anyway.
However I'm busy these days in building a javascript computer and other things with chips, including luacontrollers in real life.
I will add it when I can.
However I'm busy these days in building a javascript computer and other things with chips, including luacontrollers in real life.
I will add it when I can.
- jogag
- Member
- Posts: 106
- Joined: Wed Aug 12, 2015 18:32
- GitHub: jogag
- IRC: jogag
- In-game: jogag
- Location: Online
Re: [Modpack] Digiline Stuff [digiline_stuff] - digiline dev
I'm still alive, but pretty far from Minetest. Moved to 8-bit chips (= Arduino) and some small mods for Minetest (= elytra mod without 3D models).
Most important thing in development:
(Yes, it's a bit off topic...)
Most important thing in development:
(Yes, it's a bit off topic...)
- Attachments
-
- jOS.png (2.33 KiB) Viewed 971 times
- benrob0329
- Member
- Posts: 1341
- Joined: Thu Aug 06, 2015 22:39
- GitHub: Benrob0329
- IRC: benrob0329
- In-game: benrob03
- Location: Michigan
- Contact:
- jogag
- Member
- Posts: 106
- Joined: Wed Aug 12, 2015 18:32
- GitHub: jogag
- IRC: jogag
- In-game: jogag
- Location: Online
Re: [Modpack] Digiline Stuff [digiline_stuff] - digiline dev
:Dbenrob0329 wrote:Cool!
I made a tutorial using your mod: https://www.youtube.com/watch?v=_s9CVFaw1eI
Wow, my work is on YT!!!
Software update to my cardboard-PC and a new mod for Minetest: a fork of the computer mod that adds handheld games and cardboard computers. Releasing it today.
- benrob0329
- Member
- Posts: 1341
- Joined: Thu Aug 06, 2015 22:39
- GitHub: Benrob0329
- IRC: benrob0329
- In-game: benrob03
- Location: Michigan
- Contact:
Re: [Modpack] Digiline Stuff [digiline_stuff] - digiline dev
There is a bug with the Digiprinter where it can't be mined because it has paper in it, but you can't take the paper out.
- jogag
- Member
- Posts: 106
- Joined: Wed Aug 12, 2015 18:32
- GitHub: jogag
- IRC: jogag
- In-game: jogag
- Location: Online
Re: [Modpack] Digiline Stuff [digiline_stuff] - digiline dev
There was also a bug in the cardboard computer mod, and there's a bug in the circuit diagram in this topic. Everything is buggy...
Who is online
Users browsing this forum: Bing [Bot] and 29 guests