[mod] radio control [v.1][rc]

Post Reply
juli
Member
Posts: 217
Joined: Sat Jun 11, 2016 10:31
GitHub: cpdef
In-game: juli

[mod] radio control [v.1][rc]

by juli » Post

Radio Control for devices and Mesecons
Image
This mod adds the ability to make devices, like this which the digilines-mod uses,
interact over radio control.

At Moment there are these new nodes:
- Radio Controller: like the lua controller, but with radio controll ability
- Radio Controlled Display: To display a text like the digilines lcd
- RC Keyboard: to interact with an RC-controller
- Copier (Printer-Scanner combo)
- lightblock


Comming soon:
- RC tube (like digilines-tube for pipeworks)
- same with chest and injector maybe also the sensors
- drone: an block which you can navigate/fly, with the ability to dig the nodes under it and drop them at an other place (in work already) (hopefully like this: https://ixquick-proxy.com/do/spg/show_p ... dacdf427a2)
- and router
- option to disable unrealistic protection for signals (add admin controller too)

RC Controller:
The RC Controller has now this new command:
rc_send(pos, msg)
-> sends a message from controller to pos (only if the pos has the ability to receive)
example: rc_send({x=1, y=2, z=3}, 'hello')
-> if u send to an other Radio Controller you receive an event:
{msg=msg, sender=the_owner_of_the_first_controller, type='rc_msg'}

example:
1.The first controller is owned by juli and sends a message to 1 2 3:
rc_send({x=1, y=2, z=3}, 'hello')
2.Then there is a second controller at 1 2 3 which receives the message.
now it handles the event: {msg='hello', sender='juli'}
3. and sends a message to a rcd at 4 5 6:
rc_send({x=4, y=5, z=6}, event.sender..';'..event.msg)
4. On the Screen is now written: 'juli;hello'


Depends: mesecons, memorandum (for copier -> optional)

Credits:
Mesecons-mod by Jeija and contributors
-> textures+most code of the rc_controller
Digiline Keyboard (digiboard) by jogag
-> textures+parts of the code used for the rc_keyboard
Digiline Mod Display (digiline_lcd) by Jeija
-> code used for rc_rcd

License:
All textures in this project are licensed under the CC-BY-SA 3.0 (Creative Commons Attribution-ShareAlike 3.0 Generic).
All code in this project is licensed under the LGPL version 3 or later.
See: https://github.com/cpdef/minetest-rc/bl ... /README.md


Download: https://github.com/cpdef/minetest-rc/archive/master.zip
Source: https://github.com/cpdef/minetest-rc


If someone has tested the mod please reply, especially if there is a bug or something!!
Last edited by juli on Wed Mar 15, 2017 20:33, edited 8 times in total.

juli
Member
Posts: 217
Joined: Sat Jun 11, 2016 10:31
GitHub: cpdef
In-game: juli

Re: [mod] radio control [beta][rc]

by juli » Post

Added a new tool:
Smartphone:
- at moment u can u get only the position of one node if u click with the SP on it
- later: ability to send messages to a radio controller etc.

The Image is a bit small here on forum :D :
Image

juli
Member
Posts: 217
Joined: Sat Jun 11, 2016 10:31
GitHub: cpdef
In-game: juli

Re: [mod] radio control [beta][rc]

by juli » Post

Now i added a Copier which can Copy, Scan and Print on paper (for this the memorandum mod is need)
Commands are:
PRINT;message;signum
COPY
SCAN
IDLE
--used if there is an error so that Printer can't print
u have to setup the Printer at first( to specify the position of the controller etc. where the Printer sends the scaned text)
Image
i have also added a new block which can change the Color and if it lights or not.
It can also change between glass and normal block.
If u wanna change something send one of this messages to it:
glass, full, on, off, red, blue, green, brown, yellow, cyan, violet

juli
Member
Posts: 217
Joined: Sat Jun 11, 2016 10:31
GitHub: cpdef
In-game: juli

v.1

by juli » Post

The mod should now work stable and it is also usable now normal
-> version 1 now :)

User avatar
Desour
Member
Posts: 1469
Joined: Thu Jun 19, 2014 19:49
GitHub: Desour
IRC: Desour
In-game: DS
Location: I'm scared that if this is too exact, I will be unable to use my keyboard.

Re: [mod] radio control [v.1][rc]

by Desour » Post

I don't think, it's necessary to add each node as radio controlled one.

Have you seen my digiline_remote mod? It does something (not totally) similar. (It was thought as a way to communicate with entities via digilines.)
It needed mods that use it and as you wrote about a drone I thought, I'll do something.
So, I started to make a digiline_drone mod: https://github.com/DS-Minetest/digiline_drone
he/him; Codeberg; GitHub; ContentDB; public personal TODO list; "DS" is preferred (but often too short)

