Crates.io | wonderland |
lib.rs | wonderland |
version | 0.2.0 |
source | src |
created_at | 2023-10-03 14:30:05.941062 |
updated_at | 2023-11-05 09:54:11.649082 |
description | A package for controling a server running games and other services. |
homepage | |
repository | |
max_upload_size | |
id | 991059 |
size | 130,469 |
This Repo is only a hobby project, and you should not think this is secure. And you might open up your server for malicious use.
It was meant for me to test out the Rust programming language with a project, and it could be more pretty to look at.
Feel free to use the Library, Compiled Binary, or Compile a new binary yourself. The API of the library might change as I see better ways to do it.
It is only tested for Linux Debian 11 and will not work for Windows.
If you find a bug or missing feature, post an Issue or submit a Pull request. I would be highly grateful for the contribution.
Right now, it only works for Factorio servers, and other services are on the agenda. We will see if I get there or not.
Using the bin
The
.env
file needs to be placed in the root dir of the command or the$home/.game-server/.env
The script will first try to get the local
.env
, and if it fails, it will try to find the$home/.game-server/.env.
IMPORTANT The .env
variabels are requierd to use the libeary
FACTORIO_USERNAME
- The username of the Factorio accountFACTORIO_TOKEN
- The token of the Factorio accountFACTORIO_ROOT
- The root dir where the Factorio server will be installedDOWNLOADE_ROOT
- The root dir where the server will download the archives and modsROOT_DIR
- The root dir where the servers will be installedSCREEN_PREFIX
- The prefix of the screen sessions. Default: gs
FACTORIO_GAME_PASSWORD
- Default game passwordGS_CONFIG_IN_HOME_DIR
- (bool) should the config be rooted in the home dirGS_CONFIG_DIR
- the path and name of the config dirSERVER_IP
- server IP