aboutsummaryrefslogtreecommitdiff

Factorio Proximity Chat

Proximity/positional audio in Factorio!

Positional audio GIF

To install

  • Download Mumble voice chat software
  • Install mumble plugin (see below for more info)
  • Install Factorio mod (see below for more info)
  • Enable Positional Audio (PA) in Mumble
  • Done!

PA will enable when you are in the same game server.

Alt text

Mumble plugin installation

  1. Download the latest factorio.mumble_plugin from the releases page.
  2. Install the plugin in Mumble Screenshot of mumble, installing plugin
  3. Enable positional audio Screenshot of mumble, enabling positional audio
  4. Done! To check it works, try the positional audio viewer (requires Mumble v1.5) Screenshot of mumble, viewing positional audio debugger

Factorio mod installation

\<placeholder image of mod portal>

Development

Mumble plugin

All files are in ./mumble

The main plugin is in plugin.c. For development guide, see plugin docs. This plugin reads player position information from the file on disk (via the Factorio mod) and attaches to the Mumble Positional Audio API.

To build it, I use GitHub actions. The plugin is generated as a file factorio.mumble_plugin in the bundle artifact (deleted after 1 day).

To make a release, I make a release then manually add factorio.mumble_plugin to the release. Version number must be changed in plugin.c, CMakeLists.txt, and manifest.xml.

Factorio mod

All files are in ./factorio.

The mod itself is very simple, and consists of a single control script in control.lua. This script dumps relevant information to a text file every few frames.

Mod information is held in info.json.

Example file output:

XYZ, Player, sUrface, Server
x: 5.65625
y: -2.8359375
z: 0
p: 1
u: 1
s: alifeee

File location

The log file is put in %application directory%/script-output/player_position.txt.

On Windows, that's

%APPDATA%/Factorio/script-output/player_position.txt