Jump to content

Denizeri24

Member
  • Posts

    188
  • Joined

  • Last visited

  • Feedback

    0%

Posts posted by Denizeri24

  1. 29 minutes ago, DragonBlack94 said:

    Chest:
    INSERT INTO `item_proto` VALUES ('50134', 0xC0CCC6C4C0C720BBF3C0DA, 0x4D6973746572696F736F204261756C65207A61666669726F, '20', '0', '0', '1', '0', '0', '0', '', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '50152', '0', '0', '0', '0', '0', '-1', '-1', '-1', '-1', '-1', '-1', '0', '0', '0');


    Key:

    INSERT INTO `item_proto` VALUES ('50152', 0xC0CCC6C4C0C720BBF3C0DA, 0x436869617665207A61666669726F, '21', '0', '0', '1', '0', '0', '0', '', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '50134', '0', '0', '0', '0', '0', '-1', '-1', '-1', '-1', '-1', '-1', '0', '0', '0');

    Need anything else?

     

    man, you dont have item_proto.txt? probably your files using txt's..

     

    check your usr/game/cores/db folder..

  2. 33 minutes ago, DragonBlack94 said:

    So I copied the value / types of the items 50006/50008, but if I drag the golden key on the chest it tells me that "the key seems to be wrong" instead WITH THE SAME VALUE the sapphire chest / key does not give me any function (yes swap places in the inventory.

    send your item_proto.txt and chest + key vnums..

  3. 42 minutes ago, Cunoo said:

    Question is not how to rewrite src on x64 but how to compile on x64 without jail.. Why? Just I travelling too much and I have only x64 vps.. (because low cost and low vps servers are not too much custom)  And where is my problem? Try to change all time working on new pc with virtualbox and some stuff.. I need go to on server from anyway in world.. I cant permanent download vdi or install new.. This is just easy way for me.. I only want NAT cloud server for my files + compile source..

    Edit: Btw. Its a experiment just I welcome new knowledges about metin..

     

    actually this is not a experiment. i wont use extern;

     

    CC = ccache clang++-devel
    
    INCDIR =
    LIBDIR = -L/usr/lib
    BINDIR = ..
    OBJDIR = OBJDIR
    
    # Standard Setting
    LIBS = -pthread -lm -lmd -lz
    # Removed -fno-rtti 
    CFLAGS = -m64 -std=gnu++2a -fstrict-aliasing -pipe -march=native -fexceptions -DNDEBUG -D_THREAD_SAFE -fstack-protector-all -w -g -Ofast
    
    # Boost (1.7.2)
    INCDIR += -I/usr/local/include/boost
    
    # DevIL (1.7.8)
    INCDIR += -I/usr/local/include/IL
    LIBDIR += -L/usr/local/lib
    LIBS += -lIL -lpng -ltiff -lmng -llcms -ljpeg
    
    # MariaDB (10.5)
    INCDIR += -I/usr/local/include
    LIBDIR += -L/usr/local/lib/mysql
    LIBS += -lmariadb
    
    # Intel OneAPI TBB
    INCDIR += -I/usr/local/include/oneapi
    LIBDIR += -L/usr/local/lib
    LIBS += -ltbb
    
    # Project Library
    INCDIR += -I../../liblua/include
    LIBDIR += -L../../libthecore/lib -L../../libpoly -L../../libsql -L../../libgame/lib -L../../liblua/lib
    LIBS += -lthecore -lpoly -llua -llualib -lsql -lgame

     

     

    if you want build your server with -m64 flag, you need to change some source codes. but if you want your src -m32 flag with amd64 freebsd, just use make command with -m32 flag;

     

    just add your /etc/make.conf;

     

    CFLAGS = -m32

     

    i dont test this command but maybe it works;

    CPUTYPE = -march=i686

     

     

    now, just use make install command;

     

     

    putty >> whereis devil

     

    output >> any/where/devil

     

    cd any/where/devil

     

    make install

     

    now you have 32 bit devil library.

     

     

    WARNING: if you use freebsd 11+, your default compiler llvm(clang), edit make.conf and put:

     

    CC = gcc49 or g++10

    CXX = g++49 or g++10

     

    • Love 1
  4. if you using x64 freebsd,

     

    only edit /etc/make.conf file;

     

    CFLAGS = -m32

     

    and build all libs with make command, e.g;

     

    putty >> whereis devil

     

    output >> pkgdir/any/local/devil

     

    putty >> cd pkgdir/any/local/devil

    putty >> make -DBATCH install clean

     

    edit

     

    actually i only download amd64 boot-only iso(80mb) and installing all libs with pkg command. i never take an error or warning. power of the 64 bit server files ( ͡° ͜ʖ ͡°)

  5. 2 hours ago, WeedHex said:

    night flight bug GIF

     

    SAFE_RECV_BUFSIZE = 1024 * 8

    MAX_RECV_COUNT 32  is too much!

    You will get kick in some case with specific systems, doesn't matter if your game seems good and speed. If there is a delay like this you have to understand the reason why before of boost. Look for a middle ground kinda *2.

    nope, not too much.

     

    if server source have 'spam' fixes, you dont need this(of course if you don't use using pentium 4 cpu and 5 mbit ethernet speed)

    • Metin2 Dev 2
    • Good 1
  6. 12 hours ago, basforos said:

    That cleared lots of questions I have, thanks. Also, I do have extern folder, what am I supposed to do with it? What's its use?

    dont delete extern folder.

     

    server source codes need extern folder because extern have some libs devil - mysql - boost - etc..

     

     

    note : if you have 32 bit freebsd and 32 bit server files, you can delete extern folder(but you need to change all makefiles) and you can install libs with 'pkg install' command..

  7. 1 hour ago, basforos said:

    Cool, is GCC the only thing I need to compile source? If so, does the version matter?

     

    compiler : gcc or clang(llvm)

    and

    makedepend

    gmake

     

    some server still using gcc49 and you cant build a gcc49 server source with gcc6 or newer version, you need to upgrade your codes.

     

    if you dont have serversrc/extern folder, you need to install some packages;

     

    cryptopp (dont use 'pkg install' command, use 'make install')

    mysql or mariadb ( you cant use mysql8.0 or mariadb10.2 > +)

    devil

    boost

     

    https://gcc.gnu.org/gcc-9/changes.html

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