Jump to content

Mano

Premium
  • Posts

    196
  • Joined

  • Last visited

  • Feedback

    0%

Posts posted by Mano

  1. 31 minutes ago, Ikarus_ said:

    I guess that GetMaxHP returned 0 for some reason, and that is why it crashed. You can solve it by simply checking that GetMaxHP is different from 0 in that if.
    Test this fix and report if it helped you:
     

    // replace this
    	if (GetMaxHP() >= 0)
    		iTmpPercent = (GetHP() * 100) / GetMaxHP();
    
    //with this
    	if (GetMaxHP() > 0)
    		iTmpPercent = (GetHP() * 100) / GetMaxHP();

     

    Yeah that solved the problem, so somehow BroadcastAllianceHP is setting mast hp to 0 or idk why the mast is destroyed right after the timer ends

    Edit: Turns out mob_proto.txt data is the reason and max_hp field is missed up

  2. 12 minutes ago, Ikarus_ said:

    It would be helpful to post the char_battle.cpp file or at least what it contains at line 2530 and around.

    I'm running test server and i got that core downer because of this block

    Spoiler

            if (test_server)
            {
                int iTmpPercent = 0; // @fixme136
                if (GetMaxHP() >= 0)
                    iTmpPercent = (GetHP() * 100) / GetMaxHP();

                if(pAttacker)
                {
                    pAttacker->ChatPacket(CHAT_TYPE_INFO, "-> %s, DAM %d HP %d(%d%%) %s%s",
                            GetName(),
                            dam,
                            GetHP(),
                            iTmpPercent,
                            IsCritical ? "crit " : "",
                            IsPenetrate ? "pene " : "",
                            IsDeathBlow ? "deathblow " : "");
                }

                ChatPacket(CHAT_TYPE_PARTY, "<- %s, DAM %d HP %d(%d%%) %s%s",
                        pAttacker ? pAttacker->GetName() : 0,
                        dam,
                        GetHP(),
                        iTmpPercent,
                        IsCritical ? "crit " : "",
                        IsPenetrate ? "pene " : "",
                        IsDeathBlow ? "deathblow " : "");
            }

    This line exactly

    Spoiler

    iTmpPercent = (GetHP() * 100) / GetMaxHP();

    Edit: if i deactivated test server it works and there is no core crash but the mast is destroyed right after counter timer ends

    https://metin2.download/picture/1e97P10iU39HjN9be33bqBsycEm2stuD/.png

  3. Hey all,

    I'm trying to compile libjpeg on vs17 but each time i run the compile command i got this error

    Spoiler

    NMAKE : fatal error U1052: file 'makefile.win' not found

    I'm following the steps from this https://stackoverflow.com/questions/12652178/compiling-libjpeg

    I don't know what is the problem and i really need help

    Edit : i fixed it i just was using the wrong makefile (makefils.vs is the one working for vs17)

    Kind regards

  4. 9 minutes ago, ABoWaLy said:

    iam not asking about this >>

    i know the fix for this ..

    in NewPetSystem.cpp .. search

    
    void CNewPetActor::ItemCubeFeed(int type)

    and paste it

    
    			if (ITEM_WEAPON == itemxp->GetType() && itemxp->IsEquipped())
    				return ;

    iam asking about weapon costume .. when unwear it .. it is Keep appearances

     

    Got it.

    It's also from instancebase.cpp :)

    If you're using martysama source that mean you will not face problem like that :)

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