Jump to content

OnlyRipper

Inactive Member
  • Posts

    47
  • Joined

  • Last visited

  • Feedback

    0%

Posts posted by OnlyRipper

  1. Hello everyone..

    I have this problem when i start the game.
    I just verified 3 different client and svf that have already implemented the lycan.

    I've tryed to implement it on a clean source too but i get this error.

    In local name it's already declared

     

    syserr:

     

    1018 17:31:09123 :: 
    playerSettingModule.py(line:1624) LoadGameData
    playerSettingModule.py(line:370) __InitData

    LoadGameData - <type 'exceptions.NameError'>:global name 'WOLFMAN' is not defined

    1018 17:31:09123 :: ============================================================================================================
    1018 17:31:09123 :: Abort!!!!


     

  2. I still have one single problem left about this system.I know i've driven WLsj24 crazy with all my questions...

    Link to his system: 

    Almost eveyrhting is working fine,but when i buy something from an opened shop it take the Won from the Buyer,but the seller doesn't recieve them.

    I've been doing and redoing this tutorial for 2 weeks(the old one and the new one).

    This is the only problme i have left and i don't know where to look for this problem.I don't have errors in any log(client + server).I'm blind at this point.

    I've rechecked every single cpp,h,py file...

    Can someone give me another idea where to look for this?

    I don't have implemented offline shop at all.It's just the normal shop.

    Exchange works.

    Dropping & Picking works.

    Buying and selling works 50%. ^^ 

     

  3. Hi again! Could you please attach these files files? I want to compare them,maybe it's something that's missing from my clean source.

    uiprivateshopbuilder.py

    uishop.py

    -Client src

    PythonShop.cpp

    PythonShop.h

    -Server src

    shop.cpp

    shop.h

    shop_manager.cpp

    shop_manager.h

    The problem with buying with Won only or Yang and Won still persits....

  4. CH syslog:

    Spoiler

    Sep 16 00:47:02 :: OnClick OnlyRipper[vnum 30000 ServerUniqueID 25621, pid 2824] by Test001
    Sep 16 00:47:02 :: reallocating buffer to 8192, current 1024
    Sep 16 00:47:10 :: Shop::Buy : name Test001 pos 2
    Sep 16 00:47:10 :: SHOP: BUY: name Test001 Costum Vanator Dragoni+9(x 1):30001389 price 1
    Sep 16 00:47:10 :: SAVE: Test001 476052x953756
    Sep 16 00:47:14 :: GLOBAL_TIME: Sep 16 00:47:14 time_gap 0
    Sep 16 00:47:16 :: Shop::Buy : name Test001 pos 1
    Sep 16 00:47:16 :: SHOP: BUY: name Test001 Sabie Inscriptionata +0(x 1):30001367 price 1
    Sep 16 00:47:16 :: SAVE: Test001 476052x953756
    Sep 16 00:47:20 :: Shop::Buy : name Test001 pos 0
    Sep 16 00:47:25 :: SHOP: END: Test001
    Sep 16 00:47:27 :: COMMAND: Test001: quit
    SYSERR: Sep 16 00:47:27 :: locale_find: LOCALE_ERROR: "게임을 종료 합니다. 잠시만 기다리세요.";
    Sep 16 00:47:30 :: COMMAND: OnlyRipper: close_shop
    Sep 16 00:47:30 :: POLYMORPH: OnlyRipper race 0 
    Sep 16 00:47:33 :: COMMAND: OnlyRipper: quit

    CH syserr:

    Spoiler

    SYSERR: Sep 16 00:44:18 :: socket_connect: HOST localhost:11000, could not connect.
    SYSERR: Sep 16 00:44:19 :: LoadPackageCryptInfo: [PackageCryptInfo] Failed to load package/cshybridcrypt_metin2_patch_sg1.dat
    SYSERR: Sep 16 00:44:21 :: socket_connect: HOST localhost:11000, could not connect.
    SYSERR: Sep 16 00:45:05 :: heart_idle: losing 39 seconds. (lag occured)

    I've put 3 items:

    1) 1 Won

    2) 1 Won & 1 Yang

    3) 1 Yang

    I could buy only the last 2 of them.The first one didn't want to buy and told me Insufficient Yang.

    In the syslog it will appear only the 2 and 3 item without marking the difference in Unit Type:

    Sep 16 00:47:10 :: SHOP: BUY: name Test001 Costum Vanator Dragoni+9(x 1):30001389 price 1

    Sep 16 00:47:16 :: SHOP: BUY: name Test001 Sabie Inscriptionata +0(x 1):30001367 price 1

    I think my game is the problem.It can't make the difference.Even i've remade the entire tutorial....

    Exchange with Won - OK

    Exchange with Won & Yang - OK

    Droping Won - OK

    Droping Won from monsters - OK

    Max limit 999 - OK

    Max limit when trade - OK

     

  5. Regarding Server source:

    In your tutorial in db/ClientManagerPlayer.cpp following this step:

    /*Search in:
    void CClientManager::QUERY_PLAYER_LOAD(CPeer * peer, DWORD dwHandle, TPlayerLoadPacket * packet)

    This:
                                                    "horse_skill_point "

    Add after:
    */
    #ifdef ENABLE_CHEQUE_SYSTEM
                                                    ", cheque "
    #endif

     

    The only place where i have found what you told us to find is this structure inside the void CClientManager::QUERY_PLAYER_LOAD(...):

    snprintf(queryStr, sizeof(queryStr),
                    "SELECT "
                    "id,name,job,voice,dir,x,y,z,map_index,exit_x,exit_y,exit_map_index,hp,mp,stamina,random_hp,random_sp,playtime,"
                    "gold,level,level_step,st,ht,dx,iq,exp,"
                    "stat_point,skill_point,sub_skill_point,stat_reset_count,part_base,part_hair,"
                    "skill_level,quickslot,skill_group,alignment,mobile,horse_level,horse_riding,horse_hp,horse_hp_droptime,horse_stamina,"
                    "UNIX_TIMESTAMP(NOW())-UNIX_TIMESTAMP(last_play),horse_skill_point,cheque FROM player%s WHERE id=%d",
                    GetTablePostfix(), packet->player_id);

    I'm saying this because you might using a new layout of the same function or the implementation for offlineshop which i don't have.

     

     

    The problem with Buying with Cheque still persists....I don't know what else to do.I've removed first tutorial then i took this one from scratch.Still can't buy with Cheque only or Cheque+Yang.

    If i buy with Cheque only it tells me Insufficient Yang.
    If i buy with Cheque + Yang it will take only Yang.

    ...........

  6. Hello! Sorry for my delay.I just want to tell you some minor things that i've noticed during compilnig.I don't want you think i'm acting smart in front of you or something childish like that.I just want to help you like you helped me.

    In your github tutorial: ->>> PythonShop.h

    	/*--------------------------------------------------*/
    /*Search:
            void AddPrivateShopItemStock(TItemPos ItemPos, BYTE byDisplayPos, DWORD dwPrice);
    	Replace with:
    */
    #ifdef ENABLE_CHEQUE_SYSTEM
            void AddPrivateShopItemStock(TItemPos ItemPos, BYTE dwDisplayPos, DWORD dwPrice, DWORD);
    #else
            void AddPrivateShopItemStock(TItemPos ItemPos, BYTE byDisplayPos, DWORD dwPrice);
    #endif
    /*--------------------------------------------------*/
    /*Search:
        int GetPrivateShopItemPrice(TItemPos ItemPos);
    	Replace with:  ->>>  Add After:
    */
    #ifdef ENABLE_CHEQUE_SYSTEM
            int GetPrivateShopItemCheque(TItemPos ItemPos);
    #endif
    /*--------------------------------------------------*/
    	

     

    There 2nd step should be Add after.Otherwise it won't compile.It will return:

    GetPrivateShopItemPrice isn't part of : class CPythonShop

    Now i'm starting with server compiling proceess.I will come back with additionla informatios if it's neccessary.

    • Love 1
  7. Acum 3 ore, WLsj24 a spus:

    This is the hidden content, please

        - The tutorial was remade
        - Max won 999 (like official)
        - Added support for OfflineShop(great)

    Thank you so much!

    I will remake it tomorrow because now it's 01:30 AM and i'm tired.I want to follow your tutorial without making silly mistakes.

    • Love 1
  8. Chiar acum, WLsj24 a spus:

    Tomorrow I will review the guide, maybe I forgot something about normal shops, since I made the guide thinking about offline shops

    Ok.Thank you for doing this!

    I literally checked everything line by line to make sure everything is as you did.

    I've also check unmodified svf regaring normal shop.They are the same without adding Cheque system.That's why i'm confused.At first i tought it's because a new type ITEM_CHEQUE...maybe this is the reason...i'm not sure.

  9. Acum 1 oră, WLsj24 a spus:
      Reafișează conținuturi ascunse

     

    for fix this:
    https://metin2.download/picture/1o6qBA6xdSYwRhJC6yQ84R3rWJ03k92S/.jpg

    dont remove cheque, just hide

    after this:
                    self.wndChequeSlot = self.GetChild("Cheque_Slot")
    add this:
     

    
    				self.wndMoneyIcon = self.GetChild("Money_Icon")
    				self.wndChequeIcon = self.GetChild("Cheque_Icon")
    				self.wndMoneyIcon.Hide()
    				self.wndMoneySlot.Hide()
    				self.wndChequeIcon.Hide()
    				self.wndChequeSlot.Hide()
    
    				## 높이 조절
    				height = self.GetHeight()
    				width = self.GetWidth()
    				self.SetSize(width, height - 22)
    				self.GetChild("board").SetSize(width, height - 22)

     

    Thank you for your support!

    Do you have any suggestion about the shop problem?

    Everything is where it should be...I...checked everything.done.I've implemented on a clean svf too,and still the same problem.

  10. La 10.09.2019 la 20:09, WLsj24 a spus:

    Sorry, the "Owner_Cheque_Icon" is only for "ENABLE_NEW_EXCHANGE_WINDOW", comment it in uiexchange.py if you dont have that system.

     

    "ITEM_CHEQUE" is not recognized in your source, check item_length.h, itemdata.h, protoreader.cpp, itemcsvreader.cpp. Maybe some of those files are not reading the macro define, therefore it is as if it were disabled. Remember to include the file where the macro define is defined --> "ENABLE_CHEQUE_SYSTEM", could be CommonDefines.h or service.h for server and Locale_Inc.h for client

    Sorry to disturb you again.Please believe me when i say that i've rechecked the entire tutorial line by line in the last days...i don't know what i'm doing wrong.

    I still have two problems left:

    1. I don't have implemented offline shop.It's normal shop.

    If the item price is only won i can't buy it no matter how much low the price of Won is.It tells me i don't have enough Yang.

    If the item price is with Won and Yang it will buy it with Yang only and it will ignore the Won price.

    2. Visual problem: https://metin2.download/picture/1o6qBA6xdSYwRhJC6yQ84R3rWJ03k92S/.jpg

    If i remove the cheque from inventory window...i get the following error(so removing it isn't a solution):

    	0912 19:11:24542 :: 
    uiInventory.py(line:328) __LoadWindow
    ui.py(line:3227) GetChild
    	InventoryWindow.LoadWindow.BindObject - <type 'exceptions.KeyError'>:'Cheque'
    	0912 19:11:24542 :: ============================================================================================================
    0912 19:11:24542 :: Abort!!!!
    	

    I've also implemented your Expanded Taskbar.It works perfect without errors.

    Could you please help me?! I don't know what else to do.In the last week i've redone and rechecked everything.I just don't know what else to check.....

    Exchange is working.

    Droping the item and picking  is working.

    Quest is working.

     

  11. Ok I've managed to solve the upper problems.It was just a #define problem and i've removed the parts you told me about new exchange window.
    Still i come with some not working stuff:

    If an item is in shop-> with 1 Won and 1 Yang i can buy it but won't take won,i can literally buy it with Yang only

                                        -> only with Won it says: Insufficient Yang.

    And the following visual problem.

    https://metin2.download/picture/qP4UUFyMGmSJl91GwF0BSwQVD9g39Qzk/.jpg

     

    If i remove the 'cheque' part from inventorywindow i get an error and the client crash.

     

     

    • Metin2 Dev 1
  12. Acum 2 ore, WLsj24 a spus:

    Sorry, the "Owner_Cheque_Icon" is only for "ENABLE_NEW_EXCHANGE_WINDOW", comment it in uiexchange.py if you dont have that system.

     

    "ITEM_CHEQUE" is not recognized in your source, check item_length.h, itemdata.h, protoreader.cpp, itemcsvreader.cpp. Maybe some of those files are not reading the macro define, therefore it is as if it were disabled. Remember to include the file where the macro define is defined --> "ENABLE_CHEQUE_SYSTEM", could be CommonDefines.h or service.h for server and Locale_Inc.h for client

     

    It doesn't show in the extended bar,nor the Icon for chque,or the space where the amount should be.

    When i try to exchange appears only the text for Won nothing more.When i want to insert i can insert only the yang.

    I've done again at least 5 times the entire tutorial line by line.

    I've solved the problem with ITEM_CHEQUE.

    If i modify the amount through navicat in-game i can't see it.I've alost tryed to give myself 1 cheque or 2,but when i check it the set command doesn't do anything...

     

    Here's the only error in the chs:

    	SYSERR: Sep 11 00:11:11 :: RunState: LUA_ERROR: [string "cheque_system"]:52: attempt to call field `get_cheque' (a nil value)
    SYSERR: Sep 11 00:11:11 :: WriteRunningStateToSyserr: LUA_ERROR: quest cheque_system.start click
    SYSERR: Sep 11 00:11:57 :: Process: SEQUENCE 41aa2c00 mismatch 0xaf != 0x64 header 254
    SYSERR: Sep 11 00:11:57 :: Process: SEQUENCE_LOG [UNKNOWN]-------------
        [254 : 0xaf]
    	

  13. SYSERR: Sep 10 06:05:13 :: Start: TABLE_POSTFIX not configured use default
    SYSERR: Sep 10 06:05:19 :: Set_Proto_Item_Table: ItemProto Reading Failed : Invalid value. (index: 2, col: 2, value: ITEM_CHEQUE)
    SYSERR: Sep 10 06:05:19 :: Set_Proto_Item_Table:     0 ~ 2 Values: 80020,0,

     

    I've updated every single line...checked and rechecked....and rechecked and rechecked everything.Updated dump proto.Now what's happening.....very frustrating

    DB crush if i have this line on my item_proto.txt.

    If i remove it i can't connect.....

  14. -----------------------------------
    Picture with error:
    https://metin2.download/picture/PMZ46s0QA8x5QHg7Ma2e78NY02kJE8Qv/.png
    -----------------------------------
    Picture without error:
    https://metin2.download/picture/gyOV4IAx3z7Og95GMB81j8TJRYDF1690/.png
    -----------------------------------

    Can someone please explain me why that 

    #ifdef isn't working like a normal if ?

    Why just changing their position leads to a succesful compile proccess...I just can't figure it out

     

    I've also aligned the #ifded & #endif under the pktab-> and it's still the same error.

  15. Acum 4 ore, Sonitex a spus:

    You have defined a variable pointing to <Owner_Cheque_Icon> at uiExchange.py at line 43 in the LoadDialog function.

    It should be loaded from exchangedialog.py or from exchangedialog_new.py as I can see from the tutorial files, but your problem probably lays at exchangedialog.py which was not updated in the tutorial.

    This is the official code, you will need to change some names but should work just fine ;) 

    
    import uiScriptLocale
    import localeInfo
    import app
    
    ROOT = "d:/ymir work/ui/game/"
    
    if app.ENABLE_CHEQUE_SYSTEM :
    	BOARD_WIDTH = 290
    	BOARD_HEIGHT = 189
    	window = {
    		"name" : "ExchangeDialog",
    
    		"x" : 0,
    		"y" : 0,
    
    		"style" : ("movable", "float",),
    
    		"width" : BOARD_WIDTH,
    		"height" : BOARD_HEIGHT,
    
    		"children" :
    		(
    			{
    				"name" : "board",
    				"type" : "board",
    				"style" : ("attach",),
    
    				"x" : 0,
    				"y" : 0,
    
    				"width" : BOARD_WIDTH,
    				"height" : BOARD_HEIGHT,
    
    				"children" :
    				(
    					## Title
    					{
    						"name" : "TitleBar",
    						"type" : "titlebar",
    						"style" : ("attach",),
    
    						"x" : 8,
    						"y" : 8,
    	 
    						"width" : 276,
    						"color" : "gray",
    
    						"children" :
    						(
    							{ "name":"TitleName", "type":"text", "x":133, "y":3, "text":uiScriptLocale.EXCHANGE_TITLE, "text_horizontal_align":"center" },
    						),
    					},
    
    					## MiddleBar
    					{
    						"name" : "Middle_Bar",
    						"type" : "expanded_image",
    
    						"x" : (BOARD_WIDTH / 2) - 3,
    						"y" : 31,
    						"x_scale" : 1.0, 
    						"y_scale" : 1.16,
    						"image" : ROOT + "windows/middlebar.sub",
    					},
    
    					## Owner
    					{
    						"name" : "Owner",
    						"type" : "window",
    
    						"x" : 150,
    						"y" : 33,
    
    						"width" : 130,
    						"height" : 146,
    
    						"children" :
    						(
    							{
    								"name" : "Owner_Slot",
    								"type" : "grid_table",
    
    								"start_index" : 0,
    
    								"x" : 0,
    								"y" : 0,
    
    								"x_count" : 4,
    								"y_count" : 3,
    								"x_step" : 32,
    								"y_step" : 32,
    								"x_blank" : 0,
    								"y_blank" : 0,
    
    								"image" : "d:/ymir work/ui/public/slot_base.sub",
    							},
    							{
    								"name" : "Owner_Cheque",
    								"type" : "button",
    
    								"x" : 0,
    								"y" : 102,
    
    								#"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_Cheque_Value",
    										"type" : "text",
    
    										"x" : 59,
    										"y" : 2,
    
    										"text" : "1234567",
    
    										"text_horizontal_align" : "right",
    									},
    								),
    							},
    							{
    								"name" : "Owner_Money",
    								"type" : "button",
    
    								"x" : 0,
    								"y" : 124,
    
    								#"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" : 95,
    								"y" : 102,
    
    								"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" : 124,
    
    								"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",
    							},
    							{	
    								"name" : "strOwner_Cheque",	
    								"type" : "text",
    								"x" : 67,
    								"y" : 104,
    
    								"text" : localeInfo.CHEQUE_SYSTEM_UNIT_WON,
    							},
    							{	
    								"name" : "strOwner_Yang",	
    								"type" : "text",
    								"x" : 67,
    								"y" : 126,
    
    								"text" : localeInfo.CHEQUE_SYSTEM_UNIT_YANG,
    							},
    						),
    					},
    
    					## Target
    					{
    						"name" : "Target",
    						"type" : "window",
    
    						"x" : 10,
    						"y" : 33,
    
    						"width" : 130,
    						"height" : 130,
    
    						"children" :
    						(
    							{
    								"name" : "Target_Slot",
    								"type" : "grid_table",
    
    								"start_index" : 0,
    
    								"x" : 0,
    								"y" : 0,
    
    								"x_count" : 4,
    								"y_count" : 3,
    								"x_step" : 32,
    								"y_step" : 32,
    								"x_blank" : 0,
    								"y_blank" : 0,
    
    								"image" : "d:/ymir work/ui/public/slot_base.sub",
    							},
    							{
    								"name" : "Target_Cheque",
    								"type" : "image",
    
    								"x" : 0,
    								"y" : 102,
    
    								"image" : "d:/ymir work/ui/public/parameter_slot_02.sub",
    
    								"children" :
    								(
    									{
    										"name" : "Target_Cheque_Value",
    										"type" : "text",
    
    										"x" : 59,
    										"y" : 2,
    
    										"text" : "1234567",
    
    										"text_horizontal_align" : "right",
    									},
    								),
    							},
    							{
    								"name" : "Target_Money",
    								"type" : "image",
    
    								"x" : 0,
    								"y" : 124,
    
    								"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" : 95,
    								"y" : 102,
    
    								"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" : "strTarget_Cheque",	
    								"type" : "text",
    								"x" : 67,
    								"y" : 104,
    
    								"text" : localeInfo.CHEQUE_SYSTEM_UNIT_WON,
    							},
    							{	
    								"name" : "strTarget_Yang",	
    								"type" : "text",
    								"x" : 67,
    								"y" : 126,
    
    								"text" : localeInfo.CHEQUE_SYSTEM_UNIT_YANG,
    							},
    						),
    					},
    				),
    			},
    		),
    	}
    else :
    	window = {
    		"name" : "ExchangeDialog",
    
    		"x" : 0,
    		"y" : 0,
    
    		"style" : ("movable", "float",),
    
    		"width" : 282,
    		"height" : 167,
    
    		"children" :
    		(
    			{
    				"name" : "board",
    				"type" : "board",
    				"style" : ("attach",),
    
    				"x" : 0,
    				"y" : 0,
    
    				"width" : 282,
    				"height" : 167,
    
    				"children" :
    				(
    					## Title
    					{
    						"name" : "TitleBar",
    						"type" : "titlebar",
    						"style" : ("attach",),
    
    						"x" : 8,
    						"y" : 8,
    	 
    						"width" : 266,
    						"color" : "gray",
    
    						"children" :
    						(
    							{ "name":"TitleName", "type":"text", "x":133, "y":3, "text":uiScriptLocale.EXCHANGE_TITLE, "text_horizontal_align":"center" },
    						),
    					},
    
    					## MiddleBar
    					{
    						"name" : "Middle_Bar",
    						"type" : "image",
    
    						"x" : 139,
    						"y" : 31,
    
    						"image" : ROOT + "windows/middlebar.sub",
    					},
    
    					## Owner
    					{
    						"name" : "Owner",
    						"type" : "window",
    
    						"x" : 144,
    						"y" : 33,
    
    						"width" : 130,
    						"height" : 130,
    
    						"children" :
    						(
    							{
    								"name" : "Owner_Slot",
    								"type" : "grid_table",
    
    								"start_index" : 0,
    
    								"x" : 0,
    								"y" : 0,
    
    								"x_count" : 4,
    								"y_count" : 3,
    								"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" : 102,
    
    								#"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" : 101,
    
    								"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" : 101,
    
    								"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" : 130,
    						"height" : 130,
    
    						"children" :
    						(
    							{
    								"name" : "Target_Slot",
    								"type" : "grid_table",
    
    								"start_index" : 0,
    
    								"x" : 0,
    								"y" : 0,
    
    								"x_count" : 4,
    								"y_count" : 3,
    								"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" : 102,
    
    								"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" : 101,
    
    								"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",
    							},
    						),
    					},
    				),
    			},
    		),
    	}

     

    Jesues....i'm so stupid....thank you :) it solve that problem.

    It seems i havne't beend able to make it fully functional.

    Whenever i open a shop->npc i get these following errors:

    0909 01:33:01120 :: Cannot find item by 9600
    0909 01:33:01120 :: Cannot find item by 9600
    0909 01:33:01122 :: Cannot find item by 1590320653
    0909 01:33:01122 :: Cannot find item by 1590320653
    0909 01:33:01122 :: Cannot find item by 167772160
    0909 01:33:01122 :: Cannot find item by 167772160
    0909 01:33:01662 :: Cannot find item by 9600
    0909 01:33:02174 :: Cannot find item by 9600
    0909 01:33:02702 :: Cannot find item by 9600
    0909 01:33:03015 :: Cannot find item by 9600
    0909 01:33:03527 :: Cannot find item by 9600
    0909 01:33:03741 :: Cannot find item by 9600

     

    Before trying to add this system everything worked perfectly fine.Some of the items are negative....-119199119 ooh boy ^^

  16.  

    For the last 4-5 hours i've ....i don't know what else to do.I've read several different KeyError problems.I still can't figure what i should to next.

    I've ched the files at least 3 times...i've pack the root...locale...all that needs to be packed. Can someone please help me...?

    	0908 21:12:12010 :: CMapOutdoor::Load - LoadMonsterAreaInfo ERROR
    0908 21:12:17955 :: Traceback (most recent call last):
    	0908 21:12:17955 ::   File "networkModule.py", line 232, in SetGamePhase
    	0908 21:12:17955 ::   File "game.py", line 95, in __init__
    	0908 21:12:17956 ::   File "interfaceModule.py", line 414, in MakeInterface
    	0908 21:12:17956 ::   File "interfaceModule.py", line 332, in __MakeDialogs
    	0908 21:12:17956 ::   File "uiExchange.py", line 43, in LoadDialog
    	0908 21:12:17956 ::   File "ui.py", line 3214, in GetChild
    	0908 21:12:17957 :: KeyError
    0908 21:12:17957 :: : 
    0908 21:12:17957 :: 'Owner_Cheque_Icon'
    0908 21:12:17957 :: 
    	

  17. 	0908 20:19:15275 :: CMapOutdoor::Load - LoadMonsterAreaInfo ERROR
    0908 20:19:22003 :: Traceback (most recent call last):
    	0908 20:19:22003 ::   File "networkModule.py", line 232, in SetGamePhase
    	0908 20:19:22003 ::   File "game.py", line 95, in __init__
    	0908 20:19:22004 ::   File "interfaceModule.py", line 414, in MakeInterface
    	0908 20:19:22004 ::   File "interfaceModule.py", line 332, in __MakeDialogs
    	0908 20:19:22004 ::   File "uiExchange.py", line 43, in LoadDialog
    	0908 20:19:22004 ::   File "ui.py", line 3214, in GetChild
    	0908 20:19:22005 :: KeyError
    0908 20:19:22005 :: : 
    0908 20:19:22005 :: 'Owner_Cheque_Icon'
    0908 20:19:22005 :: 
    	

    I've rechecked and all icons are there.

    I've redone the tutorial 3 times to....after each time i still ahve the same error.

  18. Acum 4 ore, WLsj24 a spus:

    I mean if you have "long long gold", then there will be some crash in your core due to overflow_cheque.  To avoid that you must eliminate the "long long gold".  If you want to keep the "long long gold" you must make some changes to make both systems compatible at the same time.

    Ooh ok i haven't modified the standard 40k gold type.Thank you!

    1 oră în urmă, BKernighan a spus:

    System work good & perfectly!! Thank you man i search it so much times

     

    wnsl.gif.20be6fe8590e3e3fc5d4dd5fb3c652f0.gif

    Wow.Nice you also have the Gaya working.Nice!

    • Love 1
  19. Acum 13 ore, WLsj24 a spus:

    I didn't put a warning in that post, but if you use "long long gold", then you must adapt the system or deactivate it so that the "check system" is compatible.

     

    Acum 3 ore, Kori a spus:

    Many changes and it's work with long long 

     

    Thank you both for your replies!

    These additional replies apply only if i want to remove the yang limit right?

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