From 42647903455745cf8fad16043fd3775f495527d2 Mon Sep 17 00:00:00 2001 From: norimicry Date: Tue, 7 Apr 2020 03:52:52 +0200 Subject: [PATCH] redoing configuration --- configs/alwayson.json | 28 ++++++++++++++++++++++++++++ configs/autoload.json | 5 +++++ configs/unlimitedplayers.json | 3 +++ docker-compose.yml | 3 +++ docker/Dockerfile | 2 +- docker/docker-entrypoint.sh | 3 ++- 6 files changed, 42 insertions(+), 2 deletions(-) create mode 100644 configs/alwayson.json create mode 100644 configs/autoload.json create mode 100644 configs/unlimitedplayers.json diff --git a/configs/alwayson.json b/configs/alwayson.json new file mode 100644 index 0000000..655a4e7 --- /dev/null +++ b/configs/alwayson.json @@ -0,0 +1,28 @@ +{ + "serverHotKey": "F9", + "profitmargin": 50, + "upgradeHouse": 0, + "petname": "funnysnek", + "farmcavechoicemushrooms": true, + "communitycenterrun": true, + "timeOfDayToSleep": 2200, + "lockPlayerChests": true, + "clientsCanPause": false, + "copyInviteCodeToClipboard": true, + "festivalsOn": true, + "eggHuntCountDownConfig": 120, + "flowerDanceCountDownConfig": 120, + "luauSoupCountDownConfig": 120, + "jellyDanceCountDownConfig": 120, + "grangeDisplayCountDownConfig": 120, + "iceFishingCountDownConfig": 120, + "endofdayTimeOut": 300, + "fairTimeOut": 1200, + "spiritsEveTimeOut": 900, + "winterStarTimeOut": 900, + "eggFestivalTimeOut": 120, + "flowerDanceTimeOut": 120, + "luauTimeOut": 120, + "danceOfJelliesTimeOut": 120, + "festivalOfIceTimeOut": 120 +} \ No newline at end of file diff --git a/configs/autoload.json b/configs/autoload.json new file mode 100644 index 0000000..74ebbe9 --- /dev/null +++ b/configs/autoload.json @@ -0,0 +1,5 @@ +{ + "LastFileLoaded": null, + "LoadIntoMultiplayer": true, + "ForgetLastFileOnTitle": true +} diff --git a/configs/unlimitedplayers.json b/configs/unlimitedplayers.json new file mode 100644 index 0000000..34e2f7e --- /dev/null +++ b/configs/unlimitedplayers.json @@ -0,0 +1,3 @@ +{ + "PlayerLimit": 10 +} \ No newline at end of file diff --git a/docker-compose.yml b/docker-compose.yml index 2371b2c..337f012 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -10,6 +10,9 @@ services: - ./asound.conf:/etc/asound.conf - ./config:/root/.config/i3/config - ./valley_saves:/root/.config/StardewValley/Saves/ + - ./configs/alwayson.json:/data/Stardew/Stardew\ Valley/Mods/Always\ On\ Server/config.json + - ./configs/unlimitedplayers.json:/data/Stardew/Stardew\ Valley/Mods/UnlimitedPlayers/config.json + - ./configs/autoload.json:/data/Stardew/Stardew\ Valley/Mods/AutoLoadGame/config.json devices: - /dev/snd:/dev/snd diff --git a/docker/Dockerfile b/docker/Dockerfile index 0229580..804bb74 100644 --- a/docker/Dockerfile +++ b/docker/Dockerfile @@ -17,7 +17,6 @@ RUN mkdir -p /data/Stardew && \ COPY mods/alwayson.zip /data/alwayson.zip COPY mods/unlimitedplayers.zip /data/unlimitedplayers.zip COPY mods/autoloadgame.zip /data/autoloadgame.zip -COPY docker-entrypoint.sh /docker-entrypoint.sh RUN unzip /data/alwayson.zip -d /data/Stardew/Stardew\ Valley/Mods && \ unzip /data/unlimitedplayers.zip -d /data/Stardew/Stardew\ Valley/Mods && \ @@ -25,4 +24,5 @@ RUN unzip /data/alwayson.zip -d /data/Stardew/Stardew\ Valley/Mods && \ rm /data/alwayson.zip /data/unlimitedplayers.zip /data/autoloadgame.zip +COPY docker-entrypoint.sh /docker-entrypoint.sh ENTRYPOINT ["/docker-entrypoint.sh"] diff --git a/docker/docker-entrypoint.sh b/docker/docker-entrypoint.sh index 524a853..d0c9323 100755 --- a/docker/docker-entrypoint.sh +++ b/docker/docker-entrypoint.sh @@ -1,10 +1,11 @@ #!/bin/bash -Xvfb :10 -screen 0 1000x1000x24 -ac & +Xvfb :10 -screen 0 1580x920x24 -ac & export DISPLAY=:10.0 x11vnc -display :10 -rfbport 5900 -rfbportv6 -1 -no6 -noipv6 -httpportv6 -1 -forever -desktop StardewValley -cursor arrow -shared -passwd 23eris42 & sleep 5 i3 & +chmod +x /data/Stardew/Stardew\ Valley/StardewValley TERM=xterm /data/Stardew/Stardew\ Valley/StardewValley