Jump to content

Invalid Motion Key Fix


Recommended Posts

Does someone know how to fix the problem with Invalid Motion Key in debug mode?


float CActorInstance::GetMotionDuration(DWORD dwMotionKey)
	CGraphicThing * pMotion;
	if (!GetMotionThingPointer(dwMotionKey, &pMotion))
		Tracenf("CActorInstance::GetMotionDuration - Cannot get motion: %d / %d",
			GET_MOTION_MODE(dwMotionKey), GET_MOTION_INDEX(dwMotionKey));
		return 0.0f;

	if (0 == pMotion->GetMotionCount())
#ifdef _DEBUG
		Tracenf("CActorInstance::GetMotionDuration - Invalid Motion Key : %d, %d, %d",
				GET_MOTION_MODE(dwMotionKey), GET_MOTION_INDEX(dwMotionKey), GET_MOTION_SUB_INDEX(dwMotionKey));
		return 0.0f;

	CGrannyMotion * pGrannyMotion = pMotion->GetMotionPointer(0);
	return pGrannyMotion->GetDuration();


When you just stand ingame doing nothing, this gets spammed.

CActorInstance::GetMotionDuration - Invalid Motion Key : 1, 1, 0


Or can someone give me a hint where I have to search.

Edited by DrTurk
Link to comment
Share on other sites

  • Replies 0
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

Popular Days

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

  • Create New...

Important Information

Terms of Use / Privacy Policy / Guidelines / We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.