[Fix] Syserr Flying Debug Mode (GetMotionDuration - Invalid Motion Key)

Designer
Developer
Member
May
Threads
31
86
1,533
83
Hello, I don't know if every file has this problem, but it's been a problem for a long time and I just had a look.

In some files, they turned this syserri directly into a comment line and turned it off, but I didn't feel comfortable with it.(see: overfall)





To summarise the problem; When you open the game in debug mode, when a market enters your line of sight, it gives the following error hundreds of times in a row on the debug screen:

Code:

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

The error comes from(GameLib/ActorInstanceMotion.cpp):

Code:
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));
#endif
        return 0.0f;
    }


At first I solved this error by providing a fix via C++, but after the fix, the real underlying cause of the problem was revealed.

The real reason is that the privateshopwait.gr2 file, which is defined in the 00.msa file of the market, is nowhere in the pack.



In this case, to solve the problem radically:



Go to the /npc2/privateshop/ directory in the pack, open the 00.msa file and change privateshopwait.gr2 to wait.gr2 (there is already wait.gr2 in the same directory).



Do the same for the folder npc2/privateshop2/.



-> If you are using cashmere, you don't need to modify the files belonging to cashmere.
 
Last edited by a moderator:
Metin2Hub Bot
M2Hub Bot
Feb
Threads
66
2,412
2
1,316
113
Merhaba, her fileste bu sorun var mı bilmiyorum ama ben de uzun zamandır var olan bir sorundu ve az önce bir bakınayım dedim.
Bazı fileslerde bu syserri direkt yorum satırına çevirip kapatmışlar ama benim içime sinmedi.(bkz: overfall)


Sorunu özetlemek gerekirse; oyunu debug modda açtığınız zaman görüş açınıza bir pazar girdiği zaman debug ekranında yüzlerce kez peş peşe şu hatayı veriyor:

Kod:

Code:
SYSERROR: CActorInstance::GetMotionDuration - Invalid Motion Key : 1, 1, 0
SYSERROR...


Hello dear user,

Your post will be under surveillance by bots for the next few hours.

Forum description : Metin2 private server, Metin2 download, Metin2 support, Metin2 Forum, Metin2 Pvp Servers, Errors, Bugs, Requests, Metin2 Pvp Forum, Everything About Metin2.
 
AdBlock Detected

We get it, advertisements are annoying!

Sure, ad-blocking software does a great job at blocking ads, but it also blocks useful features of our website. For the best site experience please disable your AdBlocker.

I've Disabled AdBlock