Jump to content
Maintenance ×
×
×
  • Create New...
  • 0

Channel Switcher like WoM2


BackPlayer

Question

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

  • Love 1
Link to comment
Share on other sites

4 answers to this question

Recommended Posts

  • 0
  • Honorable Member
	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

 

  • Love 1
Link to comment
Share on other sites

  • 0
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

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.


  • Activity

    1. 0

      erorrs after update granny to 2.9

    2. 0

      Navicat Premium 16.1.1 x64

    3. 5

      problem Dargon Soul Changre Attribute

    4. 5

      problem Dargon Soul Changre Attribute

    5. 41

      Global Chat

    6. 5

      problem Dargon Soul Changre Attribute

    7. 2

      Startup Loading Window Library

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.