Hi guys,
I managed to compile and run both server and client exe from "[Release] PT Source 2012 (Visual Studio 2013) Fixed".
After I enter id & password and click the server name, the client crush with the following exception:
The code is a part of the following function:
Belonged to the character.cpp file.
I was trying to debug it and try to find something not right, the only thing I came up is that the function ChangeMotion is beeing called 6 times before the game crush.
It's being called from HoLogin.cpp:
Any help would be appreciated.
I managed to compile and run both server and client exe from "[Release] PT Source 2012 (Visual Studio 2013) Fixed".
After I enter id & password and click the server name, the client crush with the following exception:
The code is a part of the following function:
Code:
int smCHAR::ChangeMotion( int Motion , int DpMode )
I was trying to debug it and try to find something not right, the only thing I came up is that the function ChangeMotion is beeing called 6 times before the game crush.
It's being called from HoLogin.cpp:
Code:
int HoLogin::AddUserCharacter(char *chrFile1, char *chrFile2, int jobCode)
{
for(int index = 0; index < CHARACTER_USER_MAX; index++)
{
if(UserCharacter[index].DisplayFlag == FALSE)
{
UserCharacter[index].Init();
UserCharacter[index].lpStage = Stage;
SetLoadPattern( &UserCharacter[index], chrFile1, chrFile2, 0, 0);
UserCharacter[index].SetPosi( UserCharacterPos[index][0]*fONE,
Stage->GetHeight( UserCharacterPos[index][0]*fONE, UserCharacterPos[index][1]*fONE)
, UserCharacterPos[index][1]*fONE, 0, ANGLE_180, 0);
UserCharacter[index].ActionPattern = 0;
[B]UserCharacter[index].ChangeMotion(10);[/B]
//if(jobCode == 4)
//UserCharacter[index].ChangeMotion(11);
UserCharacterCount++;
ReadTextures();
UserCharacter[index].lpDinaPattern->Pat->smMaterialGroup->CheckMatreialTextureSwap();
if ( UserCharacter[index].lpDinaPattern2 )
UserCharacter[index].lpDinaPattern2->Pat->smMaterialGroup->CheckMatreialTextureSwap();
break;
}
}
return TRUE;
}
Any help would be appreciated.