Engine Crush

jan1024188

Newbie
Joined
Apr 10, 2007
Messages
41
Reaction score
0
Hello,

I have a mod, but I still have same problem, which wasnt solved.

I have a mod (running in AppId 215), but when I try loading any map I get:
ENGINE ERROR:
Init Fast Copy - Missing Client Class 159

Ive tryed using my client/server on riot act mod, and It worked fine. Why I get this error when trying to load a map?
Ive checked maps, cfg's...but couldnt solve the problem.

Please help me!
 
Ok, I realized its the problem with my client/server code. Do you have any ideas what could be wrong?
 
What mod is it? If it's a public mod, they probably have forums... Go there.
 
Ok, I started with code from scratch. Ive screwed somethig in the code, so Now I have to start all over again.
 
I had a similar error when I was building my own drivable car, got it fixed. Thought I'd post how to make sure people that get it in the future know why it can happen (or at least one of the ways it can happen) since I didn't find any posts with a solution.

The source of the problem was a discrepancy between the server's definition of the DT_[classname] and the ImplementClientClass's implementation of it.

Here's the two code pieces when they generated the error:

serverside
Code:
IMPLEMENT_SERVERCLASS_ST( CPropShootCarDrivable, DT_PropShootCar )
	SendPropBool( SENDINFO( m_bHeadlightIsOn ) ),
	SendPropInt( SENDINFO( m_nAmmoCount ), 9 ),
	SendPropInt( SENDINFO( m_nExactWaterLevel ) ),
	SendPropInt( SENDINFO( m_nWaterLevel ) ),
	SendPropVector( SENDINFO( m_vecPhysVelocity ) ),
END_SEND_TABLE();

clientside
Code:
IMPLEMENT_CLIENTCLASS_DT( C_PropShootCar, DT_PropShootCar, CPropShootCar )
	RecvPropBool( RECVINFO( m_bHeadlightIsOn ) ),
	RecvPropInt( RECVINFO( m_nAmmoCount ) ),
	RecvPropInt( RECVINFO( m_nExactWaterLevel ) ),
	RecvPropInt( RECVINFO( m_nWaterLevel ) ),
	RecvPropVector( RECVINFO( m_vecPhysVelocity ) ),
END_RECV_TABLE()

Note that the class is wrongly defined clientside as CPropShootCar. After changing this to CPropShootCarDrivable, as it is server-side, it fixed the error.
 
Back
Top