juli
Member
Posts: 217
Joined: Sat Jun 11, 2016 10:31
GitHub: cpdef
In-game: juli

Re: [mod] radio control [v.1][rc]

by juli » Post

Yeah but the Problem is:
1.Digilines is slow and laggy if u build a circuit which is a bit more big only.
Because of this some servers can't use Digilines.
For example if u build a 10X10 area of digilines, the server can become nearly unplayable.
Also i'll add one request function which make it possible to directly get the answer as result of an function,
not as an event. That would be better for a remote/digiline-chest because this will not mess up so much if u connect it with a lua-controller or so.
For example Jungle Server would never use digilines and the Mars-Server goes to remove it too.

2. Also the digilines_remote mod seems not very usefull at moment, i have an own digiline remote controller programed, but not uploaded jet, which prevents for example messages from other players over remote.
But because of this lag problem i'am not realy motivated to do more digilines stuff.

3. The rc_mod should become later able to build a whole communicating system over a server (if i have enought time to do so) and this would be a bit more complex then digilines_remote, e.g. the smartphone can't receive
any message with that mod at moment.

User avatar
Desour
Member
Posts: 1469
Joined: Thu Jun 19, 2014 19:49
GitHub: Desour
IRC: Desour
In-game: DS
Location: I'm scared that if this is too exact, I will be unable to use my keyboard.

Re: [mod] radio control [v.1][rc]

by Desour » Post

Is digilines really that laggy? I mean, normally it doesn't send anything. Sending so often would be like if you always make mesecons wire of and on, but this is not the normal thing.
juli wrote: e.g. the smartphone can't receive any message with that mod at moment.
Well, you would have to attach an entity to the player. But this is no real problem.
he/him; Codeberg; GitHub; ContentDB; public personal TODO list; "DS" is preferred (but often too short)

juli
Member
Posts: 217
Joined: Sat Jun 11, 2016 10:31
GitHub: cpdef
In-game: juli

Re: [mod] radio control [v.1][rc]

by juli » Post

I don't know but as i said i programmed rc because for some servers it is to laggy and
on my PC some thinks i programmed for it where also very slow, because i needed much digilines.
And the mod is also compatible with digilines.
Also its a modpack and if u don't need all nodes u an simply disable it :)

So u could use it also as an digiline_remote, but as i said i will make it more complex maybe and players should have fun with a communiction system. So i'll not add only the things digilines use, but them also, for servers which don't wanna use digilines. There has been other digiline_remote mods before your mod, but they had also nothing to prevent other players to send a signal to your machines if u don't want it. Also my mod allows other players to communicat with your machines if u allow it.

PS: u can PM me in german :)

User avatar
Desour
Member
Posts: 1469
Joined: Thu Jun 19, 2014 19:49
GitHub: Desour
IRC: Desour
In-game: DS
Location: I'm scared that if this is too exact, I will be unable to use my keyboard.

Re: [mod] radio control [v.1][rc]

by Desour » Post

I don't like unrealistic protecting with something like signals. I think, important channels should simply be handled like passwords.
It could be nice to have a totally wireless communication system.
he/him; Codeberg; GitHub; ContentDB; public personal TODO list; "DS" is preferred (but often too short)

juli
Member
Posts: 217
Joined: Sat Jun 11, 2016 10:31
GitHub: cpdef
In-game: juli

Re: [mod] radio control [v.1][rc]

by juli » Post

Ok i could make a option to disable the protection,
but i won't totaly remove it, because especially if an admin does something with it, there could be ways, that a player does things he should not do. I could also make 2 controllers 1 for admins and one for players or so.

I make in the first thread a list of things which i wanna go to implement and i add your idea to ok?

