Skip to content
This repository was archived by the owner on Apr 26, 2024. It is now read-only.

Remote Module

feldim2425 edited this page Aug 16, 2016 · 4 revisions

The remote module allows you to control compatible Locomotives (from Railcraft) in a range of 4 blocks. Simply right-click the item on the locomotive to install the module.

The module reacts on network messages. In the standart configuration it listen on port 2 and response on port 1 with a broadcast.

Remote modules also react on private messages to their address. To get the address right-click with a Remote Module Analyzer on a Cart/Locomotive with a Remote Module. (Shift right-click to copy the address)

For removing the remote module left-click on the cart. More information on the Remote Module Analyzer page.

Example call: modem.broadcast(2, "<command>", <arg1>, <arg2>, ...)

If you set a password in the config gui, the argument 1 has to be "::" and argument 2 acts as argument 1.

Example: modem.broadcast(2, "<command>", "::password", <arg1>, <arg2>, ...)

The "::" indicates that you want to authenticate with a password. If there is no password set but you send one, the password will get ignored and argument 2 will also act like argument 1 (like in the 2. example)

Standard functions:

doc([function name or "-t":sting]):string Returns:

  • The documentation of the given command
  • A serialized table with all commands
  • (if arg1 is "-t") A compressed serialized table with all commands (no '\n' or space) (removed, is now default)

response_port([port:number]):number sets the response port and returns the new port. -1 to response on the same port as the last recieved message

command_port([port:number]):number sets the command port and returns the new port. -1 to accept all ports

response_broadcast([value:boolean]):boolean if the value is true it will respond with private messages.

wlan_strength([value:number]):number,number get/set the current and get the max. wireless strength.

Clone this wiki locally