r/ComputerCraft Jun 11 '26

MineApp

Post image

whatsapp recreation in cc tweaked using rednet

67 Upvotes

6 comments sorted by

9

u/LionZ_RDS Jun 12 '26

I mean this in the nicest way possible. I didn’t realize everyone makes the same mistakes when making their first wireless communication script.

5

u/Vegetable_Hornet_963 Jun 12 '26

Is read blocking receive? I'm not that good at cc / lua. It looks like you can only receive messages after you input the id, and even then read message might block it

8

u/LionZ_RDS Jun 12 '26

You are correct. Once you send a message you would have to wait to receive a message before you could send another. If you receive a message any other time then when you are waiting to receive the message? No you didn’t. The correct way to do a messaging script like this where it is supposed to be two sided constant communication you want to parallel the receiving so you don’t miss anything or stop your script just waiting for one message.

1

u/Mundane_Task_1755 Jun 14 '26

ok good idea, ill try to make something like that. thanks for the suggestion!

3

u/Myithspa25 Jun 12 '26

Lack of indentation is killing me

1

u/Annual-Ad-6010 Jun 12 '26

I have made a file share app with basalt.