[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [50310] trunk/blender/source/gameengine: . .\commmit_hive.txt

Benoit Bolsee benoit.bolsee at online.be
Sun Sep 2 17:25:16 CEST 2012


Oh man, I used -m option by mistake. Here is the full log:

BGE: give control over main loop to python script.

Gives the possibility to pass the game control to a python script.
The game engine ends when the python script returns. 

This patch is intended for the hive system, an experimental nodal
logic system for Blender and Panda3D (https://launchpad.net/hivesystem).
The hive system uses the patch to control the main BGE loop.

To active this feature, add a custom property "__main__" to
the startup scene and set it to the name of a text block that
contains the python script.

"NextFrame" python function is provided in the GameLogic module
to execute one frame of the BGE, i.e. logic bricks, physics and
render. The function returns FALSE if the game hit an exit condition,
TRUE otherwise. 

Example: 

  # this python script will reproduce the behavior of the BGE (with poor
timing):
  import GameLogic, time
  while GameLogic.NextFrame():
      time.sleep(0.016)

Notes: * This feature is used internally by the hive system.
       * This interface is unstable, it may change in future
       * It is not yet possible to load a new game or restart
         the game from the main python script. If you try to
         do so the game will simply stop.


> -----Original Message-----
> From: Dalai Felinto [mailto:dfelinto at gmail.com] 
> Sent: dimanche 2 septembre 2012 8:05
> To: bf-committers at blender.org
> Cc: Benoit Bolsee
> Subject: Re: [Bf-blender-cvs] SVN commit: 
> /data/svn/bf-blender [50310] trunk/blender/source/gameengine: 
> . .\commmit_hive.txt
> 
> 
> > Log Message:
> > -----------
> > ..\commmit_hive.txt
> 
> lol ... did you do --message instead of -F? :)
> Benoit, mind pasting the log here?
> 
> Thanks,
> Dalai
> 




More information about the Bf-blender-cvs mailing list