Jump to content

Recommended Posts

  • Bot

This is my problem.

When i make a lot of:

Feb 19 07:04:48 :: COMMAND: BeranSetaou: user_horse_ride
Feb 19 07:04:49 :: COMMAND: BeranSetaou: user_horse_ride
Feb 19 07:04:49 :: COMMAND: BeranSetaou: user_horse_ride
Feb 19 07:04:49 :: COMMAND: BeranSetaou: user_horse_ride
Feb 19 07:04:49 :: COMMAND: BeranSetaou: user_horse_ride
Feb 19 07:04:49 :: COMMAND: BeranSetaou: user_horse_ride
Feb 19 07:04:49 :: COMMAND: BeranSetaou: user_horse_ride
Feb 19 07:04:49 :: COMMAND: BeranSetaou: user_horse_ride
Feb 19 07:04:50 :: COMMAND: BeranSetaou: user_horse_ride
Feb 19 07:04:53 :: COMMAND: BeranSetaou: user_horse_ride
Feb 19 07:04:53 :: COMMAND: BeranSetaou: user_horse_ride

The player crash and come at login board. And the only error that i get into syserr is this:

SYSERR: Feb 19 06:48:13 :: Analyze: Handshake phase does not handle packet 3 (fd 16)
SYSERR: Feb 19 06:48:13 :: Process: SEQUENCE 290a8500 mismatch 0xaf != 0x2f header 3
SYSERR: Feb 19 06:48:13 :: Process: SEQUENCE_LOG [UNKNOWN]-------------
    [003 : 0xaf]

 

english_banner.gif

Link to comment
https://metin2.dev/topic/18107-searching-good-expert-of-packets/
Share on other sites

  • Bot

PROBLEM SOLVED!

The crash of the client was caused by the StartRiding and StopRiding very speedly without a check.

 

I fixed the problem with a Time Check into user_horse_ride function:

ACMD(do_user_horse_ride)
{
    if (ch->IsObserverMode()) return;
    
    if (ch->IsDead() || ch->IsStun()) return;

    LPITEM pItem = ch->GetWear(WEAR_UNIQUE1);
    LPITEM pItem2 = ch->GetWear(WEAR_UNIQUE2);
    if (pItem && pItem->IsRideItem()) ch->UnequipItem(pItem);
    if (pItem2 && pItem2->IsRideItem()) ch->UnequipItem(pItem2);
    
    if (ch->IsHorseRiding()) {

        if (ch->UnEquipSpecialRideUniqueItem())
        {
            ch->RemoveAffect(AFFECT_MOUNT);
            ch->RemoveAffect(AFFECT_MOUNT_BONUS);
        }
            
        ch->StopRiding();

    }else{
        
        if (ch->GetLastMountTime() != 0) {
            if (get_dword_time() - ch->GetLastMountTime() < 2000) {
                ch->ChatPacket(CHAT_TYPE_INFO, "You are mount/unmount the horse too speedly, please wait a second.");
                return;
            }
        }
        
        if (ch->GetMountVnum()) return;
        if (ch->GetHorse() == NULL) return;
        
        ch->StartRiding();
    }
}

 

GetLastMountTime already exists on all source, some HackShield and Protection serverside default has got that.

I Disabled the protections serverside default and this is why the horse crashed.

With this solution is Ok.

 

THANK YOU FOR THE HELP AND I WANT TO SAY A THING... MARTYSAMA YOU DONT KNOW NOTHING OF ASM AND C++

 

Problem solved and happy game!

  • Sad 1
  • Love 1

english_banner.gif

  • Honorable Member

Jesus Christ hang yourself..holy shit.

  • Love 3

 

"Nothing's free in this life.

Ignorant people have an obligation to make up for their ignorance by paying those who help them.

Either you got the brains or cash, if you lack both you're useless."

Syreldar

  • Premium
9 hours ago, M2BobFixed said:

PROBLEM SOLVED!

The crash of the client was caused by the StartRiding and StopRiding very speedly without a check.

 

I fixed the problem with a Time Check into user_horse_ride function:


ACMD(do_user_horse_ride)
{
    if (ch->IsObserverMode()) return;
    
    if (ch->IsDead() || ch->IsStun()) return;

    LPITEM pItem = ch->GetWear(WEAR_UNIQUE1);
    LPITEM pItem2 = ch->GetWear(WEAR_UNIQUE2);
    if (pItem && pItem->IsRideItem()) ch->UnequipItem(pItem);
    if (pItem2 && pItem2->IsRideItem()) ch->UnequipItem(pItem2);
    
    if (ch->IsHorseRiding()) {

        if (ch->UnEquipSpecialRideUniqueItem())
        {
            ch->RemoveAffect(AFFECT_MOUNT);
            ch->RemoveAffect(AFFECT_MOUNT_BONUS);
        }
            
        ch->StopRiding();

    }else{
        
        if (ch->GetLastMountTime() != 0) {
            if (get_dword_time() - ch->GetLastMountTime() < 2000) {
                ch->ChatPacket(CHAT_TYPE_INFO, "You are mount/unmount the horse too speedly, please wait a second.");
                return;
            }
        }
        
        if (ch->GetMountVnum()) return;
        if (ch->GetHorse() == NULL) return;
        
        ch->StartRiding();
    }
}

 

GetLastMountTime already exists on all source, some HackShield and Protection serverside default has got that.

I Disabled the protections serverside default and this is why the horse crashed.

With this solution is Ok.

 

THANK YOU FOR THE HELP AND I WANT TO SAY A THING... MARTYSAMA YOU DONT KNOW NOTHING OF ASM AND C++

 

Problem solved and happy game!

Your ACMD(do_user_horse_ride) it's not normal.

You are not normal too.

  • Honorable Member
54 minutes ago, M2BobFixed said:

i don't tell anything other too.

Yeah, yeah. So bad that I just need to fart to annihilate your existence. I don't like meddling with shit though. I prefer to keep myself clean.

12 hours ago, M.Sorin said:

Man , please leave the c++ for others. It`s not for you!

 

Imagine similară

3pvauM6.jpg

OGC6G9t.jpg

Edited by Metin2 Dev
Core X - External 2 Internal
  • Love 3
  • Bot
58 minutes ago, martysama0134 said:

Yeah, yeah. So bad that I just need to fart to annihilate your existence. I don't like meddling with shit though. I prefer to keep myself clean.

3pvauM6.jpg

OGC6G9t.jpg

WARNING and ADVICE: don't buy marty sama source they are full of bugs and problems, and you can find them on internet.

Go back kid...

 

You are from sardegna? :( You don't know C++ and you don't know italian too.

Edited by Metin2 Dev
Core X - External 2 Internal

english_banner.gif

  • Forum Moderator

#Topic closed

I would like to point out that we can not tolerate misbehavior.
We want to be a forum where you help each other!

Please read the Rules with carefully!


Best regards
Raylee

Don't use any images from : imgur, turkmmop, freakgamers, inforge, hizliresim... Or your content will be deleted without notice...
Use : https://metin2.download/media/add/

Please use https://metin2.download/ when uploading files smaller than 100MB, otherwise the approval will take longer due to manual upload.

Guest
This topic is now closed to further replies.
×
×
  • 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.