Jump to content

Karbust

Management
  • Posts

    1161
  • Joined

  • Days Won

    10
  • Feedback

    100%

Everything posted by Karbust

  1. I think it's this one: [Hidden Content] It was on my MEGA since 2015, probably I forked it from the original link. If it isn't I also have it on my computer.
  2. I know this happens on a few servers with little to none changes in source. It also happens in my source.
  3. A quick tip I noticed a few of my friends weren't aware. When you click an icon it copies the icon url to the clipboard, it's easier and quicker than going for the page's source. Also, here's the updated link: [Hidden Content] The old domain (exys2.pt) is still working, it redirects to the new. I'll be remaking the page when I have some free time to make it more appealing and user friendly, won't change image urls, old users will be able to use it normally.
  4. vanilla's source was barely touched on db side, and this is something not to do with the source, it was working before I tried to add 6 slots. So far, no crashes. I'm try doing everything again, maybe I missed something, but I removed it from my older source that was working... EDIT: crashed...
  5. Here's my function, nothing much... void CClientManager::QUERY_ITEM_SAVE(CPeer * pkPeer, const char * c_pData) { TPlayerItem * p = (TPlayerItem *) c_pData; // 창고면 캐쉬하지 않고, 캐쉬에 있던 것도 빼버려야 한다. // auction은 이 루트를 타지 않아야 한다. EnrollInAuction을 타야한다. if (p->window == SAFEBOX || p->window == MALL) { CItemCache * c = GetItemCache(p->id); if (c) { TItemCacheSetPtrMap::iterator it = m_map_pkItemCacheSetPtr.find(c->Get()->owner); if (it != m_map_pkItemCacheSetPtr.end()) { if (g_test_server) sys_log(0, "ITEM_CACHE: safebox owner %u id %u", c->Get()->owner, c->Get()->id); it->second->erase(c); } m_map_itemCache.erase(p->id); delete c; } char szQuery[512]; snprintf(szQuery, sizeof(szQuery), "REPLACE INTO item%s (id, owner_id, item.window, pos, count, vnum, socket0, socket1, socket2, " #ifdef ENABLE_6_SLOT_STONES " socket3, socket4, socket5, " #endif "attrtype0, attrvalue0, " "attrtype1, attrvalue1, " "attrtype2, attrvalue2, " "attrtype3, attrvalue3, " "attrtype4, attrvalue4, " "attrtype5, attrvalue5, " "attrtype6, attrvalue6) " "VALUES(%u, %u, %d, %d, %u, %u, %ld, %ld, %ld, " #ifdef ENABLE_6_SLOT_STONES " %ld, %ld, %ld, " #endif "%d, %d, %d, %d, %d, %d, %d, %d, %d, %d, %d, %d, %d, %d)", GetTablePostfix(), p->id, p->owner, p->window, p->pos, p->count, p->vnum, p->alSockets[0], p->alSockets[1], p->alSockets[2], #ifdef ENABLE_6_SLOT_STONES p->alSockets[3], p->alSockets[4], p->alSockets[5], #endif p->aAttr[0].bType, p->aAttr[0].sValue, p->aAttr[1].bType, p->aAttr[1].sValue, p->aAttr[2].bType, p->aAttr[2].sValue, p->aAttr[3].bType, p->aAttr[3].sValue, p->aAttr[4].bType, p->aAttr[4].sValue, p->aAttr[5].bType, p->aAttr[5].sValue, p->aAttr[6].bType, p->aAttr[6].sValue); CDBManager::instance().ReturnQuery(szQuery, QID_ITEM_SAVE, pkPeer->GetHandle(), NULL); } #ifdef __AUCTION__ else if (p->window == AUCTION) { sys_err("invalid window. how can you enter this route?"); return ; } #endif else { if (g_test_server) sys_log(0, "QUERY_ITEM_SAVE => PutItemCache() owner %d id %d vnum %d ", p->owner, p->id, p->vnum); PutItemCache(p); } }
  6. Hello guys, Sometimes after a few time using switchbot (mijago) (only noticed here, not sure if happens with any other action) I can't get to char select with any account, I get stuck at the last message after successful login. This is the auth syserr: Sep 5 00:28:59 :: SYSTEM: new connection from [192.168.1.79] fd: 24 handshake 1055712891 output input_len 0, ptr 0x29d6aa80 Sep 5 00:28:59 :: Handshake: client_time 0 server_time 1298755 Sep 5 00:28:59 :: AUTH_PHASE 0x29d6aa80 Sep 5 00:28:59 :: InputAuth::Login : admin(5) desc 0x29d6aa80 Sep 5 00:28:59 :: SetLoginKey 987462297 Sep 5 00:28:59 :: InputAuth::Login : key 987462297:0x4a4b80db login admin Sep 5 00:29:00 :: QID_AUTH_LOGIN: START 987462297 0x29d6aa80 Sep 5 00:29:00 :: Create_Time 0 19700101 Sep 5 00:29:00 :: Block Time -2 Sep 5 00:29:00 :: SetRemainSecs admin 0 type 2 Sep 5 00:29:00 :: SendAuthLogin admin key 1 Sep 5 00:29:00 :: AuthLogin result 1 key 987462297 Sep 5 00:29:00 :: SYSTEM: closing socket. DESC #24 [Hidden Content] EDIT: db is crashing... GDB: Also happens on login GDB: Any idea? Thank you
  7. Since it's a image sprite all the icons are generated in a single image. If it loaded every single image it would take longer, and wouldn't load everything since there's a limit of assets on the browser that can be loaded. I added the link copy to make it easier, since all the images are hosted there anyway. I can try one of this days add an option to save the image. Gonna check that out.
  8. To create an email per account you just need to set the unique constraint for that column. No need for scripts, it's a database "thing".
  9. Google Cloud and AWS both use VM's, like you use on your computer. So the principle is the same, you can't pass the login phase. This works: [Hidden Content] I've tested it myself on AWS, Google Cloud is the same.
  10. The idea is good, but the texture looks like trash on the models. Not even the blade that has a good area to perfectly position the texture. On csgo they are perfectly positioned and make sense. Leave hyperbeast on csgo please.
  11. Stop begging dude. Make it yourself or leave the metin2 dev scene. This is the kind of dev that uses pre-made serverfiles, opens a server for 1 week, makes money and shutdowns.
  12. Dude, just download the ISO's and install them... Whats the problem? If you can't just install FreeBSD from an ISO just leave metin2 development...
  13. Never used default official missions, so I have no idea, but somewhere in this forum for sure.
  14. You probably get 99% on one level and less on another because you're giving a fixed amount of exp instead dynamic based on next level experience.
  15. And is it compatible with PHP? On MySQL8 the PASSWORD function is already deprecated. Why add a new lib when you can have SHA256 or SHA512 with salt (both hashes available on MySQL and cryptopp, which is already necessary)?
  16. Go to your client or any other metin2 client and use that dll...
  17. I'm not using VS for the game source On vegas biolog system I don't have any problem whatsoever.
  18. Problem solved There're a few bool functions that weren't returning anything, neither false or true. But since their value was never used, they were only called outside of if's I passed them all to void and the few return false changed to return. My compiler wasn't giving error about bool functions not returning a value. About this, anyone has any idea? EDIT: Added this to my CFLAGS: -Werror=return-type
  19. Tried the first part, didn't solve, the error keeps popping up but keeps working. The second part, this is my class: [Hidden Content] I already have a few edits.
  20. Sure, it isn't even posted on this forum authorized by @VegaS™.
  21. Sup bois I've used this system previously on another source and worked fine, no issues. Today I've tried on my new source and I have a crash and I can't figure out why... This is the gdb game.core: root@vanilla_source:~/game/cores/channel1/core1 # gdb game game.core GNU gdb (GDB) 8.2.1 [GDB v8.2.1 for FreeBSD] Copyright (C) 2018 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later <[Hidden Content]; This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law. Type "show copying" and "show warranty" for details. This GDB was configured as "i386-portbld-freebsd12.0". Type "show configuration" for configuration details. For bug reporting instructions, please see: <[Hidden Content];. Find the GDB manual and other documentation resources online at: <[Hidden Content];. For help, type "help". Type "apropos word" to search for commands related to "word"... Reading symbols from game...done. [New LWP 100496] [New LWP 101145] [New LWP 101146] [New LWP 101150] Core was generated by `game'. Program terminated with signal SIGILL, Illegal instruction. #0 TitleManager::UpdateTitle (this=0xffbfecc0, ch=0x3c6d7000, changeTitle=19, changeMoney=0) at title.cpp:417 417 if (changeTitle > 0 && changeMoney > 0) [Current thread is 1 (LWP 100496)] (gdb) bt #0 TitleManager::UpdateTitle (this=0xffbfecc0, ch=0x3c6d7000, changeTitle=19, changeMoney=0) at title.cpp:417 #1 0x0823ee17 in TitleManager::SetAffect (this=0xffbfecc0, ch=0x3c6d7000, valueAffect=0x86ff2ec "send_premium_3") at title.cpp:474 #2 0x08240154 in TitleManager::SetTitle (this=0xffbfecc0, ch=0x3c6d7000, pTitle=0x86ebf65 "title19") at title.cpp:596 #3 0x0807f91e in do_prestige_title (ch=0x3c6d7000, argument=0xffbf9da1 " prestige_19", cmd=236, subcmd=0) at cmd_general.cpp:3094 #4 0x085d703e in interpret_command (ch=0x3c6d7000, argument=0xffbfaf53 "prestige_title_name prestige_19", len=31) at cmd.cpp:795 #5 0x0844f61c in CInputMain::Chat (this=0x3bcfc678, ch=0x3c6d7000, data=0x3c5c4b80 "\003%", uiBytes=38) at input_main.cpp:733 #6 0x0845aaf4 in CInputMain::Analyze (this=0x3bcfc678, d=0x3bcfc600, bHeader=3 '\003', c_pData=0x3c5c4b80 "\003%") at input_main.cpp:3338 #7 0x0815f404 in CInputProcessor::Process (this=0x3bcfc678, lpDesc=0x3bcfc600, c_pvOrig=0x3c5c4b80, iBytes=38, r_iBytesProceed=@0xffbfbc18: 0) at input.cpp:99 #8 0x081dc07d in DESC::ProcessInput (this=0x3bcfc600) at desc.cpp:301 #9 0x084cb060 in io_loop (fdw=0x29cac300) at main.cpp:961 #10 0x084caaf0 in idle () at main.cpp:844 #11 0x084c9359 in main (argc=1, argv=0xffbfeebc) at main.cpp:520 (gdb) bool TitleManager::UpdateTitle(LPCHARACTER ch, int changeTitle, int changeMoney) { if (changeTitle > 0 && changeMoney > 0) //line 417 { ch->UpdateTitle(changeTitle - ch->GetTitle()); ch->PointChange(POINT_GOLD, - changeMoney); } else if (changeTitle > 0 && changeMoney < 1) { ch->UpdateTitle(changeTitle - ch->GetTitle()); } } This error happens on setting premium title, setting free title and trading premium title for the potion. The first 2 errors are thrown on the function above, the other is also on a if. If I don't have the potion I get the error on this function always on the if's, which one depends on the title I want: bool TitleManager::SetTitle(LPCHARACTER ch, const char* pTitle) { if (NULL == ch) return false; if (!ch->IsPC()) return false; if (!*pTitle) { return false; } /**************** * Title free */ if (!strcmp(pTitle, "disable") && (GetTitleActual(ch, sTitle[17]) == true) && (GetTitleActual(ch, sTitle[18]) == true) && (GetTitleActual(ch, sTitle[19]) == true)) { ch->UpdateTitle(- ch->GetTitle()); ch->ChatPacket(CHAT_TYPE_NOTICE, title_translate[12]); } if (!strcmp(pTitle, "title1") && (GetLevel(ch, need_level_1) == true) && (GetPlayTime(ch, need_minutes_1) == true) && (GetMoney(ch, need_gold_1) == true) && (GetTitlePremium(ch) == true) && (GetTitleActual(ch, sTitle[1]) == true)) { UpdateTitle(ch, sTitle[1], need_gold_1); } if (!strcmp(pTitle, "title2") && (GetLevel(ch, need_level_2) == true) && (GetPlayTime(ch, need_minutes_2) == true) && (GetMoney(ch, need_gold_2) == true) && (GetTitlePremium(ch) == true) && (GetTitleActual(ch, sTitle[2]) == true)) { UpdateTitle(ch, sTitle[2], need_gold_2); } if (!strcmp(pTitle, "title3") && (GetLevel(ch, need_level_3) == true) && (GetPlayTime(ch, need_minutes_3) == true) && (GetMoney(ch, need_gold_3) == true) && (GetTitlePremium(ch) == true) && (GetTitleActual(ch, sTitle[3]) == true)) { UpdateTitle(ch, sTitle[3], need_gold_3); } if (!strcmp(pTitle, "title4") && (GetLevel(ch, need_level_4) == true) && (GetPlayTime(ch, need_minutes_4) == true) && (GetMoney(ch, need_gold_4) == true) && (GetTitlePremium(ch) == true) && (GetTitleActual(ch, sTitle[4]) == true)) { UpdateTitle(ch, sTitle[4], need_gold_4); } if (!strcmp(pTitle, "title5") && (GetLevel(ch, need_level_5) == true) && (GetPlayTime(ch, need_minutes_5) == true) && (GetMoney(ch, need_gold_5) == true) && (GetTitlePremium(ch) == true) && (GetTitleActual(ch, sTitle[5]) == true)) { UpdateTitle(ch, sTitle[5], need_gold_5); } if (!strcmp(pTitle, "title6") && (GetLevel(ch, need_level_6) == true) && (GetPlayTime(ch, need_minutes_6) == true) && (GetMoney(ch, need_gold_6) == true) && (GetTitlePremium(ch) == true) && (GetTitleActual(ch, sTitle[6]) == true)) { UpdateTitle(ch, sTitle[6], need_gold_6); } if (!strcmp(pTitle, "title7") && (GetLevel(ch, need_level_7) == true) && (GetPlayTime(ch, need_minutes_7) == true) && (GetMoney(ch, need_gold_7) == true) && (GetTitlePremium(ch) == true) && (GetTitleActual(ch, sTitle[7]) == true)) { UpdateTitle(ch, sTitle[7], need_gold_7); } if (!strcmp(pTitle, "title8") && (GetLevel(ch, need_level_8) == true) && (GetPlayTime(ch, need_minutes_8) == true) && (GetMoney(ch, need_gold_8) == true) && (GetTitlePremium(ch) == true) && (GetTitleActual(ch, sTitle[8]) == true)) { UpdateTitle(ch, sTitle[8], need_gold_8); } if (!strcmp(pTitle, "title9") && (GetLevel(ch, need_level_9) == true) && (GetPlayTime(ch, need_minutes_9) == true) && (GetMoney(ch, need_gold_9) == true) && (GetTitlePremium(ch) == true) && (GetTitleActual(ch, sTitle[9]) == true)) { UpdateTitle(ch, sTitle[9], need_gold_9); } if (!strcmp(pTitle, "title10") && (GetLevel(ch, need_level_10) == true) && (GetPlayTime(ch, need_minutes_10) == true) && (GetMoney(ch, need_gold_10) == true) && (GetTitlePremium(ch) == true) && (GetTitleActual(ch, sTitle[10]) == true)) { UpdateTitle(ch, sTitle[10], need_gold_10); } if (!strcmp(pTitle, "title11") && (GetLevel(ch, need_level_11) == true) && (GetPlayTime(ch, need_minutes_11) == true) && (GetMoney(ch, need_gold_11) == true) && (GetTitlePremium(ch) == true) && (GetTitleActual(ch, sTitle[11]) == true)) { UpdateTitle(ch, sTitle[11], need_gold_11); } if (!strcmp(pTitle, "title12") && (GetLevel(ch, need_level_12) == true) && (GetPlayTime(ch, need_minutes_12) == true) && (GetMoney(ch, need_gold_12) == true) && (GetTitlePremium(ch) == true) && (GetTitleActual(ch, sTitle[12]) == true)) { UpdateTitle(ch, sTitle[12], need_gold_12); } if (!strcmp(pTitle, "title13") && (GetLevel(ch, need_level_13) == true) && (GetPlayTime(ch, need_minutes_13) == true) && (GetMoney(ch, need_gold_13) == true) && (GetTitlePremium(ch) == true) && (GetTitleActual(ch, sTitle[13]) == true)) { UpdateTitle(ch, sTitle[13], need_gold_13); } if (!strcmp(pTitle, "title14") && (GetLevel(ch, need_level_14) == true) && (GetPlayTime(ch, need_minutes_14) == true) && (GetMoney(ch, need_gold_14) == true) && (GetTitlePremium(ch) == true) && (GetTitleActual(ch, sTitle[14]) == true)) { UpdateTitle(ch, sTitle[14], need_gold_14); } if (!strcmp(pTitle, "title15") && (GetLevel(ch, need_level_15) == true) && (GetPlayTime(ch, need_minutes_15) == true) && (GetMoney(ch, need_gold_15) == true) && (GetTitlePremium(ch) == true) && (GetTitleActual(ch, sTitle[15]) == true)) { UpdateTitle(ch, sTitle[15], need_gold_15); } if (!strcmp(pTitle, "title16") && (GetLevel(ch, need_level_16) == true) && (GetPlayTime(ch, need_minutes_16) == true) && (GetMoney(ch, need_gold_16) == true) && (GetTitlePremium(ch) == true) && (GetTitleActual(ch, sTitle[16]) == true)) { UpdateTitle(ch, sTitle[16], need_gold_16); } /**************** * Title premium */ if (!strcmp(pTitle, "title17") && (GetTitlePremium(ch) == true)) { SetAffect(ch, "send_premium_1"); } if (!strcmp(pTitle, "title18") && (GetTitlePremium(ch) == true)) { SetAffect(ch, "send_premium_2"); } if (!strcmp(pTitle, "title19") && (GetTitlePremium(ch) == true)) { SetAffect(ch, "send_premium_3"); } } I've searched about the Illegal Instruction error and find the mtune command, tried -mtune=i686 and -mtune=x86-64, none worked (I don't have this instruction on my Makefile, I tried to add). The errors are always occurring on the if's, nowhere else... Anyone has any idea on how to solve this? Thank you
  22. Sup bois I implemented an ingame support system, it's working fine, but I noticed this error on syserr.txt 0519 15:52:25624 :: "'QuestDialog' object has no attribute 'hWnd'" 0519 15:52:25625 :: in 0519 15:52:25625 :: <bound method QuestDialog.__del__ of <uiQuest.QuestDialog object at 0x070911F0>> 0519 15:52:25625 :: ignored 0519 15:52:25626 :: Traceback (most recent call last): 0519 15:52:25626 :: File "System/game.py", line 716, in OpenQuestWindow 0519 15:52:25627 :: 0519 15:52:25627 :: self.interface.OpenQuestWindow(skin, idx) 0519 15:52:25628 :: File "System/interfaceModule.py", line 698, in OpenQuestWindow 0519 15:52:25628 :: 0519 15:52:25629 :: q.SetWindowName("QuestWindow" + str(idx)) 0519 15:52:25629 :: File "System/ui.py", line 145, in SetWindowName 0519 15:52:25630 :: 0519 15:52:25630 :: wndMgr.SetName(self.hWnd, Name) 0519 15:52:25630 :: AttributeError 0519 15:52:25630 :: : 0519 15:52:25631 :: 'QuestDialog' object has no attribute 'hWnd' 0519 15:52:25631 :: This only happens when I open or close the system's window. This are all the python changes (there also a single python file for the system): [Hidden Content] Any idea? Thank you
  23. After packing with type 6, it doesn't unpack, I get: LZObject: not a valid data Will you ever add lz4, specially lz4 hc?
×
×
  • 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.