Giter Site home page Giter Site logo

Error output misleading about godot HOT 5 CLOSED

warcaninos avatar warcaninos commented on August 19, 2024
Error output misleading

from godot.

Comments (5)

warcaninos avatar warcaninos commented on August 19, 2024 1

My bad then the only thing it was doing was outputing this error because the node was not created, i feel dumb, sorry for the annoyance.

I can confirm that i do not have the error anymore.

from godot.

AThousandShips avatar AThousandShips commented on August 19, 2024

It's an error on your part if the owner isn't answering ancestor, is it?

But this isn't the place to ask support questions, if you're unsure if it's user error please first ask in the forums

from godot.

warcaninos avatar warcaninos commented on August 19, 2024

But everything works as it's supposed to.
If i were looking for help i would go to the forums.

from godot.

AThousandShips avatar AThousandShips commented on August 19, 2024

You are setting the owner of static_body even if you don't add it as a child of node, that looks like this is a perfectly valid error, try instead:

		#Check if "only" the collision should be imported and only import collision shape because the meshinstance3D
		#is replaced by a StaticBody3D
		if node.name.contains("only"):
			node.add_child(collision_shape)
		#Else add a static body
		else:
			static_body.add_child(collision_shape)
			node.add_child(static_body)
			static_body.set_owner(owner)
			
		#Set the owner of the nodes so they appear in the NodeTree
		collision_shape.set_owner(owner)

Please make sure that owner is an ancestor of the node, in this case it seems it isn't, can you confirm that is wrong and that the error is incorrect?

from godot.

AThousandShips avatar AThousandShips commented on August 19, 2024

Always good to listen to error messages and look at what might cause them, most of the time they aren't wrong

But asking in the forums is usually much more helpful, more people there with more time to help with things, and if it still won't work it's time to make an error report!

And no worries, have a nice day! Happy we could solve it

from godot.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.