wonderland

Crates.iowonderland
lib.rswonderland
version0.2.0
sourcesrc
created_at2023-10-03 14:30:05.941062
updated_at2023-11-05 09:54:11.649082
descriptionA package for controling a server running games and other services.
homepage
repository
max_upload_size
id991059
size130,469
Mattress (Mattress237)

documentation

README

Please read before you use

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.

Supported Services

Games

  • Factorio

ENV

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 account
  • FACTORIO_TOKEN - The token of the Factorio account
  • FACTORIO_ROOT - The root dir where the Factorio server will be installed
  • DOWNLOADE_ROOT - The root dir where the server will download the archives and mods
  • ROOT_DIR - The root dir where the servers will be installed
  • SCREEN_PREFIX - The prefix of the screen sessions. Default: gs
  • FACTORIO_GAME_PASSWORD - Default game password
  • GS_CONFIG_IN_HOME_DIR - (bool) should the config be rooted in the home dir
  • GS_CONFIG_DIR - the path and name of the config dir
  • SERVER_IP - server IP
Commit count: 0

cargo fmt