Jump to content




[Rednet question] Checking if ID exists?


  • You cannot reply to this topic
4 replies to this topic

#1 remiX

  • Members
  • 2,076 posts
  • LocationSouth Africa

Posted 30 October 2012 - 06:08 PM

Hey guys, just wanted to know if there is an easier way to check if the ID of a computer of a inputted number actually exists than what I have:

Main PC:

Spoiler

Receiver PC:

Spoiler

This does work nicely but it isn't that ethical.

#2 ChunLing

  • Members
  • 2,027 posts

Posted 30 October 2012 - 06:28 PM

...ethical?

The simplest way to check if a computer is ready to send/receive rednet is to send it something and get a response. That seems to be the basis of what you're doing here.

#3 remiX

  • Members
  • 2,076 posts
  • LocationSouth Africa

Posted 30 October 2012 - 06:52 PM

Oh... lol thought there was an easier way :/

#4 ChunLing

  • Members
  • 2,027 posts

Posted 30 October 2012 - 07:16 PM

Not that I know. The problem is that you need to know that the computer exists and can be contacted by rednet and is in range and will do something if you contact it. Oh, you only wanted the first of those. Hmm...well, not from within a computer on ComputerCraft. Cause that would be...kinda cheaty, don't you think?

#5 remiX

  • Members
  • 2,076 posts
  • LocationSouth Africa

Posted 30 October 2012 - 07:50 PM

:P/>





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users