-
Posts
39 -
Joined
-
Last visited
-
Feedback
0%
Content Type
Forums
Store
Third Party - Providers Directory
Feature Plan
Release Notes
Docs
Events
Posts posted by oguzhan karacabay
-
-
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
-
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 :
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)
- 1
-
-
-
Hi Guys,
I have added a mob razador, flame dungeon boss, but i cant click on it but i have nemere boss too and i can click on it too so what could be the problem any ideas?
- 1
-
15 hours ago, Syreldar said:
Do you know how the maps work on metin2? Do you know what the server_attr is?
no idk bro, this is why i opened a thread on this forum
-
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
-
5 hours ago, [007]DawisHU said:
Hello, Izi
Textureset ERROR now i added this map whit name is metin2-exp-map-by-siwy.
i added bad textureset way and i not see + i got this problem #Problem#Solved
XDDDDD
Environment get fail u not see horizont like skyCan you explain it more specific because i didnt understand the solution?
-
57 minutes ago, Sonitex said:
Not sure but I think environment is the problem? Paste your clientside syserr
0302 22:24:09458 :: CMapOutdoor::Load - LoadMonsterAreaInfo ERROR
-
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_Dungeonand there are files /usr/game/share/locale/turkey/map/metin2_map_n_snow_dungeon_01 like that.
So is there any solution for that?
-
Hello we need system about metin2 online game and searching for system writer, we have skrill payment only, if u can write any system please contact with us.
Skype : karacabay.yazilim
-
Hello to everyone,
Today i got game.core from my server in channel2 and i debugged it with gdb and i saw that one code gives error on item.cpp 207. line, here is my bt from gdb :
Thanks for helps...
-
12 minutes ago, galet said:
regen or stones.txt
are u sure ? can it be about game source ?
-
Hello i got a problem with my game,
Most of metin stones spawning on mountains in red wood how can i fix it ?
-
14 hours ago, Ken said:
If you're using stripped db file, you can't see what's going on because strip command is removing the symbols in the file. If you want to see what's going on, you must use unstripped db file.
Best Regards
Ken
I know that already but thanks, my db and game aren't stripped.
-
8 minutes ago, ds_aim said:
this don't help.
You core don't have debug symbols.
I think we don't need core debug because someone already fix that in this subject https://metin2dev.org/board/index.php?/topic/2588-40k-db-error-on-startup-sometimes/
but itsn't available now.
-
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 :
SpoilerSYSERR: Jan 19 00:35:59.875302 :: pid_init:
Start of pid: 1255Jan 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..
-
Hello to all!!
How can i edit blue dragon's hp regen percent in mob_proto ?
-
Why don't you just return the function at the begin? But logging of useless stuffs can't be a reason to do this.
void sys_log(unsigned int bit, const char *format, ...) { return;
where can i find the .cpp file of this function ?
libthecore/src/log.c
really thanks for answer
- 1
-
Why don't you just return the function at the begin? But logging of useless stuffs can't be a reason to do this.
void sys_log(unsigned int bit, const char *format, ...) { return;
where can i find the .cpp file of this function ?
-
-
cd /usr/ports/databases/mysql55-client
make deinstalli have already done it but i still get the same issue.
-
-
Hi guys,
i have been trying compile mainline_released source but i have failed at last stage, console wrote "Linking test, Linking game" but then it wrote "/usr/bin/ld : cannot find -lmysqlclient" how can i fix this ?
c++ Library Hooking Problem
in Community Support - Questions & Answers
Posted
Really thanks for your advice i finally made it