Game Development Community

Problem with a "phsyX resource

by CIMO · in Torque Game Engine · 09/20/2006 (11:04 am) · 27 replies

Compiling...
PhysXActor.cpp
../engine\physX/PhysXActor.h(39) : error C2065: 'pxMaterialData' : undeclared identifier
../engine\physX/PhysXActor.h(39) : error C2501: 'DECLARE_CONSOLETYPE' : missing storage-class or type specifiers
C:\Torque\SDK Giochi\Fast Shooter\engine\physX\PhysXActor.cpp(195) : error C2065: 'TypePhysXMaterialDataPtr' : undeclared identifier
PhysXJoint.cpp
../engine\physX/PhysXActor.h(39) : error C2065: 'pxMaterialData' : undeclared identifier
../engine\physX/PhysXActor.h(39) : error C2501: 'DECLARE_CONSOLETYPE' : missing storage-class or type specifiers
PhysXWorld.cpp
../engine\physX/PhysXActor.h(39) : error C2065: 'pxMaterialData' : undeclared identifier
../engine\physX/PhysXActor.h(39) : error C2501: 'DECLARE_CONSOLETYPE' : missing storage-class or type specifiers
Error executing cl.exe.

torqueDemo.exe - 7 error(s), 0 warning(s)

---

I have this problem when i compile the my engine....
How to resolve this problem?
Thanks =D
Page«First 1 2 Next»
#21
09/22/2006 (12:53 pm)
But if in the compiler have a this error....Wher is the typographical errors? i see all .h end .cc file....But never....Uff really very strange....
#22
09/25/2006 (11:22 am)
C:\Torque\SDK Giochi\Fast Shooter\engine\physX\PhysXActor.cpp(195) : error C2275: 'PhysXMaterialData' : illegal use of this type as an expression
../engine\physX/PhysXActor.h(20) : see declaration of 'PhysXMaterialData'

../engine\physX/PhysX...

I believe the slashes aren't correct... I believe that Gary was trying to point this out.
#23
09/26/2006 (2:36 am)
I try resolve this problem with Shannon "PhysX resource"

I put this in gameBase.cc
Con::registerType("GameBaseDataPtr", TypeGameBaseDataPtr, 
sizeof(GameBaseData*),
                     REF_GETDATATYPE(GameBaseData),
                     REF_SETDATATYPE(GameBaseData));

I put this in physXActor.cpp
IMPLEMENT_GETDATATYPE(PhysXMaterialData);
IMPLEMENT_SETDATATYPE(PhysXMaterialData);
//IMPLEMENT_CONSOLETYPE(PhysXMaterialData);

void PhysXActor::initPersistFields()
{   
   Parent::initPersistFields();
 
   Con::registerType("PhysXMaterialDataPtr", TypePhysXMaterialDataPtr, 
sizeof(PhysXMaterialData*),
                     REF_GETDATATYPE(PhysXMaterialData),
                     REF_SETDATATYPE(PhysXMaterialData));
     addField("MaterialBlock", TypePhysXMaterialDataPtr , 
Offset(mMaterialBlock, PhysXActor));
}

But i have this problem

C:\Torque\SDK Giochi\Fast Shooter\engine\physX\PhysXActor.cpp(196) : error C2065: TypePhysXMaterialDataPtr' : undeclared identifier

Very very impossible!!
Help please....
#24
09/26/2006 (10:06 am)
Any idea?
#25
09/26/2006 (10:14 am)
Shannon's resource works without modifcation for me, so I dont see why you're having problems Cimo
#26
09/26/2006 (10:38 am)
Never i !!!!
I have this error...You send my your File.cpp and .h for resolve this problem?
Your file function...send me please....
#27
09/27/2006 (10:25 am)
I think a lot of the problems you having here is the obvious language barrier..hard to know the compiler when all the instructions only come in English,and all the English speaking community wont help...or maybe didn't notice the way he was spelling things.....wish I could help I'm sure someone will....If I had worked with this resource before Cimo I would say rewrite it and make sure all the SLASHES and other operators are in the correct places..this is most likely the cause of your problems
Page«First 1 2 Next»