Jump to content

Recommended Posts

  • Former Staff

If this method doesn't work let me know.

UserInterface/UserInterface.cpp

Spoiler

Replace


#pragma comment( lib, "python22.lib" )

with

#pragma comment( lib, "python27.lib" )

 

ScriptLib/PythonLauncher.cpp

Spoiler

Replace


#include <Python-2.2/frameobject.h>

with

#include <Python-2.7/frameobject.h>


 

ScriptLib/PythonLauncher.h

Spoiler

Replace


#include <Python-2.2/frameobject.h>

with

#include <Python-2.7/frameobject.h>


 

ScriptLib/PythonMarshal.cpp

Spoiler

Replace


#include <Python-2.2/longintrepr.h>

with

#include <Python-2.7/longintrepr.h>


 

ScriptLib/StdAfx.h

Spoiler

Replace


#include <Python-2.2/python.h>
#include <Python-2.2/python.h>
#include <Python-2.2/node.h>
#include <Python-2.2/grammar.h>
#include <Python-2.2/token.h>
#include <Python-2.2/parsetok.h>
#include <Python-2.2/errcode.h>
#include <Python-2.2/compile.h>
#include <Python-2.2/symtable.h>
#include <Python-2.2/eval.h>
#include <Python-2.2/marshal.h>

with

#include <Python-2.7/python.h>
#include <Python-2.7/python.h>
#include <Python-2.7/node.h>
#include <Python-2.7/grammar.h>
#include <Python-2.7/token.h>
#include <Python-2.7/parsetok.h>
#include <Python-2.7/errcode.h>
#include <Python-2.7/compile.h>
#include <Python-2.7/symtable.h>
#include <Python-2.7/eval.h>
#include <Python-2.7/marshal.h>


 

This is the hidden content, please

  • Metin2 Dev 56
  • Good 15
  • Love 2
  • Love 28
Link to comment
https://metin2.dev/topic/9309-python22-to-python-27/#findComment-56327
Share on other sites



This is the hidden content, please
 download and overwrite file  include_stuff/python-2.2

 

Userinterface/Userinterface.cpp

#pragma comment( lib, "python22.lib" )

Replace
#pragma comment( lib, "python27.lib" )

ScriptLib/PythonUtils.cpp

Add incule under


#define PyLong_AsLong PyLong_AsLongLong
#define PyLong_AsUnsignedLong PyLong_AsUnsignedLongLong
 

scriptlib/python 2.2 overwrite again file with Visualstudio2013 not need overwrite.

This is the hidden content, please


Client side:

This is the hidden content, please



Sorry my english.

  • Metin2 Dev 24
  • Cry 1
  • Good 11
  • Love 3
  • Love 12
Link to comment
https://metin2.dev/topic/9309-python22-to-python-27/#findComment-56329
Share on other sites

  • 10 months later...

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.