Jump to content

0 YANG (yang limit problem)


Recommended Posts

1 hour ago, Kamylek said:

I change every fcking int to long long/arg1/ELK/GOLD and I STILL  GOT 0 FCKING YANG above 2.1kkk

Points, value, amounts? You did it for ELK/GOLD/ARGUMENTS for exchange and shop, but you still need to chance GetStatus, SetStatus functions from client/userinterface, you need to change virtual void from AbstractPlayer.h from virtual int to virtual long long(or your *fcking* value)

"Don't be a scammer. Don't be a hacker. Don't be a motherfucker. Karma is a bitch"

Link to comment
Share on other sites

points-done

value-done

amounts-done

elk-done

gold-done

arg-done

GetStatus-done

SetStatus-done

5 minutes ago, AlexxD said:

Points, value, amounts? You did it for ELK/GOLD/ARGUMENTS for exchange and shop, but you still need to chance GetStatus, SetStatus functions from client/userinterface, you need to change virtual void from AbstractPlayer.h from virtual int to virtual long long(or your *fcking* value)

 

Link to comment
Share on other sites

1 minute ago, Kamylek said:

points-done

value-done

amounts-done

elk-done

gold-done

arg-done

GetStatus-done

SetStatus-done

 

There's no chance to NOT work if you done these.. Take a look back. If you use python27, use 'K' value not PyLong_AsLongLong or 'LL' or another values.

"Don't be a scammer. Don't be a hacker. Don't be a motherfucker. Karma is a bitch"

Link to comment
Share on other sites

22 minutes ago, Kamylek said:

ill try it.

How to put K instead PyLong_FromLongLong in binary?

Non edited files from binary, have this:
 

Spoiler

PyObject * playerGetElk(PyObject* poSelf, PyObject* poArgs)
{
    return Py_BuildValue("i", CPythonPlayer::Instance().GetStatus(POINT_GOLD));
}

make it like this:

Spoiler

PyObject * playerGetElk(PyObject* poSelf, PyObject* poArgs)
{
    return Py_BuildValue("K", CPythonPlayer::Instance().GetStatus(POINT_GOLD));
}

 

"Don't be a scammer. Don't be a hacker. Don't be a motherfucker. Karma is a bitch"

Link to comment
Share on other sites

  • Premium
1 minute ago, AlexxD said:

Non edited files from binary, have this:
 

  Reveal hidden contents

PyObject * playerGetElk(PyObject* poSelf, PyObject* poArgs)
{
    return Py_BuildValue("i", CPythonPlayer::Instance().GetStatus(POINT_GOLD));
}

make it like this:

  Hide contents

PyObject * playerGetElk(PyObject* poSelf, PyObject* poArgs)
{
    return Py_BuildValue("K", CPythonPlayer::Instance().GetStatus(POINT_GOLD));
}

 

work with K? :D

  • Love 1


 

Link to comment
Share on other sites

I had:

 

   def __OnValueUpdate(self):
        ui.EditLine.OnIMEUpdate(self.inputValue)

        text = self.inputValue.GetText()

        money = 0
        if text and text.isdigit():
            try:
                money = long(text)
            except ValueError:
                money = 999999999999

        self.moneyText.SetText(self.moneyHeaderText + localeInfo.NumberToMoneyString(money))

Link to comment
Share on other sites

1 minute ago, Kamylek said:

I had:

 

   def __OnValueUpdate(self):
        ui.EditLine.OnIMEUpdate(self.inputValue)

        text = self.inputValue.GetText()

        money = 0
        if text and text.isdigit():
            try:
                money = long(text)
            except ValueError:
                money = 999999999999

        self.moneyText.SetText(self.moneyHeaderText + localeInfo.NumberToMoneyString(money))

def __OnValueUpdate(self):
        ui.EditLine.OnIMEUpdate(self.inputValue)

        text = self.inputValue.GetText()

        money = 0
        if text and text.isdigit():
            try:
                money = long(text)
            except ValueError:
                money = 1000000000000

        self.moneyText.SetText(self.moneyHeaderText + localeInfo.NumberToMoneyString(money))

replace with this, and if doesn't works, then I don't know, maybe you forgot something in source/binary.

"Don't be a scammer. Don't be a hacker. Don't be a motherfucker. Karma is a bitch"

Link to comment
Share on other sites

  • 4 weeks later...
On ‎26‎/‎11‎/‎2015 at 5:21 PM, AlexxD said:

def __OnValueUpdate(self):
        ui.EditLine.OnIMEUpdate(self.inputValue)

        text = self.inputValue.GetText()

        money = 0
        if text and text.isdigit():
            try:
                money = long(text)
            except ValueError:
                money = 1000000000000

        self.moneyText.SetText(self.moneyHeaderText + localeInfo.NumberToMoneyString(money))

