Page MenuHome

Blender Game Engine import error
Closed, ResolvedPublic

Description

System Information
Ubuntu 14.04.2 LTS 64-bit
AMD A8-5550M APU with Radeon(tm) HD Graphics × 4
AMD Radeon HD 8550G

Blender Version
Broken: 2.74 000dfc0
Worked: 2.73b and older

In blender game engine, users where able to import KX_GameObject from bge.types, now blender requires to import types from bge to be able to use KX_GameObject as follows: "types.KX_GameObject".

Exact steps for others to reproduce the error
Open blender in terminal and press P to run.

Event Timeline

Oren Titane (Genome36) raised the priority of this task from to 90.
Oren Titane (Genome36) updated the task description. (Show Details)
Oren Titane (Genome36) edited a custom field.

2.73b and older:

from bge.types import KX_GameObject

class obj(KX_gameObject):
    def __init__(self, own):

2.74:

from bge import types

class obj(types.KX_gameObject):
    def __init__(self, own):
Inês Almeida (brita_) lowered the priority of this task from 90 to Normal.May 14 2015, 8:30 PM

bisected this to my own commit rB2699866720e75adc2aaba5079f87b705ceda9eab