Warning: this is a work in progress alpha and may not work as advertised.
Allows storing items and fluid into a limitless subspace that is shared across servers via Clusterio. Currently requires Clusterio to work see the repository and README for Clusterio for instructions on setting it up.
Install Node.js version 10 or later and run npm install
then run node build
.
It will output the built mod into the dist
folder by default.
See node build --help
for options.
To run the integration test:
# Basic test using a dummy clusterio_lib mod
npm test
# Test with the latest clusterio_lib from GitHub Actions
GITHUB_TOKEN=your_github_token npm test
The integration test will:
- Download and set up a Factorio headless server
- Build and install the Subspace Storage mod
- When provided with a GitHub token, download the latest clusterio_lib from GitHub Actions
- Run Factorio to verify that the mod loads correctly
Note: To download the clusterio_lib mod from GitHub Actions, you need a GitHub personal access token with the public_repo
scope. If not provided, the test will fall back to using a dummy clusterio_lib mod.
For CI environments, you should store the GitHub token as a secret:
- Go to your repository Settings → Secrets and variables → Actions
- Add a new repository secret named
GH_PAT
with your GitHub personal access token - The CI workflow is already configured to use this secret when running tests