Hanma
-
Posts
17 -
Joined
-
Last visited
-
Feedback
0%
Content Type
Forums
Store
Third Party - Providers Directory
Feature Plan
Release Notes
Docs
Events
Posts posted by Hanma
-
-
0223 11:18:02172 :: Traceback (most recent call last):
0223 11:18:02172 :: File "ui.py", line 1047, in CallEvent
0223 11:18:02172 :: File "ui.py", line 88, in __call__
0223 11:18:02172 :: File "ui.py", line 70, in __call__
0223 11:18:02172 :: File "introLogin.py", line 1284, in __OnClickSelectServerButton
0223 11:18:02173 :: KeyError
0223 11:18:02173 :: :
0223 11:18:02173 :: 4
0223 11:18:02173 ::
I add code correctly and this comes in syserr.
Am fight with it from 3days.
Can someone help me? -
5 hours ago, uncons said:
help me please
and i didint understand last lines bcs my english bad pls help me i will share my ui and uitarget
my ui.py:
class Gauge(Window): SLOT_WIDTH = 16 SLOT_HEIGHT = 7 GAUGE_TEMPORARY_PLACE = 12 GAUGE_WIDTH = 16 def __init__(self): Window.__init__(self) self.__oldValue = 0 self.__newValue = 0 self.width = 0 def __del__(self): Window.__del__(self) def MakeGauge(self, width, color): self.width = max(48, width) imgSlotLeft = ImageBox() imgSlotLeft.SetParent(self) imgSlotLeft.LoadImage("d:/ymir work/ui/pattern/gauge_slot_left.tga") imgSlotLeft.Show() imgSlotRight = ImageBox() imgSlotRight.SetParent(self) imgSlotRight.LoadImage("d:/ymir work/ui/pattern/gauge_slot_right.tga") imgSlotRight.Show() imgSlotRight.SetPosition(width - self.SLOT_WIDTH, 0) imgSlotCenter = ExpandedImageBox() imgSlotCenter.SetParent(self) imgSlotCenter.LoadImage("d:/ymir work/ui/pattern/gauge_slot_center.tga") imgSlotCenter.Show() imgSlotCenter.SetRenderingRect(0.0, 0.0, float((width - self.SLOT_WIDTH*2) - self.SLOT_WIDTH) / self.SLOT_WIDTH, 0.0) imgSlotCenter.SetPosition(self.SLOT_WIDTH, 0) imgGaugeBack = ExpandedImageBox() imgGaugeBack.SetParent(self) imgGaugeBack.LoadImage("d:/ymir work/ui/pattern/gauge_yellow.tga") imgGaugeBack.Hide() imgGaugeBack.SetRenderingRect(0.0, 0.0, 0.0, 0.0) imgGaugeBack.SetPosition(self.GAUGE_TEMPORARY_PLACE, 0) imgGauge = ExpandedImageBox() imgGauge.SetParent(self) imgGauge.LoadImage("d:/ymir work/ui/pattern/gauge_yellow.tga") imgGauge.Show() imgGauge.SetRenderingRect(0.0, 0.0, 0.0, 0.0) imgGauge.SetPosition(self.GAUGE_TEMPORARY_PLACE, 0) imgSlotLeft.AddFlag("attach") imgSlotCenter.AddFlag("attach") imgGaugeBack.AddFlag("attach") imgSlotRight.AddFlag("attach") if app.BL_PARTY_UPDATE: def GaugeImgBoxAddFlag(self, flag): self.imgLeft.AddFlag(flag) self.imgCenter.AddFlag(flag) self.imgRight.AddFlag(flag) self.imgGauge.AddFlag(flag) if app.ENABLE_POISON_GAUGE_EFFECT: def SetGaugeColor(self, color): if self.imgGauge: self.imgGauge.LoadImage("d:/ymir work/ui/pattern/gauge_yellow.tga") self.imgLeft = imgSlotLeft self.imgCenter = imgSlotCenter self.imgRight = imgSlotRight self.imgGauge = imgGauge self.imgGaugeBack = imgGaugeBack self.SetSize(width, self.SLOT_HEIGHT) def SetPercentage(self, curValue, maxValue): # PERCENTAGE_MAX_VALUE_ZERO_DIVISION_ERROR if maxValue > 0.0: percentage = min(1.0, float(curValue)/float(maxValue)) else: percentage = 0.0 # END_OF_PERCENTAGE_MAX_VALUE_ZERO_DIVISION_ERROR self.__oldValue = self.__newValue self.__newValue = percentage gaugeSize = -1.0 + float(self.width - self.GAUGE_TEMPORARY_PLACE*2) * percentage / self.GAUGE_WIDTH self.imgGauge.SetRenderingRect(0.0, 0.0, gaugeSize, 0.0) self.SetPercentageBack(self.__oldValue, 1.0) def SetPercentageBack(self, curValue, maxValue): if not self.imgGaugeBack.IsShow(): self.imgGaugeBack.Show() if maxValue > 0.0: percentage = min(1.0, float(curValue) / float(maxValue)) else: percentage = 0.0 gaugeSize = -1.0 + float(self.width - self.GAUGE_TEMPORARY_PLACE * 2) * percentage / self.GAUGE_WIDTH self.imgGaugeBack.SetRenderingRect(0.0, 0.0, gaugeSize, 0.0) def OnUpdate(self): if self.IsShow() and self.__oldValue > self.__newValue: self.__oldValue = self.__oldValue - 0.005 self.SetPercentageBack(self.__oldValue, 1.0)
my uitarget.py:
def SetHP(self, hpNow, hpMax): if not self.hpGauge.IsShow(): self.SetSize(200 + 7 * self.nameLength, self.GetHeight()) self.name.SetPosition(23, 13) self.name.SetWindowHorizontalAlignLeft() self.name.SetHorizontalAlignLeft() self.hpGauge.Show() self.hpText.Show() self.UpdatePosition() if app.ENABLE_POISON_GAUGE_EFFECT: if chrmgr.HasAffectByVID(self.GetTargetVID(), chr.AFFECT_POISON): self.hpGauge.SetGaugeColor("lime") else: self.hpGauge.SetGaugeColor("red") self.hpGauge.SetPercentage(hpNow, hpMax) self.hpText.SetText("%s/%s (%.2f%%)" % (localeInfo.NumberToMoneyString(hpNow)[:-5], localeInfo.NumberToMoneyString(hpMax)[:-5], max(0, (float(hpNow) / max(1, float(hpMax)) * 100))))
only the last lines
I wrote the other lines as they were
If u dont use BL_PARTY_UPDATE then delete this liens with it.
-
offlineshop_manager.cpp:550:29: error: 'bPos' was not declared in this scope
550 | InsertInMysql(ch, pkItem, bPos, iPrice);
Can someone help ? -
I have some problem with use of undeclared identifier like:
char.cpp:3885:8: error: use of undeclared identifier 'APPLY_ATTBONUS_ELEC'; did you mean 'APPLY_ATTBONUS_ORC'?
case APPLY_ATTBONUS_ELEC: // 99
^~~~~~~~~~~~~~~~~~~
APPLY_ATTBONUS_ORC
and duplicate case value:
char.cpp:3885:8: error: duplicate case value 'APPLY_ATTBONUS_ORC'
case APPLY_ATTBONUS_ELEC: // 99
^
char.cpp:3809:8: note: previous case defined here
case APPLY_ATTBONUS_ORC:
Can someone help me with this?- 1
-
Is it possbile to open this system by button.
open a window by button and drag chest into it? -
From where get this Cheque-System that are used in this system
-
Sup i found a marbleshop system.
https://metin2.download/picture/inP9H7mm6QEscAjRcbpYiyge0Ger75kN/.png
I want to connect it so that you don't have to click F11, but use the button in the inventory sidebar.
Here is a code what u need to add this system (client side)
https://pastebin.com/raw/kqmJq0iZ
Can someone help me with this?
-
Error C2065 'rSlot': undeclared identifier eterPythonLib E:\Source Client\client\eterPythonLib\PythonSlotWindow.cpp 1254
My PythonSlotWindow.cpp
-
Hey, i have a problem with client.
Am trying to login into game but then this:
https://metin2.download/picture/08DoCk9KE42wTXME6DXJ1W16EUBPyk1m/.png
I have tried many things but nothing has helped.
sysser is clear
Maybe some of you can help me with this.
-
-
Hi guys am looking for clear Client 2015 with updated granny to 2.11 and dx9 update
Patcher that will check the files to be replaced with new ones (Lest there was a situation in which the patcher will not download the file because it is so despite the changes in the new one).
it does not have to be some super modern patcher, simple enough without unnecessary quirks, just to check the files.
-
7 hours ago, pbugyon said:
I'm using it but not as a server because my friends can't connect via hamachi or whatever
I mean more to whether it is profitable to put on this server or better to look for other files
-
you can put a server on this? it is stable?
-
Sup i have a problem with world editor
https://metin2.download/picture/hCtkCsNd8On8r9fXV7hFAu0R6wCQjL61/.png
How to fix it , i wanna see normal textures
-
Am not add rendertarget to src client, because i dont want it
Sysser:
0218 22:03:05414 ::
networkModule.py(line:208) SetSelectCharacterPhase
system.py(line:130) __pack_import
system.py(line:110) _process_result
introSelect.py(line:30) <module>
system.py(line:130) __pack_import
system.py(line:110) _process_result
interfaceModule.py(line:52) <module>
system.py(line:130) __pack_import
system.py(line:110) _process_result
uiDungeonInfo.py(line:16) <module>
system.py(line:137) __pack_importnetworkModule.SetSelectCharacterPhase - <type 'exceptions.ImportError'>:No module named renderTarget
0218 22:03:05414 :: ============================================================================================================
0218 22:03:05414 :: Abort!!!!
- 1
- 1
Official Move Channel
in Features & Metin2 Systems
Posted
yup
here is my intrologin.py
https://pastebin.com/raw/dPq1cqvM