redoing configuration

This commit is contained in:
norimicry 2020-04-07 03:52:52 +02:00
parent 921eac9edc
commit 4264790345
6 changed files with 42 additions and 2 deletions

28
configs/alwayson.json Normal file
View File

@ -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
}

5
configs/autoload.json Normal file
View File

@ -0,0 +1,5 @@
{
"LastFileLoaded": null,
"LoadIntoMultiplayer": true,
"ForgetLastFileOnTitle": true
}

View File

@ -0,0 +1,3 @@
{
"PlayerLimit": 10
}

View File

@ -10,6 +10,9 @@ services:
- ./asound.conf:/etc/asound.conf - ./asound.conf:/etc/asound.conf
- ./config:/root/.config/i3/config - ./config:/root/.config/i3/config
- ./valley_saves:/root/.config/StardewValley/Saves/ - ./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: devices:
- /dev/snd:/dev/snd - /dev/snd:/dev/snd

View File

@ -17,7 +17,6 @@ RUN mkdir -p /data/Stardew && \
COPY mods/alwayson.zip /data/alwayson.zip COPY mods/alwayson.zip /data/alwayson.zip
COPY mods/unlimitedplayers.zip /data/unlimitedplayers.zip COPY mods/unlimitedplayers.zip /data/unlimitedplayers.zip
COPY mods/autoloadgame.zip /data/autoloadgame.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 && \ RUN unzip /data/alwayson.zip -d /data/Stardew/Stardew\ Valley/Mods && \
unzip /data/unlimitedplayers.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 rm /data/alwayson.zip /data/unlimitedplayers.zip /data/autoloadgame.zip
COPY docker-entrypoint.sh /docker-entrypoint.sh
ENTRYPOINT ["/docker-entrypoint.sh"] ENTRYPOINT ["/docker-entrypoint.sh"]

View File

@ -1,10 +1,11 @@
#!/bin/bash #!/bin/bash
Xvfb :10 -screen 0 1000x1000x24 -ac & Xvfb :10 -screen 0 1580x920x24 -ac &
export DISPLAY=:10.0 export DISPLAY=:10.0
x11vnc -display :10 -rfbport 5900 -rfbportv6 -1 -no6 -noipv6 -httpportv6 -1 -forever -desktop StardewValley -cursor arrow -shared -passwd 23eris42 & x11vnc -display :10 -rfbport 5900 -rfbportv6 -1 -no6 -noipv6 -httpportv6 -1 -forever -desktop StardewValley -cursor arrow -shared -passwd 23eris42 &
sleep 5 sleep 5
i3 & i3 &
chmod +x /data/Stardew/Stardew\ Valley/StardewValley
TERM=xterm TERM=xterm
/data/Stardew/Stardew\ Valley/StardewValley /data/Stardew/Stardew\ Valley/StardewValley