Jump to content

Jira

Premium
  • Posts

    191
  • Joined

  • Days Won

    2
  • Feedback

    0%

Posts posted by Jira

  1. That's happened when _CONTAINER_DEBUG_LEVEL > 0. You have two options to solve that assert: 1) set _CONTAINER_DEBUG_LEVEL to 0;  2) add the data for tables(monarch, land, banword) , of course you can compile on release mode(_CONTAINER_DEBUG_LEVEL = 0).

    https://metin2.download/picture/ws38Y15zlgcA6XtZ3c4At5nfeLLt895w/.png

    https://metin2.download/picture/5dpFwezKgLeHTuGdwUGL56Um4Z31zF1Y/.png when i don't have bandword table or it's empty.

    Btw u can check the vector if it's empty like this 

    Spoiler

     

     

    • Love 1
  2. 20 minutes ago, DrTurk said:

    I've done it the "normal" way, is fast enough.

    What does cmake improve? I worked ~4years ago with cmake but on FreeBSD so whats the benefits of cmake on windows?

     

    My "setup": https://metin2.download/picture/r3F9504x09DVmF8K988YXgTtGTP6KMUj/.gif

    You can generate projects for many IDEs(visual studio, clion, eclipse, etc) and it's easy to learn, also u can use third party libraries. Of course you can speed your build for  your own project via 

    This is the hidden content, please
     ,also there is alternatives for cmake  (premake5, meson, etc).

    • Metin2 Dev 63
    • kekw 1
    • Eyes 1
    • Dislove 1
    • Think 3
    • Confused 1
    • Lmao 1
    • Good 3
    • Love 2
    • Love 17
  3. battle.cpp

    return CPVPManager::instance().CanAttack(ch, victim);

    to

        bool bIsFarmMap = false;
        switch (ch->GetMapIndex())
        {
          case 113:
          case 219:
          case 240:
          case 351:
          case 352:
          {
          	if (victim->IsPC() && ch->IsPC())
          		bIsFarmMap = true;
          }
          break;
        }
    	return CPVPManager::instance().CanAttack(ch, victim, bIsFarmMap);

    pvp.h

    bool			CanAttack(LPCHARACTER pkChr, LPCHARACTER pkVictim);

    to

    bool			CanAttack(LPCHARACTER pkChr, LPCHARACTER pkVictim, bool bIsFarmMap = false);

    pvp.cpp

    bool CPVPManager::CanAttack(LPCHARACTER pkChr, LPCHARACTER pkVictim)

    to

    bool CPVPManager::CanAttack(LPCHARACTER pkChr, LPCHARACTER pkVictim, bool bIsFarmMap)

    inside of body after 

    		if ( LC_IsYMIR() == true || LC_IsKorea() == true )
    		{
    			if ( pkChr->GetPKMode() == PK_MODE_PROTECT || pkVictim->GetPKMode() == PK_MODE_PROTECT )
    			{
    				return false;
    			}
    		}

    add

            if (bIsFarmMap == true)
                return false;
    Spoiler

    uvwYeg1.png

     

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