Inputs from other programs
Some programs can only drive their own device. An input pretends to be that device. The program moves RustyFunPlayer’s axes, and RustyFunPlayer plays the motion on your outputs with your limits, inversion and speed limits applied.
An input starts as soon as you add it and stops when you remove it; there is nothing to connect.
On the Source page, click Add source and pick the input. Its tile’s Set up (pen) shows the port or path and whether it is listening.
Click + right of the source tabs and tick the input. Its tab’s settings (chevron at the right of the toolbar) show the port or path and whether it is listening.
Inputs never receive RustyFunPlayer’s own output, so no loops.
While a program sends motion to an axis, that motion overrides the axis’s script and motion provider; when the motion stops, they take over again. When a TCP or WebSocket program disconnects, the axes it moved stop. UDP and the virtual serial port cannot tell when a program closes, so remove the input source to stop their axes.
Virtual serial port
Behaves like a TCode device on a serial port at 115200 baud.
- Add Virtual serial / USB.
- Point the program at
$XDG_RUNTIME_DIR/rustyfunplayer/tcode(usually/run/user/1000/rustyfunplayer/tcode).
| Program type | How to connect |
|---|---|
| Lets you type a port path | Enter the path. |
| Wine / Proton | Link an unused COM port in the prefix that runs the program, then pick that port. Wine: ln -s "$XDG_RUNTIME_DIR/rustyfunplayer/tcode" "$HOME/.wine/dosdevices/com5". Steam Proton: the same, with steamapps/compatdata/<app-id>/pfx/dosdevices/com5 as the link. |
Lists ports only (FunSync Player, Node serialport) | Start it from a terminal with the helper first on its PATH, for example PATH="$XDG_RUNTIME_DIR/rustyfunplayer/bin:$PATH" ./FunSync-Player.AppImage, or use USB mode. |
USB mode
Select USB serial device in the source panel. The kernel then emulates a real USB adapter (/dev/ttyACM*) that every program finds. Creating it asks for an administrator password once per boot. On NixOS, create it at boot without a prompt:
programs.rustyfunplayer = {
usbSerialGadget = true;
settings.inputs.virtual_serial = { enabled = true; mode = "usb_gadget"; };
};
Needs the dummy_hcd kernel module (NixOS, Arch, Debian, Fedora have it; Ubuntu does not, so the port stays a pseudo-terminal there).
TCode network
Listens on 127.0.0.1 like a Wi-Fi TCode device.
- Add TCode network.
- Point the program at
127.0.0.1, port8000.
| Protocol | Address |
|---|---|
| UDP | 127.0.0.1:8000 |
| TCP | 127.0.0.1:8000 |
| WebSocket | ws://127.0.0.1:8000/ws (any path) |
Examples: KoiSync (UDP, 127.0.0.1, 8000), FunSync Player (ws://127.0.0.1:8000/ws), XTPlayer (WebSocket network device, 127.0.0.1, 8000).
Change ports with UDP port and TCP and WebSocket port.
Intiface relay
A Buttplug server, so programs made for Intiface connect to RustyFunPlayer instead.
Intiface Central also uses port 12345, so only one of them can have it.
- Add Intiface relay.
- Choose its Port:
- Not using Intiface Central: close it and keep
12345. - Your toys run through Intiface Central (a Buttplug.io output): keep Central on
12345and set the relay to12346.
- Not using Intiface Central: close it and keep
- Connect the program to
ws://127.0.0.1:<port>, for examplews://127.0.0.1:12346.
Each axis appears as one device, such as RustyFunPlayer L0. Set which axes are offered in Nix with settings.inputs.intiface_relay.axes = [ "L0" "R0" "V0" ]; (default [ "L0" ]). V axes are vibrators, others are linear devices.
Web pages
A web page that tries to connect to the TCode network input or the relay triggers a card: example.com wants to control your devices. Choose Allow, Not now or Block this site. Manage answers under Allowed web pages and Blocked web pages in the source panel. Local programs and browser extensions connect without asking.