Jump to content

oguzhan karacabay

Inactive Member
  • Posts

    39
  • Joined

  • Last visited

  • Feedback

    0%

Posts posted by oguzhan karacabay

  1. Hi to all,

    I am coding a library for hooking some functions in game, its okay while i am not using aditional definitions on character class i mean ;

     

    class iCHARACTER: public CHARACTER{
      public:
        int m_counterxxx;
      public:
        void ban(long len, const char* reason, const char* by);
    };
    #endif // __GAME_ICHARACTER_HPP
    /////////////////////////////////////////////////iCHARACTER.hpp
    
    namespace Hooks{
    MoveHook::MoveHook():Hook::Hook() {
        // default config
    }
    
    void MoveHook::hook(CInputMain* self, iCHARACTER* ch, const char * data) {
        if (ch->m_counterxxx == 100)
            ch->m_counterxxx = 0;
        
        ch->m_counterxxx++;
    
    instance()->detour->GetOriginalFunction()(self,ch,data);
    }
    }
    
    //MoveHook.cpp

     

    if i wont use ch->m_counterxxx pointer there isnt any problem but when i use it while i am playing its ok, but when i exit the game, game creates a core.

     

    gdb : 

    #0  CItem::SetSkipSave (b=<optimized out>, this=<optimized out>) at item.h:141
    #1  CHARACTER::ClearItem (this=0x5342f000) at char_item.cpp:532
    #2  0x0807bb7c in CHARACTER::Destroy (this=0x5342f000) at char.cpp:509
    #3  0x0807bbf6 in CHARACTER::~CHARACTER (this=0x5342f000,
        __in_chrg=<optimized out>) at char.cpp:138
    #4  0x080b49ae in CHARACTER_MANAGER::DestroyCharacter (this=0xbfbfd424,
        ch=0x5342f000) at char_manager.cpp:169
    #5  0x0807e292 in CHARACTER::Disconnect (this=0x5342f000,
        c_pszReason=0x8395afb "DESC::~DESC") at char.cpp:1533
    #6  0x0810c2c6 in DESC::Destroy (this=0x2b0c0e00) at desc.cpp:131
    #7  0x081109af in DESC_MANAGER::DestroyDesc (this=0xbfbfe91c, d=0x2b0c0e00,
        bEraseFromSet=false) at desc_manager.cpp:254
    #8  0x081113d5 in DESC_MANAGER::DestroyClosed (this=0xbfbfe91c)
        at desc_manager.cpp:283
    #9  0x082716e3 in io_loop (fdw=0x29358760) at main.cpp:895
    #10 0x08272271 in idle () at main.cpp:842
    #11 0x08273aec in main (argc=1, argv=0x53420000) at main.cpp:507


     

     


     

  2. Hello all!!

    I am trying to compile my source with c++ 11 and g++49 i have compiled all srcs with g++49 but while i am trying to run game i am getting this error : 

    gWPlr2.png

    I have tried everything but there isnt any usefull information about that error, so i am waiting for any help...

     

    (DB working successfuly only game has a problem)

    • Love 1
  3. 7 hours ago, Syreldar said:

    This is not an environmental problem, nor a pack problem.

    The problem is that you are teleporting at the local coordinates (0, 0) of the map, where the map itself begins.

    Proof: BasePosition    512000    153600

    You have to teleport at BasePosition+some coords. preferably the Town.txt ones.

    try writing like /goto 500 500 when you get into the map.

    I tried it too but i cant move on map this time

  4. Hi all,

    I am trying to add nemeres tower to my server but i am facing with a problem and i couldnt figure it out.

    I have done everything about pack and server

    My Index In Client Side :

    PACK
    *
    Snow_Dungeon

    and there are files /usr/game/share/locale/turkey/map/metin2_map_n_snow_dungeon_01 like that.

     

    So is there any solution for that?

    Adsız.png

  5. Hello to all,

    I am getting core sometimes while i am starting my db, it doesn't happen all times but it disturbs me so i have to fix this.

    Syslog :

    Spoiler

    SYSERR: Jan 19 00:35:59.875302 :: pid_init:
    Start of pid: 1255

    Jan 19 00:35:59.875358 :: CONFIG: NO_TXT
    SYSERR: Jan 19 00:35:59.875379 :: Start: TABLE_POSTFIX not configured use default
    Jan 19 00:35:59.875419 :: connecting to MySQL server (player)
    Jan 19 00:35:59.875429 :: CREATING DIRECT_SQL
    Jan 19 00:35:59.875457 :: AsyncSQL: locale euckr
    Jan 19 00:35:59.882871 :: CREATING MAIN_SQL
    Jan 19 00:35:59.882899 :: AsyncSQL: locale euckr
    Jan 19 00:35:59.883024 :: CREATING ASYNC_SQL
    Jan 19 00:35:59.883094 :: AsyncSQL: locale euckr
    Jan 19 00:35:59.883132 ::    OK
    Jan 19 00:35:59.883232 :: connecting to MySQL server (account)
    Jan 19 00:35:59.883248 :: CREATING DIRECT_SQL
    Jan 19 00:35:59.883262 :: AsyncSQL: locale euckr
    Jan 19 00:35:59.883752 :: CREATING MAIN_SQL
    Jan 19 00:35:59.883777 :: AsyncSQL: locale euckr
    Jan 19 00:35:59.883810 :: CREATING ASYNC_SQL
    Jan 19 00:35:59.883829 :: AsyncSQL: locale euckr
    Jan 19 00:35:59.883855 ::    OK
    Jan 19 00:35:59.883930 :: connecting to MySQL server (common)
    Jan 19 00:35:59.883946 :: CREATING DIRECT_SQL
    Jan 19 00:35:59.883959 :: AsyncSQL: locale euckr
    Jan 19 00:35:59.885051 :: CREATING MAIN_SQL
    Jan 19 00:35:59.885076 :: AsyncSQL: locale euckr
    Jan 19 00:35:59.885110 :: CREATING ASYNC_SQL
    Jan 19 00:35:59.885129 :: AsyncSQL: locale euckr
    Jan 19 00:35:59.885159 ::    OK
    Jan 19 00:35:59.885233 :: connecting to MySQL server (hotbackup)
    Jan 19 00:35:59.885248 :: CREATING DIRECT_SQL
    Jan 19 00:35:59.885261 :: AsyncSQL: locale euckr
    Jan 19 00:35:59.886321 :: CREATING MAIN_SQL
    Jan 19 00:35:59.886345 :: AsyncSQL: locale euckr
    Jan 19 00:35:59.886384 :: CREATING ASYNC_SQL
    Jan 19 00:35:59.886403 :: AsyncSQL: locale euckr
    Jan 19 00:35:59.886429 ::    OK
    Jan 19 00:35:59.886521 :: ClientManager initialization..
    Jan 19 00:35:59.887893 :: InitializeLocalization() - LoadLocaleTable(count:13)
    Jan 19 00:35:59.887916 :: locale[UNKNOWN_KEY(SKILL_POWER_BY_LEVEL_TYPE0)] = 0 5 6 8 10 12 14 16 18 20 22 24
    Jan 19 00:35:59.887928 :: locale[UNKNOWN_KEY(SKILL_POWER_BY_LEVEL_TYPE1)] = 0 5 6 8 10 12 14 16 18 20 22 24
    Jan 19 00:35:59.887946 :: locale[UNKNOWN_KEY(SKILL_POWER_BY_LEVEL_TYPE2)] = 0 5 6 8 10 12 14 16 18 20 22 24
    Jan 19 00:35:59.887962 :: locale[UNKNOWN_KEY(SKILL_POWER_BY_LEVEL_TYPE3)] = 0 5 6 8 10 12 14 16 18 20 22 24
    Jan 19 00:35:59.887973 :: locale[UNKNOWN_KEY(SKILL_POWER_BY_LEVEL_TYPE4)] = 0 5 6 8 10 12 14 16 18 20 22 24
    Jan 19 00:35:59.887983 :: locale[UNKNOWN_KEY(SKILL_POWER_BY_LEVEL_TYPE5)] = 0 5 6 8 10 12 14 16 18 20 22 24
    Jan 19 00:35:59.887993 :: locale[UNKNOWN_KEY(SKILL_POWER_BY_LEVEL_TYPE6)] = 0 5 6 8 10 12 14 16 18 20 22 24
    Jan 19 00:35:59.888003 :: locale[UNKNOWN_KEY(SKILL_POWER_BY_LEVEL_TYPE7)] = 0 5 6 8 10 12 14 16 18 20 22 24
    Jan 19 00:35:59.888013 :: locale[LOCALE] = turkey
    Jan 19 00:35:59.888029 :: Changed g_stLocale euckr to euckr
    Jan 19 00:35:59.888041 :: SetLocale start
    Jan 19 00:35:59.888269 ::     --mysql_set_character_set(latin5)
    Jan 19 00:35:59.888337 ::     --mysql_set_character_set(latin5)
    Jan 19 00:35:59.888388 ::     --mysql_set_character_set(latin5)
    Jan 19 00:35:59.888439 ::     --mysql_set_character_set(latin5)
    Jan 19 00:35:59.888489 ::     --mysql_set_character_set(latin5)

    Db.core - gdb results

     

    Spoiler

    (gdb) core oguzdb.core
    Core was generated by `oguzdb'.
    Program terminated with signal 11, Segmentation fault.
    Reading symbols from /usr/lib32/libmysqlclient.so.18...done.
    Loaded symbols for /usr/lib32/libmysqlclient.so.18
    Reading symbols from /usr/lib32/libz.so.6...done.
    Loaded symbols for /usr/lib32/libz.so.6
    Reading symbols from /usr/lib32/libstdc++.so.6...Error while reading shared libr                                                                                        ary symbols:
    Dwarf Error: wrong version in compilation unit header (is 4, should be 2) [in mo                                                                                        dule /usr/lib32/libstdc++.so.6]
    Reading symbols from /usr/lib32/libm.so.5...done.
    Loaded symbols for /usr/lib32/libm.so.5
    Reading symbols from /usr/lib32/libgcc_s.so.1...done.
    Loaded symbols for /usr/lib32/libgcc_s.so.1
    Reading symbols from /usr/lib32/libthr.so.3...done.
    Loaded symbols for /usr/lib32/libthr.so.3
    Reading symbols from /usr/lib32/libc.so.7...done.
    Loaded symbols for /usr/lib32/libc.so.7
    Reading symbols from /libexec/ld-elf.so.1...done.
    Loaded symbols for /libexec/ld-elf.so.1
    #0  0x286387c2 in strnlen () from /usr/lib32/libc.so.7
    [New LWP 100081]
    (gdb) bt full
    #0  0x286387c2 in strnlen () from /usr/lib32/libc.so.7
    No symbol table info available.
    #1  0x285902b6 in fts_read () from /usr/lib32/libc.so.7
    No symbol table info available.
    #2  0x080b0afe in CSemaphore::Wait ()
    No symbol table info available.
    #3  0x080afd6d in CAsyncSQL::ChildLoop ()
    No symbol table info available.
    #4  0x080b05ce in AsyncSQLThread ()
    No symbol table info available.
    #5  0x2852a682 in pthread_suspend_all_np () from /usr/lib32/libthr.so.3
    No symbol table info available.
    #6  0x00000000 in ?? ()
    No symbol table info available.

     

    Thank you for all replies..

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