Container to share an (a little bit older) version of the sopra-server
1.2K
This is the share build of the sopra server of team020 to be used for internal testing (refactoring is forbidden of course).
If you use a linux operating system you may use the following wrapper script:
(Important: The script assumes you have pulled the 'share'-tag, if you have pulled another one, change the call in the script)
#!/usr/bin/env bash
OPTIND=1
port="7007" # default for port
all="$@"
while [[ "$#" -gt 0 ]]; do
case $1 in
-p|--port) port="$2"; shift ;;
esac
shift
done
echo "[Script] Using docker: $(docker -v)"
command="docker run --interactive --tty -p${port}:${port} --volume $(pwd):/home/server-user/data eagleoutice/sopra-server-share-build:share ${all}"
echo "[Script] Running command: '${command}'"
${command}
It will handle port re-allocation and mounts your current working directory so path-names are the same for the internal and the external representation.
If you do not want to supply any scenarios, use the --defaults operation when launching the server:
server020 --defaults
You may use the help-option (defaults will only use defaults if you do not overwrite them). If you desire to have full, rainbow log-output write:
server020 --defaults --x log true --x rainbow true -v 5
If you want to change the server-behaviour (in a limited way) by the server-config, use the following file as a template and the `--server-config <path>'-commandline-option to use it:
{
"aiTurnDelay": 0,
"allMpApOnBeginOfTurn": true,
"allowDuplicateCharacters": true,
"allSafesConnected": false,
"bowlerBladeLineOfSightInterruptedByCatOrJanitor": true,
"catAndJanitorAreActiveCharacter": false,
"catAndJanitorHaveUuid": false,
"clearExfiltrationOnNextRound": true,
"closestCharacterByWalk": true,
"closestFreeFieldFadesThroughWall": true,
"escalateOnTooLateOperation": true,
"flapsAndSealsThroughWall": true,
"fogHitsWalledFields": false,
"forgetResumesOnCrash": true,
"gadgetNpcMaximum": 6,
"gadgetNpcMinimum": 0,
"gameStatusDelay": 0,
"gameStatusOnTurnStart": true,
"islandSpawnerMayMorePlayers": false,
"jetpackAllowedOnWalkable": false,
"laserCompactIsDirectAttack": true,
"liveView": false,
"magpieShouldUseRainbow": true,
"magpieToConsole": false,
"matchconfigDistanceEuclidean": false,
"minimumCharacters": 13,
"minimumSafeNeighbours": 1,
"minimumSplitsForTile": 3,
"moledieIsDirectAttack": true,
"npcHasAtLeastOneKey": true,
"npcHasRightKeyOnSpyChance": 0.65,
"npcMaxDelay": 0,
"npcMinDelay": 0,
"npcSecretMaySkip": 1,
"npcShouldMove": true,
"numberOfNpc": 3,
"offerReplay": true,
"performSemantics": true,
"receiveInPause": true,
"resumeByBoth": false,
"runAsClient": false,
"sendEmptyOperationListOnStart": true,
"sendMetaOnConnectionOpen": true,
"storyAuthorSleepThresholdMs": 35,
"storyAuthorVerbosity": 0,
"swapIfMoveOnJanitor": true,
"timeoutDetectionTime": 9,
"timezone": "UTC+1",
"unexpectedReconnect": false,
"useIslandsForSpawn": true
}
Content type
Image
Digest
Size
194.1 MB
Last updated
about 6 years ago
docker pull eagleoutice/sopra-server-share-build