What’s the main portal hub?

the following power shell script will get the current player count of all public planets.

$response = ""
$players = 0
$current_time = Get-Date -Format "MM/dd/yyyy HH:mm"
try {
    $response = Invoke-RestMethod -Uri "https://ds.playboundless.com:8902/list-gameservers"    
}
catch {
    Write-Host "An error occurred while attemping to fetch the game server list $current_time"
    Write-Host $_
    Write-Host "Nothing to check because i'm receiving no data, exiting."
    exit
}



$count=0
foreach ($planet in $response){
if ($planet.info.players -gt 0 -or $true)
    {
        ("{0},{1},{2},{3}" -f $current_time, $planet.info.players, $planet.displayName,$planet.ipAddr)| Out-File -FilePath $PSScriptRoot/servers.csv -Append

    }
    $count +=1
$players += $planet.info.players
}

write-host ("{0},{1},{2}" -f $current_time,"Players $players", "Planets: $count")
 

At the time of this reply, 2023/19/17:01 UTC, there are currently Players 51 online across 313 public planets versus steam charts showing there being 48 players in the last 30 minutes.

Since this query is against the server itself this includes PSN players if any it appears.

6 Likes