Jump to content

Undyne

Inactive Member
  • Posts

    13
  • Joined

  • Last visited

  • Feedback

    0%

Posts posted by Undyne

  1. On 11/7/2017 at 11:22 PM, Vanilla said:

    Okay, everybody. I found the problem and it's related to a change I tried when moving to higher mysql libraries. Therefore the dbcache is marked as probably unstable. I fixed it, but it's not sure if anything else may cause a crash. Please use the new dbcache only for debugging purposes. The new revision is backwards-compatible with earlier revs of our dbcache, so you don't need to worry about that. It could be that everything works now but I can't make a clear statement about this since more testing needs to be done. I reverted all the changes for character login, creation and fetching.

    New download links:

    This is the hidden content, please

    This is the hidden content, please

    I tested the login and char creation, it'd work now. Sorry for the inconvenience. Gamecore should work without any flaws since I didn't merge the test changes there. Only db is affected.

    Are you compiling with vs cause makefiles are all f*cked ?

     

    Having some problems with typeof in clang:

    use of undeclared identifier 'typeof'; did you
          mean 'typeid'?
                            itertype(m_vecProbs) it = lower_bound(m_vecProbs...
                            ^
    ./typedef.h:112:21: note: expanded from macro 'itertype'
    #define itertype(v) __typeof((v).begin())
                        ^
    ./stdafx.h:37:18: note: expanded from macro '__typeof'
    #define __typeof typeof

     

  2. If someone is interested in a client, binary and svfiles compatible here is my "work":

    This is the hidden content, please

    Newest version(probably you shouldn't use this):

    This is the hidden content, please

     

    This is for 70220 version. Enjoy !

    pkg update
    
    pkg install clang-devel gmake makedepend devil boost-all lzop mariadb100-server googletest cryptopp

     

    • Metin2 Dev 11
    • Sad 1
    • Confused 1
    • Good 4
    • Love 1
    • Love 9
  3. Hello,

    I'm using vanilla 70220 core and DB randomly crashes

    ryGwUTT.png

    (gdb) bt full
    #0  0x286d3f03 in thr_kill () from /lib/libc.so.7
    No symbol table info available.
    #1  0x286d3ee8 in raise () from /lib/libc.so.7
    No symbol table info available.
    #2  0x286d3e23 in abort () from /lib/libc.so.7
    No symbol table info available.
    #3  0x0812c71f in emergency_sig (sig=11) at Main.cpp:56
    No locals.
    #4  0x2860d904 in pthread_sigmask () from /lib/libthr.so.3
    No symbol table info available.
    #5  0x2860ccdb in pthread_getspecific () from /lib/libthr.so.3
    No symbol table info available.
    #6  0xbfbff004 in ?? ()
    No symbol table info available.
    #7  0x0000000b in ?? ()
    No symbol table info available.
    #8  0xbfbfcd80 in ?? ()
    No symbol table info available.
    #9  0xbfbfcac0 in ?? ()
    No symbol table info available.
    #10 0x00000000 in ?? ()
    No symbol table info available.
    

    And in syslog, the last line is

    SIGNAL: SIGSEGV
  4. 11 minutes ago, Damn said:

    its the -DNDEBUG with it it works

    Thanks man, it's working. I tried first with -ggdb, but you overcame me.

    47 minutes ago, Vanilla said:

    The error appears when you compile with -Ofast. Try lowering it to -O3 and if that doesn't hit it, then go with -O2. IT happens only on game, not db :)

    And I really want to thank you too, you helped me a lot: really appreciate it ^_^ Keep up the good work !

  5. 6 minutes ago, Aliano said:

    Hey Vanilla,

    thanks for your answer, unfortunately -o3 and -o2 doesnt solve the problem. Do you have any other ideas ?

     

    22 minutes ago, Vanilla said:

    The error appears when you compile with -Ofast. Try lowering it to -O3 and if that doesn't hit it, then go with -O2. IT happens only on game, not db :)

    I recommend not removing -Wl,-rpath,/usr/local/lib32/metin2 since this specifies the path where libraries are loaded. Of course, that's a typo of mine in the public release (which will be fixed in next version too). It'd be -rpath and not just rpath, which is why you get the error.

    Can confirm that -O1 is not working either.

  6. 13 hours ago, Vanilla said:

    at first

    
    CFLAGS += -stdlib=libc++

    is not needed anymore since FreeBSD already uses libc++ with the most recent versions since.. well, clang is the default compiler and libc++ is now a part of the base system :)
    There's no need in adding this variable.

     

    Next you need makedepend. It'd be located in devel in the portstree.

    Also you'd check if your portstree is up to date. To do so, try portsnap fetch update. If this doesn't work (which mostly happens if you install a clean freeBSD [and it's not a wonder ;D]) then just go ahead and use portsnap fetch extract.
    I recommend rebuilding every port after updating the ports tree. Your warnings were because you used an outdated portstree and the ports are marked as a security risk since.. yeah, they're outdated and maybe have security flaws.

    After all this you'd be ready to go. Ah, and don't use gmake depend. The instruction is declared as gmake dep and not gmake depend :)

    Thank you ! I'll try and come back with an edit.

     

    Edit:

    HxmIjRV.jpg

     

    Working perfectly with debug game and db files, but when I try to start the server with release files this error pops up:

    MQlSXNu.png

     

    Also I removed the highlighted text in makefile (from game)

    2h0rvl4.png

    because when I tried to compile game i had this problem

    QuSLmss.png

    I guess it's ok since I have all the needed libs.

    I'm looking forward for your replay !

     

    Best Regards,

    Undyne

  7. On 8/7/2017 at 9:00 PM, Vanilla said:

    There's no need to install libcxxrt and libc++ in recent FreeBSD distributions since it's now part of the base system and already included. You don't need to install it manually.

    Dear Vanilla,

     

    I must start with saying that I'm sorry that I have to ask you something long (and probably boring to read) like this.

    How can I compile your source ?

     

    Let me tell you what I did and what's not working.

    I installed FreeBSD 11.0 (i386) from the official FreeBSD website

    Installed pkg:

    /usr/sbin/pkg
    
    pkg2ng
    
    echo 'WITH_PKGNG=yes' >> /etc/make.conf

    Installed  clang:

    cd /usr/ports/lang/clang-devel/ && make install clean

    Installed makedepend:

    cd /usr/ports/devel/makedepend/ && make install clean

    Added in make.conf

    CC = clang-devel
    CPP = clang-cpp-devel
    CXX = clang++-devel
    CFLAGS += -stdlib=libc++

    Installed googletest:

    cd /usr/ports/devel/googletest/ && make install clean

    Installed cryptopp:

    cd /usr/ports/security/cryptopp/ && make install clean

    Installed devil:

    cd /usr/ports/graphics/devil/ && make install clean

    But I've got this problem

    tMg5XEly.png

    Then I used 'make DISABLE_VULNERABILITIES=yes' and in the end it successfully installed ( I guess )

     

    Installed mariadb101-client

    cd /usr/ports/databases/mariadb101-client/ && make install clean

     

     

    I must say that while the ports were being installed i spotted this warning (multiple times and on different ports )

    vswf8VS.png

    I know that you told me that there's no need to install libcxxrt and libc++, but I found them in usr/src/lib and tried to install them.

    CdyUbQP.png

    I haven't found libc++.ld on my system

     

     

     

    Anyway, that's all I did with the installation thing. Now when I try to use gmake depend this error shows:

    3sEVGby.png

    Sorry again for the long message. I hope you can and want to help me.

     

    Best Regards,

    Undyne

  8. Spoiler

     

    char_item.cpp

     

    Search

    
    bool CHARACTER::DoRefine(LPITEM item, bool bMoneyOnly)
    
    
    

    In my source I have this check

    
    		if (true == item->isLocked())		
    	{		
    		ChatPacket(CHAT_TYPE_INFO, "Bu iteme artı basamazsın.");		
    		return false;		
    	}

    Maybe someone will find this helpfull


     

    How can we install devel/libcxxrt and /devel/libc++ now ?

    https://www.freshports.org/devel/libc++

    No installation instructions: this port has been deleted.
    
    The package name of this deleted port was:
    
    PKGNAME: libc++

    https://www.freshports.org/devel/libcxxrt

    No installation instructions: this port has been deleted.
    
    The package name of this deleted port was:
    
    PKGNAME: libcxxrt

     

    Best Regards,

    Undyne

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