Skip to content

Commit 67e3630

Browse files
committed
Add East Asia Host Region
1 parent b5b7767 commit 67e3630

File tree

1 file changed

+11
-5
lines changed

1 file changed

+11
-5
lines changed

LuaMenu/widgets/chobby/components/battle/battle_list_window.lua

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1247,7 +1247,7 @@ end
12471247

12481248
function BattleListWindow:OpenHostWindow()
12491249
-- Enumerate all known clusters and their number of children
1250-
local regions = {'EU','US','AU'}
1250+
local regions = {'EU','US','AU','EA'}
12511251
local clusters = {
12521252
['Host[AU1]'] = {limit = 80, current = 0, online = false, priority = 0.2, region = 'AU', location = "Sydney"}, -- lower priority because its at contabo
12531253
['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()
12601260
['Host[EU6]'] = {limit = 120, current = 0, online = false, priority = 1.0, region = 'EU', location = "Amsterdam"},
12611261
['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
12621262

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"},
12641264
['Host[US2]'] = {limit = 60, current = 0, online = false, priority = 1.0, region = 'US', location = "Chicago"},
12651265
['Host[US3]'] = {limit = 80, current = 0, online = false, priority = 1.0, region = 'US', location = "St. Louis"},
12661266
['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
12671270
}
12681271

12691272
-- 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()
13951398
text = "",
13961399
objectOverrideFont = WG.Chobby.Configuration:GetFont(2),
13971400
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'}
13991402
objectOverrideFont = WG.Chobby.Configuration:GetFont(2),
14001403
selected = 1,
14011404
tooltip = "You may choose any region you wish, BAR is not sensitive to latency.",
@@ -1442,8 +1445,11 @@ function BattleListWindow:OpenHostWindow()
14421445
local function HostBattle()
14431446

14441447
--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)
14471453
local targetCluster, errmsg = TryGetRegion(requestedregion)
14481454

14491455
if userWantsPrivateBattle then

0 commit comments

Comments
 (0)