Red Posted August 3, 2017 at 09:40 PM Share Posted August 3, 2017 at 09:40 PM Olá pessoal, Bem estou aqui para vós pedir ajudar acerca disto, esses dois slots supostamente estão configurados pois os itens vão para lá quando são equipados, no entanto quando equipados os itens ficam invisíveis, provavelmente é um problema algures no cliente no entanto não o consigo descobrir, já andei aqui e na M2Dev a procura de soluções no entanto falam todos o mesmo o type do item, no entanto eu consigo equipar o item esse não é o problema o problema é ele aparecer. Estou a falar destes dois slots, os itens são equipados no entanto não aparecem ai. Deveriam aparecer os itens assim, Se alguém me poder ajudar agradecia. Cumprimentos, RedM Link to comment
juniorsilva Posted August 4, 2017 at 12:59 AM Share Posted August 4, 2017 at 12:59 AM Bom, você já verificou o syserr.txt do cliente? Link to comment
Red Posted August 4, 2017 at 02:42 AM Author Share Posted August 4, 2017 at 02:42 AM 1 hora atrás, juniorsilva disse: Bom, você já verificou o syserr.txt do cliente? Não tem syserr. Link to comment
juniorsilva Posted August 4, 2017 at 03:58 AM Share Posted August 4, 2017 at 03:58 AM 36 minutos atrás, Red disse: Não tem syserr. Sem syserr.txt só posso lhe dar essa resposta abaixo: Vá em Client-Source\UserInterface\Locale_inc.h e verifique se o ring_slot esta ativado (#define ENABLE_NEW_EQUIPMENT_SYSTEM), caso ele esteja ativado verifique se o type e subtype esta correto no item (type=33 e subtype=0), se tiver correto então passe para o client\pack\locale_xx\locale\xx\ui\inventorywindow.py e verifique se os campos ring_slot esta ativado no inventário. "slot" : ( {"index":EQUIPMENT_START_INDEX+0, "x":39, "y":37, "width":32, "height":64}, {"index":EQUIPMENT_START_INDEX+1, "x":39, "y":2, "width":32, "height":32}, {"index":EQUIPMENT_START_INDEX+2, "x":39, "y":145, "width":32, "height":32}, {"index":EQUIPMENT_START_INDEX+3, "x":75, "y":67, "width":32, "height":32}, {"index":EQUIPMENT_START_INDEX+4, "x":3, "y":3, "width":32, "height":96}, {"index":EQUIPMENT_START_INDEX+5, "x":114, "y":67, "width":32, "height":32}, {"index":EQUIPMENT_START_INDEX+6, "x":114, "y":35, "width":32, "height":32}, {"index":EQUIPMENT_START_INDEX+7, "x":2, "y":145, "width":32, "height":32}, {"index":EQUIPMENT_START_INDEX+8, "x":75, "y":145, "width":32, "height":32}, {"index":EQUIPMENT_START_INDEX+9, "x":114, "y":2, "width":32, "height":32}, {"index":EQUIPMENT_START_INDEX+10, "x":75, "y":35, "width":32, "height":32}, ## »õ ¹ÝÁö1 {"index":item.EQUIPMENT_RING1, "x":2, "y":106, "width":32, "height":32}, ## »õ ¹ÝÁö2 {"index":item.EQUIPMENT_RING2, "x":75, "y":106, "width":32, "height":32}, ## »õ º§Æ® {"index":item.EQUIPMENT_BELT, "x":39, "y":106, "width":32, "height":32}, ), Obs: Para ativar o slot completamente é necessário configurar na source-server. Link to comment
Red Posted August 4, 2017 at 07:22 PM Author Share Posted August 4, 2017 at 07:22 PM Bem o item é utilizado normalmente e dá os bónus o problema é que fica "invisível". Na source ele ta ativado, http://prntscr.com/g4gd4b. E no cliente aparece assim, import uiScriptLocale import item EQUIPMENT_START_INDEX = 225 window = { "name" : "InventoryWindow", ## Open Inventar Position "x" : SCREEN_WIDTH - 340, "y" : SCREEN_HEIGHT - 37 - 334, "style" : ("movable", "float",), "width" : 340, "height" : 334, "children" : ( ## Inventory, Equipment Slots { "name" : "board", "type" : "board", "style" : ("attach",), "x" : 0, "y" : 0, "width" : 340, "height" : 334, "children" : ( ## Title { "name" : "TitleBar", "type" : "titlebar", "style" : ("attach",), "x" : 8, "y" : 7, "width" : 325, "color" : "yellow", "children" : ( { "name":"TitleName", "type":"text", "x":155, "y":3, "text":uiScriptLocale.INVENTORY_TITLE, "text_horizontal_align":"center" }, ), }, ## Inventar Slots { "name" : "ItemSlot", "type" : "grid_table", "x" : 170, "y" : 33, "start_index" : 0, "x_count" : 5, "y_count" : 9, "x_step" : 32, "y_step" : 32, "image" : "d:/ymir work/ui/public/Slot_Base.sub" }, ## Equipment Slot { "name" : "Equipment_Base", "type" : "image", "x" : 10, "y" : 33, "image" : "d:/ymir work/ui/equipment_bg_with_ring_my_norle.tga", "children" : ( { "name" : "EquipmentSlot", "type" : "slot", "x" : 3, "y" : 3, "width" : 150, "height" : 182, "slot" : ( {"index":EQUIPMENT_START_INDEX+0, "x":39, "y":37, "width":32, "height":64}, ## Rustung {"index":EQUIPMENT_START_INDEX+1, "x":39, "y":2, "width":32, "height":32}, ## Helm {"index":EQUIPMENT_START_INDEX+2, "x":39, "y":145, "width":32, "height":32}, ## Schuh {"index":EQUIPMENT_START_INDEX+3, "x":75, "y":67, "width":32, "height":32}, ## Armband {"index":EQUIPMENT_START_INDEX+4, "x":3, "y":3, "width":32, "height":96}, ## Waffe {"index":EQUIPMENT_START_INDEX+5, "x":114, "y":67, "width":32, "height":32}, ## Halskette {"index":EQUIPMENT_START_INDEX+6, "x":114, "y":35, "width":32, "height":32}, ## Ohrringe {"index":EQUIPMENT_START_INDEX+7, "x":2, "y":145, "width":32, "height":32}, ## Slot Links {"index":EQUIPMENT_START_INDEX+8, "x":75, "y":145, "width":32, "height":32}, ## Slot Rechts {"index":EQUIPMENT_START_INDEX+9, "x":114, "y":2, "width":32, "height":32}, ## Pfeil {"index":EQUIPMENT_START_INDEX+10, "x":75, "y":35, "width":32, "height":32}, ## Schild {"index":item.EQUIPMENT_BELT, "x":39, "y":106, "width":32, "height":32}, ## Gurtel {"index":item.EQUIPMENT_RING1, "x":2, "y":106, "width":32, "height":32}, {"index":item.EQUIPMENT_RING2, "x":75, "y":106, "width":32, "height":32}, ), }, ## Dragon Soul Button { "name" : "DSSButton", "type" : "button", "x" : 114, "y" : 107, "tooltip_text" : uiScriptLocale.TASKBAR_DRAGON_SOUL, "default_image" : "d:/ymir work/ui/dragonsoul/dss_inventory_button_01.tga", "over_image" : "d:/ymir work/ui/dragonsoul/dss_inventory_button_02.tga", "down_image" : "d:/ymir work/ui/dragonsoul/dss_inventory_button_03.tga", }, ## MallButton { "name" : "MallButton", "type" : "button", "x" : 118, "y" : 148, "tooltip_text" : uiScriptLocale.MALL_TITLE, "default_image" : "d:/ymir work/ui/game/TaskBar/Mall_Button_01.tga", "over_image" : "d:/ymir work/ui/game/TaskBar/Mall_Button_02.tga", "down_image" : "d:/ymir work/ui/game/TaskBar/Mall_Button_03.tga", }, ## CostumeButton { "name" : "CostumeButton", "type" : "button", "x" : 78, "y" : 5, "tooltip_text" : uiScriptLocale.COSTUME_TITLE, "default_image" : "d:/ymir work/ui/game/taskbar/costume_Button_01.tga", "over_image" : "d:/ymir work/ui/game/taskbar/costume_Button_02.tga", "down_image" : "d:/ymir work/ui/game/taskbar/costume_Button_03.tga", }, ## { "name" : "Equipment_Tab_01", "type" : "radio_button", "x" : 86, "y" : 161, "default_image" : "d:/ymir work/ui/game/windows/tab_button_small_01.sub", "over_image" : "d:/ymir work/ui/game/windows/tab_button_small_02.sub", "down_image" : "d:/ymir work/ui/game/windows/tab_button_small_03.sub", "children" : ( { "name" : "Equipment_Tab_01_Print", "type" : "text", "x" : 0, "y" : 0, "all_align" : "center", "text" : "I", }, ), }, ## { "name" : "Equipment_Tab_02", "type" : "radio_button", "x" : 86 + 32, "y" : 161, "default_image" : "d:/ymir work/ui/game/windows/tab_button_small_01.sub", "over_image" : "d:/ymir work/ui/game/windows/tab_button_small_02.sub", "down_image" : "d:/ymir work/ui/game/windows/tab_button_small_03.sub", "children" : ( { "name" : "Equipment_Tab_02_Print", "type" : "text", "x" : 0, "y" : 0, "all_align" : "center", "text" : "II", }, ), }, ), }, ## Inventar Seite I { "name" : "Inventory_Tab_01", "type" : "radio_button", "x" : 10, "y" : 33 + 194, "default_image" : "d:/ymir work/ui/game/1_norm.tga", "over_image" : "d:/ymir work/ui/game/1_select.tga", "down_image" : "d:/ymir work/ui/game/1_down.tga", "tooltip_text" : uiScriptLocale.INVENTORY_PAGE_BUTTON_TOOLTIP_1, "children" : ( { "name" : "Inventory_Tab_01_Print", "type" : "text", "x" : 0, "y" : 0, "all_align" : "center", }, ), }, ## Inventar Seite II { "name" : "Inventory_Tab_02", "type" : "radio_button", "x" : 10 + 31, "y" : 33 + 194, "default_image" : "d:/ymir work/ui/game/2_norm.tga", "over_image" : "d:/ymir work/ui/game/2_select.tga", "down_image" : "d:/ymir work/ui/game/2_down.tga", "tooltip_text" : uiScriptLocale.INVENTORY_PAGE_BUTTON_TOOLTIP_2, "children" : ( { "name" : "Inventory_Tab_02_Print", "type" : "text", "x" : 0, "y" : 0, "all_align" : "center", }, ), }, ## Inventar Seite III { "name" : "Inventory_Tab_03", "type" : "radio_button", "x" : 10 + 62, "y" : 33 + 194, "default_image" : "d:/ymir work/ui/game/3_norm.tga", "over_image" : "d:/ymir work/ui/game/3_select.tga", "down_image" : "d:/ymir work/ui/game/3_down.tga", "tooltip_text" : uiScriptLocale.INVENTORY_PAGE_BUTTON_TOOLTIP_3, "children" : ( { "name" : "Inventory_Tab_03_Print", "type" : "text", "x" : 0, "y" : 0, "all_align" : "center", }, ), }, ## Inventar Seite IV { "name" : "Inventory_Tab_04", "type" : "radio_button", "x" : 10 + 93, "y" : 33 + 194, "default_image" : "d:/ymir work/ui/game/4_norm.tga", "over_image" : "d:/ymir work/ui/game/4_select.tga", "down_image" : "d:/ymir work/ui/game/4_down.tga", "tooltip_text" : uiScriptLocale.INVENTORY_PAGE_BUTTON_TOOLTIP_4, "children" : ( { "name" : "Inventory_Tab_04_Print", "type" : "text", "x" : 0, "y" : 0, "all_align" : "center", }, ), }, ## Inventar Seite V { "name" : "Inventory_Tab_05", "type" : "radio_button", "x" : 10 + 124, "y" : 33 + 194, "default_image" : "d:/ymir work/ui/game/5_norm.tga", "over_image" : "d:/ymir work/ui/game/5_select.tga", "down_image" : "d:/ymir work/ui/game/5_down.tga", "tooltip_text" : uiScriptLocale.INVENTORY_PAGE_BUTTON_TOOLTIP_5, "children" : ( { "name" : "Inventory_Tab_04_Print", "type" : "text", "x" : 0, "y" : 0, "all_align" : "center", }, ), }, ## Sapphire2 OfflineShop Button { "name" : "OSButton", "type" : "button", "x" : 18, "y" : 265, "tooltip_text" : "Abrir Loja", "default_image" : "d:/ymir work/ui/sapphire2buttons/shop_norm.tga", "over_image" : "d:/ymir work/ui/sapphire2buttons/shop_select.tga", "down_image" : "d:/ymir work/ui/sapphire2buttons/shop_down.tga", }, ## Sapphire2 SwitchBot Button { "name" : "Switchbot", "type" : "button", "x" : 18 + 36, "y" : 265, "tooltip_text" : "Bónus", "default_image" : "d:/ymir work/ui/sapphire2buttons/switch_norm.tga", "over_image" : "d:/ymir work/ui/sapphire2buttons/switch_select.tga", "down_image" : "d:/ymir work/ui/sapphire2buttons/switch_down.tga", }, ## Sapphire2 AntiEXP Button { "name" : "AntiExp", "type" : "button", "x" : 18 + 72, "y" : 265, "tooltip_text" : "AntiExp", "default_image" : "d:/ymir work/ui/sapphire2buttons/antiexp_norm.tga", "over_image" : "d:/ymir work/ui/sapphire2buttons/antiexp_select.tga", "down_image" : "d:/ymir work/ui/sapphire2buttons/antiexp_down.tga", }, ## Sapphire2 Teleport Button { "name" : "Teleport", "type" : "button", "x" : 18 + 104, "y" : 265, "tooltip_text" : "Teleporte", "default_image" : "d:/ymir work/ui/sapphire2buttons/tp_norm.tga", "over_image" : "d:/ymir work/ui/sapphire2buttons/tp_select.tga", "down_image" : "d:/ymir work/ui/sapphire2buttons/tp_down.tga", }, ## Yang Anzeige { "name":"Money_Slot", "type":"button", "x":-70, "y":31, "horizontal_align":"center", "vertical_align":"bottom", "default_image" : "d:/ymir work/ui/public/parameter_slot_05.sub", "over_image" : "d:/ymir work/ui/public/parameter_slot_05.sub", "down_image" : "d:/ymir work/ui/public/parameter_slot_05.sub", "children" : ( { "name":"Money_Icon", "type":"image", "x":-22, "y":1, "image":"d:/ymir work/ui/game/windows/money_icon.sub", }, { "name" : "Money", "type" : "text", "x" : 3, "y" : 3, "horizontal_align" : "right", "text_horizontal_align" : "right", "text" : "123456789", }, ), }, ), }, ), } Link to comment
juniorsilva Posted August 4, 2017 at 07:48 PM Share Posted August 4, 2017 at 07:48 PM Bem, então é erro de posição caso você tenha o sistema mount ou weapon é necessário alterar a posição do NEW_EQUIPMENT_SYSTEM. #ifdef ENABLE_NEW_EQUIPMENT_SYSTEM const DWORD c_New_Equipment_Start = c_Equipment_Start + 24; // posição do slot const DWORD c_New_Equipment_Count = 3; const DWORD c_Equipment_Ring1 = c_New_Equipment_Start + 0; const DWORD c_Equipment_Ring2 = c_New_Equipment_Start + 1; const DWORD c_Equipment_Belt = c_New_Equipment_Start + 2;; #endif Se tiver tudo correto então entre no cliente em modo debug para descobrir o problema do slot. Link to comment
Red Posted August 4, 2017 at 10:19 PM Author Share Posted August 4, 2017 at 10:19 PM 2 horas atrás, juniorsilva disse: Bem, então é erro de posição caso você tenha o sistema mount ou weapon é necessário alterar a posição do NEW_EQUIPMENT_SYSTEM. #ifdef ENABLE_NEW_EQUIPMENT_SYSTEM const DWORD c_New_Equipment_Start = c_Equipment_Start + 24; // posição do slot const DWORD c_New_Equipment_Count = 3; const DWORD c_Equipment_Ring1 = c_New_Equipment_Start + 0; const DWORD c_Equipment_Ring2 = c_New_Equipment_Start + 1; const DWORD c_Equipment_Belt = c_New_Equipment_Start + 2;; #endif Se tiver tudo correto então entre no cliente em modo debug para descobrir o problema do slot. Onde posso encontrar isso que está a falar? Link to comment
Metin2 Posted August 4, 2017 at 10:41 PM Share Posted August 4, 2017 at 10:41 PM (edited) 1 hora atrás, Red disse: Onde posso encontrar isso que está a falar? vá na source bin no diretório UserInterface/GameType.h eu estava com mesmo problema no slot do cinto para resolver eu alterei: const DWORD c_New_Equipment_Start = c_Equipment_Start + 22; para const DWORD c_New_Equipment_Start = c_Equipment_Start + 24; e deu certo ! Edited August 4, 2017 at 11:36 PM by Darkness Link to comment
Red Posted August 5, 2017 at 01:58 AM Author Share Posted August 5, 2017 at 01:58 AM (edited) 3 horas atrás, Darkness disse: vá na source bin no diretório UserInterface/GameType.h eu estava com mesmo problema no slot do cinto para resolver eu alterei: const DWORD c_New_Equipment_Start = c_Equipment_Start + 22; para const DWORD c_New_Equipment_Start = c_Equipment_Start + 24; e deu certo ! O meu está algo deste genero, #ifdef ENABLE_NEW_EQUIPMENT_SYSTEM #ifdef ENABLE_COSTUME_WEAPON const DWORD c_New_Equipment_Start = c_Equipment_Start + 24; #else const DWORD c_New_Equipment_Start = c_Equipment_Start + 23; #endif const DWORD c_New_Equipment_Count = 3; const DWORD c_Equipment_Ring1 = c_New_Equipment_Start + 1; const DWORD c_Equipment_Ring2 = c_New_Equipment_Start + 2; const DWORD c_Equipment_Belt = c_New_Equipment_Start + 0; #endif Edited August 5, 2017 at 01:58 AM by Red Link to comment
Metin2 Posted August 5, 2017 at 02:25 AM Share Posted August 5, 2017 at 02:25 AM (edited) 27 minutos atrás, Red disse: O meu está algo deste genero, #ifdef ENABLE_NEW_EQUIPMENT_SYSTEM #ifdef ENABLE_COSTUME_WEAPON const DWORD c_New_Equipment_Start = c_Equipment_Start + 24; #else const DWORD c_New_Equipment_Start = c_Equipment_Start + 23; #endif const DWORD c_New_Equipment_Count = 3; const DWORD c_Equipment_Ring1 = c_New_Equipment_Start + 1; const DWORD c_Equipment_Ring2 = c_New_Equipment_Start + 2; const DWORD c_Equipment_Belt = c_New_Equipment_Start + 0; #endif tira esta linha : #else const DWORD c_New_Equipment_Start = c_Equipment_Start + 23; #endif Edited August 5, 2017 at 02:25 AM by Darkness Link to comment
Red Posted August 5, 2017 at 04:37 AM Author Share Posted August 5, 2017 at 04:37 AM 2 horas atrás, Darkness disse: tira esta linha : #else const DWORD c_New_Equipment_Start = c_Equipment_Start + 23; #endif Dá uma serie de erros quando tento, compilar, tenho quase certeza que o problema é cliente side, pq os itens funcionam in-game, só não aparecem lá no slot Link to comment
Metin2 Posted August 5, 2017 at 10:52 AM Share Posted August 5, 2017 at 10:52 AM (edited) 6 horas atrás, Red disse: Dá uma serie de erros quando tento, compilar, tenho quase certeza que o problema é cliente side, pq os itens funcionam in-game, só não aparecem lá no slot é nesta parte ai a posição slot ta errado fas teste aonde ta 23 coloca 24 ficamdo assim : #ifdef ENABLE_NEW_EQUIPMENT_SYSTEM #ifdef ENABLE_COSTUME_WEAPON const DWORD c_New_Equipment_Start = c_Equipment_Start + 24; #else const DWORD c_New_Equipment_Start = c_Equipment_Start + 24; #endif const DWORD c_New_Equipment_Count = 3; const DWORD c_Equipment_Ring1 = c_New_Equipment_Start + 1; const DWORD c_Equipment_Ring2 = c_New_Equipment_Start + 2; const DWORD c_Equipment_Belt = c_New_Equipment_Start + 0; #endif Edited August 5, 2017 at 10:53 AM by Darkness Link to comment
Red Posted August 9, 2017 at 06:14 PM Author Share Posted August 9, 2017 at 06:14 PM Em 05/08/2017 em 11:52, Darkness disse: é nesta parte ai a posição slot ta errado fas teste aonde ta 23 coloca 24 ficamdo assim : #ifdef ENABLE_NEW_EQUIPMENT_SYSTEM #ifdef ENABLE_COSTUME_WEAPON const DWORD c_New_Equipment_Start = c_Equipment_Start + 24; #else const DWORD c_New_Equipment_Start = c_Equipment_Start + 24; #endif const DWORD c_New_Equipment_Count = 3; const DWORD c_Equipment_Ring1 = c_New_Equipment_Start + 1; const DWORD c_Equipment_Ring2 = c_New_Equipment_Start + 2; const DWORD c_Equipment_Belt = c_New_Equipment_Start + 0; #endif Não funciona também... Link to comment
GODSPEED Posted August 9, 2017 at 06:33 PM Share Posted August 9, 2017 at 06:33 PM Em 05/08/2017 em 03:25, Darkness disse: tira esta linha : #else const DWORD c_New_Equipment_Start = c_Equipment_Start + 23; #endif muda 24 para 29, Link to comment
Red Posted August 10, 2017 at 05:21 PM Author Share Posted August 10, 2017 at 05:21 PM 22 horas atrás, Elliot disse: muda 24 para 29, Retiro a linha e mudo o 24 para o 29? Link to comment
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now