How to update metin2 python?

03/06/2015 12:48 Attila1995#1
Hy guys.

How to update metin2 python 2.2 to 2.7 client source?

Only python system update.

Please help me!

(Sorry my english bad.)

Thanks!
03/06/2015 14:47 worldend#2
# cd /usr/ports/lang/python27/
# make

or

# pkg_add -v -r python27
03/06/2015 15:08 rollback#3
He is searching for a Client update
03/06/2015 17:13 Lefloyd#4
You have to change the "python22.dll" to the "python27.dll" (don't rename but download the new file) in the client folder (obviously) and then change in the source in the UserInterface.cpp
Code:
#pragma comment( lib, "python22.lib" )
->
Code:
#pragma comment( lib, "python27.lib" )
Now open the StdAfx.h in the project called "scriptLib" and replace all the
Code:
#include <Python22/x.h>
->
Code:
#include <Python27/x.h>
Well now open "PythonUtils.cpp" in the same project and insert
Code:
#define PyLong_AsLong PyLong_AsLongLong
#define Pylong_AsUnsignedLong PyLong_AsUnsignedLongLong
after the includes.
I think that's all, I hope I haven't forgotten something important but u'll see (:

Kind Regards
03/07/2015 08:59 Attila1995#5
Hi Lefloyd!

Thank all for fast help!

This solution is not good. :S

Not runing compiled metin2clinet.exe. :S

I open and not runing, no sysserr and no eroorr dialog. :S

I add new python27.dll and python27 library folder my client folder.
03/07/2015 12:37 Lefloyd#6
Have you tried to start the binary in debug mode? What's the error there that's displayed? If you don't know how to run it in debug mode just tell me and I'll add you in skype to show.

Kind Regards
03/07/2015 13:11 Attila1995#7
Thanks for reply.

Error dialog:
[Only registered and activated users can see links. Click Here To Register...]

(My skype addres: webprogrammer0)
03/07/2015 13:36 Lefloyd#8
Oh well, I don't need skype for this error; open all your python-files in the root directory with notepad++ and press Strg+H and replace all "locale" with "localeInfo" (select the box to search only for full words) and click on the "Replace in all files" button (or whatever it's called in english). Now rename the locale.py to localeInfo.py in the root folder and pack it. Now try again.

Kind Regards
03/07/2015 15:39 Attila1995#9
Now new error :(
[Only registered and activated users can see links. Click Here To Register...]
03/07/2015 19:49 Lefloyd#10
Well, added you skype. Will be easier to solve the problem there.

Kind Regards