replace with this, and if doesn't works, then I don't know, maybe you forgot something in source/binary.

I did that I do not have the same problem my problem is that I compiled everything but the game won't start... Here is my syserr:

Spoiler
1224 06:40:00647 :: ui
1224 06:40:00647 :: :3016:
1224 06:40:00647 :: RuntimeWarning
1224 06:40:00647 :: :
1224 06:40:00647 :: tp_compare didn't return -1 or -2 for exception
1224 06:40:00647 ::
 
1224 06:40:00650 ::
introLogin.py(line:509) __LoadScript
ui.py(line:3009) LoadScriptFile
ui.py(line:3209) LoadChildren
ui.py(line:3209) LoadChildren
ui.py(line:3016) LoadChildren
 
LoginWindow.__LoadScript.LoadObject - <type 'exceptions.OverflowError'>:Python int too large to convert to C long
 
1224 06:40:00650 :: ============================================================================================================
1224 06:40:00650 :: Abort!!!!
 
 

and my function in uiCommon.py:

Spoiler
 def __OnValueUpdate(self):
  ui.EditLine.OnIMEUpdate(self.inputValue)
 
  text = self.inputValue.GetText()
 
  money = 0
  if text and text.isdigit():
   try:
    money = longlong(text)
   except ValueError:
    money = 1000000000000000
 
  self.moneyText.SetText(self.moneyHeaderText + localeInfo.NumberToMoneyString(money))

 

Link to comment
Share on other sites

Well I fixed it somehow differently but now I get this syserr :P

Spoiler
1224 16:34:14653 ::
networkModule.py(line:201) 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:10) <module>
system.py(line:130) __pack_import
system.py(line:110) _process_result
uiTaskBar.py(line:5) <module>
system.py(line:137) __pack_import
L:\work\Python-2.7.3\lib\locale.py(line:15) <module>
system.py(line:137) __pack_import
C:\Users\YMIR\Downloads\Python-2.7.3\Python-2.7.3\lib\encodings\__init__.py(line:32) <module>
 
networkModule.SetSelectCharacterPhase - <type 'exceptions.ImportError'>:cannot import name aliases
 
1224 16:34:14653 :: ============================================================================================================
1224 16:34:14653 :: Abort!!!!
 
 

 

Link to comment
Share on other sites

On 12/24/2015 at 6:41 AM, Veneno said:

I did that I do not have the same problem my problem is that I compiled everything but the game won't start... Here is my syserr:

  Reveal hidden contents
1224 06:40:00647 :: ui
1224 06:40:00647 :: :3016:
1224 06:40:00647 :: RuntimeWarning
1224 06:40:00647 :: :
1224 06:40:00647 :: tp_compare didn't return -1 or -2 for exception
1224 06:40:00647 ::
 
1224 06:40:00650 ::
introLogin.py(line:509) __LoadScript
ui.py(line:3009) LoadScriptFile
ui.py(line:3209) LoadChildren
ui.py(line:3209) LoadChildren
ui.py(line:3016) LoadChildren
 
LoginWindow.__LoadScript.LoadObject - <type 'exceptions.OverflowError'>:Python int too large to convert to C long
 
1224 06:40:00650 :: ============================================================================================================
1224 06:40:00650 :: Abort!!!!
 
 

and my function in uiCommon.py:

  Reveal hidden contents
 def __OnValueUpdate(self):
  ui.EditLine.OnIMEUpdate(self.inputValue)
 
  text = self.inputValue.GetText()
 
  money = 0
  if text and text.isdigit():
   try:
    money = longlong(text)
   except ValueError:
    money = 1000000000000000
 
  self.moneyText.SetText(self.moneyHeaderText + localeInfo.NumberToMoneyString(money))

 

You need to change in uiCommon.py

Spoiler

money = longlong(text)

to

Spoiler

money = long(text)

 

"Don't be a scammer. Don't be a hacker. Don't be a motherfucker. Karma is a bitch"

Link to comment
Share on other sites

NOOOOOOPE! Not that tut! That is what I did and my client was not running. For anyone that needs a good tut here is one http://metin2tech.de/topic/19-cyang-limit-erh%C3%B6hen/.

Of course some parts from the hungarian tut are better (ex. you should do llPrice not dwPrice) and of course in the hungarian there are some more details on what you should change but for everyone who is about to go through this procedure I recommend the german one as a "core-tut" let's say it that way and as a secondary tut for completing incomplete parts to use the hungarian. And don't forget to change the python parts! I did the german and now I have problem with my Inventory only (does not go higher than 2.124.000.000) but if I find any fix for that I will mark it with a "Like this" so you can go to my activity and see how did I fixe it. I hope I was helpfull :)

EDIT: Problem solved (only visual, still needs some stuff to work properly) - See comment of @.T4Ump

Link to comment
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now

Announcements



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