Skip to content

Commit

Permalink
Support for configurable platforms with PC and Xbox as default (#13)
Browse files Browse the repository at this point in the history
  • Loading branch information
Dahlgren committed Sep 12, 2023
1 parent 1a3831c commit bb3ec3d
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 0 deletions.
1 change: 1 addition & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@ ENV GAME_SCENARIO_ID="{ECC61978EDCC2B5A}Missions/23_Campaign.conf"
ENV GAME_PLAYER_LIMIT=32
ENV GAME_AUTO_JOINABLE=false
ENV GAME_VISIBLE=true
ENV GAME_SUPPORTED_PLATFORMS=PLATFORM_PC,PLATFORM_XBL
ENV GAME_PROPS_BATTLEYE=true
ENV GAME_PROPS_DISABLE_THIRD_PERSON=false
ENV GAME_PROPS_FAST_VALIDATION=true
Expand Down
4 changes: 4 additions & 0 deletions docker_default.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,10 @@
"playerCountLimit": 32,
"autoJoinable": false,
"visible": true,
"supportedPlatforms": [
"PLATFORM_PC",
"PLATFORM_XBL"
],
"gameProperties": {
"serverMaxViewDistance": 2500,
"serverMinGrassDistance": 50,
Expand Down
4 changes: 4 additions & 0 deletions launch.py
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,10 @@ def bool_str(text):
config["game"]["autoJoinable"] = bool_str(os.environ["GAME_AUTO_JOINABLE"])
if env_defined("GAME_VISIBLE"):
config["game"]["visible"] = bool_str(os.environ["GAME_VISIBLE"])
if env_defined("GAME_SUPPORTED_PLATFORMS"):
config["game"]["supportedPlatforms"] = os.environ[
"GAME_SUPPORTED_PLATFORMS"
].split(",")
if env_defined("GAME_PROPS_BATTLEYE"):
config["game"]["gameProperties"]["battlEye"] = bool_str(
os.environ["GAME_PROPS_BATTLEYE"]
Expand Down

0 comments on commit bb3ec3d

Please sign in to comment.