General Building C Python module for AC Python 3.3.5 version

Hey,

I've been trying to compile a custom C-API Python module for AC's 3.3.5 Python and using it in-game. The module compiles successfully and I get the finished *.pyd that I can import. Using the module in a local terminal works fine, however, using it in AC leads to a crash (importing is fine though).

Did anybody else try this before, or has somebody a tip I haven't tried yet?

Some more information:

Cheers, and thanks for any input.
 
For anyone interested:

I solved the problem myself, however, I am not sure what was the cause.
Removing the garbage collection flag 'Py_TPFLAGS_HAVE_GC' and the function pointer to the destructor from the 'PyTypeObject' description did the trick.
Be careful, this might lead to a memory leak! :)
 

Latest News

Are you buying car setups?

  • Yes

  • No


Results are only viewable after voting.
Back
Top