Jump to content

Shaggyxdd

Member
  • Posts

    9
  • Joined

  • Last visited

  • Feedback

    0%

Posts posted by Shaggyxdd

  1. 37 minutes ago, livetime97 said:

    Thx For Release  I Have a Problem 😄 Pls Help me

     

    0905 18:30:12071 :: Traceback (most recent call last):

    0905 18:30:12071 ::   File "networkModule.py", line 247, in SetGamePhase

    0905 18:30:12071 ::   File "game.py", line 89, in __init__

    0905 18:30:12071 ::   File "interfaceModule.py", line 317, in MakeInterface

    0905 18:30:12072 ::   File "interfaceModule.py", line 123, in __MakeChatWindow

    0905 18:30:12072 ::   File "uiChat.py", line 968, in __init__

    0905 18:30:12072 ::   File "uiChat.py", line 164, in __init__

    0905 18:30:12072 ::   File "uiChat.py", line 199, in __LoadWindow

    0905 18:30:12072 ::   File "uiChat.py", line 249, in __LoadChattingOptionFile

    0905 18:30:12072 ::   File "Lib\copy_reg.py", line 70, in _reduce_ex

    0905 18:30:12073 :: TypeError
    0905 18:30:12073 :: : 
    0905 18:30:12073 :: can't pickle file objects
    0905 18:30:12073 :: 

    uichat, replace:

     

            def __LoadChattingOptionFile(self):
                load = False
                try:
                    fileName = self.__GetChattingFile()
                    file = open(fileName)
                    try:
                        load = True
                        self.tmpCheckBoxSettingDict = cPickle.load(file)
                    except (ValueError, EOFError, cPickle.PicklingError, cPickle.UnpicklingError): pass
                except IOError: pass

                for key in xrange(1, len(OPTION_CHECKBOX_MODE) + 1):
                    if not load:
                        # Default, always enable and add to dict.
                        value = True
                        self.tmpCheckBoxSettingDict[key] = True
                    else:
                        value = self.tmpCheckBoxSettingDict[key]
                    self.checkBoxSlotDict[key].SetCheck(value)

                if not load:
                    self.__SaveDefault()

    • Metin2 Dev 2
  2. 1 hour ago, Owsap said:
    ''' 1. @ root/ui.py '''
    # Search @ class Button
    	def SetText(self, text, height = 4):
    
    # Add above
    	def SetTextAddPos(self, text, x_add = 0, y_add = 0, height = 4):
    		if not self.ButtonText:
    			textLine = TextLine()
    			textLine.SetParent(self)
    			textLine.SetPosition(self.GetWidth() / 2 + x_add, self.GetHeight() / 2 + y_add)
    			textLine.SetVerticalAlignCenter()
    			textLine.SetHorizontalAlignCenter()
    			textLine.Show()
    			self.ButtonText = textLine
    		self.ButtonText.SetText(text)

    Repository updated, check the updated links and if there is anything missing please let me know.

    copy_reg.py?

     

    0831 22:22:32364 :: Traceback (most recent call last):

    0831 22:22:32364 ::   File "networkModule.py", line 233, in SetGamePhase

    0831 22:22:32365 ::   File "game.py", line 121, in __init__

    0831 22:22:32365 ::   File "interfaceModule.py", line 379, in MakeInterface

    0831 22:22:32365 ::   File "interfaceModule.py", line 138, in __MakeChatWindow

    0831 22:22:32365 ::   File "uiChat.py", line 952, in __init__

    0831 22:22:32365 ::   File "uiChat.py", line 173, in __init__

    0831 22:22:32365 ::   File "uiChat.py", line 208, in __LoadWindow

    0831 22:22:32366 ::   File "uiChat.py", line 258, in __LoadChattingOptionFile

    0831 22:22:32366 ::   File "Lib\copy_reg.py", line 70, in _reduce_ex

    0831 22:22:32367 :: TypeError
    0831 22:22:32367 :: :
    0831 22:22:32367 :: can't pickle file objects
    0831 22:22:32367 ::

    • Think 3
×
×
  • 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.