@@ -1247,7 +1247,7 @@ end
1247
1247
1248
1248
function BattleListWindow :OpenHostWindow ()
1249
1249
-- Enumerate all known clusters and their number of children
1250
- local regions = {' EU' ,' US' ,' AU' }
1250
+ local regions = {' EU' ,' US' ,' AU' , ' EA ' }
1251
1251
local clusters = {
1252
1252
[' Host[AU1]' ] = {limit = 80 , current = 0 , online = false , priority = 0.2 , region = ' AU' , location = " Sydney" }, -- lower priority because its at contabo
1253
1253
[' Host[AU2]' ] = {limit = 40 , current = 0 , online = false , priority = 1.0 , region = ' AU' , location = " Sydney" }, -- higher priority OVH host
@@ -1260,10 +1260,13 @@ function BattleListWindow:OpenHostWindow()
1260
1260
[' Host[EU6]' ] = {limit = 120 , current = 0 , online = false , priority = 1.0 , region = ' EU' , location = " Amsterdam" },
1261
1261
[' Host[EU7]' ] = {limit = 200 , current = 0 , online = false , priority = 1.0 , region = ' EU' , location = " Amsterdam" }, -- This runs on integration server, but has plenty of capacity
1262
1262
1263
- [' Host[US1]' ] = {limit = 120 , current = 0 , online = false , priority = 1.0 , region = ' US' , location = " Virginia" },
1263
+ [' Host[US1]' ] = {limit = 120 , current = 0 , online = false , priority = 1.0 , region = ' US' , location = " Virginia" },
1264
1264
[' Host[US2]' ] = {limit = 60 , current = 0 , online = false , priority = 1.0 , region = ' US' , location = " Chicago" },
1265
1265
[' Host[US3]' ] = {limit = 80 , current = 0 , online = false , priority = 1.0 , region = ' US' , location = " St. Louis" },
1266
1266
[' Host[US4]' ] = {limit = 150 , current = 0 , online = false , priority = 0.3 , region = ' US' , location = " Seattle" }, -- Seems to see more cpu steal than the rest
1267
+
1268
+
1269
+ [' Host[EA1]' ] = {limit = 100 , current = 0 , online = false , priority = 1.0 , region = ' EA' , location = " HK" }, -- Seems to see more cpu steal than the rest
1267
1270
}
1268
1271
1269
1272
-- Try to check for their engine version too. It is unlikely that a cluster has multiple engines (except during a switch, so scratch that)
@@ -1395,7 +1398,7 @@ function BattleListWindow:OpenHostWindow()
1395
1398
text = " " ,
1396
1399
objectOverrideFont = WG .Chobby .Configuration :GetFont (2 ),
1397
1400
text = " " ,
1398
- items = regions , -- Configuration.hostRegions, --self.hostRegions = {"DE","EU","EU2","US","AU" }
1401
+ items = { ' Europe ' , ' North America ' , ' Australia ' , ' East Asia ' }, -- {'EU','US','AU','EA' }
1399
1402
objectOverrideFont = WG .Chobby .Configuration :GetFont (2 ),
1400
1403
selected = 1 ,
1401
1404
tooltip = " You may choose any region you wish, BAR is not sensitive to latency." ,
@@ -1442,8 +1445,11 @@ function BattleListWindow:OpenHostWindow()
1442
1445
local function HostBattle ()
1443
1446
1444
1447
-- Attempting to host game at
1445
- local requestedregion = typeCombo .items [typeCombo .selected ] --- self.hostRegions = {"DE","EU","EU2","US","AU"}
1446
- -- Spring.Echo("Looking for empty host in region", requestedregion)
1448
+ -- local requestedregion = typeCombo.items[typeCombo.selected] ---self.hostRegions = {"DE","EU","EU2","US","AU"}
1449
+ local regionStrings = {' Europe' , ' North America' , ' Australia' , ' East Asia' } -- {'EU','US','AU','EA'}
1450
+ local regions = {' EU' ,' US' ,' AU' ,' EA' }
1451
+ local requestedregion = regions [typeCombo .selected ]
1452
+ Spring .Echo (" Looking for empty host in region" , requestedregion )
1447
1453
local targetCluster , errmsg = TryGetRegion (requestedregion )
1448
1454
1449
1455
if userWantsPrivateBattle then
0 commit comments