Jump to content

Exygo

Active Member
  • Posts

    534
  • Joined

  • Last visited

  • Days Won

    17
  • Feedback

    0%

Posts posted by Exygo

  1. On 1/25/2024 at 6:28 PM, arves100 said:

    We do have the torrent patch source code inside the leaked src, we can also see the resources matches.

    I had no idea n2 used some portion of it, understandable actually I know nova and the other guys who got the full original leak of ymir has the src. (Not us that we only got the Metin2 one)

    I also believe SG people have the src as well as they used to have the src before the leaks according to some leaked emails

    Yes, there are leaks
    image.png

    • Metin2 Dev 1
    • Good 1
  2. Description:

    Quote

    Get rid of any other functions and put it directly in the source

    if you want to don't use anymore this nasty piece of code :

    if pc.get_map_index() >= (206 * 10000) and pc.get_map_index() < ((206 + 1) * 10000) then

     

    Usage:

    Quote
    when 2493.kill with pc.in_dungeon(208) begin
    when kill with pc.in_dungeon() begin -- any dungeon

     

    Function:

    Quote
    // dungeon.h
    
    // Find
    	long	GetMapIndex() { return m_lMapIndex; }
    
    // Add after
    	int		GetOriginalMapIndex() { return m_lOrigMapIndex; }
    
    // questlua_pc.cpp
    // Find & replace the whole function
    	int pc_in_dungeon(lua_State * L)
    	{
    		LPCHARACTER ch = CQuestManager::instance().GetCurrentCharacterPtr();
    		if (!ch)
    		{
    			lua_pushboolean(L, false);
    			return 1;
    		}
    
    		LPDUNGEON dungeon = ch->GetDungeon();
    		bool ret = (dungeon != NULL);
    
    		if (ret && lua_gettop(L) >= 1 && lua_isnumber(L, 1))
    		{
    			int mapIndex = (int)lua_tonumber(L, 1);
    			if (mapIndex > 0)
    				ret = (mapIndex == dungeon->GetOriginalMapIndex());
    		}
    
    		lua_pushboolean(L, ret);
    		return 1;
    	}

     

     

    • Confused 1
    • Good 1
  3. or just be badass and send the timestamp cmdchat(string.format("commandName %d",get_time() + 3600))

    and make an UI for it in client and use app.GetGlobalTimeStamp() for calculation. And also in that UI you can display tips E.G: "Defeat all the monsters in the floor to advance to level 3", "Unlock all the 6 seals in order to advance to level 4"

  4. This is the hidden content, please

    Metin2 Download

    Description:

        Some serverfiles have wrong base position coordinates in Setting.txt of the Orks valley (map_a2 or in some cases map_n_threeway on client side) and it collides with deviltower

        Here is an example from wom2 client from 2016 https://metin2.download/picture/40L5tmkc0jY9PJ9AMTK2plv0XtVX1mVz/.png

     

    Problems caused in most of cases by wrong coordinates or bad server_attr file:

     

          - When you choose coordinates for BasePosition in Setting.txt,

             make sure they are multiples of 25600 if you want to avoid unknown behavior such as: "Mobs can't walk on specific parts of the map" or "Players getting kicked because sectree manager cannot find tree at position x y"

          - Players getting kicked & etc

     

    Things you need to watch out:

        - Make sure the map size is the same in setting.txt from client side & server side too

        - Open the map in WorldEditor.exe and save again the server_attr, then upload it to server side inside the map folder/map_name_xx (when you save it close WorldEditor & save the map and open it again, I heard if you make               some changes in the attributes of the map it won't load them from cache so you have to open it again)

     

     

    How to trace broken maps ?

        Using a special software made for metin2 (there are several, ones paid with license, etc) I offer you a free one that I found on the forums, it's simple and easy

        

    This is the hidden content, please

     

        Once you got the little program, put it in a folder

        Put your atlasinfo.txt inside the folder (make sure you put the correct one, some people have 2 separate atlasinfo.txt, one in locale pack and one in root pack, find out which is your correct one that your binary is using)

        Edit your atlasinfo.txt using notepad++ software (the majority have it with syntax errors)

        Toggle the "Show White Space and TAB" in notepad++ menu (View tab -> Show Symbol -> Show White Space and TAB)

        .png

        Correct ALL the wrong lines, the ones that have more than one TAB and the ones that have TABS mixed with spaces

        .png

     

        Now you can open AtlasInfoShower.exe

        .png

        

        Here is an example of map coordinates collission,

        make sure they have a little space between them so you are 100% sure it's okay

        .png

     

        When you choose coordinates for BasePosition in Setting.txt,

        make sure they are multiples of 25600 if you want to avoid unknown behavior such as: "Mobs can't walk on specific parts of the map" or "Players getting kicked because sectree manager cannot find tree at position x y"

        .png

     

    How to find multiples of 25600 ?

            Search on google "multiples of 25600" or use this link http://www.mathspage.com/solved/what-are-the-multiples-of-25600

    • Metin2 Dev 134
    • kekw 1
    • Confused 1
    • Scream 1
    • Good 29
    • Love 3
    • Love 50
  5. Short back story:

           I remember long time ago I had a map that had many NPCs on it and I got a problem with the packet that sends the NPCs to the client to be displayed on the big atlas map

     

    Fix:

    input_login.cpp

        Search:

                    SECTREE_MANAGER::instance().SendNPCPosition(ch);

        Couple lines under it you should find:

                    d->SetPhase(PHASE_GAME);

        Put the "d->SetPhase(PHASE_GAME);"    before the SendNPCPosition line

     

    Like this:

                    .png

    • Metin2 Dev 1
    • Good 2
    • Love 1
    • Love 5
  6. For people who might want to use this nowadays, I tested the drops and the upgrade succes percentage and is not so good, very bad drops and a lot of failed upgrades with this uniform random, but even if you use the ymir's function you might have situations where upgrade succeeds in a row or failing in a row

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