Skip to content

Commit

Permalink
added ServerRegion in Game.ini
Browse files Browse the repository at this point in the history
  • Loading branch information
kimzuni committed Jul 2, 2024
1 parent ecbc080 commit d1a9165
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 0 deletions.
1 change: 1 addition & 0 deletions docs/en/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -510,6 +510,7 @@ Used with [environment variables](#environment-variables).
| CFG_COOP_PLAY | When this setting is set to "true", Co-op Play will be enabled on the server. Set to "false" to disable PvP. | false | true/false |
| CFG_COOP_SPAWN | All players will spawn here. (It only works when "CFG_COOP_PLAY" is "true".) | 0 | 0(West), 1(South), 2(East). (I haven't checked it out) |
| CFG_SERVER_TAG | Server tag that can be used to search for the server. | None | "string" |
| CFG_SERVER_REGION | Display server in a list of specified country in the Unofficial Server List | _(empty)_ | AS, NA, SA, EU, OC, AF, AN or nothing |
| CFG_ADMIN_STEAM_ID | Add the SteamID64 values for the players that have admin rights to this setting. When there are multiple admins, add the SteamID64 values to this setting separated by a space. | _(empty)_ | 0-9, a-f, " "(Space) |
| CFG_ENABLE_PVP | When this setting is set to "true", PvP will be enabled on the server. Set to "false" to disable PvP. | true | true/false |
| CFG_TENT_DECAY | When this setting is set to "true", tents will decay and be destroyed after 48 hours unless they are upgraded to a house. | true | true/false |
Expand Down
1 change: 1 addition & 0 deletions docs/kr/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -510,6 +510,7 @@ AUTO_REBOOT_CRON_EXPRESSION는 크론식으로, 작업을 실행할 시간 또
| CFG_COOP_PLAY | 협동 플레이 여부 (PvP를 활성화한 경우 이 설정은 무시) | false | true/false |
| CFG_COOP_SPAWN | 협동 플레이 활성화 시 스폰 장소 지정 (모두 같은 곳에서 스폰) | 0 | 0(West), 1(South), 2(East). (확인 필요) |
| CFG_SERVER_TAG | 서버 검색에 사용되는 태그 | none | "string" |
| CFG_SERVER_REGION | 비공식 서버 목록 내 지정한 국가 목록에 서버 표시 | _(empty)_ | AS, NA, SA, EU, OC, AF, AN or nothing |
| CFG_ADMIN_STEAM_ID | 해당 EOSID(SteamID64) 값을 가진 플레이어를 관리자로 설정 (공백으로 구분하여 여러명 설정 가능) | _(empty)_ | 0-9, a-f, " "(Space) |
| CFG_ENABLE_PVP | PvP 활성화 여부 | true | true/false |
| CFG_TENT_DECAY | 텐트 자동 철거 활성화 여부 | true | true/false |
Expand Down
3 changes: 3 additions & 0 deletions scripts/compile-settings.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ source "/home/steam/server/helper_functions.sh"

LogAction "Compiling Game.ini"

CFG_SERVER_REGION_FULL=${CFG_SERVER_REGION:+"ServerRegion=$CFG_SERVER_REGION"}

cat << EOF > "$CONFIG_FILE_FULL_PATH"
[/Game/Blueprints/Server/GI_AdvancedSessions.GI_AdvancedSessions_C]
ServerName="$CFG_SERVER_NAME"
Expand All @@ -14,6 +16,7 @@ CommunityWebsite="${CFG_COMMUNITY_WEBSITE#http*://}"
CoopPlay=$CFG_COOP_PLAY
CoopSpawn=$CFG_COOP_SPAWN
Tag="$CFG_SERVER_TAG"
$CFG_SERVER_REGION_FULL
[/Game/Blueprints/Server/GM_Longvinter.GM_Longvinter_C]
AdminSteamID="$CFG_ADMIN_STEAM_ID"
Expand Down
1 change: 1 addition & 0 deletions scripts/variables.sh
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ export COMMUNITY_URL=${COMMUNITY_URL}
export CFG_COOP_PLAY=${CFG_COOP_PLAY:-false}
export CFG_COOP_SPAWN=${CFG_COOP_SPAWN:-0}
export CFG_SERVER_TAG=${CFG_SERVER_TAG:-none}
export CFG_SERVER_REGION=${CFG_SERVER_REGION}
export CFG_ADMIN_STEAM_ID=${CFG_ADMIN_STEAM_ID}
export CFG_ENABLE_PVP=${CFG_ENABLE_PVP:-true}
export CFG_TENT_DECAY=${CFG_TENT_DECAY:-true}
Expand Down

0 comments on commit d1a9165

Please sign in to comment.