Jump to content
metin2dev

Search the Community

Showing results for tags 'source'.



More search options

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


Forums

  • Community
    • Announcements
    • Feedback
  • Metin2
    • General
    • Questions and Answers
    • Guides & HowTo
    • Design
    • Private Servers
    • Services
    • Videos
  • Releases
    • General
    • Tools
    • Programming / Scripts
    • Quests
    • Binaries & Clients/Serverfiles
    • 3D Models
    • 2D Graphics
    • Operating Systems
  • Safe Zone
    • Offtopic
    • Games Talk
    • Music/Videos/Art

Categories

There are no results to display.

There are no results to display.


Found 147 results

  1. Numele serverului: Ransom2 Canale deschise: 4 Nivel maxim: 120 Puncte status: 90 Site-ul serverului: http://ransom2.org Forumul serverului: http://board.ransom2.org Inregistrare: http://ransom2.org/reg.php Client: http://ransom2.org/download.php Rata experienta: Setata din mobi Rata yang: Setata din mobi Rata obiecte: Setata din mobi Rata fierarului: Difera de la item la item Detalii despre server: Un server pvm hard. Detalii despre evenimente: Evenimente zilnice. Prezentare full screen : http://ransom2.org/prezentare.php Echipa jocului: Elijah - Administrator Damon - Administrator B.Eduard - Administrator forum & Designer
  2. How to compile Metin2 server on x64 without jails or VMs First, make sure to use the default FreeBSD compiler (cc for .c and c++ for .cpp), i tryied GCC but i didn't get any result. Second, add "-m32" to all the CFLAGS in your makefile. Finally, make this changes on your srcs if you got any error building with CLang The Extern dosen't need to be changed, but the freebsd libraries must be linked with -L/usr/local/lib32 rather than -L/usr/local/lib. WARNING: I failed to build MySQL/MariaDB Connector with -m32 flags, i recommend you to use a VM/Jail for build x86 libraries char_manager.cpp line 20 there is something that include boost/bind.hpp, change that include with this: #if !defined(__GNUC__) || defined(__clang__) #include <boost/bind.hpp> #endif line 650 change all the function: void CHARACTER_MANAGER::Update(int iPulse) { using namespace std; #if defined(__GNUC__) && !defined(__clang__) using namespace __gnu_cxx; #endif BeginPendingDestroy(); // PC 캐릭터 업데이트 { if (!m_map_pkPCChr.empty()) { // 컨테이너 복사 CHARACTER_VECTOR v; v.reserve(m_map_pkPCChr.size()); #if defined(__GNUC__) && !defined(__clang__) transform(m_map_pkPCChr.begin(), m_map_pkPCChr.end(), back_inserter(v), select2nd<NAME_MAP::value_type>()); #else transform(m_map_pkPCChr.begin(), m_map_pkPCChr.end(), back_inserter(v), boost::bind(&NAME_MAP::value_type::second, _1)); #endif if (0 == (iPulse % PASSES_PER_SEC(5))) { FuncUpdateAndResetChatCounter f; for_each(v.begin(), v.end(), f); } else { //for_each(v.begin(), v.end(), mem_fun(&CFSM::Update)); for_each(v.begin(), v.end(), bind2nd(mem_fun(&CHARACTER::UpdateCharacter), iPulse)); } } // for_each_pc(bind2nd(mem_fun(&CHARACTER::UpdateCharacter), iPulse)); } // 몬스터 업데이트 { if (!m_set_pkChrState.empty()) { CHARACTER_VECTOR v; v.reserve(m_set_pkChrState.size()); #if defined(__GNUC__) && !defined(__clang__) transform(m_set_pkChrState.begin(), m_set_pkChrState.end(), back_inserter(v), identity<CHARACTER_SET::value_type>()); #else v.insert(v.end(), m_set_pkChrState.begin(), m_set_pkChrState.end()); #endif for_each(v.begin(), v.end(), bind2nd(mem_fun(&CHARACTER::UpdateStateMachine), iPulse)); } } // 산타 따로 업데이트 { CharacterVectorInteractor i; if (CHARACTER_MANAGER::instance().GetCharactersByRaceNum(xmas::MOB_SANTA_VNUM, i)) { for_each(i.begin(), i.end(), bind2nd(mem_fun(&CHARACTER::UpdateStateMachine), iPulse)); } } // 1시간에 한번씩 몹 사냥 개수 기록 if (0 == (iPulse % PASSES_PER_SEC(3600))) { for (itertype(m_map_dwMobKillCount) it = m_map_dwMobKillCount.begin(); it != m_map_dwMobKillCount.end(); ++it) DBManager::instance().SendMoneyLog(MONEY_LOG_MONSTER_KILL, it->first, it->second); #ifdef _USE_SERVER_KEY_ extern bool Metin2Server_IsInvalid(); extern bool g_bShutdown; if (Metin2Server_IsInvalid()) { g_bShutdown = true; } #endif m_map_dwMobKillCount.clear(); } // 테스트 서버에서는 60초마다 캐릭터 개수를 센다 if (test_server && 0 == (iPulse % PASSES_PER_SEC(60))) sys_log(0, "CHARACTER COUNT vid %zu pid %zu", m_map_pkChrByVID.size(), m_map_pkChrByPID.size()); // 지연된 DestroyCharacter 하기 FlushPendingDestroy(); } sectree.h line 90 inside find_if function change the it_tree declaration with this #ifdef __clang__ LPSECTREE_LIST::const_iterator it_tree = m_neighbor_list.begin(); #else LPSECTREE_LIST::iterator it_tree = m_neighbor_list.begin(); #endif stdafx.h line 24 after <vector> include change all the part that include boost/unordered_map and tr1/unordered_map to this: #if defined(__clang__) #include <float.h> #include <unordered_map> #include <unordered_set> #define TR1_NS std #elif defined(__GNUC__) #include <float.h> #include <tr1/unordered_map> #include <tr1/unordered_set> #define TR1_NS std::tr1 #elif defined(_MSC_VER) #include <boost/unordered_map.hpp> #include <boost/unordered_set.hpp> #define TR1_NS boost #define isdigit iswdigit #define isspace iswspace #endif We've builded our server on x64 machine, but we created a x86 application. Why? Compiling on x64 increases the value of some C types (eg.: sizeof(int) return 4bit in x86 and 8bit on x64). Let's take for example this packet: typedef struct command_script_button { BYTE header; unsigned int idx; } TPacketCGScriptButton; The size of this packet will be 5 on x86 program, and 9 on a x64 program. If we use a x86 metin2 client, the server will except 9 bytes to be received however it will only receive 5 bytes, leaving the server listening for the 4 remaning bytes. The first, possible fix for x64, is building the metin2 client on x64 bit, loosing compatibily with old x86 PCs. The second, is to change all the packets on client/server to the same data (eg.: int becames int32 etc...), so the server builded in x64 will understand that the int packets are 4 byte and not 8; but, convering (on the rest of the server) a 8byte int into a 4byte int could lead up to loosing data. The wrong fix is to define int,long with int32 and long32 (for example). This won't fix nothing because it's like you're using a x86 program, so you could not use any x64 advantage. PS: Sorry for bad english, i hope it's now more clear for everyone
  3. Hi Devs! Anyone can you help me? How to move the Sash in Inventory from CostumeWindow? Thanks the replies, and sorry for my english.
  4. Hi, recently released a new version of llvm (6) and I decided to update the source of vanilla 70220. (NOT TESTED) Download Cryptopp 5.6.5 Boost 1.65.1 Minilzo 2.09 MariaDB 101 DevIL 1.8.7 To install, you will need several packages. pkg install gmake pkg install subversion pkg install clang-devel Compiled on freebsd 11.1 i386 Best regard
  5. So my problem is that it says Procedureentrypoint "_GrannyUpdateModelMatrix@16" was not found on the dll "......./metin2client.exe" Can someone help me to fix it :)?
  6. open Source Copile

    Hi guys! I have a problem with a game source , if you can help me. After copiling the game and wanting to use it , i have this error : Oh , and db to.... Some ideas?
  7. open Error compile db/src

    Hello Metin2Dev. How are u? I'm fine. Well, today i have this error when i want to compile my db/src. So, I don't know more that i do :(. Sorry for my english. The error: linking ... .obj/ClientManager.o: In function `CClientManager::QUERY_SETUP(CPeer*, unsigned int, char const*)': /usr/src/src_1/Server/db/src/ClientManager.cpp:1322: undefined reference to `CClientManager::InsertLogonAccount(char const*, unsigned int, char const*)' .obj/ClientManager.o: In function `CClientManager::AnalyzeQueryResult(_SQLMsg*)': /usr/src/src_1/Server/db/src/ClientManager.cpp:3018: undefined reference to `CClientManager::RESULT_LOGIN_BY_KEY(CPeer*, _SQLMsg*)' /usr/src/src_1/Server/db/src/ClientManager.cpp:3009: undefined reference to `CClientManager::RESULT_PLAYER_INDEX_CREATE(CPeer*, _SQLMsg*)' /usr/src/src_1/Server/db/src/ClientManager.cpp:2971: undefined reference to `CClientManager::RESULT_LOGIN(CPeer*, _SQLMsg*)' .obj/ClientManager.o: In function `CClientManager::ProcessPackets(CPeer*)': /usr/src/src_1/Server/db/src/ClientManager.cpp:2403: undefined reference to `CClientManager::QUERY_LOGIN_BY_KEY(CPeer*, unsigned int, SPacketGDLoginByKey*)' /usr/src/src_1/Server/db/src/ClientManager.cpp:2577: undefined reference to `CClientManager::QUERY_CHANGE_NAME(CPeer*, unsigned int, SPacketGDChangeName*)' /usr/src/src_1/Server/db/src/ClientManager.cpp:2408: undefined reference to `CClientManager::QUERY_LOGOUT(CPeer*, unsigned int, char const*)' Makefile:76: recipe for target '../db_r' failed gmake: *** [../db_r] Error 1
  8. [C++] DB + NoTXT!

    Hey devs! One word: Works! Follow the steps: 1.) Open "db/src/Main.cpp" file and write this to the top of the file, under to the includes: // NOTXT_STARTUP_BEGIN BOOL g_noTXT = false; // NOTXT_STARTUP_END 2.) Search for this: "int iDisableHotBackup;" and put under this: // NOTXT_STARTUP_BEGIN int iNoTXT; if (CConfig::instance().GetValue("NO_TXT", &iNoTXT)) { if (iNoTXT) { sys_log(0, "CONFIG: NO_TXT"); g_noTXT = true; } } // NOTXT_STARTUP_END 3.) Save&Close. Now open "db/src/ClientManager.h" and replace: bool InitializeMobTable(); bool InitializeItemTable();With: // NOTXT_STARTUP_BEGIN bool InitializeMobTableTXT(); bool InitializeItemTableTXT(); bool InitializeMobTableSQL(); bool InitializeItemTableSQL(); // NOTXT_STARTUP_END 4.) Save&Close. Then open "db/src/ClientManagerBoot.cpp" and put this the top of the file: // NOTXT_STARTUP_BEGIN extern int g_noTXT; // NOTXT_STARTUP_END 5.) Replace this: bool CClientManager::InitializeMobTable()With this: bool CClientManager::InitializeMobTableTXT()And repeat it with ItemProto(::InitializeItemTable) 6.) Search for this: "bool CClientManager::InitializeTables()" and replace this: if (!InitializeMobTable()) { sys_err("InitializeMobTable FAILED"); return false; } if (!MirrorMobTableIntoDB()) { sys_err("MirrorMobTableIntoDB FAILED"); return false; } if (!InitializeItemTable()) { sys_err("InitializeItemTable FAILED"); return false; } if (!MirrorItemTableIntoDB()) { sys_err("MirrorItemTableIntoDB FAILED"); return false; }With this: // NOTXT_STARTUP_BEGIN if (g_noTXT) // item and mob proto { if (!InitializeMobTableSQL()) { sys_err("InitializeMobTableSQL FAILED"); return false; } if (!InitializeItemTableSQL()) { sys_err("InitializeItemTableSQL FAILED"); return false; } } else { if (!InitializeMobTableTXT()) { sys_err("InitializeMobTableTXT FAILED"); return false; } if (!MirrorMobTableIntoDB()) { sys_err("MirrorMobTableIntoDB FAILED"); return false; } if (!InitializeItemTableTXT()) { sys_err("InitializeItemTableTXT FAILED"); return false; } if (!MirrorItemTableIntoDB()) { sys_err("MirrorItemTableIntoDB FAILED"); return false; } } // NOTXT_STARTUP_END7.) And last put these functions into the file: 7+1.) New item_proto_table.sql: DROP TABLE IF EXISTS `item_proto`; CREATE TABLE `item_proto` ( `vnum` int(11) unsigned NOT NULL DEFAULT '0', `vnum_range` int(11) unsigned NOT NULL DEFAULT '0', `name` varbinary(200) NOT NULL DEFAULT 'Noname ', `locale_name` varbinary(24) NOT NULL DEFAULT 'Noname ', `type` tinyint(2) NOT NULL DEFAULT '0', `subtype` tinyint(2) NOT NULL DEFAULT '0', `weight` tinyint(3) DEFAULT '0', `size` tinyint(3) DEFAULT '0', `antiflag` int(11) DEFAULT '0', `flag` int(11) DEFAULT '0', `wearflag` int(11) DEFAULT '0', `immuneflag` set('PARA','CURSE','STUN','SLEEP','SLOW','POISON','TERROR') CHARACTER SET big5 NOT NULL DEFAULT '', `gold` int(11) DEFAULT '0', `shop_buy_price` int(10) unsigned NOT NULL DEFAULT '0', `refined_vnum` int(10) unsigned NOT NULL DEFAULT '0', `refine_set` smallint(11) unsigned NOT NULL DEFAULT '0', `refine_set2` smallint(5) unsigned NOT NULL DEFAULT '0', `magic_pct` tinyint(4) NOT NULL DEFAULT '0', `limittype0` tinyint(4) DEFAULT '0', `limitvalue0` int(11) DEFAULT '0', `limittype1` tinyint(4) DEFAULT '0', `limitvalue1` int(11) DEFAULT '0', `applytype0` tinyint(4) DEFAULT '0', `applyvalue0` int(11) DEFAULT '0', `applytype1` tinyint(4) DEFAULT '0', `applyvalue1` int(11) DEFAULT '0', `applytype2` tinyint(4) DEFAULT '0', `applyvalue2` int(11) DEFAULT '0', `value0` int(11) DEFAULT '0', `value1` int(11) DEFAULT '0', `value2` int(11) DEFAULT '0', `value3` int(11) DEFAULT '0', `value4` int(11) DEFAULT '0', `value5` int(11) DEFAULT '0', `socket0` tinyint(4) DEFAULT '-1', `socket1` tinyint(4) DEFAULT '-1', `socket2` tinyint(4) DEFAULT '-1', `socket3` tinyint(4) DEFAULT '-1', `socket4` tinyint(4) DEFAULT '-1', `socket5` tinyint(4) DEFAULT '-1', `specular` tinyint(4) NOT NULL DEFAULT '0', `socket_pct` tinyint(4) NOT NULL DEFAULT '0', `addon_type` smallint(6) NOT NULL DEFAULT '0', PRIMARY KEY (`vnum`) ) ENGINE=MyISAM DEFAULT CHARSET=latin1 COLLATE=latin1_bin; But you can modify your item_proto with "Design table" option in navicat, just make the vnum_range column to the second column after the vnum, as you can see in the query. conf.txt: NO_TXT = 1 0: TXT1: SQL Special thanks to: - iMer, Zonni for the snippets ^^ Changelog: - "0" If you find any errors or problems just post a message into this thread. I tested on win. I hope you like it. With regards, P3NG3R.
  9. mob move and attack error

    Hey guys, I use mainline source, and most of the mobs dont attack me. I mean I get the damage, but only 2-3 mobs come to me and do it visually, mostly they're just standing on their own place without doing anything (but I also get their damage too). Why does it happen? Thanks in advance!
  10. Hi guys! I am currently trying to compile my client binary: It's the clean binary version and the Test Client for 40250. When i compile Metin2Release and open i get this error: Syserr: 0107 12:54:00010 :: import marshal # builtin 0107 12:54:00011 :: import imp # builtin 0107 12:54:00027 :: ui.py: inconsistent use of tabs and spaces in indentation 0107 12:54:00046 :: import _weakref # builtin 0107 12:54:00468 :: # trying .\os.pyd 0107 12:54:00468 :: # trying .\os.py 0107 12:54:00468 :: # trying .\os.pyw 0107 12:54:00468 :: # trying .\os.pyc 0107 12:54:00468 :: # trying lib\os.pyd 0107 12:54:00468 :: # trying lib\os.py 0107 12:54:00468 :: # trying lib\os.pyw 0107 12:54:00469 :: # trying lib\os.pyc 0107 12:54:00469 :: # trying .\traceback.pyd 0107 12:54:00469 :: # trying .\traceback.py 0107 12:54:00469 :: # trying .\traceback.pyw 0107 12:54:00469 :: # trying .\traceback.pyc 0107 12:54:00469 :: # trying lib\traceback.pyd 0107 12:54:00469 :: # trying lib\traceback.py 0107 12:54:00470 :: # trying lib\traceback.pyw 0107 12:54:00470 :: # trying lib\traceback.pyc 0107 12:54:01340 :: RunMain Error 0107 12:54:01342 :: # clear __builtin__._ 0107 12:54:01342 :: # clear sys.path 0107 12:54:01342 :: # clear sys.argv 0107 12:54:01342 :: # clear sys.ps1 0107 12:54:01342 :: # clear sys.ps2 0107 12:54:01342 :: # clear sys.exitfunc 0107 12:54:01342 :: # clear sys.exc_type 0107 12:54:01342 :: # clear sys.exc_value 0107 12:54:01342 :: # clear sys.exc_traceback 0107 12:54:01342 :: # clear sys.last_type 0107 12:54:01342 :: # clear sys.last_value 0107 12:54:01342 :: # clear sys.last_traceback 0107 12:54:01342 :: # clear sys.path_hooks 0107 12:54:01342 :: # clear sys.path_importer_cache 0107 12:54:01343 :: # clear sys.meta_path 0107 12:54:01343 :: # clear sys.flags 0107 12:54:01343 :: # clear sys.float_info 0107 12:54:01343 :: # restore sys.stdin 0107 12:54:01343 :: # restore sys.stdout 0107 12:54:01343 :: # restore sys.stderr
  11. open Yang-Trading Bug

    Hello M2Dev! I got a new problem, this time it's something... very confusing. When i want to trade with someone, and put in 9.999.999Yang/gold however you wanna call it, the person who receives it, get the amout. BUT the person who offers the amount, got like 200.000.000 removed. Its very strange, and i can't figure out, where is the problem. I got long long MAX_YANG and the python part is on maxlenght(20) for the ifdef: new_exchange_window May you can find some details. Thanks for helping!
  12. Hello M2Dev, I have this problem... I can't compile the game source. My files are 40k, well. I have this file " stdint.h " in my folder "include". Thanks.
  13. open GCC7 compile problem

    Hi dev, when i try compile a game core. I have this error. Boost version 1.62, i try 1.64, 1.65 (beta), 1.43. And none works... Help please, thanks in advance.
  14. Hi. I have problem with compile source db and game ;/ When compile come to end i get error, i try fix them by myself... /usr/bin/ld: skipping incompatible ../../../extern/mysql/lib/libmysqlclient.a when searching for -lmysqlclient /usr/bin/ld: cannot find -lmysqlclient c++: error: linker command failed with exit code 1 (use -v to see invocation) gmake: *** [Makefile:110: /root/game/share/db] Error 1 Thanks for help Makefile https://www.virustotal.com/pl/file/eac68ee6661d20e0f784c02ef7e5d42b52ad0cac9745c70213eb2939560d69cf/analysis/1499722646/
  15. Hello, I am trying to compile client source using VS2008 vc90 (I have installed VS2008 - no Express and vcredists). When I open source using VS2013 and click on "Properties" it says that vc90 is not installed (https://ctrlv.cz/Gr8Y). I have really installed VS2008 (https://ctrlv.cz/93XH) and vcredists(https://ctrlv.cz/uBfT). And When I try to open it with VS2008 it says that: https://ctrlv.cz/Esn2 Would you help me please? Thank you.
  16. Hi dev, i have some problem with source code when i try to compile on gcc7. My DB compiling without warnings or errors, but my GAME there are such mistakes. If someone knows how to fix this, help me please. Thanks in advance.
  17. open Best Source currently?

    Hey guys, my last visit on a metin2 board is prob 2 years ago now. What is currently the best client & server source to use? Should include all security fixes and stuff already if possible
  18. Foreword: I am using the novaline Client und the mainline Serversource. Everytime I try to mount the client close immediately. When I try to restart the client, I can see the character for milliseconds and then the client closes again. Syserr: I hope someone could help me. Thanks! Greetings
  19. Visual Studio 2017

    So, i like to keep myself updated and i was wondering if it is possible to use visual studio 2017 to compile the Metin2 client. Can i use the same external folder for the libraries? What do i have to change in order to make it compilable in vs2017? Just to note, i have tried once to compile the source code in vs2017 but there were errors such as windows 8.1 sdk not found so i installed it to vs2017 but still there were erros and i gave up. Any experts on migrating from vs versions?
  20. open PM from quest?

    Hello comunity, i noticed that some servers, mainly Rubinum, has a system created by Vegas which you recieve a PM from the Server. I really liked this ideia and i would really like to add this feature to my server, My question is if, is it possible to do it from the quest functions? If so, how? game.send_pm(name, buffer)? Hmm maybe modifying the CInputMain::Whisper from input_main.cpp but how would i trigger it from the quests? And the name "SERVER" maybe in packet.h? char szNameFrom[CHARACTER_NAME_MAX_LEN + 1];
  21. Hello! When I try to compile my mainline_released source, I get this error, and I don't know how to fix it. Can you help me? g++: directory": No such file or directory <command-line>: warning: missing terminating " character version.cpp:11: error: missing terminating " character version.cpp: In function 'void WriteVersion()': version.cpp:11: error: expected primary-expression before ')' token gmake: *** [.obj/version.o] Error 1 gmake: *** Waiting for unfinished jobs.... Here are my makefile and version.cpp files: https://mega.nz/#!9BxS0KKa!pLkrOAJ9sxl76ZATtueycjREeRoHf0x5GXJ3D_1MRAk
  22. Hello everyone, It is a nice day to release my modifications to sell items from dragon soul inventory too So let's go. Serverside: 1) Open input_main.cpp 2.1) Search(CTRL+F) this: case SHOP_SUBHEADER_CG_SELL2: 2.2) Replace that whole case with this: case SHOP_SUBHEADER_CG_SELL2: { if (uiBytes < sizeof(WORD) + sizeof(BYTE) + sizeof(BYTE)) return -1; const WORD wPos = *reinterpret_cast<const WORD*>(c_pData); const BYTE bCount = *(c_pData + sizeof(WORD)); const BYTE bType = *(c_pData + sizeof(WORD) + sizeof(BYTE)); sys_log(0, "INPUT: %s SHOP: SELL2", ch->GetName()); CShopManager::instance().Sell(ch, wPos, bCount, bType); return sizeof(WORD) + sizeof(BYTE) + sizeof(BYTE); } 3) Save and close it, now open shop_manager.h 3.1) And replace this: void Sell(LPCHARACTER ch, BYTE bCell, BYTE bCount = 0); 3.2) With this: void Sell(LPCHARACTER ch, WORD wCell, BYTE bCount = 0, BYTE bType = 0); 4) Save it and close it. 4.1) Next step; open shop_manager.cpp and search this function: void CShopManager::Sell(LPCHARACTER ch, BYTE bCell, BYTE bCount) 4.2) Replace the parameters/arguments only with this: LPCHARACTER ch, WORD wCell, BYTE bCount, BYTE bType 4.3) Search this line: LPITEM item = ch->GetInventoryItem(bCell); 4.4) And replace it with this: LPITEM item = ch->GetItem(TItemPos(bType, wCell)); 4.5-Choosable) I added a log function too into the antiflag_sell check against hackers 4.5.1) Replace this: if (IS_SET(item->GetAntiFlag(), ITEM_ANTIFLAG_SELL)) return; 4.5.2) With this(as I said, this is choosable, not important change): if (IS_SET(item->GetAntiFlag(), ITEM_ANTIFLAG_SELL)) { // In clientside the sell is blocked by python if a player arrive here he's a hacker, maybe. ch->ChatPacket(CHAT_TYPE_INFO, LC_TEXT("You can't sell this item.")); sys_err("[HACKER] Force sell-script used by name [%u]%s.", ch->GetPlayerID(), ch->GetName()); return; } 5) Save and close the file, now you are ready to build your game. Clientside-BIN: 1) Open PythonNetworkStream.h 1.1) Search this: bool SendShopSellPacketNew(BYTE bySlot, BYTE byCount); 1.2) Replace it with this: bool SendShopSellPacketNew(WORD wSlot, BYTE byCount, BYTE byType); 2) Save it, close it. Open PythonNetworkStreamPhaseGameItem.cpp 2.1) Search this function: bool CPythonNetworkStream::SendShopSellPacketNew(BYTE bySlot, BYTE byCount) 2.2) Replace the whole function with this: bool CPythonNetworkStream::SendShopSellPacketNew(WORD wSlot, BYTE byCount, BYTE byType) { if (!__CanActMainInstance()) return true; TPacketCGShop PacketShop; PacketShop.header = HEADER_CG_SHOP; PacketShop.subheader = SHOP_SUBHEADER_CG_SELL2; if (!Send(sizeof(TPacketCGShop), &PacketShop)) { Tracef("SendShopSellPacket Errorn"); return false; } if (!Send(sizeof(WORD), &wSlot)) { Tracef("SendShopAddSellPacket Errorn"); return false; } if (!Send(sizeof(BYTE), &byCount)) { Tracef("SendShopAddSellPacket Errorn"); return false; } if (!Send(sizeof(BYTE), &byType)) { Tracef("SendShopAddSellPacket Errorn"); return false; } Tracef(" SendShopSellPacketNew(wSlot=%d, byCount=%d, byType=%d)n", wSlot, byCount, byType); return SendSequence(); } 3) Save and close. Open PythonNetworkStreamModule.cpp 3.1) Search this function: PyObject* netSendShopSellPacketNew(PyObject* poSelf, PyObject* poArgs) 3.2) And replace it with this: PyObject* netSendShopSellPacketNew(PyObject* poSelf, PyObject* poArgs) { int iSlotNumber; if (!PyTuple_GetInteger(poArgs, 0, &iSlotNumber)) return Py_BuildException(); int iCount; if (!PyTuple_GetInteger(poArgs, 1, &iCount)) return Py_BuildException(); int iType; if (!PyTuple_GetInteger(poArgs, 2, &iType)) return Py_BuildException(); CPythonNetworkStream& rkNetStream=CPythonNetworkStream::Instance(); rkNetStream.SendShopSellPacketNew(iSlotNumber, iCount, iType); return Py_BuildNone(); } 4) Save, close and build Clientside-Python: Here you have to do it by yourself. The new function of the m2net/net module are called by 3 files uiInventory.py uiDragonSoul.py uiShop.py You have to edit these files if your files are not containing these updates, but thanks to [sA]Con for the newer root package from his release ^^ Here you can download the "new" root package which is containing every changes for this and for wolfman. I do not recomment to replace or overwrite your files with those files! Use a comparer tool like Notepad++ Compare plugin to check the differences at "sell" keyword. Tested and works, but if you found bug/mistake/error please write into this thread a detailed post. So not like this: ps.: I hope you understand everything, and sorry for my poor english:3 ps2: In the official bin this message " SendShopSellPacketNew(bySlot=%d, byCount=%d, byType=%d)" can be found, but I renamed the variable too, hehe :-D. With Regards, P3NG3R
  23. Hello devs. I recently noticed that the green and purple potions doesn't send any effect so I decided to add one. File: char_item.cpp So let's begin, first of all find these two cases: and under of each of them add this: After you do that search for this(this variable exists two times so you need to do this step two times): and under that add this: Kind Regards Legend
  24. Hello. I have problem with compile source code in Visual Studio 2017 (with v120 toolset from VS2013). After starting compile binary i have this error: 1>------ Kompilacja rozpoczęta: Projekt: UserInterface, Konfiguracja: Debug Win32 ------ 1>C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V120\Microsoft.CppBuild.targets(1193,5): warning MSB8012: TargetPath(E:\Client\UserInterface\../bin\UserInterface.exe) does not match the Linker's OutputFile property value (E:\Client\bin\metin2client.exe). This may cause your project to build incorrectly. To correct this, please make sure that $(OutDir), $(TargetName) and $(TargetExt) property values match the value specified in %(Link.OutputFile). 1>C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V120\Microsoft.CppBuild.targets(1195,5): warning MSB8012: TargetName(UserInterface) does not match the Linker's OutputFile property value (metin2client). This may cause your project to build incorrectly. To correct this, please make sure that $(OutDir), $(TargetName) and $(TargetExt) property values match the value specified in %(Link.OutputFile). 1>cryptlib-5.6.1MTd.lib(rc5.obj) : error LNK2001: unresolved external symbol "public: static void __cdecl std::_String_base::_Xran(void)" (?_Xran@_String_base@std@@SAXXZ) 1>cryptlib-5.6.1MTd.lib(shacal2.obj) : error LNK2001: unresolved external symbol "public: static void __cdecl std::_String_base::_Xran(void)" (?_Xran@_String_base@std@@SAXXZ) 1>cryptlib-5.6.1MTd.lib(cast.obj) : error LNK2001: unresolved external symbol "public: static void __cdecl std::_String_base::_Xran(void)" (?_Xran@_String_base@std@@SAXXZ) 1>cryptlib-5.6.1MTd.lib(rc6.obj) : error LNK2001: unresolved external symbol "public: static void __cdecl std::_String_base::_Xran(void)" (?_Xran@_String_base@std@@SAXXZ) 1>cryptlib-5.6.1MTd.lib(mars.obj) : error LNK2001: unresolved external symbol "public: static void __cdecl std::_String_base::_Xran(void)" (?_Xran@_String_base@std@@SAXXZ) 1>cryptlib-5.6.1MTd.lib(serpent.obj) : error LNK2001: unresolved external symbol "public: static void __cdecl std::_String_base::_Xran(void)" (?_Xran@_String_base@std@@SAXXZ) 1>cryptlib-5.6.1MTd.lib(hrtimer.obj) : error LNK2001: unresolved external symbol "public: static void __cdecl std::_String_base::_Xran(void)" (?_Xran@_String_base@std@@SAXXZ) 1>cryptlib-5.6.1MTd.lib(dsa.obj) : error LNK2001: unresolved external symbol "public: static void __cdecl std::_String_base::_Xran(void)" (?_Xran@_String_base@std@@SAXXZ) 1>cryptlib-5.6.1MTd.lib(hmac.obj) : error LNK2001: unresolved external symbol "public: static void __cdecl std::_String_base::_Xran(void)" (?_Xran@_String_base@std@@SAXXZ) 1>cryptlib-5.6.1MTd.lib(dh2.obj) : error LNK2001: unresolved external symbol "public: static void __cdecl std::_String_base::_Xran(void)" (?_Xran@_String_base@std@@SAXXZ) 1>cryptlib-5.6.1MTd.lib(nbtheory.obj) : error LNK2001: unresolved external symbol "public: static void __cdecl std::_String_base::_Xran(void)" (?_Xran@_String_base@std@@SAXXZ) 1>cryptlib-5.6.1MTd.lib(rng.obj) : error LNK2001: unresolved external symbol "public: static void __cdecl std::_String_base::_Xran(void)" (?_Xran@_String_base@std@@SAXXZ) 1>cryptlib-5.6.1MTd.lib(rijndael.obj) : error LNK2001: unresolved external symbol "public: static void __cdecl std::_String_base::_Xran(void)" (?_Xran@_String_base@std@@SAXXZ) 1>cryptlib-5.6.1MTd.lib(des.obj) : error LNK2001: unresolved external symbol "public: static void __cdecl std::_String_base::_Xran(void)" (?_Xran@_String_base@std@@SAXXZ) 1>cryptlib-5.6.1MTd.lib(pubkey.obj) : error LNK2001: unresolved external symbol "public: static void __cdecl std::_String_base::_Xran(void)" (?_Xran@_String_base@std@@SAXXZ) 1>cryptlib-5.6.1MTd.lib(asn.obj) : error LNK2001: unresolved external symbol "public: static void __cdecl std::_String_base::_Xran(void)" (?_Xran@_String_base@std@@SAXXZ) 1>cryptlib-5.6.1MTd.lib(hex.obj) : error LNK2001: unresolved external symbol "public: static void __cdecl std::_String_base::_Xran(void)" (?_Xran@_String_base@std@@SAXXZ) 1>cryptlib-5.6.1MTd.lib(basecode.obj) : error LNK2001: unresolved external symbol "public: static void __cdecl std::_String_base::_Xran(void)" (?_Xran@_String_base@std@@SAXXZ) 1>cryptlib-5.6.1MTd.lib(integer.obj) : error LNK2001: unresolved external symbol "public: static void __cdecl std::_String_base::_Xran(void)" (?_Xran@_String_base@std@@SAXXZ) 1>cryptlib-5.6.1MTd.lib(ecp.obj) : error LNK2001: unresolved external symbol "public: static void __cdecl std::_String_base::_Xran(void)" (?_Xran@_String_base@std@@SAXXZ) 1>cryptlib-5.6.1MTd.lib(ec2n.obj) : error LNK2001: unresolved external symbol "public: static void __cdecl std::_String_base::_Xran(void)" (?_Xran@_String_base@std@@SAXXZ) 1>cryptlib-5.6.1MTd.lib(gfpcrypt.obj) : error LNK2001: unresolved external symbol "public: static void __cdecl std::_String_base::_Xran(void)" (?_Xran@_String_base@std@@SAXXZ) 1>cryptlib-5.6.1MTd.lib(osrng.obj) : error LNK2001: unresolved external symbol "public: static void __cdecl std::_String_base::_Xran(void)" (?_Xran@_String_base@std@@SAXXZ) 1>cryptlib-5.6.1MTd.lib(queue.obj) : error LNK2001: unresolved external symbol "public: static void __cdecl std::_String_base::_Xran(void)" (?_Xran@_String_base@std@@SAXXZ) 1>cryptlib-5.6.1MTd.lib(mqueue.obj) : error LNK2001: unresolved external symbol "public: static void __cdecl std::_String_base::_Xran(void)" (?_Xran@_String_base@std@@SAXXZ) 1>cryptlib-5.6.1MTd.lib(gf2n.obj) : error LNK2001: unresolved external symbol "public: static void __cdecl std::_String_base::_Xran(void)" (?_Xran@_String_base@std@@SAXXZ) 1>cryptlib-5.6.1MTd.lib(twofish.obj) : error LNK2001: unresolved external symbol "public: static void __cdecl std::_String_base::_Xran(void)" (?_Xran@_String_base@std@@SAXXZ) 1>cryptlib-5.6.1MTd.lib(tea.obj) : error LNK2001: unresolved external symbol "public: static void __cdecl std::_String_base::_Xran(void)" (?_Xran@_String_base@std@@SAXXZ) 1>cryptlib-5.6.1MTd.lib(modes.obj) : error LNK2001: unresolved external symbol "public: static void __cdecl std::_String_base::_Xran(void)" (?_Xran@_String_base@std@@SAXXZ) 1>cryptlib-5.6.1MTd.lib(randpool.obj) : error LNK2001: unresolved external symbol "public: static void __cdecl std::_String_base::_Xran(void)" (?_Xran@_String_base@std@@SAXXZ) 1>cryptlib-5.6.1MTd.lib(iterhash.obj) : error LNK2001: unresolved external symbol "public: static void __cdecl std::_String_base::_Xran(void)" (?_Xran@_String_base@std@@SAXXZ) 1>cryptlib-5.6.1MTd.lib(whrlpool.obj) : error LNK2001: unresolved external symbol "public: static void __cdecl std::_String_base::_Xran(void)" (?_Xran@_String_base@std@@SAXXZ) 1>cryptlib-5.6.1MTd.lib(panama.obj) : error LNK2001: unresolved external symbol "public: static void __cdecl std::_String_base::_Xran(void)" (?_Xran@_String_base@std@@SAXXZ) 1>cryptlib-5.6.1MTd.lib(camellia.obj) : error LNK2001: unresolved external symbol "public: static void __cdecl std::_String_base::_Xran(void)" (?_Xran@_String_base@std@@SAXXZ) 1>cryptlib-5.6.1MTd.lib(cryptlib.obj) : error LNK2001: unresolved external symbol "public: static void __cdecl std::_String_base::_Xran(void)" (?_Xran@_String_base@std@@SAXXZ) 1>cryptlib-5.6.1MTd.lib(filters.obj) : error LNK2001: unresolved external symbol "public: static void __cdecl std::_String_base::_Xran(void)" (?_Xran@_String_base@std@@SAXXZ) 1>cryptlib-5.6.1MTd.lib(algparam.obj) : error LNK2001: unresolved external symbol "public: static void __cdecl std::_String_base::_Xran(void)" (?_Xran@_String_base@std@@SAXXZ) 1>cryptlib-5.6.1MTd.lib(dll.obj) : error LNK2001: unresolved external symbol "public: static void __cdecl std::_String_base::_Xran(void)" (?_Xran@_String_base@std@@SAXXZ) 1>cryptlib-5.6.1MTd.lib(rc5.obj) : error LNK2001: unresolved external symbol "public: static void __cdecl std::_String_base::_Xlen(void)" (?_Xlen@_String_base@std@@SAXXZ) 1>cryptlib-5.6.1MTd.lib(shacal2.obj) : error LNK2001: unresolved external symbol "public: static void __cdecl std::_String_base::_Xlen(void)" (?_Xlen@_String_base@std@@SAXXZ) 1>cryptlib-5.6.1MTd.lib(cast.obj) : error LNK2001: unresolved external symbol "public: static void __cdecl std::_String_base::_Xlen(void)" (?_Xlen@_String_base@std@@SAXXZ) 1>cryptlib-5.6.1MTd.lib(rc6.obj) : error LNK2001: unresolved external symbol "public: static void __cdecl std::_String_base::_Xlen(void)" (?_Xlen@_String_base@std@@SAXXZ) 1>cryptlib-5.6.1MTd.lib(mars.obj) : error LNK2001: unresolved external symbol "public: static void __cdecl std::_String_base::_Xlen(void)" (?_Xlen@_String_base@std@@SAXXZ) 1>cryptlib-5.6.1MTd.lib(serpent.obj) : error LNK2001: unresolved external symbol "public: static void __cdecl std::_String_base::_Xlen(void)" (?_Xlen@_String_base@std@@SAXXZ) 1>cryptlib-5.6.1MTd.lib(hrtimer.obj) : error LNK2001: unresolved external symbol "public: static void __cdecl std::_String_base::_Xlen(void)" (?_Xlen@_String_base@std@@SAXXZ) 1>cryptlib-5.6.1MTd.lib(dsa.obj) : error LNK2001: unresolved external symbol "public: static void __cdecl std::_String_base::_Xlen(void)" (?_Xlen@_String_base@std@@SAXXZ) 1>cryptlib-5.6.1MTd.lib(hmac.obj) : error LNK2001: unresolved external symbol "public: static void __cdecl std::_String_base::_Xlen(void)" (?_Xlen@_String_base@std@@SAXXZ) 1>cryptlib-5.6.1MTd.lib(dh2.obj) : error LNK2001: unresolved external symbol "public: static void __cdecl std::_String_base::_Xlen(void)" (?_Xlen@_String_base@std@@SAXXZ) 1>cryptlib-5.6.1MTd.lib(nbtheory.obj) : error LNK2001: unresolved external symbol "public: static void __cdecl std::_String_base::_Xlen(void)" (?_Xlen@_String_base@std@@SAXXZ) 1>cryptlib-5.6.1MTd.lib(rng.obj) : error LNK2001: unresolved external symbol "public: static void __cdecl std::_String_base::_Xlen(void)" (?_Xlen@_String_base@std@@SAXXZ) 1>cryptlib-5.6.1MTd.lib(rijndael.obj) : error LNK2001: unresolved external symbol "public: static void __cdecl std::_String_base::_Xlen(void)" (?_Xlen@_String_base@std@@SAXXZ) 1>cryptlib-5.6.1MTd.lib(des.obj) : error LNK2001: unresolved external symbol "public: static void __cdecl std::_String_base::_Xlen(void)" (?_Xlen@_String_base@std@@SAXXZ) 1>cryptlib-5.6.1MTd.lib(pubkey.obj) : error LNK2001: unresolved external symbol "public: static void __cdecl std::_String_base::_Xlen(void)" (?_Xlen@_String_base@std@@SAXXZ) 1>cryptlib-5.6.1MTd.lib(asn.obj) : error LNK2001: unresolved external symbol "public: static void __cdecl std::_String_base::_Xlen(void)" (?_Xlen@_String_base@std@@SAXXZ) 1>cryptlib-5.6.1MTd.lib(hex.obj) : error LNK2001: unresolved external symbol "public: static void __cdecl std::_String_base::_Xlen(void)" (?_Xlen@_String_base@std@@SAXXZ) 1>cryptlib-5.6.1MTd.lib(basecode.obj) : error LNK2001: unresolved external symbol "public: static void __cdecl std::_String_base::_Xlen(void)" (?_Xlen@_String_base@std@@SAXXZ) 1>cryptlib-5.6.1MTd.lib(integer.obj) : error LNK2001: unresolved external symbol "public: static void __cdecl std::_String_base::_Xlen(void)" (?_Xlen@_String_base@std@@SAXXZ) 1>cryptlib-5.6.1MTd.lib(ecp.obj) : error LNK2001: unresolved external symbol "public: static void __cdecl std::_String_base::_Xlen(void)" (?_Xlen@_String_base@std@@SAXXZ) 1>cryptlib-5.6.1MTd.lib(ec2n.obj) : error LNK2001: unresolved external symbol "public: static void __cdecl std::_String_base::_Xlen(void)" (?_Xlen@_String_base@std@@SAXXZ) 1>cryptlib-5.6.1MTd.lib(gfpcrypt.obj) : error LNK2001: unresolved external symbol "public: static void __cdecl std::_String_base::_Xlen(void)" (?_Xlen@_String_base@std@@SAXXZ) 1>cryptlib-5.6.1MTd.lib(osrng.obj) : error LNK2001: unresolved external symbol "public: static void __cdecl std::_String_base::_Xlen(void)" (?_Xlen@_String_base@std@@SAXXZ) 1>cryptlib-5.6.1MTd.lib(queue.obj) : error LNK2001: unresolved external symbol "public: static void __cdecl std::_String_base::_Xlen(void)" (?_Xlen@_String_base@std@@SAXXZ) 1>cryptlib-5.6.1MTd.lib(mqueue.obj) : error LNK2001: unresolved external symbol "public: static void __cdecl std::_String_base::_Xlen(void)" (?_Xlen@_String_base@std@@SAXXZ) 1>cryptlib-5.6.1MTd.lib(gf2n.obj) : error LNK2001: unresolved external symbol "public: static void __cdecl std::_String_base::_Xlen(void)" (?_Xlen@_String_base@std@@SAXXZ) 1>cryptlib-5.6.1MTd.lib(twofish.obj) : error LNK2001: unresolved external symbol "public: static void __cdecl std::_String_base::_Xlen(void)" (?_Xlen@_String_base@std@@SAXXZ) 1>cryptlib-5.6.1MTd.lib(tea.obj) : error LNK2001: unresolved external symbol "public: static void __cdecl std::_String_base::_Xlen(void)" (?_Xlen@_String_base@std@@SAXXZ) 1>cryptlib-5.6.1MTd.lib(modes.obj) : error LNK2001: unresolved external symbol "public: static void __cdecl std::_String_base::_Xlen(void)" (?_Xlen@_String_base@std@@SAXXZ) 1>cryptlib-5.6.1MTd.lib(randpool.obj) : error LNK2001: unresolved external symbol "public: static void __cdecl std::_String_base::_Xlen(void)" (?_Xlen@_String_base@std@@SAXXZ) 1>cryptlib-5.6.1MTd.lib(iterhash.obj) : error LNK2001: unresolved external symbol "public: static void __cdecl std::_String_base::_Xlen(void)" (?_Xlen@_String_base@std@@SAXXZ) 1>cryptlib-5.6.1MTd.lib(whrlpool.obj) : error LNK2001: unresolved external symbol "public: static void __cdecl std::_String_base::_Xlen(void)" (?_Xlen@_String_base@std@@SAXXZ) 1>cryptlib-5.6.1MTd.lib(panama.obj) : error LNK2001: unresolved external symbol "public: static void __cdecl std::_String_base::_Xlen(void)" (?_Xlen@_String_base@std@@SAXXZ) 1>cryptlib-5.6.1MTd.lib(camellia.obj) : error LNK2001: unresolved external symbol "public: static void __cdecl std::_String_base::_Xlen(void)" (?_Xlen@_String_base@std@@SAXXZ) 1>cryptlib-5.6.1MTd.lib(cryptlib.obj) : error LNK2001: unresolved external symbol "public: static void __cdecl std::_String_base::_Xlen(void)" (?_Xlen@_String_base@std@@SAXXZ) 1>cryptlib-5.6.1MTd.lib(filters.obj) : error LNK2001: unresolved external symbol "public: static void __cdecl std::_String_base::_Xlen(void)" (?_Xlen@_String_base@std@@SAXXZ) 1>cryptlib-5.6.1MTd.lib(algparam.obj) : error LNK2001: unresolved external symbol "public: static void __cdecl std::_String_base::_Xlen(void)" (?_Xlen@_String_base@std@@SAXXZ) 1>cryptlib-5.6.1MTd.lib(dll.obj) : error LNK2001: unresolved external symbol "public: static void __cdecl std::_String_base::_Xlen(void)" (?_Xlen@_String_base@std@@SAXXZ) 1>cryptlib-5.6.1MTd.lib(gf2n.obj) : error LNK2019: unresolved external symbol "public: void __thiscall std::_Mutex::_Lock(void)" (?_Lock@_Mutex@std@@QAEXXZ) referenced in function "public: void __thiscall std::basic_streambuf<char,struct std::char_traits<char> >::_Lock(void)" (?_Lock@?$basic_streambuf@DU?$char_traits@D@std@@@std@@QAEXXZ) 1>cryptlib-5.6.1MTd.lib(integer.obj) : error LNK2001: unresolved external symbol "public: void __thiscall std::_Mutex::_Lock(void)" (?_Lock@_Mutex@std@@QAEXXZ) 1>cryptlib-5.6.1MTd.lib(gf2n.obj) : error LNK2019: unresolved external symbol "public: void __thiscall std::_Mutex::_Unlock(void)" (?_Unlock@_Mutex@std@@QAEXXZ) referenced in function "public: void __thiscall std::basic_streambuf<char,struct std::char_traits<char> >::_Unlock(void)" (?_Unlock@?$basic_streambuf@DU?$char_traits@D@std@@@std@@QAEXXZ) 1>cryptlib-5.6.1MTd.lib(integer.obj) : error LNK2001: unresolved external symbol "public: void __thiscall std::_Mutex::_Unlock(void)" (?_Unlock@_Mutex@std@@QAEXXZ) 1>cryptlib-5.6.1MTd.lib(integer.obj) : error LNK2019: unresolved external symbol "private: static void __cdecl std::locale::facet::facet_Register(class std::locale::facet *)" (?facet_Register@facet@locale@std@@CAXPAV123@@Z) referenced in function "public: void __thiscall std::locale::facet::_Register(void)" (?_Register@facet@locale@std@@QAEXXZ) 1>cryptlib-5.6.1MTd.lib(integer.obj) : error LNK2019: unresolved external symbol "public: static void __cdecl std::_Locinfo::_Locinfo_ctor(class std::_Locinfo *,class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &)" (?_Locinfo_ctor@_Locinfo@std@@SAXPAV12@ABV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@2@@Z) referenced in function "public: __thiscall std::_Locinfo::_Locinfo(class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &)" (??0_Locinfo@std@@QAE@ABV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@1@@Z) 1>../bin/metin2client.exe : fatal error LNK1120: 6 unresolved externals 1>Kompilowanie projektu „UserInterface_VC90.vcxproj” wykonane — NIEPOWODZENIE. ========== Kompilacja: 0 zakończono powodzeniem, 1 zakończono niepowodzeniem, 15 zaktualizowano, 0 pominięto ========== I changed already cryptlib-5.6.1MTd.lib for newer with 48.3mb sized but it doesnt change anything. Anyone know how to fix it? Thanks for help.
  25. open MAP loading

    Hey, Does anyone know how/where to set the way the client loads the map? I mean, I wanna set it to only load the actual part of it and not the whole. Thanks!
×