Adding "other" libraries to Ren'Py
Posted: Wed Sep 02, 2015 4:36 pm
So there've been times where I wanted Ren'Py to do something somewhat odd - at this particular moment, I'd like it to be able to run lua scripts.
lunatic-python-bugfix seems to allow me to do this. Ignoring the fact that I'd have to compile it for 3-4 platforms, how would I add the binaries to Ren'Py in the first place so that the "import lua" line works?
At the moment, I'm staring at two built *.so files. I tried throwing them into the "renpy/lib/darwin-x86_64/lib/python2.7" area (seeing that I'm on Mac OS X at the moment). I ended up with the following problem:
lunatic-python-bugfix seems to allow me to do this. Ignoring the fact that I'd have to compile it for 3-4 platforms, how would I add the binaries to Ren'Py in the first place so that the "import lua" line works?
At the moment, I'm staring at two built *.so files. I tried throwing them into the "renpy/lib/darwin-x86_64/lib/python2.7" area (seeing that I'm on Mac OS X at the moment). I ended up with the following problem:
Code: Select all
ImportError: dlopen(/Applications/renpy/renpy.app/Contents/MacOS/../../../lib/darwin-x86_64/lib/python2.7/lua.so, 2): Symbol not found: _PyUnicodeUCS2_FromFormat
Referenced from: /Applications/renpy/renpy.app/Contents/MacOS/../../../lib/darwin-x86_64/lib/python2.7/lua.so
Expected in: flat namespace
in /Applications/renpy/renpy.app/Contents/MacOS/../../../lib/darwin-x86_64/lib/python2.7/lua.so