Jump to content

NvL

Member
  • Posts

    39
  • Joined

  • Last visited

  • Feedback

    0%

Posts posted by NvL

  1. 4 hours ago, Abel(Tiger) said:

    Everyone has this "problem". The problem is in uiShop.py in the function def SellAttachedItem. 
     

    			if item.IsAntiFlag(item.ANTIFLAG_SELL):
    				popup = uiCommon.PopupDialog()
    				popup.SetText(localeInfo.SHOP_CANNOT_SELL_ITEM)
    				popup.SetAcceptEvent(self.__OnClosePopupDialog)
    				popup.Open()
    				self.popup = popup
    				return


    Add a mouseModule.mouseController.DeattachObject() before the popup appears like this:

     

    			if item.IsAntiFlag(item.ANTIFLAG_SELL):
    				mouseModule.mouseController.DeattachObject()
    
    				popup = uiCommon.PopupDialog()
    				popup.SetText(localeInfo.SHOP_CANNOT_SELL_ITEM)
    				popup.SetAcceptEvent(self.__OnClosePopupDialog)
    				popup.Open()
    				self.popup = popup
    				return

     

    solved, thanks

  2. 12 minutes ago, xP3NG3Rx said:

    Most probably after the popup window shows, the code returns before the mouseModule could have detached the icon instance.

      Hide contents
    	def onclickinshop(self, *args):
    		#some code here
    		if __this_is_not_allowed__(self, *args):
    			self.popup.setText("Acest obiect nu este de blabla")
    			return
    		#some code here too
    		mouseModule.mouseController.DeattachObject()

     

     

    Start looking in the game.py (OnMouseLeftButtonUp function)
    Also you can check with a simple debug message if the DeattachObject of the mouseModule runs or it doesn't, if it runs then the problem may be there inside the Detach function.

    can you help me ?

    uiinventory

    https://pastebin.com/BCDsifVd

    game

    https://pastebin.com/N57EBAVm

  3. 3 hours ago, NvL said:

    I solved emoji

     except this does not appear well

           self.sellPrice.SetText("|Ikey/yang|i"+localeInfo.NumberToDecimalStringQuickSell(price))

    |Ikey/yang|i

    I can sell only with npc open

  4. 5 hours ago, Chitra said:

    Sorry, I forgot to attach that function.

    The github has been updated with the missing file.

     

    	def NumberToDecimalStringQuickSell(n):
    		return "%s" % ('.'.join([i - 3 < 0 and str(n / 5)[:i] or str(n / 5)[i - 3:i] for i in range(len(str(n / 5)) % 3, len(str(n / 5)) + 1, 3) if i]))

     

    where does it come from?

    • Good 1
  5. 0309 00:19:18332 :: Traceback (most recent call last):

    0309 00:19:18332 ::   File "ui.py", line 1905, in OnUnselectItemSlot

    0309 00:19:18332 ::   File "ui.py", line 88, in __call__

    0309 00:19:18332 ::   File "ui.py", line 79, in __call__

    0309 00:19:18332 ::   File "uiInventory.py", line 2013, in UseItemSlot

    0309 00:19:18333 ::   File "interfaceModule.py", line 1859, in AppendSellSlot

    0309 00:19:18333 ::   File "interfaceModule.py", line 1849, in UpdateQuickSellPrice

    0309 00:19:18333 ::   File "uiQuickSell.py", line 117, in UpdatePrice

    0309 00:19:18333 :: AttributeError
    0309 00:19:18333 :: :
    0309 00:19:18333 :: 'module' object has no attribute 'NumberToDecimalStringQuickSell'

    X(

  6. compile resolved

     

    0308 23:34:15466 :: Traceback (most recent call last):

    0308 23:34:15466 ::   File "networkModule.py", line 247, in SetGamePhase

    0308 23:34:15466 ::   File "game.py", line 102, in __init__

    0308 23:34:15466 ::   File "interfaceModule.py", line 355, in MakeInterface

    0308 23:34:15467 ::   File "interfaceModule.py", line 141, in __MakeQuickSell

    0308 23:34:15467 ::   File "uiQuickSell.py", line 24, in __init__

    0308 23:34:15467 ::   File "uiQuickSell.py", line 87, in BoardInterface

    0308 23:34:15467 :: TypeError
    0308 23:34:15467 :: :
    0308 23:34:15467 :: MakeTextLine() takes exactly 1 argument (5 given)
    0308 23:34:15467 ::

    interfacemodule.py

        if app.QUICK_SELL_SYSTEM:
            def __MakeQuickSell(self):
                self.wndQuickSell = uiQuickSell.QuickSell()
                self.wndQuickSell.Hide()

     

    X(

  7. :(((((((

    Severity    Code    Description    Project    File    Line    Suppression State    Details
    Error    C3861    'PyTuple_GetUnsignedLong': identifier not found    EterPythonLib    D:\project\Client\binary\source\EterPythonLib\PythonWindowManagerModule.cpp    2365        


  8. 0308 21:55:14716 ::   File "uiInventory.py", line 2129, in RefreshQuickSell

    0308 21:55:14716 :: AttributeError
    0308 21:55:14716 :: :
    0308 21:55:14716 :: 'GridSlotWindow' object has no attribute 'EnableSlotCoverImage'

    uiinventory.py

        if app.QUICK_SELL_SYSTEM:
            def RefreshQuickSell(self):
                for k in xrange(player.INVENTORY_PAGE_SIZE * 5):
                    slotNumber = self.__InventoryLocalSlotPosToGlobalSlotPos(k)
                    if slotNumber in constInfo.QUICK_SELL_ITEMS:
                        self.wndItem.SetSlotCoverImage(k, "inventory/selected_icon.tga")
                    else:
                        self.wndItem.EnableSlotCoverImage(k, False)

  9. sysser

     


    0308 20:29:15244 ::   File "uiQuickSell.py", line 75, in BoardInterface

    0308 20:29:15244 :: AttributeError
    0308 20:29:15244 :: :
    0308 20:29:15244 :: 'module' object has no attribute 'MakeBoardWithTitleBar'

     

        def BoardInterface(self):

            self.Board = ui.MakeBoardWithTitleBar(self, "not_pick", localeInfo.QUICK_SELL_TITLE_NAME,ui.__mem_func__(self.Close), 170, 100)

    On 3/5/2024 at 12:56 AM, tw1x1 said:

     

     

  10. 8 minutes ago, Vaynz said:
    Search 		if not uiGameOption.MOBILE:
    			width = self.GetWidth()
    			height = self.GetHeight()
    			self.addFriendButton.SetPosition(-60, 30)
    			self.whisperButton.SetPosition(-20, 30)
    			self.removeButton.SetPosition(20, 30)
    			self.guildButton.SetPosition(60, 30)
    
    Change with
    
    		width = self.GetWidth()
    		height = self.GetHeight()
    		self.addFriendButton.SetPosition(-60, 30)
    		self.whisperButton.SetPosition(-20, 30)
    		self.removeButton.SetPosition(20, 30)
    		self.guildButton.SetPosition(60, 30)

    Care to tabs

    solved, thanks

  11. 6 minutes ago, Vaynz said:

    0818 15:59:16482 :: Traceback (most recent call last):

    0818 15:59:16482 ::   File "ui.py", line 1409, in CallEvent

    0818 15:59:16482 ::   File "ui.py", line 90, in __call__

    0818 15:59:16483 ::   File "ui.py", line 72, in __call__

    0818 15:59:16483 ::   File "interfaceModule.py", line 1266, in ToggleMessenger

    0818 15:59:16483 ::   File "uiMessenger.py", line 349, in Show

    0818 15:59:16483 ::   File "uiMessenger.py", line 378, in __LoadWindow

    0818 15:59:16483 :: AttributeError
    0818 15:59:16483 :: :
    0818 15:59:16483 :: 'module' object has no attribute 'MOBILE'
    0818 15:59:16483 ::

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