silly newbie question

Game Engine, Players & Web Plug-in, Virtual Reality, support for other engines

Moderators: jesterKing, stiv

prdglsn79
Posts: 6
Joined: Thu Jan 30, 2003 10:57 am

silly newbie question

Postby prdglsn79 » Fri Jan 31, 2003 8:10 am

I know this is a dumb one, but bear with me. Does the python GameLogic module come with the downloadable version of publisher, or do you have to get the game kit? if it comes with it, would someone tell me how to import it, because python can't find mine.

Thanks,
Mark Schiltz

joeri
Posts: 2243
Joined: Fri Jan 10, 2003 6:41 pm
Contact:

Postby joeri » Fri Jan 31, 2003 3:56 pm

Blender Publisher is blender 2.25 publisher ( which can make standalone runable files ).

The Gamekit is blender 2.24 creator + 10 demo's + great book wich gives anwers to all (newbie) questions.

the GameLogic python is in blender. So blender uses python, not python uses blender. The python version in blender is not the full version of python, I'm not even sure which version of python it is.

I hope this answers some of you question.

-Joeri

prdglsn79
Posts: 6
Joined: Thu Jan 30, 2003 10:57 am

ummm....well.....

Postby prdglsn79 » Sun Feb 02, 2003 9:29 am

Isn't there a GameLogic Module, though, that can be accessed in the python scripting window that allows actuators and what not to be used in python scripts rather than with the buttons? Or am I completely making this up? Help?

Mark

joeri
Posts: 2243
Joined: Fri Jan 10, 2003 6:41 pm
Contact:

Postby joeri » Sun Feb 02, 2003 3:52 pm

No you are correct.
Most Sensors and Actuators can be accessed truw python as well.

More on that in:
http://www.blender.org/modules/document ... elogic.pdf

-Joeri

prdglsn79
Posts: 6
Joined: Thu Jan 30, 2003 10:57 am

but where is the file?

Postby prdglsn79 » Sun Feb 02, 2003 7:42 pm

I know the procedure for most of the GameLogic module, I just need to know where the module file is located because if I type :

import Blender
import GameLogic

I get an error that says "module GameLogic not found"
Even when I import other people's games, the usually won't run on my machine because of this error. So, anyone know where the file is or what I'm doing wrong?

Mark

ilac
Posts: 180
Joined: Mon Oct 14, 2002 8:24 am

Re: but where is the file?

Postby ilac » Sun Feb 02, 2003 7:58 pm

prdglsn79 wrote: import Blender
import GameLogic

I get an error that says "module GameLogic not found"
anyone know where the file is or what I'm doing wrong?


How are you trying to access the Gamelogic Module?
You cannot run a game script by pressing alt-p in the text window as you would for non-game related scripts. Gamelogic scripts are activated by whatever sensor you associate them to and are activated only during play mode ie. pressing P in the 3d viewport followed by the activation of the appropriate sensor! :wink:


Return to “Interactive 3d”

Who is online

Users browsing this forum: No registered users and 2 guests