Jump to content

TMP4

Contributor
  • Posts

    1112
  • Joined

  • Last visited

  • Days Won

    20
  • Feedback

    100%

Posts posted by TMP4

  1. If it's true then what? It's nothing illegal or morally questionable.
    It's like saying Apple - Samsung or Sony - Microsoft is bad because they're big and have influence.

    5 hours ago, DestinyR said:

    On https://www.metin2pserver.info/ the admin adds votes to the servers he wants too, he doesn't accept new servers, or accept the requests to update server information like banner and names.

    Can you prove it? If this is true and you can prove it, then a lot of people's opinions about the website may change. But until then, it's defamation.

  2. 40 minutes ago, psmsbaa666 said:

    Nevermind, I've tried it on first item that failed to appear in the Itemshop Warehouse ,on other items it does work.

    So, I'm new to the Metin2 Dev and I'm using@ TMP4 Metin2 40250 Reference Server files

    ...and I am wondering (because in that itemshop.sql file items have descriptions like 4000 HP, +15% mobs, e.t.c.) and defaulty the Metin2 40250 Reference Server files that I'm using have just the item description (and not always, sometimes just a name and time left) so they don't have any bonuses, how can I then, include/modify/add those in the serverfiles?

    Is there some documentation that I should read? Can someone help me with this?

    That's just description text to show. For example pet gives you +X HP. It's not match with official bonus values, it's just a leftover sql from some old proejct and it is just an example, you're required to fill the itemshop with your own items.

    Item_award does not support setting bonus for equipment by default. But you can implement that: 

    This is the hidden content, please

    If the item does not appear in your itemshop storage then check if the vnum exists in the server, also there is a given_time column in item_award, check if that time is lower then your server's current time (date command in FreeBSD.)

    • Metin2 Dev 18
    • Good 5
    • Love 1
    • Love 1
  3. 4 minutes ago, Alessio said:

    how can i see the list of bonus that i can use in these source files?
    i'm trying to use POINT_RESIST_CRITICAL / 136 but when i try to use it in navicat i get an error
    https://photos.app.goo.gl/29PY29VYL9c951G59 

    Check game/src/constants.cpp's const TApplyInfo aApplyInfo[MAX_APPLY_NUM] =

    POINT_RESIST_CRITICAL is number 90.

    Also keep in mind that the proto is read from item_proto.txt, not from database by default unless you implemented notxt.
    In the txt you need to use APPLY_ANTI_CRITICAL_PCT.

    (The navicat error in your picture is because you tried to enter a bigger number then the column's datatype)

    • Good 1
  4. A small update:

    2023.02.25: - There were 2 empty lines at the end of the map_index file, and the server only expects 1, so it reloads the last
                  map in your index file which results in npc.txt, boss.txt, regen.txt and stone.txt being loaded twice.
                  /usr/metin2/server/share/locale/english/map/map_index
                - PROXY_IP only worked with ip addresses but Karbust extended his tutorial to work with domain names so
                  now you can use DynDNS, for example, if you want.
                  https://metin2.dev/topic/28293-select-character-on-40k-for-local-server-and-vps/#comment-155509
    • Love 2
  5. 1 hour ago, Ace said:

    if you have enters in the index file between the map names, it will show 2x npc's

    the one way to fix it. but i cant see enters there in your index 😕

    I'm about 99% sure he have double enter at the end of the file since official have it too.

    While we don't see any empty line at his code tag that's because this forum trims the end of your text when you use a code tag.

    • Smile Tear 1
  6. @TonisBoss @ Ace I created a new totally empty map with size 1x2 like this and it does actually duplicate npcs. :kekw:

    I set coord to +-1 so they're a little far away, my npc.txt is:

    m       160     138     1       1       0       0       1m      100     1       20016
    Spoiler

    K-perny-k-p-2023-02-24-163414.png

    Edit: @TonisBoss @ Ace I finally figured it out. If you have 2 empty line in your map_index file at the bottom, it'll duplicate your last map's npcs, probably tries to re-load it. I had an untouched map_index file from official files from 2013 december, and it does have 2 empty line by default.

    TonisBoss please check your map_index file and remove the second empty line, only leave 1 empty line at the bottom, and it should work:

    Spoiler

    K-perny-k-p-2023-02-24-180250.png

    • Good 1
  7. 1 hour ago, TonisBoss said:

    Sorry for that. This is my npc.txt

    //type    cx    cy    sx    sy    z    dir    time    percent    count    vnum
    //-----------------------------------------------------------------------------------
    // ¿öÇÁ
    m    128    138    0    0    0    7    1s    100    1    20016
    m    128    134    0    0    0    1    1s    100    1    20355
    m    128    132    0    0    0    5    1s    100    1    20091
    m    125    138    0    0    0    1    1s    100    1    9010
    m    128    140    0    0    0    0    1s    100    1    20023
    m    128    142    0    0    0    0    1s    100    1    20095
    m    130    138    0    0    0    8    1s    100    1    20024
    m    128    135    0    0    0    7    1s    100    1    9003
    m    126    138    0    0    0    3    1s    100    1    9002
    m    127    136    0    0    0    3    1s    100    1    9001
    m    125    137    0    0    0    1    1s    100    1    9005
    m    130    140    0    0    0    1    1s    100    1    20094
    m    125    140    0    0    0    1    1s    100    1    20008
    m    122    138    0    0    0    5    1s    100    1    9004
    m    125    135    0    0    0    5    1s    100    1    9009
    m    131    141    0    0    0    0    1s    100    1    20380
    m    132    142    0    0    0    4    1s    100    1    20009
    m    133    143    0    0    0    1    1s    100    1    20355

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

    That npc.txt is fine.

    Are you sure this bug is related to my map? It only happens in this map?

    You didn't duplicate npc.txt? Like you copyed it to stone.txt/boss.txt/regen.txt?

  8. 3 hours ago, TonisBoss said:

    There is a visual bug with npc spawn.
    If you set them in npc.txt they look like double

    There is a video on the first post, I don't have such issue.

    By the way if you want to report a bug then attach your npc.txt at least.

    Maybe you set count to 2?

    K-perny-k-p-2023-02-22-191037.png

  9. 8 hours ago, Nuzzo said:

    Oh okay, thank you very much!
    One last thing, but by extracting the extern folder in windows, is there a possibility of losing any links?

    No, I didn't put any symlink there.

    6 hours ago, GoldCash said:

    Guys, when i want use dbcompile or gamecompile I stuck in i dont have clang++-devel. But i dont know how to install.. 
    Can anyone help me with this?

    You need FreeBSD 12+ (preferably 13.1) and pkg install llvm-devel. Then you can compile on a x32 system.

  10. 25 minutes ago, KarlisBonden said:

    https://metin2.download/picture/9knmEPdT4JdremE2X020XFnx726e8h9Y/.png

     

    Here is the screenshot of my router port forwarding, I do have full access to my router and I've checked on the website and all the ports are opened, no problem. I recently changed to a DDNS provided by my ISP, it's something like example.xx.xx, do I have to type it like this in the PROXY_IP section in CONF files or it doesn't matter ? I can enter both number IP and DNS on yougetsignal and both show the ports are opened. My friend tries to join the server from a different country If that helps. 

    If yougetsignal.com/tools/open-ports/ says ports are working then they should be able to connect or at least sees the channels 'norm'.

    I enabled DMs, send me your IP in DM and i'll try to connect to you. If you modified test/123456789 account then send me an account too.

    Edit: I got your DM but I need your public ip, not your local ip. If your friend tried to connect with your local ip too then it's the problem. @ KarlisBonden

    Edit2: I managed to log in with his public ip 🙂 

  11. 20 minutes ago, KarlisBonden said:

    Hello, I just created a new Metin2 server using @ TMP4 tutorial, but others can't join my server. I used the proxy ip method written in the FAQs, I forwarded the ports on auth, game99, first, game1,game2 channel 1. I can join the server just fine but my friends get error while connecting, the CH1 "NORM" doesn't show up, just blank "...".  I turned anti-virus, firewall off still not working. What am I doing wrong ? For local/internal IP I used the IP shown in ifconfig from FreeBSD, but when I type ipconfig in cmd it shows a different local IP, should I use this one instead ? Sorry I know this isssue has been brought up here a million times but I can't find a solution on this forum or somewhere else.  Would greatly appreciate If anyone could spare a minute to help !

    This error is not related to Metin2, but your home network configuration. In your router's port forwarding you need to use your server's (FreeBSD running on Virtualbox) local ip, not your pc's local ip, so it's fine, do not change it. Since you did not attach a screenshot of your port forwarding I can't tell if it's fine or not. 

    When I had enabled DMs here and in discord, there were some ppl contacting me who had a main router provided by their ISP and it was locked (they did not had password) and they used a secondary router to share wifi and they did the port forwarding there. If it's the case in you then it's worth nothing to open ports in a secondary router. You have to do it in the main too. Because when a connection coming from the internet side, it'll blocked by the main router and will not reach the second. Also the second router is probably just an access point in this scenario, not even working as a real router.

    https://www.yougetsignal.com/tools/open-ports/ Use this to check if you managed to successfully set up the port forwarding. Here you need to enter your public ip, and a port like ch1 core1.

  12. 53 minutes ago, HyperBae said:

    UNIQUE_GROUP_DOUBLE_ITEM is defined in special_item_group.txt
    Do you have an example of how this is declared?

    It is there by default. You don't need to define it yourself.

    K-perny-k-p-2023-02-20-202746.png

    70043 is defined here too so it does increase both IDeltaPercent and iRandRange, so I guess it increases the chance the best. But check the calculation yourself on ITEM_MANAGER::CreateDropItem, it's overcompilcated as everything in Ymir's code.

    By the way I did not touch such things so if something doesn't work well then it didn't work in the official servers at early 2014.

  13. 6 hours ago, HyperBae said:

    thief gloves don't work

    The glove with affect 67 (vnum: 71016) does not work because Ymir commented out it's plus percent from src:

    bool ITEM_MANAGER::GetDropPct

    	//if (pkKiller->GetPoint(POINT_MALL_ITEMBONUS) > 0)
    	//iDeltaPercent += iDeltaPercent * pkKiller->GetPoint(POINT_MALL_ITEMBONUS) / 100;

    If you uncomment this and recompile gamefile, it may work.

    -----

    The other gloves should work because they're used in bool ITEM_MANAGER::GetDropPct in item_manager.cpp

    For item 72004-72006, they're increasing IDeltaPercent:

    Quote

        // ADD_PREMIUM
        if (pkKiller->GetPremiumRemainSeconds(PREMIUM_ITEM) > 0 ||
                pkKiller->IsEquipUniqueGroup(UNIQUE_GROUP_DOUBLE_ITEM))
            iDeltaPercent += iDeltaPercent;
        // END_OF_ADD_PREMIUM

    UNIQUE_GROUP_DOUBLE_ITEM is defined in special_item_group.txt

    For item 70043 (UNIQUE_ITEM_DOUBLE_ITEM) is increasing iRandRange

    Quote

        iRandRange = iRandRange * 100 / 
            (100 + 
             CPrivManager::instance().GetPriv(pkKiller, PRIV_ITEM_DROP) + 
             pkKiller->IsEquipUniqueItem(UNIQUE_ITEM_DOUBLE_ITEM)?100:0);

    These 2 variable is used for the calculation for the chance in bool ITEM_MANAGER::CreateDropItem.

    A common misunderstanding is that thieves' gloves will drop double items. No, this is not the case, it increases (a little) the chance of the drop.

  14. 6 hours ago, Ruraku said:

    Do you know what I should do to be all good?

    It's not that easy. You have to basically rewrite Metin2's codebase with a more modern environment, probably change game engine to UE. Big game developer companies doesn't do 1 map for all player either.

    You can still use a big map for all players and it will work, just as wanted to point out all the load will be concentrated to 1 core. You have to think about some load balancing, forcing players to use different channnels is good for balancing but players probably wont like this.

    • Good 1
  15. 1 hour ago, Ruraku said:

    Hello, I'm curious if I can make a 50x50 map or what is the limit for a map to not be full of glitches and bugs. I know the map will have in the final maybe 1-2GB but who cares in 2023 about space. I got a big project and I want to do a global map for all the players with daily missions on it. Please respond if you know 🙂

    With 50x50 you're not exceeding any datatype limit so it should be doable.

    The problem is more likely the resource management, you'll have 1 core where all players will be. I'm sure it will not run fine if you will have 1000s of players because Metin2's code is obselete, and not really optimized by any mean for this kind of use.

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