GameLogic not found in 2.55

Hey all, I have a problem - when I imported my game (made in 2.49b) into 2.55 the python scripts quit working because it can’t use the GameLogic module. I already have the correct Python installed. I got this error:NameError: name ‘GameLogic’ is not defined
I have googled the answer but so far no one has had one. Is there a quick fix to the problem? Does it have something to do with python setup? Thanks for any help :cool:

EDIT: I’m using Mac Snow Leopard by the way, if that’s important.

basically the new blender uses the newest python. This means any scripts will have to be updated to the correct code. Things have changed. Search this forum for convert python code or something like that.

Don’t use GameLogic, use bge.logic.

GameLogic = bge.logic
Rasterizer = bge.render

Basically, import bge and print the directory contents to see what’s in it.

It is still there and will be there. But it will not be imported automatically. So you have to add:


import GameLogic

before using it