Jump to content

SamuR

Inactive Member
  • Posts

    24
  • Joined

  • Last visited

  • Days Won

    1
  • Feedback

    0%

Posts posted by SamuR

  1.  

     

     

    0228 15:28:21892 :: CPythonPlayer::SetItemData(window_type : 1, dwSlotIndex=228, itemIndex=14390) - Failed to item data
    
    0228 15:28:21892 :: CPythonPlayer::SetItemData(window_type : 1, dwSlotIndex=231, itemIndex=17479) - Failed to item data
    
    0228 15:28:22237 :: CMapOutdoor::Load - LoadMonsterAreaInfo ERROR
    0228 15:28:28867 :: Traceback (most recent call last):
    
    0228 15:28:28868 ::   File "networkModule.py", line 239, in SetGamePhase
    
    0228 15:28:28868 ::   File "game.py", line 106, in __init__
    
    0228 15:28:28868 ::   File "interfaceModule.py", line 292, in MakeInterface
    
    0228 15:28:28868 ::   File "interfaceModule.py", line 215, in __MakeDialogs
    
    0228 15:28:28868 ::   File "uiShop.py", line 82, in LoadDialog
    
    0228 15:28:28868 :: AttributeError
    0228 15:28:28868 :: : 
    0228 15:28:28868 :: 'ShopDialog' object has no attribute 'Close'
    0228 15:28:28868 :: 
    

    New error, please help me.

     

    Contact me in private, I'll help you.

     

    messages send.

     

    Done.

    • Metin2 Dev 1
    • Love 1
  2.  

    0228 15:28:21892 :: CPythonPlayer::SetItemData(window_type : 1, dwSlotIndex=228, itemIndex=14390) - Failed to item data
    
    0228 15:28:21892 :: CPythonPlayer::SetItemData(window_type : 1, dwSlotIndex=231, itemIndex=17479) - Failed to item data
    
    0228 15:28:22237 :: CMapOutdoor::Load - LoadMonsterAreaInfo ERROR
    0228 15:28:28867 :: Traceback (most recent call last):
    
    0228 15:28:28868 ::   File "networkModule.py", line 239, in SetGamePhase
    
    0228 15:28:28868 ::   File "game.py", line 106, in __init__
    
    0228 15:28:28868 ::   File "interfaceModule.py", line 292, in MakeInterface
    
    0228 15:28:28868 ::   File "interfaceModule.py", line 215, in __MakeDialogs
    
    0228 15:28:28868 ::   File "uiShop.py", line 82, in LoadDialog
    
    0228 15:28:28868 :: AttributeError
    0228 15:28:28868 :: : 
    0228 15:28:28868 :: 'ShopDialog' object has no attribute 'Close'
    0228 15:28:28868 :: 
    

    New error, please help me.

     

    Contact me in private, I'll help you.

    • Metin2 Dev 1
    • Love 1
  3.  

     

    I Have bug private shop Hel plz.

    loja2.png

    loja1.png

     

    Hi,

     

    I think that you make changes in "game.py" too. I said "NOTE: If you want Only NPC Shop's with 80 Items follow this guide, else if you want NPC Shop & Private Shop follow the Update Istruction.".

     

    Anyway, now open you "pack/root/game.py" and search:

    def StartShop(self, vid):if chr.IsNPC(vid):
      self.interface.OpenShopDialog(vid)
    else:
      self.interface.OpenShopDialog2(vid)

     

    Replace with:

    def StartShop(self, vid):
      self.interface.OpenShopDialog(vid)

     

    Enjoy! 

     

    Thanks bro.

    You're welcome! 

     

    Its work Thanks bro.

    You're welcome.

     

     

    Please help me.

    0227 20:43:24972 :: Traceback (most recent call last):
    
    0227 20:43:24972 ::   File "networkModule.py", line 237, in SetGamePhase
    
    0227 20:43:24972 ::   File "system.py", line 130, in __pack_import
    
    0227 20:43:24973 ::   File "
    0227 20:43:24973 :: game.py
    0227 20:43:24973 :: ", line 
    0227 20:43:24973 :: 956
    0227 20:43:24973 :: 
    
    0227 20:43:24973 ::     
    0227 20:43:24973 :: if chr.IsNPC(vid):
    
    0227 20:43:24973 ::     
    0227 20:43:24973 ::  
    0227 20:43:24973 :: ^
    
    0227 20:43:24973 :: IndentationError
    0227 20:43:24973 :: : 
    0227 20:43:24973 :: expected an indented block
    0227 20:43:24973 :: 
    

    "IndentationError". Check your [TAB]

    • Love 1
  4. I Have bug private shop Hel plz.

    loja2.png

    loja1.png

     

    Hi,

     

    I think that you make changes in "game.py" too. I said "NOTE: If you want Only NPC Shop's with 80 Items follow this guide, else if you want NPC Shop & Private Shop follow the Update Istruction.".

     

    Anyway, now open you "pack/root/game.py" and search:

    def StartShop(self, vid):if chr.IsNPC(vid):
      self.interface.OpenShopDialog(vid)
    else:
      self.interface.OpenShopDialog2(vid)

     

    Replace with:

    def StartShop(self, vid):
      self.interface.OpenShopDialog(vid)

     

    Enjoy! 

     

    Thanks bro.

    You're welcome! 

  5. Hello,
     
    I will explain how you can have 24 slots item in exchange/trade dialog.
     
    ServerSide
     
    Open your "game/exchange.cpp" in Source File and search:

    m_pGrid = M2_NEW CGrid(4,3);

     
    Replace with:

    m_pGrid = M2_NEW CGrid(6,4);

     
    Open "game/exchange.h" and search:

    EXCHANGE_ITEM_MAX_NUM  = 12

     
    Replace with:

    EXCHANGE_ITEM_MAX_NUM  = 24

     
    Now you can compile your Game File.
     
     
    ClientSide
     
    Open "UserInterface/PythonExchange.h" from your Binary Source files and search:

    EXCHANGE_ITEM_MAX_NUM = 12

     
    Replace with:

    EXCHANGE_ITEM_MAX_NUM = 24

     
    Now you can compile your Client Binary.
     
    Extract "pack/uiscript" from your Client and open "exchangedialog.py", replace all content with:

     

    Spoiler
    
    #ExchangeDialog.py ~ 24 Slot Item
    #Developed by Samuel
    import uiScriptLocale
     
    ROOT = "d:/ymir work/ui/game/"
     
    window = {
        "name" : "ExchangeDialog",
     
        "x" : 0,
        "y" : 0,
     
        "style" : ("movable", "float",),
     
        "width" : 400,
        "height" : 200,
     
        "children" :
        (
            {
                "name" : "board",
                "type" : "board",
                "style" : ("attach",),
     
                "x" : 0,
                "y" : 0,
     
                "width" : 400,
                "height" : 200,
     
                "children" :
                (
                    ## Title
                    {
                        "name" : "TitleBar",
                        "type" : "titlebar",
                        "style" : ("attach",),
     
                        "x" : 8,
                        "y" : 8,
     
                        "width" : 384,
                        "color" : "gray",
     
                        "children" :
                        (
                            { "name":"TitleName", "type":"text", "x":192, "y":3, "text":uiScriptLocale.EXCHANGE_TITLE, "text_horizontal_align":"center" },
                        ),
                    },
     
                    ## MiddleBar
                    {
                        "name" : "Middle_Bar",
                        "type" : "image",
     
                        "x" : 200,
                        "y" : 31,
     
                        "image" : ROOT + "windows/middlebar.sub",
                    },
     
                    ## Owner
                    {
                        "name" : "Owner",
                        "type" : "window",
     
                        "x" : 200,
                        "y" : 33,
     
                        "width" : 200,
                        "height" : 150,
     
                        "children" :
                        (
                            {
                                "name" : "Owner_Slot",
                                "type" : "grid_table",
     
                                "start_index" : 0,
     
                                "x" : 0,
                                "y" : 0,
     
                                "x_count" : 6,
                                "y_count" : 4,
                                "x_step" : 32,
                                "y_step" : 32,
                                "x_blank" : 0,
                                "y_blank" : 0,
     
                                "image" : "d:/ymir work/ui/public/slot_base.sub",
                            },
                            {
                                "name" : "Owner_Money",
                                "type" : "button",
     
                                "x" : 0,
                                "y" : 136,
     
                                #"image" : "d:/ymir work/ui/public/parameter_slot_02.sub",
     
                                "default_image" : "d:/ymir work/ui/public/parameter_slot_02.sub",
                                "over_image" : "d:/ymir work/ui/public/parameter_slot_02.sub",
                                "down_image" : "d:/ymir work/ui/public/parameter_slot_02.sub",
     
                                "children" :
                                (
                                    {
                                        "name" : "Owner_Money_Value",
                                        "type" : "text",
     
                                        "x" : 59,
                                        "y" : 2,
     
                                        "text" : "1234567",
     
                                        "text_horizontal_align" : "right",
                                    },
                                ),
                            },
                            {
                                "name" : "Owner_Accept_Light",
                                "type" : "button",
     
                                "x" : 62,
                                "y" : 135,
     
                                "default_image" : "d:/ymir work/ui/game/windows/accept_button_off.sub",
                                "over_image" : "d:/ymir work/ui/game/windows/accept_button_off.sub",
                                "down_image" : "d:/ymir work/ui/game/windows/accept_button_on.sub",
                            },
                            {
                                "name" : "Owner_Accept_Button",
                                "type" : "toggle_button",
     
                                "x" : 85,
                                "y" : 135,
     
                                "text" : uiScriptLocale.EXCHANGE_ACCEPT,
     
                                "default_image" : "d:/ymir work/ui/public/small_button_01.sub",
                                "over_image" : "d:/ymir work/ui/public/small_button_02.sub",
                                "down_image" : "d:/ymir work/ui/public/small_button_03.sub",
                            },
                        ),
                    },
     
                    ## Target
                    {
                        "name" : "Target",
                        "type" : "window",
     
                        "x" : 10,
                        "y" : 33,
     
                        "width" : 200,
                        "height" : 150,
     
                        "children" :
                        (
                            {
                                "name" : "Target_Slot",
                                "type" : "grid_table",
     
                                "start_index" : 0,
     
                                "x" : 0,
                                "y" : 0,
     
                                "x_count" : 6,
                                "y_count" : 4,
                                "x_step" : 32,
                                "y_step" : 32,
                                "x_blank" : 0,
                                "y_blank" : 0,
     
                                "image" : "d:/ymir work/ui/public/slot_base.sub",
                            },
                            {
                                "name" : "Target_Money",
                                "type" : "image",
     
                                "x" : 0,
                                "y" : 135,
     
                                "image" : "d:/ymir work/ui/public/parameter_slot_02.sub",
     
                                "children" :
                                (
                                    {
                                        "name" : "Target_Money_Value",
                                        "type" : "text",
     
                                        "x" : 59,
                                        "y" : 2,
     
                                        "text" : "1234567",
     
                                        "text_horizontal_align" : "right",
                                    },
                                ),
                            },
                            {
                                "name" : "Target_Accept_Light",
                                "type" : "button",
     
                                "x" : 62,
                                "y" : 135,
     
                                "default_image" : "d:/ymir work/ui/game/windows/accept_button_off.sub",
                                "over_image" : "d:/ymir work/ui/game/windows/accept_button_off.sub",
                                "down_image" : "d:/ymir work/ui/game/windows/accept_button_on.sub",
                            },
                        ),
                    },
                ),
            },
        ),
    }

     


    ExchangeDialog.py ~ 24 Slot Item

    Now you can compress your UiScript.

     

    Good work,

    Bye.

    • Metin2 Dev 5
    • Good 2
    • Love 20
  6. I found another problem

     

     

    game.py

     

    def StartShop(self, vid):

    if chr.IsNPC():

    self.interface.OpenShopDialog(vid)

    else:

    self.interface.OpenShopDialog2(vid)

     

    edited to

     

    def StartShop(self, vid):

    if chr.IsNPC(vid):

    self.interface.OpenShopDialog(vid)

    else:

    self.interface.OpenShopDialog2(vid)

     

    and delete (in class ShopDialog2)

     

    self.tooltipItem.HideToolTip()

     

    from

     

    def Close(self):

    self.OnCloseQuestionDialog()

    shop.Close()

    net.SendShopEndPacket()

    self.CancelShopping()

    self.tooltipItem.HideToolTip()

    self.Hide()

     

     

     

    Now work, thanks

     

    xBDSb.jpg

    Mmh first correction is Ok, maybe I copied another Client's File.

    But I said the second

    Anyway thank you!

  7.  

    In yout error case, the problem is Tab character. Check "shopdialog.py" file.

     

    And Private Shop ? When I make a Private Shop have a Slots problem

    Wow, thank you. I totally forgot it!

    Today I'll post the fix.

     

    Alredy fixed?

    Thanks

     

    Yes,

    I'll post the Fix this evening because now i'm going out.

     

    Item_Shop_Fix1.png

    • Love 1
  8. Now I have returned the original treatment I had and still

    Boot: shop table size error

    @SamuR f***k you. For bug core.

    He release something and you insult him... His tutorial is correct, I'm pretty sure. If you doing something wrong, it's your fault.

    And you still can reverse the tutorial (use original files).

    Thank you man

    • Love 1
  9. M2 Download Center

    This is the hidden content, please
    ( Internal )

    Hello,
     
    To extend NPC Shop to 80 Items follow these steps.
     
    ServerSide
     
    Open "common/length.h" and search:

    SHOP_HOST_ITEM_MAX_NUM = 40

     
    Replace with:

    SHOP_HOST_ITEM_MAX_NUM = 80

     
    In the same file search:

    SHOP_PRICELIST_MAX_NUM = 40

     
    Replace with:

    SHOP_PRICELIST_MAX_NUM = 80

     
    Now open "game/shop.cpp" and search:

    m_pGrid = M2_NEW CGrid(5, 9)

     
    Replace with:

    m_pGrid = M2_NEW CGrid(10, 9)

     
    Now open "game/shop_manager.cpp" and search:

    CGrid grid = CGrid(5, 9)

     
    Replace with:

    CGrid grid = CGrid(10, 9)

     
     
    Now compile Db File & Game File and ServerSide's steps complete.
     
     
     
    ClientSide
     

    NOTE: If you want Only NPC Shop's with 80 Items follow this guide, else if you want NPC Shop & Private Shop follow the Update Istruction.

    Extract "pack/uiscript" from your Client and open "shopdialog.py".
     
    Now reaplace all content with:


    Shopdialog.py ~ 80 Items
     
    Now create "shopdialog2.py" and insert this content:

    ShopDialog2 ~ 80 Items for Shop
     
    Ok, at this point you can compress your UiScript with the new file "shopdialog2.py".
     
    Extract "pack/root" from your Client and open "interfacemodule.py"
     
    Search this: 

    self.dlgShop = uiShop.ShopDialog()
    self.dlgShop.LoadDialog()
    self.dlgShop.Hide()

     
    After add:

    self.dlgShop2 = uiShop.ShopDialog2()
    self.dlgShop2.LoadDialog()
    self.dlgShop2.Hide()

     
    Same file, search this:

    def OpenShopDialog(self, vid):
      self.wndInventory.Show()
      self.wndInventory.SetTop()
      self.dlgShop.Open(vid)
      self.dlgShop.SetTop()

     
    After add:

    def OpenShopDialog2(self, vid):
      self.wndInventory.Show()
      self.wndInventory.SetTop()
      self.dlgShop2.Open(vid)
      self.dlgShop2.SetTop()

     
    Now open "game.py" and Search:

    def StartShop(self, vid):
      self.interface.OpenShopDialog(vid)

    Replace with:

    def StartShop(self, vid):
    if chr.IsNPC(vid):
      self.interface.OpenShopDialog(vid)
    else:
      self.interface.OpenShopDialog2(vid)

    Now open "uishop.py" and Search:

    def Close(self):
     self.OnCloseQuestionDialog()
     shop.Close()
     net.SendShopEndPacket()
     self.CancelShopping()
     self.tooltipItem.HideToolTip()
     self.Hide()

     
    Replace with:

    def Close(self):
     self.OnCloseQuestionDialog()
     shop.Close()
     net.SendShopEndPacket()
     self.CancelShopping()
     self.Hide()

     
    Same file, search:

    def OnUpdate(self):
    
    USE_SHOP_LIMIT_RANGE = 1000
    
    (x, y, z) = player.GetMainCharacterPosition()
    if abs(x - self.xShopStart) > USE_SHOP_LIMIT_RANGE or abs(y - self.yShopStart) > USE_SHOP_LIMIT_RANGE:
    self.Close()

     
    After add:
    UiShop.py ~ ShopDialog2
     

    Now you can compress "root" file.
     
     
    #Update [24-02-15]

    • Fixed Client Bug.
    • Changes in "shop_manager.cpp" added.

    #Update [26-02-15]

    • Added PrivateShop with 80 Items.

    NPC & PrivateShop with 80 Items ClientSide:
      
    Open "UserInterface/Packet.h" in you Binary Client Source and Search:

    SHOP_HOST_ITEM_MAX_NUM = 40

     
    Replace with:

    SHOP_HOST_ITEM_MAX_NUM = 80

     
    Now you can compile your Binary Source.
     
    Open your Client File and extract "pack/uiscript". Open "shopdialog.py" and replace all contentwith:
    Shopdialog.py ~ 80 Items
     
    Now open "privateshopbuilder.py" and replace all content with:
    PrivateShopBuilder ~ 80 Items
     
    Now you can compress your UiScript.
     
    Screen Private Shop:

    https://metin2.download/picture/r3F9504x09DVmF8K988YXgTtGTP6KMUj/.gif

    Et Voilà, we ended.
    https://metin2.download/picture/r3F9504x09DVmF8K988YXgTtGTP6KMUj/.gif
    Good work,
    Bye.

    • Metin2 Dev 57
    • kekw 2
    • Angry 1
    • Sad 1
    • Confused 1
    • Lmao 2
    • Good 27
    • muscle 1
    • Love 3
    • Love 59
×
×
  • 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.