stardew-multiplayer-docker/README.md
norimicry a2c03c4b5f 1.4
2020-04-07 04:51:45 +02:00

59 lines
1.8 KiB
Markdown

# Stardew Valley Multiplayer Docker Compose
This project aims to autostart a Stardew Valley Multiplayer Server as easy as possible.
## Setup
### Docker-Compose
```
git clone https://github.com/printfuck/stardew-multiplayer-docker
docker-compose up
```
### Ansible
Create an inventory file with your hosts
```
ansible -i <your_inventori> playbook.yml
```
### Terraform (with Hetzner Cloud)
Enter your API Token in `terraform/vars.auto.tfvars` and run the following script:
```
./terra.sh
```
## Game Setup
Intially you have to create or load a game once after first startup. After that the Autoload Mod jump starts into the previously loaded savegame everytime you rerun the container. You can also edit the config file of the Autoload Mod to archieve similar behaviour.
## How it works
The game, the modloader (SMAPI), and the "Always On" Mod is pulled from my servers to minimize version conflicts. Afterwards everything will be unpacked into the right places. In the end of the init script the game will be started inside Xvfb.
## Why Docker
This should be simple and easily deployable, so there are only a few options.
## Used Mods
* [AutoLoadGame](https://www.nexusmods.com/stardewvalley/mods/2509)
* [Always On](https://community.playstarbound.com/threads/updating-mods-for-stardew-valley-1-4.156000/page-20#post-3353880)
* [Unlimited Players](https://www.nexusmods.com/stardewvalley/mods/2213)
## Troubleshooting
### Error Messages in Console
Usually you should be able to ignore any messages. If the game doesn't start or any errors appear, you should look for message like "cannot open display", whiich would indicate most likely permission errors.
### VNC
Access the game via VNC to initially load or start a pregenerated savegame. You can control the Server from there or edit the config.json files in the configs folder