1
0
forked from metin2/client

translate commented out code and traces

This commit is contained in:
2025-01-12 18:14:49 +01:00
parent 077a365840
commit 2589163a49
27 changed files with 79 additions and 79 deletions

View File

@ -410,7 +410,7 @@ void CInstanceBase::__EnableSkipCollision()
{
if (__IsMainInstance())
{
TraceError("CInstanceBase::__EnableSkipCollision - \xC0\xDA\xBD\xC5\xC0\xBA \xC3\xE6\xB5\xB9\xB0\xCB\xBB\xE7\xBD\xBA\xC5\xB5\xC0\xCC \xB5\xC7\xB8\xE9 \xBE\xC8\xB5\xC8\xB4\xD9!!");
TraceError("CInstanceBase::__EnableSkipCollision - You shouldn't be a conflict check skip yourself!!");
return;
}
m_GraphicThingInstance.EnableSkipCollision();
@ -1190,7 +1190,7 @@ void CInstanceBase::PushTCPState(DWORD dwCmdTime, const TPixelPosition& c_rkPPos
if (__IsMainInstance())
{
//assert(!"CInstanceBase::PushTCPState \xC7\xC3\xB7\xB9\xC0\xCC\xBE\xEE \xC0\xDA\xBD\xC5\xBF\xA1\xB0\xD4 \xC0\xCC\xB5\xBF\xC6\xD0\xC5\xB6\xC0\xBA \xBF\xC0\xB8\xE9 \xBE\xC8\xB5\xC8\xB4\xD9!");
TraceError("CInstanceBase::PushTCPState \xC7\xC3\xB7\xB9\xC0\xCC\xBE\xEE \xC0\xDA\xBD\xC5\xBF\xA1\xB0\xD4 \xC0\xCC\xB5\xBF\xC6\xD0\xC5\xB6\xC0\xBA \xBF\xC0\xB8\xE9 \xBE\xC8\xB5\xC8\xB4\xD9!");
TraceError("CInstanceBase::PushTCPState Movement packets should not come from the player themselves!");
return;
}
@ -1204,7 +1204,7 @@ void CInstanceBase::PushTCPState(DWORD dwCmdTime, const TPixelPosition& c_rkPPos
m_dwBaseChkTime = ELTimer_GetFrameMSec()-nNetworkGap;
m_dwBaseCmdTime = dwCmdTime;
Tracenf("VID[%d] \xB3\xD7\xC6\xAE\xBF\xF7\xB0\xB8 [%d]", GetVirtualID(), nNetworkGap);
Tracenf("VID[%d] Network Gap [%d]", GetVirtualID(), nNetworkGap);
}
*/
@ -1222,7 +1222,7 @@ void CInstanceBase::PushTCPState(DWORD dwCmdTime, const TPixelPosition& c_rkPPos
//int nApplyGap=kCmdNew.m_dwChkTime-ELTimer_GetServerFrameMSec();
//if (nApplyGap<-500 || nApplyGap>500)
// Tracenf("VID[%d] NAME[%s] \xB3\xD7\xC6\xAE\xBF\xF7\xB0\xB8 [cur:%d ave:%d] \xC0\xDB\xB5\xBF\xBD\xC3\xB0\xA3 (%d)", GetVirtualID(), GetNameString(), nNetworkGap, m_nAverageNetworkGap, nApplyGap);
// Tracenf("VID[%d] NAME[%s] Network Gap [cur:%d ave:%d] applyGap (%d)", GetVirtualID(), GetNameString(), nNetworkGap, m_nAverageNetworkGap, nApplyGap);
}
/*
@ -1313,7 +1313,7 @@ void CInstanceBase::StateProcess()
TPixelPosition kPPosDir = kPPosDst - kPPosCur;
float fDirLen = (float)sqrt(kPPosDir.x * kPPosDir.x + kPPosDir.y * kPPosDir.y);
//Tracenf("\xB0\xC5\xB8\xAE %f", fDirLen);
//Tracenf("Distance %f", fDirLen);
if (!__CanProcessNetworkStatePacket())
{
@ -1330,7 +1330,7 @@ void CInstanceBase::StateProcess()
{
case FUNC_WAIT:
{
//Tracenf("%s (%f, %f) -> (%f, %f) \xB3\xB2\xC0\xBA\xB0\xC5\xB8\xAE %f", GetNameString(), kPPosCur.x, kPPosCur.y, kPPosDst.x, kPPosDst.y, fDirLen);
//Tracenf("%s (%f, %f) -> (%f, %f) 남은거리 %f", GetNameString(), kPPosCur.x, kPPosCur.y, kPPosDst.x, kPPosDst.y, fDirLen);
if (fDirLen > 1.0f)
{
//NEW_GetSrcPixelPositionRef() = kPPosCur;
@ -1348,11 +1348,11 @@ void CInstanceBase::StateProcess()
if (!IsWalking())
StartWalking();
//Tracen("\xB8\xF1\xC7\xA5\xC1\xA4\xC1\xF6");
//Tracen("Target Stop");
}
else
{
//Tracen("\xC7\xF6\xC0\xE7 \xC1\xA4\xC1\xF6");
//Tracen("Freeze");
m_isGoing = FALSE;
@ -1381,12 +1381,12 @@ void CInstanceBase::StateProcess()
if (!IsWalking())
{
//Tracen("\xB0\xC8\xB0\xED \xC0\xD6\xC1\xF6 \xBE\xCA\xBE\xC6 \xB0\xC8\xB1\xE2 \xBD\xC3\xC0\xDB");
//Tracen("I'm not walking, start walking");
StartWalking();
}
else
{
//Tracen("\xC0\xCC\xB9\xCC \xB0\xC8\xB4\xC2\xC1\xDF ");
//Tracen("Already walking");
}
break;
}
@ -1409,7 +1409,7 @@ void CInstanceBase::StateProcess()
}
else
{
//Tracen("\xB4\xEB\xB1\xE2 \xB0\xF8\xB0\xDD \xC1\xA4\xC1\xF6");
//Tracen("Stopping Standby Attacks");
m_isGoing = FALSE;
@ -1440,11 +1440,11 @@ void CInstanceBase::StateProcess()
if (!IsWalking())
StartWalking();
//Tracen("\xB3\xCA\xB9\xAB \xB8\xD6\xBE\xEE\xBC\xAD \xC0\xCC\xB5\xBF \xC8\xC4 \xB0\xF8\xB0\xDD");
//Tracen("Attack after moving too far away");
}
else
{
//Tracen("\xB3\xEB\xB8\xBB \xB0\xF8\xB0\xDD \xC1\xA4\xC1\xF6");
//Tracen("Stop normal attacks");
m_isGoing = FALSE;
@ -1456,7 +1456,7 @@ void CInstanceBase::StateProcess()
RunNormalAttack(fRotDst);
//Tracen("\xB0\xA1\xB1\xF5\xB1\xE2 \xB6\xA7\xB9\xAE\xBF\xA1 \xBF\xF6\xC7\xC1 \xB0\xF8\xB0\xDD");
//Tracen("Warp Attack due to proximity");
}
break;
}
@ -1540,11 +1540,11 @@ void CInstanceBase::StateProcess()
if (!IsWalking())
StartWalking();
//Tracen("\xB3\xCA\xB9\xAB \xB8\xD6\xBE\xEE\xBC\xAD \xC0\xCC\xB5\xBF \xC8\xC4 \xB0\xF8\xB0\xDD");
//Tracen("Attack after moving too far away");
}
else
{
//Tracen("\xBD\xBA\xC5\xB3 \xC1\xA4\xC1\xF6");
//Tracen("Stop Skills");
m_isGoing = FALSE;
@ -1556,7 +1556,7 @@ void CInstanceBase::StateProcess()
SetRotation(fRotDst);
NEW_UseSkill(0, eFunc & 0x7f, uArg&0x0f, (uArg>>4) ? true : false);
//Tracen("\xB0\xA1\xB1\xF5\xB1\xE2 \xB6\xA7\xB9\xAE\xBF\xA1 \xBF\xF6\xC7\xC1 \xB0\xF8\xB0\xDD");
//Tracen("Warp Attack due to proximity");
}
}
break;
@ -1604,7 +1604,7 @@ void CInstanceBase::MovementProcess()
if (IsWalking())
EndWalking();
//Tracen("\xB8\xF1\xC7\xA5 \xB5\xB5\xB4\xDE \xC1\xA4\xC1\xF6");
//Tracen("Stop reaching goals");
m_isGoing = FALSE;
@ -1636,7 +1636,7 @@ void CInstanceBase::MovementProcess()
float fDstRot = NEW_GetAdvancingRotationFromPixelPosition(kPPosCur, NEW_GetDstPixelPositionRef());
SetAdvancingRotation(fDstRot);
//Tracenf("VID %d \xBF\xC0\xB9\xF6 \xB9\xE6\xC7\xE2\xBC\xB3\xC1\xA4 (%f, %f) %f rest %f", GetVirtualID(), kPPosCur.x, kPPosCur.y, fDstRot, fRestLen);
//Tracenf("VID %d Over Orientation (%f, %f) %f rest %f", GetVirtualID(), kPPosCur.x, kPPosCur.y, fDstRot, fRestLen);
// 이동중이라면 다음번에 멈추게 한다
if (FUNC_MOVE == m_kMovAfterFunc.eFunc)
@ -1651,11 +1651,11 @@ void CInstanceBase::MovementProcess()
{
__DisableSkipCollision();
//Tracen("\xBB\xE7\xB8\xC1 \xBB\xF3\xC5\xC2\xB6\xF3 \xB5\xBF\xC0\xDB \xBD\xBA\xC5\xB5");
//Tracen("Skip the action because you're dead");
m_isGoing = FALSE;
//Tracen("\xC7\xE0\xB5\xBF \xBA\xD2\xB4\xC9 \xBB\xF3\xC5\xC2\xB6\xF3 \xC0\xCC\xC8\xC4 \xB5\xBF\xC0\xDB \xBD\xBA\xC5\xB5");
//Tracen("Skip subsequent actions because you're dead");
}
else
{
@ -1737,7 +1737,7 @@ void CInstanceBase::MovementProcess()
}
else
{
//Tracenf("VID %d \xBD\xBA\xC5\xB3 \xB0\xF8\xB0\xDD (%f, %f) rot %f", GetVirtualID(), NEW_GetDstPixelPositionRef().x, NEW_GetDstPixelPositionRef().y, m_fDstRot);
//Tracenf("VID %d Skill Attacks (%f, %f) rot %f", GetVirtualID(), NEW_GetDstPixelPositionRef().x, NEW_GetDstPixelPositionRef().y, m_fDstRot);
__DisableSkipCollision();
m_isGoing = FALSE;
@ -1751,7 +1751,7 @@ void CInstanceBase::MovementProcess()
EndWalking();
}
//Tracenf("VID %d \xC1\xA4\xC1\xF6 (%f, %f) rot %f IsWalking %d", GetVirtualID(), NEW_GetDstPixelPositionRef().x, NEW_GetDstPixelPositionRef().y, m_fDstRot, IsWalking());
//Tracenf("VID %d Stop (%f, %f) rot %f IsWalking %d", GetVirtualID(), NEW_GetDstPixelPositionRef().x, NEW_GetDstPixelPositionRef().y, m_fDstRot, IsWalking());
}
break;
}