Also i had the idea to add lifi-routers except wifi (that will cause only a graphical change) (https://en.wikipedia.org/wiki/Li-Fi)

User avatar
Desour
Member
Posts: 1469
Joined: Thu Jun 19, 2014 19:49
GitHub: Desour
IRC: Desour
In-game: DS
Location: I'm scared that if this is too exact, I will be unable to use my keyboard.

Re: [mod] radio control [v.1][rc]

by Desour » Post

juli wrote:Ok i could make a option to disable the protection,
but i won't totaly remove it, because especially if an admin does something with it, there could be ways, that a player does things he should not do. I could also make 2 controllers 1 for admins and one for players or so.
This sounds good.
juli wrote: I make in the first thread a list of things which i wanna go to implement and i add your idea to ok?
What idea do you mean?
juli wrote: Also i had the idea to add lifi-routers except wifi (that will cause only a graphical change) (https://en.wikipedia.org/wiki/Li-Fi)
What will the lifi-router do?
Will it connect with entities?
he/him; Codeberg; GitHub; ContentDB; public personal TODO list; "DS" is preferred (but often too short)

juli
Member
Posts: 217
Joined: Sat Jun 11, 2016 10:31
GitHub: cpdef
In-game: juli

Re: [mod] radio control [v.1][rc]

by juli » Post

With Idea i mean, that u have said, that it is unrealistic with such protection.
And lifi would do the same as a wifi-router, only it looks not same :), but i like this new technology (called light fideling or so)

User avatar
Desour
Member
Posts: 1469
Joined: Thu Jun 19, 2014 19:49
GitHub: Desour
IRC: Desour
In-game: DS
Location: I'm scared that if this is too exact, I will be unable to use my keyboard.

Re: [mod] radio control [v.1][rc]

by Desour » Post

juli wrote: And lifi would do the same as a wifi-router, only it looks not same
I mean, what should it do in minetest?
he/him; Codeberg; GitHub; ContentDB; public personal TODO list; "DS" is preferred (but often too short)

User avatar
dpbqRman
Member
Posts: 44
Joined: Fri Oct 07, 2016 08:15
Contact:

Re: [mod] radio control [v.1][rc]

by dpbqRman » Post

What's the code to just get a port on and off based on message such as left porta true false?
o__l_ dpbqR o-l&&&&&

User avatar
Phoenixflo44
Member
Posts: 639
Joined: Fri Jul 28, 2017 15:01
In-game: EvilPhoenix
Location: Behind my PC, in Germany

Re: [mod] radio control [v.1][rc]

by Phoenixflo44 » Post

cool
Spoiler
I hate my life

User avatar
dpbqRman
Member
Posts: 44
Joined: Fri Oct 07, 2016 08:15
Contact:

Re: [mod] radio control [v.1][rc]

by dpbqRman » Post

dpbqRman wrote:What's the code to just get a port on and off based on message such as left porta true false? I need it so when button is pressed a piston moves once open then closed in a movement phone. The RC code: if {msg} = 'left' then port.a = true port.a = false end. And I used rc_send , does the RC controller print?
o__l_ dpbqR o-l&&&&&

User avatar
dpbqRman
Member
Posts: 44
Joined: Fri Oct 07, 2016 08:15
Contact:

Re: [mod] radio control [v.1][rc]

by dpbqRman » Post

Can you provide me up down left right button code for this please?
o__l_ dpbqR o-l&&&&&

User avatar
ManElevation
Member
Posts: 896
Joined: Tue Aug 02, 2016 22:04
GitHub: ManElevation
IRC: ManElevation
In-game: ManElevation
Location: Madrid,Spain

Re: [mod] radio control [v.1][rc]

by ManElevation » Post

dpbqRman wrote:Can you provide me up down left right button code for this please?
yesss plz!! :)
My Public Mods! Discord: Rottweiler Games#3368

User avatar
dpbqRman
Member
Posts: 44
Joined: Fri Oct 07, 2016 08:15
Contact:

Re: [mod] radio control [v.1][rc]

by dpbqRman » Post

Whats wrong with github?
o__l_ dpbqR o-l&&&&&

Chem871
Member
Posts: 999
Joined: Sat Aug 19, 2017 21:49
GitHub: Chemguy99
In-game: Chem Nyx
Location: My Basement's Attic

Re: [mod] radio control [v.1][rc]

by Chem871 » Post

Some people don't like that Github will soon be owned by Microsoft. I'm one of those people.
What is SCP-055?

User avatar
TechNolaByte
Member
Posts: 465
Joined: Wed May 10, 2017 21:00
GitHub: TechNolaByte

Re: [mod] radio control [v.1][rc]

by TechNolaByte » Post

but why would Microsoft want github? its free so no money to be made off it
The great quest of alchemy neither failed nor attained gold; programmers are those great alchemists who transmute caffeine into code.

bell07
Member
Posts: 604
Joined: Sun Sep 04, 2016 15:15
GitHub: bell07

Re: [mod] radio control [v.1][rc]

by bell07 » Post

RSLRedstonier wrote:but why would Microsoft want github? its free so no money to be made off it
As I understond Microsoft does host a lot of own open-source projects on github in the meantime. See https://github.com/microsoft

The buy is to not to loose the supervision for the projects and avoid any risk for MS Open-Source strategies. (Yes before 10 years I was not able to imagine to see Microsoft and Open Source together, now Open-Source is a part of MS-Strategy)

User avatar
TenPlus2
Member
Posts: 22
Joined: Sun May 09, 2021 20:54

Re: [mod] radio control [v.1][rc]

by TenPlus2 » Post

Much awesome! I love these new developments that contribute to the digiline/mesecon aspect of the game.

Post Reply

Who is online

Users browsing this forum: Ahrefs [Bot] and 21 guests