[Bf-python] questions about python sub-interpreters, merge of bpy and gamepy

maci_ray maci_ray at yahoo.de
Sat Sep 13 13:51:54 CEST 2003


 --- Willian Padovani Germano <wgermano at ig.com.br> schrieb:

> From: "maci_ray" <maci_ray at yahoo.de>
> (...)
> > I think it would cause a lot of problems when game-engine scripts will
> > stay running after end, or did you ment static scripts running while
> > gameengine starts?
> 
> Yes, when we integrate normal scripts properly, they should be able to stay
> "up" just like other Blender windows.

If we could remove the restarts of the interpreters that would work.
I heard of some dictionary hacks in old versions, where BPY and GamePY
were both avaible. I have to seek through cvs to figure out what happend
there clearly...

> > Remind that the game objects only do exist from start of the engine till
> > it's end.
> 
> Yes, one of the things mentioned in that thread was that it would be nice if
> the game engine could be stopped and the current state of objects exposed to
> the bpython API.

Hm, and what if the game engine is restarted? Stopping an stay means the
scene converter couldn't be ended, that will give great confusion I guess.

> > I took some experiments with a slighly modified bpy. In
> > BL_KetsjiEmbedStart.cpp I modified the call to BPY_start_python() with
> > a flag indicating bpy runs in a game mode. With this flags only the
> > modules I needed (that should be tested and be game engine proven) were
> > initialized. Some special functionality is enabled, also, real mesh
> > replacement that I really needed. Maybe we should investigate further
> > on this...
> 
> Sure.

Maybe someone likes to test the patch?

> > Don't forget the _completely_ different approches of implementation
> > of the APIs.
> 
> They much probably "encode" the data in different ways, but it should still
> be possible to use both together, taking data from one and passing to the
> other.  But I haven't played with this, it's all a pure guess.

In the old implementation of my application I did just that. Mesh replacement
with BPY and then restart of gamescenes and so on. But with new bpython
implementation it was removed from game appearence :-(. So I started my
research on better cooperation of the both pythons.

Maci_Ray.


__________________________________________________________________

Gesendet von Yahoo! Mail - http://mail.yahoo.de
Logos und Klingeltöne fürs Handy bei http://sms.yahoo.de



More information about the Bf-python mailing list