Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion bot.php
Original file line number Diff line number Diff line change
Expand Up @@ -358,6 +358,7 @@ function loadEnv(string $filePath, bool $explicit = false): array
// DreamDaemon runs under this systemd unit (Civ13 scripts/README.md, "Supervised hosting"); a non-root bot uses sudo -n for start/stop/restart.
// Replaced below by the Barracks region once the sharded TDM group (tdm.json) is set up on the box.
'systemd' => ['enabled' => true, 'unit' => 'civ13-tdm.service'],
'play' => ['url' => 'https://civ13.com/tdm/'], // Status Play button (docs/server-play-button.md)
// Primary channels
'discussion' => '799952134426591273',
'playercount' => '1048777462898761789',
Expand Down Expand Up @@ -418,6 +419,7 @@ function loadEnv(string $filePath, bool $explicit = false): array
'moderate' => true,
'legacy_relay' => false,
'basedir' => '/home/valithor/VPS/civ13-rp',
'play' => ['url' => 'https://civ13.github.io/persistence/'], // Gaia gateway :1714 (docs/server-play-button.md)
// Primary channels
'discussion' => '799951945346711552',
'playercount' => '1090788345082298369',
Expand Down Expand Up @@ -466,7 +468,7 @@ function loadEnv(string $filePath, bool $explicit = false): array
'shard_group' => $tdm_shard_group('battle'),
'shard_of' => 'tdm',
]);
unset($civ13_server_settings['tdmbattle']['shards']);
unset($civ13_server_settings['tdmbattle']['shards'], $civ13_server_settings['tdmbattle']['play']); // one TDM Play button, entering through the Barracks
}
foreach ($civ13_server_settings as $key => $value) {
$civ13_server_settings[$key]['key'] = $key;
Expand Down
8 changes: 6 additions & 2 deletions docs/server-play-button.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,16 @@ Configure an operator-verified public join page in that server's options:
'play' => ['url' => 'https://civ13.com/tdm/'],
```

For Persistence, use `https://civ13.com/persistence/` **only after the proposed
website page is deployed and verified**. The expected BYOND target is
For Persistence, use `https://civ13.github.io/persistence/` (Civ13/civ13.github.io
#59, live). civ13.com serves only the TDM shortcut, not the GitHub Pages site.
The expected BYOND target is
`byond://play.valzargaming.com:1714`, the Gaia gateway, not Rail Yard on 1715.
Do not map a linked region's Play button to its internal/direct endpoint.
The launcher gate-down fix ([Civ13 #3869](https://github.com/Civ13/Civ13/pull/3869))
explains why a reachable region is not a substitute for an unavailable gate.
The production `bot.php` sets TDM and Persistence; `tdmbattle` drops the inherited
Play link so the aggregate status shows one TDM button. A portable profile adds
`play` to its server entry the same way.
If a region has no supported public entry page, omit its Play configuration.

Absent config disables the button; invalid config logs a warning and disables it.
Expand Down
Loading