Maybe Yahn or someone at Valve can give me a better fix but for now...
I changed
// bone_setup.cpp around line 3089 - 3104
// Changed
unsigned short *pList = NULL;
int count = pStudioHdr->GetAutoplayList( &pList );
for (i = 0; i < count; i++)
{
int sequenceIndex = pList[i];
mstudioseqdesc_t &seqdesc = pStudioHdr->pSeqdesc( sequenceIndex );
if (seqdesc.flags & STUDIO_AUTOPLAY)
{
float cycle = 0;
float cps = Studio_CPS( pStudioHdr, sequenceIndex, poseParameters );
cycle = realTime * cps;
cycle = cycle - (int)cycle;
AccumulatePose( pStudioHdr, NULL, pos, q, sequenceIndex, cycle,
poseParameters, boneMask, 1.0, realTime );
}
}
// TO
//unsigned short *pList = NULL;
//int count = pStudioHdr->GetAutoplayList( &pList ); <-- Is causing the
linker error for some reason?
for (i = 0; i < pStudioHdr->GetNumSeq(); i++)
{
mstudioseqdesc_t &seqdesc = pStudioHdr->pSeqdesc( i );
if (seqdesc.flags & STUDIO_AUTOPLAY)
{
float cycle = 0;
float cps = Studio_CPS( pStudioHdr, i, poseParameters );
cycle = realTime * cps;
cycle = cycle - (int)cycle;
AccumulatePose( pStudioHdr, NULL, pos, q, i, cycle, poseParameters,
boneMask, 1.0, realTime );
}
}
r00t 3:16
CQC Gaming
www.cqc-gaming.com
----- Original Message -----
From: "r00t 3:16" <[EMAIL PROTECTED]>
To: <[email protected]>
Sent: Wednesday, February 02, 2005 2:52 AM
Subject: Re: [hlcoders] Linker error on fresh mod ?
int count = pStudioHdr->GetAutoplayList( &pList );
Around line 3090 in bone_setup.cpp
That line is causing the linker error.
I comment out line 3090 to 3105 and everything compiles.
r00t 3:16
CQC Gaming
www.cqc-gaming.com
----- Original Message -----
From: "r00t 3:16" <[EMAIL PROTECTED]>
To: <[email protected]>
Sent: Wednesday, February 02, 2005 2:44 AM
Subject: Re: [hlcoders] Linker error on fresh mod ?
Ok after doing a diff between the older sdk and the newer sdk they have
added some things ...
int studiohdr_t::GetAutoplayList( unsigned short **pOut ) const
{
return modelinfo->GetAutoplayList( this, pOut );
}
That is not in the older sdk Which is part of the link error...
studiomdl error LNK2019: unresolved external symbol "public: int
__thiscall
studiohdr_t::GetAutoplayList(unsigned short * *)const "
([EMAIL PROTECTED]@@[EMAIL PROTECTED]) referenced in function "void
__cdecl CalcAutoplaySequences(struct studiohdr_t const *,class CIKContext
*,class Vector * const,class Quaternion * const,float const *
const,int,float)"
(?CalcAutoplaySequences@@YAXPBUstudiohdr_t@@PAVCIKContext@@QAVVector@@QAVQuaternion@@[EMAIL
PROTECTED])
Maybe my SDK didn't fully update and im missing some includes ?
Kind of weird to have this happen on a fresh MOD install...
r00t 3:16
CQC Gaming
www.cqc-gaming.com
_______________________________________________
To unsubscribe, edit your list preferences, or view the list archives,
please visit:
http://list.valvesoftware.com/mailman/listinfo/hlcoders
_______________________________________________
To unsubscribe, edit your list preferences, or view the list archives, please
visit:
http://list.valvesoftware.com/mailman/listinfo/hlcoders