BackPlayer 55 Posted April 12, 2017 Share Posted April 12, 2017 (edited) Image: Spoiler Client Sysser: Spoiler 0412 15:36:21192 :: Traceback (most recent call last): 0412 15:36:21192 :: File "networkModule.py", line 239, in SetGamePhase 0412 15:36:21192 :: File "game.py", line 106, in __init__ 0412 15:36:21192 :: File "interfaceModule.py", line 340, in MakeInterface 0412 15:36:21192 :: File "interfaceModule.py", line 254, in __MakeDialogs 0412 15:36:21192 :: File "uiSystem.py", line 24, in __init__ 0412 15:36:21192 :: File "uiSystem.py", line 32, in __Initialize 0412 15:36:21192 :: File "uiChannel.py", line 17, in __init__ 0412 15:36:21192 :: File "uiChannel.py", line 132, in __Fill_Up_ChannelList 0412 15:36:21192 :: File "uiChannel.py", line 137, in __RequestServerStateList 0412 15:36:21193 :: File "uiChannel.py", line 129, in __GetServerID 0412 15:36:21193 :: UnboundLocalError 0412 15:36:21193 :: : 0412 15:36:21193 :: local variable 'serverID' referenced before assignment 0412 15:36:21193 :: uiChannel.py: https://pastebin.com/HtGGi5nk ServerInfo.py: https://pastebin.com/Rk2yMFND Edited August 20, 2022 by Metin2 Dev Core X - External 2 Internal 1 Link to comment Share on other sites More sharing options...
Premium North 1175 Posted April 12, 2017 Premium Share Posted April 12, 2017 use pastebin 1 Link to comment Share on other sites More sharing options...
Honorable Member xP3NG3Rx 19682 Posted April 12, 2017 Honorable Member Share Posted April 12, 2017 def __GetServerID(self): regionID = self.__GetRegionID() serverID = 0 for i in serverInfo.REGION_DICT[regionID].keys(): if serverInfo.REGION_DICT[regionID][i]["name"] == net.GetServerInfo().split(",")[0]: serverID = int(i) break return serverID 1 Link to comment Share on other sites More sharing options...
PeaceMaker 121 Posted September 21, 2017 Share Posted September 21, 2017 did anyone manage to fix this ? Link to comment Share on other sites More sharing options...
Yasin95 0 Posted January 6, 2018 Share Posted January 6, 2018 On 12.04.2017 at 6:39 PM, xP3NG3Rx said: def __GetServerID(self): regionID = self.__GetRegionID() serverID = 0 for i in serverInfo.REGION_DICT[regionID].keys(): if serverInfo.REGION_DICT[regionID][i]["name"] == net.GetServerInfo().split(",")[0]: serverID = int(i) break return serverID Thanks man serverID = 0 to serverID = 1 replace. 0 = Channel 1 causes problems. 1 = It works fine. Link to comment Share on other sites More sharing options...
Recommended Posts
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now