Jump to content
  • Advertisement
Sign in to follow this  
elsharkawey

"Avatar" did not match any KX_GameObject in this scene

This topic is 887 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

i following this tutorial

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
Advertisement

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
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!