Sign in to follow this  
elsharkawey

"Avatar" did not match any KX_GameObject in this scene

Recommended Posts

i following this tutorial

https://www.youtube.com/watch?v=4xZRfzOtxzA

but when i run my code i get this error

Blender Game Engine Started
Python script error - object 'Text', controller 'Python':
Traceback (most recent call last):
  File "/home/shar/serverssss.blend/server.py", line 50, in receive
  File "/home/shar/serverssss.blend/server.py", line 40, in receive
ValueError: scene.addObject(object, other, time): KX_Scene (first argument), requested name "Avatar" did not match any KX_GameObject in this scene

my .blend file in the attachment files can someone help please ?

Share this post


Link to post
Share on other sites

I don't work with Blender games, but some (sorry, very simple) questions:

 

- Is your "Avatar" a valid gameobject?

- Check your capitalization. I've messed up a few things capitalizing the first letter of an object in a script but not capitalizing the object itself

- Is the object in that specific scene?

 

The error seems pretty simple: It's just not finding the Avatar object, so it's either not where it's looking or not the same as what its being told to look for.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this