Game Development Community

unable to instantiate non-conobject

by Andy Simon · in Torque 3D Professional · 07/30/2009 (3:48 pm) · 4 replies

Hey guys quick question,

I was trying to create a Pathmarker object in the world Editor but nothing would create after I hit the create button. Console output was:
1: Unable to instantiate non-conobject Class PathMarker

I also get this error when i try to create a PXCloth object. I did find a thread about a helper function in objectBuilderGui.ed.gui and added
function ObjectBuilderGui::buildPathMarker(%this)
{
	%this.className = "Marker";
	%this.process();
}

But that didn't help me (I am using beta 4). The PXCloth object was doing the same thing in beta 3 for me. Thanks for any input.

#1
07/30/2009 (9:12 pm)
What build are you using? NewProject, FPSkit, PhysX demo?

I haven't played around with PhysX stuff so no help on that. PathMarkers work fine with NewProject.
#2
07/31/2009 (9:09 am)
I was using a newProject, ill see what happens if i try the PhysX demo (for the PXCloth anyway)
#3
07/31/2009 (9:48 am)
Sounds daft but, what were your steps for trying to add a PathMarker?

1. Object Editor -> Library -> Level -> Level -> double-click PathMarker
2. Insert name -> hit "create new"
3.Receive PathMaker at previously selected drop location

Also incase you're not aware, there is no PhysX stuff integrated into anything other than the PhysX demo.
#4
08/03/2009 (7:59 am)
Yep thats exactly how I tired to add one. But at step 3 there is nothing added to the scene and the error message is in the console.

I was able to add a PXcloth in the physX levels and the cloths work as they should :D. Thanks for your help steve!

EDIT:
Yep, user error... I decided to double check the script i edited on friday, and some how I must have not saved the changes when i added the helper function.. But yeah it all works now :D