Jump to content

Mount Space Problem Fix


Powell

Recommended Posts

Description of the problem: If you press the [Space key] while you are riding, while there is no weapon in your hand, it gives an error like this and keeps a syserr record every second.

How to fix: If you want to fix that problem you will be find on your client source folder in this file ActorInstanceBattle.cpp.

 

Client Source>GameLib>ActorInstanceBattle.cpp

 

Find:

    if (wComboIndex == 0)
    {
        TraceError("CActorInstance::__RunNextCombo(wComboType=%d, wComboIndex=%d)", wComboType, wComboIndex);
        return;
    }

Add under:

    else if (m_wcurMotionMode == 9)
    {
        return;
    }

That is all.

  • Metin2 Dev 2
  • Good 4
Link to comment
Share on other sites

On 4/13/2023 at 11:28 PM, Powell said:

Description of the problem: If you press the [Space key] while you are riding, while there is no weapon in your hand, it gives an error like this and keeps a syserr record every second.

How to fix: If you want to fix that problem you will be find on your client source folder in this file ActorInstanceBattle.cpp.

 

Client Source>GameLib>ActorInstanceBattle.cpp

 

Find:

    if (wComboIndex == 0)
    {
        TraceError("CActorInstance::__RunNextCombo(wComboType=%d, wComboIndex=%d)", wComboType, wComboIndex);
        return;
    }

Add under:

    else if (m_wcurMotionMode == 9)
    {
        return;
    }

That is all.

I think this is not fix but this is your chooice 🙂

  • Metin2 Dev 1
Link to comment
Share on other sites

  • 7 months later...
  • Premium
bool CActorInstance::CanAttack()
{
    if (!CanAct())
        return false;

    if (IsUsingSkill())
    {
        if (!CanCancelSkill())
            return false;
    }

    if (CRaceMotionData::MODE_HORSE == GetMotionMode())     // fix
        return false;

    return true;
}

 

Edited by brolah
  • Love 1
Link to comment
Share on other sites

  • Premium
19 hours ago, brolah said:
bool CActorInstance::CanAttack()
{
    if (!CanAct())
        return false;

    if (IsUsingSkill())
    {
        if (!CanCancelSkill())
            return false;
    }

    if (CRaceMotionData::MODE_HORSE == GetMotionMode())     // fix
        return false;

    return true;
}

 

The first solution is less heavy.

  • kekw 1
Link to comment
Share on other sites

  • 2 weeks later...
  • 2 months later...
  • Premium
On 12/3/2023 at 12:20 AM, Amsterdam said:
bool CActorInstance::CanAttack()
{
    if (!CanAct())
        return false;

    if (IsUsingSkill())
    {
        if (!CanCancelSkill())
            return false;
    }

    if (CRaceMotionData::MODE_HORSE == GetMotionMode())     // fix
        return false;

    return true;
}

 

bool CActorInstance::CanAttack()
{
	if (!CanAct())
		return false;

	if (IsUsingSkill())
	{
		if (!CanCancelSkill())
			return false;
	}

	if (CRaceMotionData::MODE_HORSE == GetMotionMode())
		return false;

	if (CRaceMotionData::MODE_FISHING == GetMotionMode())
		return false;

	return true;
}

 

Edited by TrC
Link to comment
Share on other sites

What to delete mounts? 😄 Just joking lmao 😄

Btw. Is that problem when you ride on horse or mount and try to attack with space without weapon as I think? (maybe in ride??) As I remember this make bug in some situations with run animations 😄 I dont know if thats correct, but what to just block attack from horse/mount, without weapon? Because you just simply cant, (doesnt exist animation for fist hit from horse) so its I think right fix to make correct way for that 😄


Ps: Sorry but some gif or video will be fine to understand more 😄

Link to comment
Share on other sites

Announcements



×
×
  • 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.