bug in blender game engine

Now i cannot type in the keyboard sensor. And now the collision sensor won’t work.When i try to switch states and add to a property using the add property actuator.This could happen to anybody probably.

It suddenly started working again.

This game is crashing when i press w and go forward through the entrance.

http://www.pasteall.org/blend/35452

Have you tried it in any other blender versions?

“This game is crashing when i press w and go forward through the entrance.”

This game’s download it timing out every time I try to download it.
I can feel safe to assume that file does not need to be 13mb to include what is needed to demonstrate your issue to us.

Okay, I did manage to download the blend file.
(You know you have about 18 empty texture datablocks that aren’t doing anything but taking up space in your file, right?)

Anyway, walking through the ‘gate’ (what’s directly in front of the player?) I get this error:

Python controller found the module but could not access the function - object ‘north reciever’, controller ‘And2’:
AttributeError: ‘module’ object has no attribute 'get ’

BGE already has a built-in method for objects called .get().
Change your method name to something else, and update the python controllers that call it. That should solve that problem.

(P.S. This is not a ‘bug in the game engine’. You might want to alter the title of your thread to reflect that :wink: )

I am running the python control in module mode.With this script i found from agoose in the blender forum.

import bge
def set():
 cont = bge.logic.getCurrentController()
 own = cont.owner
 #Change this to the name of the property
 property_name = 'property_1'
 bge.logic.globalDict['property'] = own[property_name]

def get():
 cont = bge.logic.getCurrentController()
 own = cont.owner
 #Change this to the name of the property
 property_name = 'property_1'
 own[property_name] = bge.logic.globalDict['property']

It worked in another blend but does not in the infinte mazes blend.

You are aware that you can’t just drop scripts into another game and expect it to work, right?

Python scripts in the BGE will often need the inclusion of some other resources, properties, and bricks to work.

As Ace Dragon said, most of the scripts on here will have to be customized to fit your game and the objects/properties in it.
for example:

 #Change this to the name of the property
 property_name = 'property_1'

this will need to be changed to the correct property name that you have applied as a game property (e.g. ‘prop0’)

Did you look at all posts and blends or do you just reply.Because i already did that in post 3.If you would have looked at the blend you would have known that.

It’s written to globalDict, so provided you don’t clear the dictionary it can work across scenes.