pyirrlicht - python ctypes binding

Announce new projects or updates of Irrlicht Engine related tools, games, and applications.
Also check the Wiki
maxim
Posts: 6
Joined: Thu Mar 11, 2010 8:54 am
Location: Russia
Contact:

pyirrlicht - python ctypes binding

Post by maxim »

Hi all.

pyirrlicht is download here http://vosolok2008.narod.ru/pyirrlicht.zip (120 KB).

Please report any bugs that you find, and suggest features!
Sir_Hans
Posts: 143
Joined: Sun Dec 06, 2009 2:23 pm
Location: Germany

Post by Sir_Hans »

I get this error when I try to run HelloWorld:


Traceback (most recent call last):
File "(text deleted ;))\pyirrlicht\pyirrlicht\HelloWorld.py", line 13, in <module>
guienv.addStaticText('Hello World! This is the Irrlicht Software renderer!', pyirrlicht.recti(10,10,260,22).c_pointer, True)
File "(text deleted ;))\pyirrlicht\pyirrlicht\pyirrlicht.py", line 1962, in addStaticText
return gui_addStaticText(self.c_pointer, text, rectangle, border, wordWrap, parent, id, fillBackground)
WindowsError: exception: access violation reading 0x00000001
maxim
Posts: 6
Joined: Thu Mar 11, 2010 8:54 am
Location: Russia
Contact:

Post by maxim »

Thanks Sir_Hans.
What is your Python version?
maxim
Posts: 6
Joined: Thu Mar 11, 2010 8:54 am
Location: Russia
Contact:

Post by maxim »

Please test new version dll http://vosolok2008.narod.ru/irrlicht_c.zip
Sir_Hans
Posts: 143
Joined: Sun Dec 06, 2009 2:23 pm
Location: Germany

Post by Sir_Hans »

I got 2.6
It still doesn't work with the new dll.
maxim
Posts: 6
Joined: Thu Mar 11, 2010 8:54 am
Location: Russia
Contact:

Post by maxim »

Thanks Sir_Hans again.
New alpha version is as old link.
Tested with Python 2.5, 2.6 and Irrlicht Win32-VisualStudio dll.
Sir_Hans
Posts: 143
Joined: Sun Dec 06, 2009 2:23 pm
Location: Germany

Post by Sir_Hans »

Still the same error. Do I have to config my python or anything like that?
maxim
Posts: 6
Joined: Thu Mar 11, 2010 8:54 am
Location: Russia
Contact:

Post by maxim »

Perhaps you are using a different platform.
My tests with win2000 prof, XP home and server 2003.

Also new version available as old link.
Sir_Hans
Posts: 143
Joined: Sun Dec 06, 2009 2:23 pm
Location: Germany

Post by Sir_Hans »

I use win7.
_maxim_
Posts: 54
Joined: Thu May 27, 2010 11:05 am
Location: Russia
Contact:

Post by _maxim_ »

New version include SWIG wrapper and FASM example

Compiled as static library, vector fonts supported.

SVN is:
http://svn.emforge.net/svnroot/pyirrlicht/
_maxim_
Posts: 54
Joined: Thu May 27, 2010 11:05 am
Location: Russia
Contact:

version is update

Post by _maxim_ »

new version is accessible from home page http://pypi.python.org/pypi/pyirrlicht or alternative link http://pir.sourceforge.net
devsh
Competition winner
Posts: 2057
Joined: Tue Dec 09, 2008 6:00 pm
Location: UK
Contact:

Post by devsh »

can we use this in the Blooddrunk Engine?
Sir_Hans
Posts: 143
Joined: Sun Dec 06, 2009 2:23 pm
Location: Germany

Post by Sir_Hans »

Nice, the new version works for me ;) at least the 2d game but I guess everything will work^^
_maxim_
Posts: 54
Joined: Thu May 27, 2010 11:05 am
Location: Russia
Contact:

Post by _maxim_ »

Thanks Sir_Hans. Quake3Explorer yet not work.

For devsh - yes. Your project is very interesting. I glad if my work was help for this.
spock
Posts: 16
Joined: Tue Aug 01, 2006 4:53 am

Post by spock »

interesting! :)

so does this use ctypes or swig now?

i thought ctypes only works for c? how did you do a c++ wrapper using ctypes then?

is python 3.1/3.2 supported?
Post Reply