-
Posts
24 -
Joined
-
Last visited
-
Days Won
1 -
Feedback
0%
Content Type
Forums
Store
Third Party - Providers Directory
Feature Plan
Release Notes
Docs
Events
Posts posted by SamuR
-
-
Thanks bro. useful
Thank you SamuR.
You're welcome
-
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.
-
1
-
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.
-
1
-
1
-
-
I Have bug private shop Hel plz.
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]
-
1
-
-
I Have bug private shop Hel plz.
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!
-
Haha thanks, useful
You are welcome
-
1
-
-
try this.
-
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.
-
5
-
2
-
20
-
-
#Update [26-02-15]
- Added PrivateShop with 80 Items.
-
bin -> packet.h
SHOP_HOST_ITEM_MAX_NUM = 40,
to
SHOP_HOST_ITEM_MAX_NUM = 80,
I think bin -> lenght.h
Edit:
Ok, you mean in Client Binary
-
No problem!Completed (Private shop)
Thanks for idea
Today I'll update this post with this changes too
-
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
Mmh first correction is Ok, maybe I copied another Client's File.
But I said the second
Anyway thank you!
-
#Update[24-02-15]
- Fixed Client Bug.
- Changes in "shop_manager.cpp" added.
Thanks all for your help, i forgot some String and Bug.
-
1
-
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
Today I'll post the fix.
Alredy fixed?
Thanks
Yes,
I'll post the Fix this evening because now i'm going out.
-
1
-
-
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
-
1
-
-
Now I have returned the original treatment I had and still
Boot: shop table size error
@SamuR f***k you. For bug core.
I'll give you my Skype contact and I'll help you. I'm out now, when I come back home I'll fix your error.
-
But i use mainline_released and db novaline.
Then you should make changes in novaline too and compile db.
-
It works fine. Have you compiled Game File and Db File after changes?Samur, ty for bug core..
Boot: shop table size error
-
In yout error case, the problem is Tab character. Check "shopdialog.py" file.
Wow, thank you. I totally forgot it!And Private Shop ? When I make a Private Shop have a Slots problem
Today I'll post the fix.
-
I've done it by myself...
This is right, I have just explained it better.
-
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.-
57
-
2
-
1
-
1
-
1
-
2
-
27
-
1
-
3
-
59
-
If you still need that I can make you a small tutorial.
-
Hi,
The problem is describe in your DB's Log. (Process: FDWATCH: peer null in event: ).
I saw the Source Files for understand the problem and I saw that this error appears in several cases.
In the past I had this error too and i solved it by changing locale with a clean version.
Test and let me know!
New exchange problem
in Community Support - Questions & Answers
Posted
You should increase first "Width" parameter