alyx-multiplayer

about

alyx-multiplayer is a multiplayer mod for Half-Life: Alyx running on Windows. The mod tracks head position and rotation to send across clients.

Our code is open source! You can view and contribute here.

A lotta folks made this possible, notably:

Trailer music composed by the talented Emberlynn Bland, and is available in full. Multiplayer avatar inhabited by generic_icon.

install-instructions

  1. Open TCP port 6655 on your router using port-forwarding. This step will differ based on your router model.
  2. Download the latest release.
  3. Unzip the download into [Steam directory]\steamapps\common\Half-Life Alyx\game\hlvr_addons\alyx_multiplayer
  4. Run alyx-multiplayer.exe located in hlvr_addons\alyx_multiplayer as administrator.
  5. Copy the path of the scripts\vscripts folder into the Folder path of script textbox, then press Submit.
  6. Tell a friend to follow the instructions above.
  7. Your IP and port number should appear on the bottom-left. Exchange this info with your friend!
  8. Copy your friend's IP and port number into their respective textboxes, then press Submit.
  9. Launch Half-Life: Alyx, then enable the alyx_multiplayer addon in the Addons menu.
  10. Create a New Game with Addons, then load any of the base game maps.

If your friend is in the same map, you should see their head floating about!

technical-details

Here's how alyx-multiplayer ticks, in order of execution:

  1. Using LiveSplit code written for use in autosplitters, we fetch player position and rotation directly from their spots in memory. Or more accurately, we fetch the position of an empty set to the same origin and angles as the player.
  2. A SuperSimpleTCP-based TCP implementation networks these coordinates in string form.
  3. We write the received coordinates to a VScript, which moves the addon-embedded avatar model. This script runs every arbitrary tick.

press-quotes

...invite a friend into Half-Life: Alyx in a very limited fashion—as the floating faceplate of a Combine scanner, drifting and jittering around Alyx as a kind of robot buddy.
- Natalie Clayton, PC Gamer
Did you find the trek through Half-Life: Alyx a tad lonely? As ever, there's now a mod to remedy that.
- Iain Harris, PCGamesN
Modders have made an open-source multiplayer mod that lets you play the game alongside a friend, spawning them in as a floating moral support robot. And it's well cute.
- Imogen Beckhelling, Rock Paper Shotgun

More: GamesRadar+ | MSPoweruser | TheGamer | VRScout

contact-info

If you'd like to get in touch, email Zachary Talis aka Kube (they/them).

This isn't a support line: don't email asking for technical help. Zachary no longer has access to a Windows machine to help ya debug.