tarata12 16 Posted February 28, 2020 Share Posted February 28, 2020 (edited) On 8/28/2016 at 12:03 PM, Qwertyu said: How i can remove this problem? https://metin2.download/picture/ie89ITu4U9DIJ034tir393ex7S4W4eRU/.gif And i don`t see time " When i put ITEM_COSTUME COSTUME_MOUNT....time change to 0 " My problem is the same can someone help me? Edited September 4, 2022 by Metin2 Dev Core X - External 2 Internal 1 2 3 Link to comment Share on other sites More sharing options...
fsfds 0 Posted June 4, 2020 Share Posted June 4, 2020 (edited) Which tool do u use? i am asking because i saw the source extension for a tool, now i want to know which looks better than the one i use Edit: Is there any system i need before? i did everything like in the tutotrial but i had no slots for the mount. it was under the costumes but not inside a slot just a buggy ui. Edited June 5, 2020 by fsfds Link to comment Share on other sites More sharing options...
thebangerschmid22 0 Posted December 28, 2020 Share Posted December 28, 2020 ItemCSVReader.cpp ?? where is it idk Link to comment Share on other sites More sharing options...
thebangerschmid22 0 Posted December 28, 2020 Share Posted December 28, 2020 1228 18:28:08362 :: networkModule.py(line:208) SetSelectCharacterPhase system.py(line:130) pack_import system.py(line:110) _process_result introSelect.py(line:23) <module> system.py(line:130) pack_import system.py(line:110) _process_result uiAffectShower.py(line:8) <module> system.py(line:130) __pack_import networkModule.SetSelectCharacterPhase - <type 'exceptions.IndentationError'>:unexpected indent (uiToolTip.py, line 864) 1228 18:28:08362 :: ============================================================================================================ 1228 18:28:08362 :: Abort!!!! Link to comment Share on other sites More sharing options...
B0ne 15 Posted December 30, 2020 Share Posted December 30, 2020 On 12/28/2020 at 6:30 PM, thebangerschmid22 said: 1228 18:28:08362 :: networkModule.py(line:208) SetSelectCharacterPhase system.py(line:130) pack_import system.py(line:110) _process_result introSelect.py(line:23) <module> system.py(line:130) pack_import system.py(line:110) _process_result uiAffectShower.py(line:8) <module> system.py(line:130) __pack_import networkModule.SetSelectCharacterPhase - <type 'exceptions.IndentationError'>:unexpected indent (uiToolTip.py, line 864) 1228 18:28:08362 :: ============================================================================================================ 1228 18:28:08362 :: Abort!!!! uitooltip line 864 - you have tab error. ckeck your tabs Link to comment Share on other sites More sharing options...
Rokco 12 Posted July 12, 2021 Share Posted July 12, 2021 (edited) It's work perfectly, Thx Regords, Rokco On 2/28/2020 at 9:40 PM, tarata12 said: My problem is the same can someone help me? @tarata12To short that problem https://metin2.download/picture/ie89ITu4U9DIJ034tir393ex7S4W4eRU/.gif you shod not chenge Item_proto (Client side) Make change just in DB (Navicat - Player - Item_Proto) (Type 28 and Subtipe 3/4/5 Depending how many things you got on your costume system) If you whant to make change in Item_proto from client you shud put a (REAL_TIME 86400) Value on your Mount! And Sorry for my bad ENG, I hope you undestend me. Edited August 28, 2022 by Metin2 Dev Core X - External 2 Internal 3 3 1 2 Link to comment Share on other sites More sharing options...
OsmiumBlade 4 Posted August 23, 2021 Share Posted August 23, 2021 Know anyone how too fix the Problem? https://youtu.be/qa9Z4UiwqRY 2 1 1 Link to comment Share on other sites More sharing options...
Rokco 12 Posted August 23, 2021 Share Posted August 23, 2021 58 minutes ago, OsmiumBlade said: Know anyone how too fix the Problem? https://youtu.be/qa9Z4UiwqRY so i still don't understand your problem about this system?? 2 Link to comment Share on other sites More sharing options...
OsmiumBlade 4 Posted August 23, 2021 Share Posted August 23, 2021 When my Character dies, my Character stands up a second time and dies again Link to comment Share on other sites More sharing options...
Alexa 0 Posted August 23, 2021 Share Posted August 23, 2021 (edited) I think the Problem is when you die, the Item is taking itself off the Character But I don't know how you can change this Edited August 23, 2021 by Alexa Link to comment Share on other sites More sharing options...
Fluff99s 0 Posted August 29, 2021 Share Posted August 29, 2021 have somebody had this error in uitooltip.py ? 0829 21:20:08645 :: networkModule.py(line:200) SetSelectCharacterPhase system.py(line:130) __pack_import system.py(line:110) _process_result introSelect.py(line:22) <module> system.py(line:130) __pack_import system.py(line:110) _process_result uiAffectShower.py(line:8) <module> system.py(line:130) __pack_import system.py(line:110) _process_result uiToolTip.py(line:315) <module> uiToolTip.py(line:989) ItemToolTip networkModule.SetSelectCharacterPhase - <type 'exceptions.NameError'>:name 'itemType' is not defined 0829 21:20:08645 :: ============================================================================================================ 0829 21:20:08645 :: Abort!!!! this is my syserr from client, now idk where to import itemType... all tabs are fixed in uitooltip.py Link to comment Share on other sites More sharing options...
Active Member Volvox 1503 Posted August 31, 2021 Active Member Share Posted August 31, 2021 (edited) On 8/29/2021 at 8:33 PM, Fluff99s said: have somebody had this error in uitooltip.py ? 0829 21:20:08645 :: networkModule.py(line:200) SetSelectCharacterPhase system.py(line:130) __pack_import system.py(line:110) _process_result introSelect.py(line:22) <module> system.py(line:130) __pack_import system.py(line:110) _process_result uiAffectShower.py(line:8) <module> system.py(line:130) __pack_import system.py(line:110) _process_result uiToolTip.py(line:315) <module> uiToolTip.py(line:989) ItemToolTip networkModule.SetSelectCharacterPhase - <type 'exceptions.NameError'>:name 'itemType' is not defined 0829 21:20:08645 :: ============================================================================================================ 0829 21:20:08645 :: Abort!!!! this is my syserr from client, now idk where to import itemType... all tabs are fixed in uitooltip.py You can write this in line 988: itemType = item.GetItemType() Edited August 31, 2021 by V0lvox Link to comment Share on other sites More sharing options...
Fluff99s 0 Posted September 4, 2021 Share Posted September 4, 2021 On 8/31/2021 at 8:51 AM, V0lvox said: You can write this in line 988: itemType = item.GetItemType() at line 988 i have this: if app.ENABLE_COSTUME_SYSTEM: followed by this lines also if item.ITEM_TYPE_COSTUME == itemType: isCostumeItem = 1 isCostumeHair = item.COSTUME_TYPE_HAIR == itemSubType isCostumeBody = item.COSTUME_TYPE_BODY == itemSubType isCostumeSash = itemSubType == item.COSTUME_TYPE_SASH isCostumeMount = item.COSTUME_TYPE_MOUNT == itemSubType i replaced my initial if item.ITEM_TYPE_COSTUME == itemType: with itemType = item.GetItemType() but is without success... Link to comment Share on other sites More sharing options...
Active Member Volvox 1503 Posted September 4, 2021 Active Member Share Posted September 4, 2021 On 9/4/2021 at 11:53 AM, Fluff99s said: at line 988 i have this: if app.ENABLE_COSTUME_SYSTEM: followed by this lines also if item.ITEM_TYPE_COSTUME == itemType: isCostumeItem = 1 isCostumeHair = item.COSTUME_TYPE_HAIR == itemSubType isCostumeBody = item.COSTUME_TYPE_BODY == itemSubType isCostumeSash = itemSubType == item.COSTUME_TYPE_SASH isCostumeMount = item.COSTUME_TYPE_MOUNT == itemSubType i replaced my initial if item.ITEM_TYPE_COSTUME == itemType: with itemType = item.GetItemType() but is without success... if app.ENABLE_COSTUME_SYSTEM: itemType = item.GetItemType() if item.ITEM_TYPE_COSTUME == itemType: isCostumeItem = 1 isCostumeHair = item.COSTUME_TYPE_HAIR == itemSubType isCostumeBody = item.COSTUME_TYPE_BODY == itemSubType isCostumeSash = itemSubType == item.COSTUME_TYPE_SASH isCostumeMount = item.COSTUME_TYPE_MOUNT == itemSubType 2 Link to comment Share on other sites More sharing options...
Ezequiel G. 420 Posted June 14, 2022 Share Posted June 14, 2022 Nice, thanks for sharing! i have a error: networkModule.SetSelectCharacterPhase - <type 'exceptions.IndentationError'>:unexpected indent (uiToolTip.py, line 960) itemDesc = item.GetItemDescription() itemSummary = item.GetItemSummary() isCostumeItem = 0 isCostumeHair = 0 isCostumeBody = 0 isCostumeMount = 0 if app.ENABLE_COSTUME_SYSTEM: #LINE 960 if item.ITEM_TYPE_COSTUME == itemType: isCostumeItem = 1 isCostumeHair = item.COSTUME_TYPE_HAIR == itemSubType isCostumeBody = item.COSTUME_TYPE_BODY == itemSubType isCostumeMount = item.COSTUME_TYPE_MOUNT == itemSubType 1 Link to comment Share on other sites More sharing options...
Premium WeedHex 635 Posted June 14, 2022 Premium Share Posted June 14, 2022 25 minutes ago, Ezequiel G. said: Nice, thanks for sharing! i have a error: networkModule.SetSelectCharacterPhase - <type 'exceptions.IndentationError'>:unexpected indent (uiToolTip.py, line 960) itemDesc = item.GetItemDescription() itemSummary = item.GetItemSummary() isCostumeItem = 0 isCostumeHair = 0 isCostumeBody = 0 isCostumeMount = 0 if app.ENABLE_COSTUME_SYSTEM: #LINE 960 if item.ITEM_TYPE_COSTUME == itemType: isCostumeItem = 1 isCostumeHair = item.COSTUME_TYPE_HAIR == itemSubType isCostumeBody = item.COSTUME_TYPE_BODY == itemSubType isCostumeMount = item.COSTUME_TYPE_MOUNT == itemSubType CTRL+V error. Link to comment Share on other sites More sharing options...
garofolo 12 Posted January 23, 2023 Share Posted January 23, 2023 There is a new update... to pet in uitooltip.py Spoiler elif itemVnum >= 53001 and itemVnum <= 53999: self.AppendSpace(5) for g in xrange(item.ITEM_APPLY_MAX_NUM): (affectType, affectValue) = item.GetAffect(g) affectString = self.__GetAffectString(affectType, affectValue) if affectString: affectColor = grp.GenerateColor(0.3824, 0.5804, 0.9824, 1.0) # You can play here for the text color. self.AppendTextLine(affectString, affectColor) self.__AppendAttributeInformation(attrSlot) bHasRealtimeFlag = 0 for i in xrange(item.LIMIT_MAX_NUM): (limitType, limitValue) = item.GetLimit(i) if item.LIMIT_REAL_TIME == limitType: bHasRealtimeFlag = 1 if bHasRealtimeFlag == 1: self.AppendMallItemLastTime(metinSlot[0]) for pets and to monts `use costume mount slot` Spoiler elif itemVnum in self.MountVnum: self.AppendSpace(5) for g in xrange(item.ITEM_APPLY_MAX_NUM): (affectType, affectValue) = item.GetAffect(g) affectString = self.__GetAffectString(affectType, affectValue) if affectString: affectColor = grp.GenerateColor(0.3824, 0.5804, 0.9824, 1.0) # You can play here for the text color. self.AppendTextLine(affectString, affectColor) self.__AppendAttributeInformation(attrSlot) bHasRealtimeFlag = 0 for i in xrange(item.LIMIT_MAX_NUM): (limitType, limitValue) = item.GetLimit(i) if item.LIMIT_REAL_TIME == limitType: bHasRealtimeFlag = 1 if bHasRealtimeFlag == 1: self.AppendMallItemLastTime(metinSlot[0]) self.__ModelPreview(itemVnum, 5, self.MountVnum[itemVnum]) MountVnum = put that part in serach class ItemToolTip(ToolTip): afeter CHARACTER_NAMES = ( localeInfo.TOOLTIP_WARRIOR, localeInfo.TOOLTIP_ASSASSIN, localeInfo.TOOLTIP_SURA, localeInfo.TOOLTIP_SHAMAN ) add list about mountvnum Spoiler MountVnum = { 52001:20201, 52002:20201, 52003:20201, 52004:20201, 52005:20201, 52006:20205, 52007:20205, 52008:20205, 52009:20205, 52010:20205, 52011:20209, 52012:20209, 52013:20209, 52014:20209, 52015:20209, 52016:20202, 52017:20202, 52018:20202, 52019:20202, 52020:20202, 52021:20206, 52022:20206, 52023:20206, 52024:20206, 52025:20206, 52026:20210, 52027:20210, 52028:20210, 52029:20210, 52030:20210, 52031:20204, 52032:20204, 52033:20204, 52034:20204, 52035:20204, 52036:20208, 52037:20208, 52038:20208, 52039:20208, 52040:20208, 52041:20212, 52042:20212, 52043:20212, 52044:20212, 52045:20212, 52046:20203, 52047:20203, 52048:20203, 52049:20203, 52050:20203, 52051:20207, 52052:20207, 52053:20207, 52054:20207, 52055:20207, 52056:20211, 52057:20211, 52058:20211, 52059:20211, 52060:20211, 52061:20213, 52062:20213, 52063:20213, 52064:20213, 52065:20213, 52066:20214, 52067:20214, 52068:20214, 52069:20214, 52070:20214, 52071:20215, 52072:20215, 52073:20215, 52074:20215, 52075:20215, 52076:20216, 52077:20216, 52078:20216, 52079:20216, 52080:20216, 52081:20217, 52082:20217, 52083:20217, 52084:20217, 52085:20217, 52086:20218, 52087:20218, 52088:20218, 52089:20218, 52090:20218, 52091:20223, 52092:20223, 52093:20223, 52094:20223, 52095:20223, 52096:20224, 52097:20224, 52098:20224, 52099:20224, 52100:20224, 52101:20225, 52102:20225, 52103:20225, 52104:20225, 52105:20225, 52107:20228, 52106:20228, 52108:20228, 52109:20228, 52110:20228, 52111:20229, 52112:20229, 52113:20229, 52114:20229, 52115:20229, 52116:20230, 52117:20230, 52118:20230, 52119:20230, 52120:20230, 71114:20110, 71116:20111, 71118:20112, 71120:20113, 71115:20110, 71117:20111, 71119:20112, 71121:20113, 71124:20114, 71125:20115, 71126:20116, 71127:20117, 71128:20118, 71131:20119, 71132:20119, 71133:20119, 71134:20119, 71137:20120, 71138:20121, 71139:20122, 71140:20123, 71141:20124, 71142:20125, 71161:20219, 71164:20220, 71165:20221, 71166:20222, 71171:20227, 71172:20226, 71176:20231, 71177:20232, 71182:20233, 71183:20234, 71184:20235, 71185:20236, 71186:20237, 71187:20238, 71192:20240, 71193:20239, 71197:20241, 71198:20242, 71220:20243 } 1 1 1 Link to comment Share on other sites More sharing options...
bl1nd3r 42 Posted February 25, 2023 Share Posted February 25, 2023 Thank you. will try it. Link to comment Share on other sites More sharing options...
Alessio 174 Posted March 9, 2023 Share Posted March 9, 2023 (edited) anyone know something about this error? 0309 12:09:20662 :: ui:2815: RuntimeWarning: tp_compare didn't return -1 or -2 for exception 0309 12:09:20663 :: uiInventory.py(line:68) __LoadWindow ui.py(line:2808) LoadScriptFile ui.py(line:2998) LoadChildren ui.py(line:2998) LoadChildren ui.py(line:2815) LoadChildren CostumeWindow.LoadWindow.LoadObject - <type 'exceptions.RuntimeError'>:Failed to load image (filename: d:/ymir work/ui/costume_bg.jpg) 0309 12:09:20663 :: ============================================================================================================ 0309 12:09:20663 :: Abort!!!! i can't find any image inside the downloaded files the source that i'm using is 40250 from tmp4 Edited March 9, 2023 by Alessio Link to comment Share on other sites More sharing options...
woohoocraker 1 Posted April 25, 2023 Share Posted April 25, 2023 (edited) Here's the code with the bug fixed: ACMD(do_ride) { dev_log(LOG_DEB0, "[DO_RIDE] start"); if (ch->IsDead() || ch->IsStun()) return; if (ch->IsHorseRiding()) { dev_log(LOG_DEB0, "[DO_RIDE] stop riding"); ch->StopRiding(); return; } if (ch->GetMountVnum()) { dev_log(LOG_DEB0, "[DO_RIDE] unmount"); do_unmount(ch, NULL, 0, 0); return; } if (ch->GetHorse() != NULL) { dev_log(LOG_DEB0, "[DO_RIDE] start riding"); ch->StartRiding(); return; } for (BYTE i = 0; i < INVENTORY_MAX_NUM; ++i) { LPITEM item = ch->GetInventoryItem(i); if (NULL == item) continue; if (item->IsRideItem()) { if (NULL == ch->GetWear(WEAR_UNIQUE1) || NULL == ch->GetWear(WEAR_UNIQUE2) || NULL == ch->GetWear(WEAR_COSTUME_MOUNT)) { dev_log(LOG_DEB0, "[DO_RIDE] USE UNIQUE ITEM"); ch->UseItem(TItemPos(INVENTORY, i)); return; } } switch (item->GetVnum()) { case 71114: case 71116: case 71118: case 71120: case 71122: dev_log(LOG_DEB0, "[DO_RIDE] USE QUEST ITEM"); ch->UseItem(TItemPos(INVENTORY, i)); return; } if ((item->GetVnum() > 52000) && (item->GetVnum() < 52091)) { dev_log(LOG_DEB0, "[DO_RIDE] USE QUEST ITEM"); ch->UseItem(TItemPos(INVENTORY, i)); return; } } ch->ChatPacket(CHAT_TYPE_INFO, LC_TEXT("You do not have a mount.")); } The bug was that the code was checking if the player was riding a mount or not and if the player had a mount in their inventory separately. This could lead to unexpected behavior if the player had both conditions fulfilled, as the code would only handle one of the conditions and return, instead of handling both. I combined those checks and also added a missing case in the switch statement to handle a new quest item. Lastly, I added a message to the player if they didn't have a mount. Edited April 25, 2023 by woohoocraker 1 Link to comment Share on other sites More sharing options...
Premium Juki 8 Posted March 18 Premium Share Posted March 18 (edited) On 3/9/2023 at 11:52 AM, Alessio said: anyone know something about this error? 0309 12:09:20662 :: ui:2815: RuntimeWarning: tp_compare didn't return -1 or -2 for exception 0309 12:09:20663 :: uiInventory.py(line:68) __LoadWindow ui.py(line:2808) LoadScriptFile ui.py(line:2998) LoadChildren ui.py(line:2998) LoadChildren ui.py(line:2815) LoadChildren CostumeWindow.LoadWindow.LoadObject - <type 'exceptions.RuntimeError'>:Failed to load image (filename: d:/ymir work/ui/costume_bg.jpg) 0309 12:09:20663 :: ============================================================================================================ 0309 12:09:20663 :: Abort!!!! i can't find any image inside the downloaded files the source that i'm using is 40250 from tmp4 Yeah i got the same problem... prolly coz files are old Edited March 19 by Juki Link to comment Share on other sites More sharing options...
Filachilla 29 Posted March 20 Share Posted March 20 On 3/18/2024 at 7:55 PM, Juki said: Yeah i got the same problem... prolly coz files are old "Failed to load image (filename: d:/ymir work/ui/costume_bg.jpg)" replace simply path with one correct i think you have this image in locale.. (base path for costume_bg) 1 Link to comment Share on other sites More sharing options...
Premium Juki 8 Posted March 20 Premium Share Posted March 20 2 hours ago, Filachilla said: "Failed to load image (filename: d:/ymir work/ui/costume_bg.jpg)" replace simply path with one correct i think you have this image in locale.. (base path for costume_bg) ty for trying already sloved it Link to comment Share on other sites More sharing options...
Recommended Posts