Jump to content

Python2.2 to Python 2.7


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 51
  • Good 13
  • Love 2
  • Love 25
Link to comment
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 22
  • Cry 1
  • Good 11
  • Love 2
  • Love 12
Link to comment
Share on other sites

  • 10 months later...

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.