Runtime SDK Help

Forum for plugin, effect and behavior programmers. Please use the Help & Support forum for help using Construct.

Post » Mon Oct 10, 2011 2:04 am

Hi, I noticed that with the Construct Classic Source Code that the runtime sdk is included however, I can seem to figure out how to compile the python runtimes for an examples DX9_ps or App_ps
You know the ones for the python scripting runtimes. Can someone help me figure out how to compile it or is it not included?

Thank you,

My name is Samual by the way.
B
2
G
1
Posts: 6
Reputation: 462

Post » Mon Oct 10, 2011 8:17 am

Hi,
Python runtimes are built by uncommenting
[code]//#define PYTHON[/code]
in StdAfx.h and building like normal. Then just rename the built runtimes to have "s" in there filename.
B
79
S
24
G
54
Posts: 4,743
Reputation: 40,749

Post » Tue Oct 11, 2011 12:00 am

ok I understand thank you so much
B
2
G
1
Posts: 6
Reputation: 462

Post » Tue Oct 11, 2011 1:36 am

Hi, I uncommented the Define Python and now I get an error that says python.h can not be found so I downloaded Python 3.2.2 source code and added the include and libs and now I get 7 errors in the System.cpp file. Can you please send me the python files I need to compile the python runtimes?

I would really appreciate it or at least tell me which python source I need.

Thanks you in advance,

Samual
B
2
G
1
Posts: 6
Reputation: 462

Post » Tue Oct 11, 2011 3:37 am

Hi some of the errors I get are

System.cpp(4221) : error C3861: 'PyInt_Check': identifier not found
1>.\System.cpp(4223) : error C3861: 'PyInt_AS_LONG': identifier not found
1>.\System.cpp(4236) : error C3861: 'PyString_Check': identifier not found
1>.\System.cpp(4239) : error C3861: 'PyString_AS_STRING': identifier not found
1>.\System.cpp(5034) : error C3861: 'Py_InitModule': identifier not found
1>.\System.cpp(5510) : error C3861: 'PyString_Check': identifier not found
1>.\System.cpp(5513) : error C3861: 'PyString_AsString': identifier not found

Please help me resolve this. I'm using Visual Studio 2008
B
2
G
1
Posts: 6
Reputation: 462

Post » Tue Oct 11, 2011 4:07 am

You need Python 2.6 or 2.7. I don't think you need the source code, the standard python install has the include files needed.
B
79
S
24
G
54
Posts: 4,743
Reputation: 40,749

Post » Tue Oct 11, 2011 4:43 am

Hi Ok thanks I'll try to install python 2.7
B
2
G
1
Posts: 6
Reputation: 462

Post » Tue Oct 11, 2011 5:21 am

Hi I compile with python26 and compile the DX9_s and when I compile my project it says failed to load plugin? Any help would be appreciated.

Thanks
B
2
G
1
Posts: 6
Reputation: 462


Return to Construct engineering

Who is online

Users browsing this forum: No registered users and 1 guest