Matteo 47 Posted June 3, 2020 Share Posted June 3, 2020 (edited) VS2019, after i compiled the discordrpc.lib, this error occurs: Spoiler Edited August 26, 2022 by Metin2 Dev Core X - External 2 Internal 1 1 System Administrator @ Hungarian Government System Administrator @ Vibestro Freelancer Developer @ Various projects Link to comment Share on other sites More sharing options...
Premium FrenchForeignLegion 245 Posted June 3, 2020 Premium Share Posted June 3, 2020 (edited) 1 hour ago, Minton said: VS2019, after i compiled the discordrpc.lib, this error occurs: Reveal hidden contents The error occurs due to the fact that the libs were compiled with a older version of VS. follow Mali's tutorial and just do the same, it will work for sure. Libs link: This is the hidden content, please Sign In or Sign Up Quote Edited August 26, 2022 by Metin2 Dev Core X - External 2 Internal 56 1 1 1 1 1 14 6 32 Engineer @ CNH Industrial Link to comment Share on other sites More sharing options...
Matteo 47 Posted June 4, 2020 Share Posted June 4, 2020 13 hours ago, xAres said: The error occurs due to the fact that the libs were compiled with a older version of VS. follow Mali's tutorial and just do the same, it will work for sure. Libs link: This is the hidden content, please Sign In or Sign Up Yes, i did the same thats why i wrote "after i compiled".... 8 3 1 5 System Administrator @ Hungarian Government System Administrator @ Vibestro Freelancer Developer @ Various projects Link to comment Share on other sites More sharing options...
FBI 44 Posted June 4, 2020 Share Posted June 4, 2020 10 hours ago, Minton said: Yes, i did the same thats why i wrote "after i compiled".... Download libjpeg sources and compile them as lib. That's what error is telling you. How hard is to understand? 1 1 PeriodWars Link to comment Share on other sites More sharing options...
boloca 4 Posted June 5, 2020 Share Posted June 5, 2020 I compile in vs2019, without any error, but nothing happens when i open the discord, can someone help me? Link to comment Share on other sites More sharing options...
Honorable Member Mali 41813 Posted June 10, 2020 Author Honorable Member Share Posted June 10, 2020 update Discord.h 1 Link to comment Share on other sites More sharing options...
r00t3r 67 Posted June 13, 2020 Share Posted June 13, 2020 (edited) On 6/10/2020 at 11:41 AM, Mali61 said: update Discord.h I am shaman f on game and on discord it show M -> https://metin2.download/picture/14rH9BDNc8d8f9djGntnD9yG7LOAPmr9/.png , is an problem for me or what ? Edited September 4, 2022 by Metin2 Dev Core X - External 2 Internal 1 1 Link to comment Share on other sites More sharing options...
Honorable Member Mali 41813 Posted June 14, 2020 Author Honorable Member Share Posted June 14, 2020 (edited) 11 hours ago, r00t3r said: I am shaman f on game and on discord it show M -> https://metin2.download/picture/3qai9R5r253qM8dMg4B0wnQst8WZOpSN/.png , is an problem for me or what ? fixed Edited September 4, 2022 by Metin2 Dev Core X - External 2 Internal 1 Link to comment Share on other sites More sharing options...
issack 0 Posted June 14, 2020 Share Posted June 14, 2020 I have a problem on VS 2013 Update 4 where i get no error at compilation but when i open the client i cant see the game at my status, any idea? Link to comment Share on other sites More sharing options...
tuguinham2 0 Posted June 27, 2020 Share Posted June 27, 2020 (edited) https://metin2.download/picture/3I938B2UG4N280W1Manzi34Ub7neYvoJ/.png I have this error, version of vs 2013 someone can help me? Edited September 4, 2022 by Metin2 Dev Core X - External 2 Internal Link to comment Share on other sites More sharing options...
KennyMcCormick 0 Posted July 10, 2020 Share Posted July 10, 2020 Hello i have this error: Error 2 error C2797: 'IoThreadHolder::keepRunning': list initialization inside member initializer list or non-static data member initializer is not implemented c:\users\patri\desktop\pvm projekt\#clientsource\discord_rpc\discord_rpc.cpp 82 1 discord_rpc Link to comment Share on other sites More sharing options...
Kirazu 12 Posted July 16, 2020 Share Posted July 16, 2020 Where i add the images? Link to comment Share on other sites More sharing options...
Yarashi2 90 Posted August 1, 2020 Share Posted August 1, 2020 (edited) If you have problems to compile download it works 100% This is the hidden content, please Sign In or Sign Up Its for 2013 Edited August 1, 2020 by Yarashi2 55 2 2 1 1 1 9 26 Link to comment Share on other sites More sharing options...
peakzinho 21 Posted November 25, 2020 Share Posted November 25, 2020 how do i add the level? Link to comment Share on other sites More sharing options...
Sneaky Sneaky 89 Posted February 22, 2021 Share Posted February 22, 2021 error on Severity Code Description Project File Line Suppression State Error C1007 unrecognized flag '-Ot' in 'p2' UserInterface Link to comment Share on other sites More sharing options...
Bot Metin2 Dev 4874 Posted April 28, 2021 Bot Share Posted April 28, 2021 (edited) if you reset the accounts a bug will appear when displaying the name of the game.. strange characters Edited August 18, 2022 by Metin2 Dev Core X - External 2 Internal Link to comment Share on other sites More sharing options...
LethalStrikeR 0 Posted May 1, 2021 Share Posted May 1, 2021 Severity Code Description Project File Line Hide Status Error C1047 '.. \ .. \ extern \ lib \ libjpeg-MT.lib' object or library file was created by a different version of the compiler than other objects such as '.. \ .. \ extern \ lib \ discord_rpc_r.lib'; Recompile all objects and libraries with the same compiler UserInterface @Mali61 Link to comment Share on other sites More sharing options...
Premium piktorvik 18 Posted May 20, 2021 Premium Share Posted May 20, 2021 (edited) Everything works well! Thank you very much for sharing this Edited August 18, 2022 by Metin2 Dev Core X - External 2 Internal 1 Link to comment Share on other sites More sharing options...
Tiburon 22 Posted June 2, 2021 Share Posted June 2, 2021 (edited) i have problem this is with the library extern when compile the binary and wants to read the discord library in these symbols it says that it does not have them Edited August 25, 2022 by Metin2 Dev Core X - External 2 Internal Link to comment Share on other sites More sharing options...
Honorable Member Mali 41813 Posted July 11, 2021 Author Honorable Member Share Posted July 11, 2021 1 Link to comment Share on other sites More sharing options...
Active Member ReFresh 2339 Posted July 11, 2021 Active Member Share Posted July 11, 2021 @MaliWould be really nice if you can add playerGetLevel() function instad of guild name next to the player name. I found some piece of code, but I don't know how to split player name with level. Spoiler #include "InstanceBase.h" CInstanceBase* pkMainInstance = CPythonCharacterManager::Instance().GetMainInstancePtr(); char info[32 + 1]; snprintf(info, sizeof(info), "Lv. %u", pkMainInstance->GetLevel()); If you will have some free time to publish it, I'll be really glad as many others. Thanks for possible answer! I'll be always helpful! Link to comment Share on other sites More sharing options...
Honorable Member Mali 41813 Posted July 12, 2021 Author Honorable Member Share Posted July 12, 2021 (edited) 11 hours ago, ReFresh said: @MaliWould be really nice if you can add playerGetLevel() function instad of guild name next to the player name. I found some piece of code, but I don't know how to split player name with level. https://metin2.download/picture/8SFLL19c83n64x9XVPS70Hq4j7Rx9emd/.png Edited August 18, 2022 by Metin2 Dev Core X - External 2 Internal 8 4 4 5 Link to comment Share on other sites More sharing options...
Active Member ReFresh 2339 Posted July 12, 2021 Active Member Share Posted July 12, 2021 (edited) @Mali Thank you very much! And one more thing. Do you know some solution for diacritics? I mean letters diacritics worte in source code - letters like: "ěščřžýáíöóú". It would be nice too. But I don't know how hard it could be or if it's possible at all. I'm 100% sure, many people facing the same "issue". @LethalStrikeR Just download and compile your libjpeg library with the same toolset as you compile your client. Edited July 12, 2021 by ReFresh 1 I'll be always helpful! Link to comment Share on other sites More sharing options...
Cysgod 106 Posted July 31, 2021 Share Posted July 31, 2021 (edited) Maybe someone can make use of it: Sourcechanges: Spoiler discord_rpc.h (in the rpc source & your extern folder) // Search the struct and replace it typedef struct DiscordRichPresence { const char* state; /* max 128 bytes */ const char* details; /* max 128 bytes */ int64_t startTimestamp; int64_t endTimestamp; const char* largeImageKey; /* max 32 bytes */ const char* largeImageText; /* max 128 bytes */ const char* smallImageKey; /* max 32 bytes */ const char* smallImageText; /* max 128 bytes */ const char* partyId; /* max 128 bytes */ int partySize; int partyMax; const char* matchSecret; /* max 128 bytes */ const char* joinSecret; /* max 128 bytes */ const char* spectateSecret; /* max 128 bytes */ const char* buttonLabel; /* max 128 bytes */ const char* buttonURL; /* max 128 bytes */ int8_t instance; } DiscordRichPresence; serialization.cpp (in the rpc source): // Search: if ((presence->partyId && presence->partyId[0]) || presence->partySize || presence->partyMax) { // Add ABOVE: if (presence->buttonLabel && presence->buttonLabel[0] && presence->buttonURL && presence->buttonURL[0]) { WriteArray assets(writer, "buttons"); WriteObject btn1(writer); WriteOptionalString(writer, "label", presence->buttonLabel); WriteOptionalString(writer, "url", presence->buttonURL); } In your client source you have to add it to the RPC update: discordPresence.buttonLabel = "Join Servername2's Discord"; discordPresence.buttonURL = "https://discord.gg/ASDASDASDIASDASDAOPS"; Discord_UpdatePresence(&discordPresence); Edited August 18, 2022 by Metin2 Dev Core X - External 2 Internal 1 1 2 5 Link to comment Share on other sites More sharing options...
Hysteria 8 Posted August 31, 2021 Share Posted August 31, 2021 char szLevel[256]; _snprintf(szLevel, sizeof(szLevel), "(Lv: %u)", CPythonPlayer::Instance().GetStatus(POINT_LEVEL)); get level by different way 1 Link to comment Share on other sites More sharing options...
Recommended Posts