Jump to content

Recommended Posts

Anyone know how to resolve in client source this error:  Python int too large to convert to C long ?

 

 

I found this : 

 

PythonUtils.cpp

// Python int too large to convert to C long
#define PyLong_AsLong PyLong_AsLongLong
#define PyLong_AsUnsignedLong PyLong_AsUnsignedLongLong
 
but
 
 

 

PythonUtils.cpp

// Python int too large to convert to C long#define PyLong_AsLong PyLong_AsLongLong#define PyLong_AsUnsignedLong PyLong_AsUnsignedLongLong

um. That's OK but when we work on large numbers we can have badly suprises

 

 

There are other better solution or is it ok that? I hate CTOA.

 

 

Thanks in advance.

Link to comment
https://metin2.dev/topic/5960-python-int-too-large-to-convert-to-c-long/
Share on other sites

  • Replies 3
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

Do you try to change limit of gold?

I want to try to change gold limit but the thing that worries me ... 

 

I use this python27.dll and works ok at the moment:  has a smaller size than the official servers python27.dll ... 900+kb vs 2mb+

Don't use any images from : imgur, turkmmop, freakgamers, inforge, hizliresim... Or your content will be deleted without notice...
Use : https://metin2.download/media/add/

Please use https://metin2.download/ when uploading files smaller than 100MB, otherwise the approval will take longer due to manual upload.

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
×
×
  • 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.