Difference between revisions of "Repeat"

From ComputerCraft Wiki
Jump to: navigation, search
m (moved Repeat (program) to Repeat: No other pages with the same name; redundant title text is redundant.)
m
 
Line 1: Line 1:
Added by ComputerCraft 1.6, the "repeat" script can be started by typing its name into any system with an attached [[modem]] (either [[Wired Modem|wired]] or [[Wireless Modem|wireless]]).
+
Added by ComputerCraft 1.6, the "repeat" script can be started by typing its name into any system with an attached [[modem]] (either [[Wired Modem|wired]], [[Wireless Modem|wireless]], or [[Ender Modem|ender]]).
  
 
While running, it constantly monitors modem channel 65533 for incoming rednet messages, and re-sends anything it detects (as of CC 1.6, all messages sent via [[rednet.send|rednet.send()]] are automatically distributed both on the channel the coder specifies ''and'' on channel 65533, making it possible for repeater systems to pick them up without monitoring the entire channel range).
 
While running, it constantly monitors modem channel 65533 for incoming rednet messages, and re-sends anything it detects (as of CC 1.6, all messages sent via [[rednet.send|rednet.send()]] are automatically distributed both on the channel the coder specifies ''and'' on channel 65533, making it possible for repeater systems to pick them up without monitoring the entire channel range).
  
Bearing in mind that the [[Rednet_(API)#Range|wireless range]] of a given system will be higher the closer it is to world height, and that two-way communications are possible between systems so long as at least ''one'' of them has sufficient range, one repeater system placed at max altitude can provide coverage between quite a large number of systems down below that otherwise might not be able to reach each other.
+
Bearing in mind that the [[Rednet_(API)#Range|wireless range]] of a given system will be higher the closer it is to world height, and that two-way communications are possible between systems so long as at least ''one'' of them has sufficient range, one repeater system placed at max altitude can provide coverage between quite a large number of systems down below that otherwise might not be able to reach each other. If an [[Ender Modem]] is used, then a single repeater system will typically cover the needs of an entire server.
  
 
The system running the repeat script will maintain a visible running tally of how many messages it has repeated.
 
The system running the repeat script will maintain a visible running tally of how many messages it has repeated.

Latest revision as of 11:43, 27 December 2015

Added by ComputerCraft 1.6, the "repeat" script can be started by typing its name into any system with an attached modem (either wired, wireless, or ender).

While running, it constantly monitors modem channel 65533 for incoming rednet messages, and re-sends anything it detects (as of CC 1.6, all messages sent via rednet.send() are automatically distributed both on the channel the coder specifies and on channel 65533, making it possible for repeater systems to pick them up without monitoring the entire channel range).

Bearing in mind that the wireless range of a given system will be higher the closer it is to world height, and that two-way communications are possible between systems so long as at least one of them has sufficient range, one repeater system placed at max altitude can provide coverage between quite a large number of systems down below that otherwise might not be able to reach each other. If an Ender Modem is used, then a single repeater system will typically cover the needs of an entire server.

The system running the repeat script will maintain a visible running tally of how many messages it has repeated.


Launching

If you wish to have a system automatically boot the repeat script every time it becomes chunk-loaded, you might create a startup script with the following content:

shell.run("repeat")

If you wish to continue using a system while it's acting as a repeater, consider firing it up in a new multishell tab:

bg repeat