Jump to content

Channel Switcher like WoM2


Recommended Posts

Image:

Spoiler

99276f0c347adaee75357530a16c8300.png

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 by Metin2 Dev
Core X - External 2 Internal
  • Love 1
Link to comment
Share on other sites

  • 5 months later...
  • 3 months later...
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

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now

Announcements



×
×
  • Create New...

Important Information

Terms of Use / Privacy Policy / Guidelines / We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.