Jump to content

TMP4

Contributor
  • Posts

    1112
  • Joined

  • Last visited

  • Days Won

    20
  • Feedback

    100%

Posts posted by TMP4

  1. 13 minutes ago, withheld said:

    Hello, I wanted to use this base to experiment and learn about m2 server stuff, want to ask, i bought a vps on Contaro, and installed FreeBSD 13.1, and after running "pkg install mysql56-server python27", as stated in your "How to install on VPS" guide in FAQ.txt, this shows up, what would you recommend me do with these?

     

    =====
    Message from groff-1.22.4_4:
    
    --
    In order to be able to use the html driver, you need to install the following
    packages:
     - ghostscript
     - netpbm
    =====
    Message from mysql56-client-5.6.51:
    
    --
    Please be aware the database client is vulnerable
    to CVE-2015-3152 - SSL Downgrade aka "BACKRONYM".
    You may find more information at the following URL:
    
    http://www.vuxml.org/freebsd/36bd352d-299b-11e5-86ff-14dae9d210b8.html
    
    Although this database client is not listed as
    "affected", it is vulnerable and will not be
    receiving a patch. Please take note of this when
    deploying this software.
    --
    ===>   NOTICE:
    
    This port is deprecated; you may wish to reconsider installing it:
    
    Upstream support ended in February 2021.
    
    It is scheduled to be removed on or after 2023-06-30.
    =====
    Message from mysql56-server-5.6.51:
    
    --
    Please keep in mind that the default location for my.cnf will be changed
    from "/var/db/mysql/my.cnf" to "/usr/local/etc/mysql/my.cnf" in the near
    future.  If you do not want to move your my.cnf to the new location then
    you must set "mysql_optfile" in /etc/rc.conf to "/var/db/mysql/my.cnf".
    --
    ===>   NOTICE:
    
    This port is deprecated; you may wish to reconsider installing it:
    
    Upstream support ended in February 2021.
    
    It is scheduled to be removed on or after 2023-06-30.
    =====
    Message from python27-2.7.18_2:
    
    --
    Note that some standard Python modules are provided as separate ports
    as they require additional dependencies. They are available as:
    
    bsddb           databases/py-bsddb
    gdbm            databases/py-gdbm
    sqlite3         databases/py-sqlite3
    tkinter         x11-toolkits/py-tkinter
    --
    ===>   NOTICE:
    
    This port is deprecated; you may wish to reconsider installing it:
    
    EOLed upstream.
    
    It is scheduled to be removed on or after 2020-12-31.
    

    Thanks lots in advance.

    Nothing? These notices are totally normal. Yes they're old and deprecated but it is what it is if you want to run a ~19 years old game :kekw:

    If you modify make.py for python3.x compatibility you can use latest python package instead of 2.7. For MySQL, it is possible to update the source to 5.7/8.0 but that is more difficult.

  2. 6 hours ago, RobinHoodye said:

    https://www.yougetsignal.com/tools/open-ports/ this site apare to be closed all port but i have Miscreated server with 64090 port 🙂 same closed and all can join on server idk i set correclty all port but cant opening in this site

     

    j2nwPRd.png

    i have all ports open in config serverfiles have this

    i have something wrong here?? 

    On second picture we can see your public ip. Remove it. Also if you leave the # it's commented -> not active.

    I can't tell if your router configuration is ok or not, but if the ports seems to be closed with port checker, then it's wrong.
    192.168.1.218 is your VM's ip? You need to put there your VM's ip, not your desktop's ip.

  3. 1 hour ago, RobinHoodye said:

    ports are open i check all and all apare to open firewall it's disable me ip it's static but no working,a lot of days i trying a lot of solution withous result

    If you send your IP address in DM in the next hour I can check if the ports are open and If I'm able to connect.
    To get through the charselect, you need to use PROXY_IP in CONFIG files, but that's not related to the ports, I just write it if you don't know.

  4. 26 minutes ago, RobinHoodye said:

    Hello! i use this base i have a short question it's necesary another program to use in gen portmap or someting ? i have open all ports in router but me friend cant connect it's offline for this 

    https://www.yougetsignal.com/tools/open-ports/ <-- You can check here if you successfully opened the ports or not. It's not about Metin2 and this serverfile, but networking question.

    (No need for portmap.)

  5. 14 hours ago, БlyatMAN said:

    : ChildLoop: AsyncSQL: query failed: Data truncated for column 'size' at row 1 (query: replace into mob_proto (vnum, name, locale_name, type, rank, battle_type, level, size, ai_flag, setRaceFlag, setImmuneFlag, on_click, empire, drop_item, resurrection_vnum, folder, st, dx, ht, iq, damage_min, damage_max, max_hp, regen_cycle, regen_percent, exp, gold_min, gold_max, def, attack_speed, move_speed, aggressive_hp_pct, aggressive_sight, attack_range, polymorph_item, enchant_curse, enchant_slow, enchant_poison, enchant_stun, enchant_critical, enchant_penetrate, resist_sword, resist_twohand, resist_dagger, resist_bell, resist_fan, resist_bow, resist_fire, resist_elect, resist_magic, resist_wind, resist_poison, dam_multiply, summon, drain_sp, mob_color, skill_vnum0, skill_level0, skill_vnum1, skill_level1, skill_vnum2, skill_level2, skill_vnum3, skill_level3, skill_vnum4, skill_level4, sp_berserk, sp_stoneskin, sp_godspeed, sp_deathblow, sp_revive) values (101, "??", "Wild Dog", 0, 0, 0, 1,

     

    how can i fix this i have it on all mobs i moved server to vps and this hapend...any fix?

    2022.12.15: - Changed sql_mode in the VM from sql_mode=NO_ENGINE_SUBSTITUTION,STRICT_TRANS_TABLES to
                  sql_mode=NO_ENGINE_SUBSTITUTION in /usr/local/my.cnf to prevent DATA TRUNCATED errors with MySQL56.
    Quote

    - How to install it in a VPS?
        1. Get a VPS with FreeBSD 13.1 or greater (you can use older FreeBSD if you recompile everything in that version)
        2. If root login not enabled then enable it: ee /etc/ssh/sshd_config
           and edit "#PermitRootLogin no" to "PermitRootLogin yes" (press esc and save it), then reboot or /etc/rc.d/sshd restart
        3. pkg install mysql56-server python27 (it will ask to install tke pkg itself too, type yes)
        4. add mysql_enable="yes" to /etc/rc.conf then reboot or start mysql via service mysql-server start
        5. It is highly recommended to modify sql_mode from sql_mode=NO_ENGINE_SUBSTITUTION,STRICT_TRANS_TABLES to
           sql_mode=NO_ENGINE_SUBSTITUTION in your /usr/local/my.cnf then restart the server, or you will have DATA TRUNCATED errors.
           If you don't have that file, just create it, here's the content you should put: https://pastebin.com/xNsP6pVA

        6. Upload the metin2_server+src.tar.gz to /usr and extract it: cd /usr && tar -xf metin2_server+src.tar.gz
        7. Stop mysql via service mysql-server stop and delete the var/db/mysql: rm-rf /var/db/mysql
           Upload the metin2_mysql.tar.gz to /var/db and extract it: cd /var/db && tar -xf metin2_mysql.tar.gz
           Start mysql via service mysql-server start or you can reboot too
           (You can install the database via the provided mysql_dump_too and run the .sql files if you prefer that way)
        8. Start your server via cd /usr/metin2/server && sh start.sh
     

    • Metin2 Dev 1
    • Love 1
  6. 7 hours ago, БlyatMAN said:

    Again me 👋 devil tower have at 3th floor this error in sysser

    SYSERR: Apr 27 02:08:55 :: GetUniqueHpPerc: Unknown Key : fake4
    SYSERR: Apr 27 02:08:55 :: PurgeUnique: Unknown Key or Dead: fake4
    SYSERR: Apr 27 02:09:35 :: GetUniqueHpPerc: Unknown Key : fake3
    SYSERR: Apr 27 02:09:35 :: PurgeUnique: Unknown Key or Dead: fake3
    SYSERR: Apr 27 02:10:05 :: IsUniqueDead: Unknown Key or Dead : real
     

    Any fix f this? 

    Its from quest ofc...but any fix?

    It is coming from the 4th floor:

    Spoiler
        when devil_stone4_update.server_timer begin
            if d.select(get_server_timer_arg()) then
                if not d.is_unique_dead("real") then
                    for i = 1, 6 do
                        if d.getf("fakedead" .. i) == 0 then
                            if d.unique_get_hp_perc("fake" .. i) < 50 then
                                d.purge_unique("fake" .. i)
                                d.setf("fakedead" .. i, 1)
                                notice_multiline(gameforge.deviltower_zone._90_dNotice,d.notice)
                            end
                        end
                    end
                else
                    server_timer("devil_stone4_end", 5, get_server_timer_arg())
                    --d.kill_all()
                    d.purge()
                    notice_multiline(gameforge.deviltower_zone._100_dNotice,d.notice)
                    clear_server_timer('devil_stone4_fail1', get_server_timer_arg())
                    clear_server_timer('devil_stone4_fail2', get_server_timer_arg())
                    clear_server_timer('devil_stone4_fail', get_server_timer_arg())
                end
            else
                server_timer('devil_stone4_stop_timer', 1, get_server_timer_arg())
            end
        end

    So the important thing is that this is not a syserr-free server file. Every base file had and have this syserr. Despite that syserr, devil tower works fine.
    I don't have a fix for that.

  7. 35 minutes ago, Draveniou1 said:

    They are automatically deleted  after 12 message you check

    With your "fix" abusers got +1 query to spam, even if it's just a delete query.

    Fixing the possibility of the flood and delete old unnecessary comments is 2 seperate things to do. @ Abel(Tiger) did the first, you did the second.

    And yes, Abel is right because you're not checking any permission, if someone sends a packet on his own (cheat), he can delete other's messages without the required guild permission.

    Also you did hella lot uneceserry work. If you want to delete older comments, why don't you just do it after the insert? Why do you need a seperate packet?

  8. On 4/20/2023 at 6:50 AM, БlyatMAN said:

    and this is the syserr-DoRefineWithScroll: REFINE : Unknown refine scroll item. Value0: 1

    in item proto client and sv have value 1

    It's normal. Magic stone were unused on official servers therefore they didn't bother themself to exclude from log.

    You can modify char_item.cpp as follows:

    		else
    		{
    			sys_err("REFINE : Unknown refine scroll item. Value0: %d", pkItemScroll->GetValue(0));
    		}

    to

    		else if (pkItemScroll->GetValue(0) != HYUNIRON_CHN)
    		{
    			sys_err("REFINE : Unknown refine scroll item. Value0: %d", pkItemScroll->GetValue(0));
    		}

    About the /n in locale_game.txt simply remove it it from the text. For example the hungarian locale doesn't even have /n there. If it's too long then rephrase the text.

    On 4/20/2023 at 10:33 PM, Marcos17 said:

    Good evening everyone...

    @ TMP4

    I'm starting to work with Metin2, I'm still inexperienced, but I really want to learn...
    I'm Brazilian and would like to know if it's possible to add the Brazilian Portuguese language, and if it's possible...
    If possible, could you tell me if I need to make changes to source_game, etc...

    Thank you in advance for your attention and thank you for your contribution to the metin2 public

    It is possible but I don't have Brazilian Portuguese language. On the video where I swich english to hungarian you will see every file what contains language specific things. I guess you don't want to translate the files yourself so where you can get Brasilian lang files is a good question, I suggest you to open a topic there: https://metin2.dev/forum/119-file-requests/

    • Metin2 Dev 1
    • Scream 1
    • Love 1
  9. 8 minutes ago, avertusss said:

    I tried use jail as you have in faq but i cannot compile
     

    linking ../db....
    ld: error: ../../libthecore/lib/libthecore.a(socket.o) is incompatible with /usr/lib/crt1.o
    ld: error: ../../libthecore/lib/libthecore.a(fdwatch.o) is incompatible with /usr/lib/crt1.o
    ld: error: ../../libthecore/lib/libthecore.a(buffer.o) is incompatible with /usr/lib/crt1.o
    ld: error: ../../libthecore/lib/libthecore.a(signal.o) is incompatible with /usr/lib/crt1.o
    ld: error: ../../libthecore/lib/libthecore.a(log.o) is incompatible with /usr/lib/crt1.o
    ld: error: ../../libthecore/lib/libthecore.a(utils.o) is incompatible with /usr/lib/crt1.o
    ld: error: ../../libthecore/lib/libthecore.a(kstbl.o) is incompatible with /usr/lib/crt1.o
    ld: error: ../../libthecore/lib/libthecore.a(hangul.o) is incompatible with /usr/lib/crt1.o
    ld: error: ../../libthecore/lib/libthecore.a(heart.o) is incompatible with /usr/lib/crt1.o
    ld: error: ../../libthecore/lib/libthecore.a(main.o) is incompatible with /usr/lib/crt1.o
    ld: error: ../../libthecore/lib/libthecore.a(tea.o) is incompatible with /usr/lib/crt1.o
    ld: error: ../../libthecore/lib/libthecore.a(des.o) is incompatible with /usr/lib/crt1.o
    ld: error: ../../libthecore/lib/libthecore.a(gost.o) is incompatible with /usr/lib/crt1.o
    ld: error: ../../libthecore/lib/libthecore.a(memcpy.o) is incompatible with /usr/lib/crt1.o
    ld: error: ../../libsql/libsql.a(AsyncSQL.o) is incompatible with /usr/lib/crt1.o
    ld: error: ../../libsql/libsql.a(Semaphore.o) is incompatible with /usr/lib/crt1.o
    ld: error: ../../libsql/libsql.a(Tellwait.o) is incompatible with /usr/lib/crt1.o
    ld: error: ../../libsql/libsql.a(Statement.o) is incompatible with /usr/lib/crt1.o
    ld: error: ../../libpoly/libpoly.a(Base.o) is incompatible with /usr/lib/crt1.o
    ld: error: ../../libpoly/libpoly.a(Poly.o) is incompatible with /usr/lib/crt1.o
    ld: error: too many errors emitted, stopping now (use --error-limit=0 to see all errors)
    clang++: error: linker command failed with exit code 1 (use -v to see invocation)
    gmake: *** [Makefile:50: ../db] Error 1
    [root@vmi1274726 /usr/metin2/src/server/db/src]#

    any ideas? I don't know if i use jail or normal system. It's magic xD

    You have to move the src folder to your jail's location, switch to your jail via "jexec 1 tcsh" (1 is the id of the jail), install the required stuff for compililing llvm-devel, mysql and recompile everything, not just the game & db. You may need to modifiy some makefile (game,db,libsql) since it reads the mysql includes and libs from /usr/xy and you need to edit it to your jail's location.

  10. 19 minutes ago, avertusss said:

    but they installed 12.3 64 bit not 32. I cannot compile src. Can i change it to 32 bit by myself?

    I think it is possible via custom images, but just don't. 32bit OS can only handle 4gb of ram, and you have 8 or more. But you can install a 32bit jail on your system. I cannot give you a tutorial, search it up on Google if you wanna do it. But most people does not compile & test on their live vps anyway.

  11. This is the hidden content, please

    Alternative download links → 

    This is the hidden content, please

    Original topic: 

    Before:

    K-perny-k-p-2023-04-16-001516.png

    After:

    Default.png

    You may remember this design from the original launcher and Musicinstructor's autopatcher.

    --------------

    Https solution:

    Website with https may not work. To fix this in ListDownloader.cs, FileDownloader.cs, Networking.cs you can find "new WebClient();" Just add this before: "ServicePointManager.SecurityProtocol = SecurityProtocolType.Tls12;" You can edit Tls12 to Tls11 or SSl3 but probably Tls12 is what will work. Also you need to right click to Sanchez.Patcher project and set Target Framework from .NET 4.0 to 4.5 or greater to use Tls12.

    --------------

    Patchlist.txt generator php:

    You can use this php to generate the patchlist from the web so you don't need to do it on windows.

    <?php
    if (isset($_GET['pass']) && $_GET['pass'] === 'somepasswordhere') {
        $excluded_files = array('patchlist.txt', 'metin2.cfg', 'generate.php', 'syserr.txt', 'log.txt', 'ErrorLog.txt', '.htaccess');
        $excluded_folders = array('news');
    
        $folder_to_check = './';
        $list_file = 'patchlist.txt';
    
        $file_handle = fopen($list_file, 'w');
    
        if ($file_handle === false) {
            die("Can not open file '$list_file' for write.");
        }
    
        function readDirectory($folder, $excluded_files, $excluded_folders, $file_handle, $base_path) {
            $files = scandir($folder);
            foreach ($files as $file) {
                if ($file == '.' || $file == '..') {
                    continue;
                }
                if (in_array($file, $excluded_files) || in_array($file, $excluded_folders)) {
                    continue;
                }
                $full_path = $folder . '/' . $file;
                $relative_path = $base_path . '/' . $file;
                if (is_dir($full_path)) {
                    readDirectory($full_path, $excluded_files, $excluded_folders, $file_handle, $relative_path);
                } elseif (is_file($full_path)) {
                    $hash = hash_file('crc32b', $full_path);
                    $size = filesize($full_path);
                    $formatted_name = ltrim($relative_path, './');
                    fwrite($file_handle, "$formatted_name $hash $size" . PHP_EOL);
                }
            }
        }
    
        readDirectory($folder_to_check, $excluded_files, $excluded_folders, $file_handle, $folder_to_check);
    
        fclose($file_handle);
    
        echo "patchlist.txt successfully generated!";
    } else {
        http_response_code(404);
    }

    www.metin2.com/patch/generate.php?pass=somepasswordhere

    • Metin2 Dev 117
    • Eyes 4
    • Good 40
    • Love 5
    • Love 88
  12. If money is no problem then why just official-like? :kekw:
    https://company.webzen.com/en/contactus

    It's a myth that only Gameforge can have servers. The brasil Ongame's servers still going and there were multiple official servers in the past. People say you need to open it on a specific location where there's no official server yet, but that's only an assumption. I'm sure that it is possible to open an official server if you have enough money.

    Back to your question: "just want to know if it is possible to create a P-Server official like" Yes. Hire some developers, marketing specialist, community managers etc.

  13. 20 minutes ago, avertusss said:

    @ TMP4 i bought vps on contabo as you told but i cannot run freebsd. When i installed by panel

    eDSZIv7.png

    Any ideas? 

    This screen is before the FreeBSD would load.

    So on vps control panel you choose your vps then click reinstall, choose FreeBSD, type a password, and click "Start installation".
    If you did this and FreeBSD fails to start and you're stuck on this screen, then please open a support ticket because that is a bug and only the Contabo support can solve it for you.

    By the way If they do not have the desired FreeBSD version, as I remember there were only 12.x when we did, just choose that and upgrade FreeBSD later, there are good tutorials on the internet like this.

    On 4/11/2023 at 8:01 PM, Nuzzo said:

    1.) tent_s_lamp.mse simply missing from the client. I did not remove it, original 40k client misses it. To solve it either get the file from somewhere (I don't have it) or remove it from where it loads it so it won't log that it's missing.

    2.) You can solve the Cannot load data by DwRaceIndex if you add the portals to root/npclist.txt 

    10801	warp
    10802	warp
    10803	warp
    10804	warp
    10805	warp
    10806	warp
    10807	warp
    10808	warp
    10809	warp
    10810	warp
    10811	warp
    10812	warp
    10813	warp
    10814	warp
    10815	warp
    10816	warp
    10817	warp
    10818	warp
    10819	warp
    10820	warp
    10821	warp
    10822	warp
    10823	warp
    10824	warp
    10825	warp
    10826	warp
    10827	warp
    10828	warp
    10829	warp
    10830	warp
    10831	warp
    10832	warp
    10833	warp
    10834	warp
    10835	warp

    3.) The "LOAD MSMFILE[d:/ymir work/npc/flame_dungeon_npc/flame_npc.msm] ERROR. Will Find Another Path." is not an error but a log. By the ID it wanted to load from npc, but since it did not find there, the client will "Will Find Another Path" and it does find it. The "LoadScript(D:\Ymir Work\effect\monster2\yellowred1_big.mse) Error" does an error, same as the tent_s_lamp.mse...

    Some bugs have been fixed, especially those that are exploits or affects the user experience, but such minor things that only logs into the syserr have probably not been fixed in this release.

    • Metin2 Dev 1
  14. 8 hours ago, GoldCash said:

    Some quest works. but i have skille_5lvl.lua from Paczka  And it doesn't work even if I don't get any error

    Well, on your first post you said none of the quest works you trying to add.
    But I'm still not a mind reader to check that quest. If it's public then copy & paste here, if it's not then talk with Paczka.

    If a quest does not work on a basic 40k files then it requires some additional function/requirement what Paczka did not provide you.

  15. 11 minutes ago, GoldCash said:

    No matter what quest I add, it still won't start in the game. What can I do about it?

    1. Go to your quest folder and create a new file named goldcash.quest 
    2. Open the new file and put this to it:

    quest goldcash begin
    	state start begin
     		when login begin
    			say("It works!")
    		end
    	end
    end

    3. Open locale_list and write the new quest name goldcash.quest to the bottom of the file
    4. Do this command: cd /usr/metin2/server/share/locale/english/quest && python2.7 make.py
         and make sure you're seeing your new quest at the end of the output. If it writes any error then copy the output here.
    5. If your server running then close and start your server via start.sh (or do ingame a /reload q)
    6. Login and it should write you "It works!" after every login.

    If you don't success with it then record your work and upload it to somewhere, because I'm not a mind reader to know what you're doing wrong, I have to see it.

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