Jump to content

Matteo

Member
  • Posts

    96
  • Joined

  • Last visited

  • Days Won

    1
  • Feedback

    0%

Posts posted by Matteo

  1. Hi,

    As default in sources, you cannot exceed mob hp's by ~21,4 million because there some part of the game where a percentage calculation happens. When calculating the percentage it multiplies the current HP with 100 then divide by the full HP. At the multiplying part it runs out of Int limits and because of that things get buggy. I dont really want to change the datatype of HP stuff in the whole source. I've made a "ghetto" fix but im looking for better solutions. Suggestions?

     

    Or just multiply after dividing? Like (currentHP / maxHP) * 100?

     

    WARNING: !!GHETTO CODE!!

    Spoiler

    spacer.png

     

    Thanks!

  2. Hi guys,


    It's maybe released somewhere else, but i ran into this with 300-400 player on my server and one of them injected a little python script which invites mobs or npcs into guild and party or forces guild skills on mobs or npcs. If that happens the core will crash since there is no checks for that.

     

    input_main.cpp

     

    Find in case GUILD_SUBHEADER_CG_ADD_MEMBER::

    if (!ch->IsPC())

    Replace:

    if (!ch->IsPC() || !newmember->IsPC())

     

     

    Find in CInputMain::PartyUseSkill:

    if (pch)
    	ch->GetParty()->SummonToLeader(pch->GetPlayerID());

    Replace:

    if (pch)
    {
    	if (pch->IsPC())
    		ch->GetParty()->SummonToLeader(pch->GetPlayerID());
    }

     

     

    Add at the beginning of the CInputMain::PartyInvite function:

    if (!ch)
    	return;

    In the same function find:

    if (!pInvitee || !ch->GetDesc() || !pInvitee->GetDesc())

    Replace:

    if (!pInvitee || !ch->GetDesc() || !pInvitee->GetDesc() || !pInvitee->IsPC() || !ch->IsPC())

     

     

    Add at the beginning of the CInputMain::PartyInviteAnswer function:

    if (!ch)
    	return;

    In the same function find:

    if (!pInviter)

    Replace:

    if (!pInviter || !pInviter->IsPC())

     

    Have a nice day!

     

    • Love 8
  3. 28 minutes ago, Speachless said:

    You're confusing a thing. All metin2 sources are configured to load the files from d:/ymir work. It's only for test-environment not for release. 

    Still my way has less performance loss. and there is no point to change. See the videos above.

     

    This is my last time i enter any forum. Same shit happened in the past and i have no patience to argue like in the old days. Run tests before post.

     

    I've tested it, and works great! Why are you caring about someone else's opinion? Who cares what he/she thinks... I've implemented it, and works well, lags are gone. Big thanks! :)

    • Love 1
  4. Big thanks for @HITRON for the solution!

     

    EterPythonLib/PythonWindowManager.cpp

     

    Find: 

    void CWindowManager::__ClearReserveDeleteWindowList()
    {
    	for (auto pWin : m_ReserveDeleteWindowList)
    		delete pWin;
    	m_ReserveDeleteWindowList.clear();
    }

    Replace:

    void CWindowManager::__ClearReserveDeleteWindowList()
    {
    	// The above code not need, cause is cleaning it anyway from the vector i think.
    	m_ReserveDeleteWindowList.clear();
    }

    #closerequest

    • Confused 1
    • Love 2
  5. Hi,

     

    I have a client source and with vs2019 compatible Extern. The only thing i've got is crash when i try to teleport. When i start it in compatibility mode like Windows8, its totally working. If not, then crashing. I've investigated the crash with VS debugging, but i couldn't figure out what the heck is the problem, and how can i resolve it. Here's some pictures.

     

    What do you guys think is wrong?

     

    Kind Regards,

    Minton

    1.png

    2.png

    3.png

    • Metin2 Dev 1
  6. You are really is just an asshole :) Do you want to start a shit remake of metin2 in turkey and now you are reporting metin2 servers? lmao. 

    Or you just forgot how m2m got the fame? Don't you remember? And Magic To Master is got "famous" because of M2M. But don't forget about karma, you will get what you deserve ;) 

     

    Or you just got mad, because nobody liked and bought your shitty remake of the game? Or what?

  7. Hi, 

    I have a server with around 200 players, and the game is lagging. If i start up the server, its okay no problem, but as time passing by its getting worse and worse... after 24 hours there is 2-3 second lag spikes, especially when a notice comes. I also suspecting the whole "affect system", i have around 140k record in the player/affect table. Server is dedicated, 8 core Xeon, 12G RAM, 1/1 gbps (dedicated also) internet, 2x500hdd in raid1. 

    Im looking for a developer who can explore this problem and solve it. Im also intrested in any performance related code/system/bugfix etc.
    If you are intrested please DM me here. 

    Have a nice day,
    Minton 

  8. 5 minutes ago, WeedHex said:

    Default file, you can delete link. 

    I think there is something wrong with an item. Infos are not useful (for me)

    x455.thumb.JPG.4006906630c7e5cc5a12510b72a4b203.JPG

    Try to understand who's the owner and what item is. Look at the count ...

    fun fact:
     

    mysql> SELECT * FROM item WHERE count > 200;
    Empty set

     

    vZwOUbH.png

     

    new crash... randomly, only the first channel. another three is running fine.

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