Computercraft Question...

  • Please make sure you are posting in the correct place. Server ads go here and modpack bugs go here
  • The FTB Forum is now read-only, and is here as an archive. To participate in our community discussions, please join our Discord! https://ftb.team/discord

Shaverman5000

New Member
Jul 29, 2019
39
0
0
I dunno if I'm stupid for posting this here but here goes.


I set up 2 computers, one having a monitor. They're about 15 blocks apart. Both of the computers have wireless modems on them. What I want to do, is to make a to do list on one computer, and have it display on the other computer's monitor. Is this achievable? I'm not asking for the direct code or anything, I just want to know I'm not trying to achieve the impossible.


Sorry for being nub. Computercraft is my absolute weakness.
 

Abdiel

New Member
Jul 29, 2019
1,062
0
0
  • Like
Reactions: Shaverman5000

Shaverman5000

New Member
Jul 29, 2019
39
0
0
Yes, it is definitely possible. You will have to make the first computer send the list as a message through rednet, and the second to receive it and display it on the monitor.

Rednet tutorial: http://www.computercraft.info/forums2/index.php?/topic/10343-15-in-depth-modem-channels-tutorial/
Modem API: http://computercraft.info/wiki/Modem_(API)
Do not use the rednet API as on the CC wiki, it is outdated. In the latest version you should use rednet through the modem API.
You, are amazing. :D Made my day!
 

Shaverman5000

New Member
Jul 29, 2019
39
0
0
Yes, it is definitely possible. You will have to make the first computer send the list as a message through rednet, and the second to receive it and display it on the monitor.

Rednet tutorial: http://www.computercraft.info/forums2/index.php?/topic/10343-15-in-depth-modem-channels-tutorial/
Modem API: http://computercraft.info/wiki/Modem_(API)
Do not use the rednet API as on the CC wiki, it is outdated. In the latest version you should use rednet through the modem API.


Another nub question... Sorry...

I got the modems to talk back n forward0s (THANK YOU AGAIN)... Is there a way I can have the receiving computer/monitor's channel open to receive messages repeatedly, without me having to run the program on the receiving end every time I send a message?
 

tabs

New Member
Jul 29, 2019
68
0
0
Sure, put the listening code in a loop. If you want the listening program to be able to do other stuff at the same time look into the parallel API.
 
  • Like
Reactions: Shaverman5000

Guswut

New Member
Jul 29, 2019
2,152
0
0
Another nub question... Sorry...

I got the modems to talk back n forward0s (THANK YOU AGAIN)... Is there a way I can have the receiving computer/monitor's channel open to receive messages repeatedly, without me having to run the program on the receiving end every time I send a message?

Set up the computer with a while loop (http://computercraft.info/wiki/Loops) that does not have a possible termination factor (for example: "While true do"). Rename the script "startup", and remember to hold CTRL and press T for about two seconds to break the loop when you want to edit the computer for whatever reason.
 
  • Like
Reactions: Shaverman5000

Shaverman5000

New Member
Jul 29, 2019
39
0
0
T
Set up the computer with a while loop (http://computercraft.info/wiki/Loops) that does not have a possible termination factor (for example: "While true do"). Rename the script "startup", and remember to hold CTRL and press T for about two seconds to break the loop when you want to edit the computer for whatever reason.


Thank you all for your help. I even added in an in-game timer. <3 Much love!!!! Thanks!!!! I'll add you guys to my "Credit goes to" board!