zsoltiabeka10 17 Posted October 1, 2021 Share Posted October 1, 2021 Hey guys, anyone knows how can I get characters like "á,ő,ú,ű" etc working? Right now it's displayed as "?". I tried changing file encoding but it didn't work for me. Thanks in advance! 1 Link to comment Share on other sites More sharing options...
Premium Jira 458 Posted October 3, 2021 Premium Share Posted October 3, 2021 On 10/1/2021 at 6:23 PM, zsoltiabeka10 said: Hey guys, anyone knows how can I get characters like "á,ő,ú,ű" etc working? Right now it's displayed as "?". I tried changing file encoding but it didn't work for me. Thanks in advance! https://docs.microsoft.com/en-us/cpp/preprocessor/execution-character-set?view=msvc-160 1 Link to comment Share on other sites More sharing options...
ro3sk1 0 Posted December 5, 2021 Share Posted December 5, 2021 thank you!! it works! tysm Link to comment Share on other sites More sharing options...
Debloat 88 Posted January 31, 2022 Share Posted January 31, 2022 (edited) Working like a charm!!! I can't thank you enough. Edited January 31, 2022 by Debloat Link to comment Share on other sites More sharing options...
Viello 54 Posted February 25, 2023 Share Posted February 25, 2023 (edited) Severity Code Description Project File Line Suppression State Error C1047 The object or library file '..\..\extern\lib\libjpeg-MT.lib' was created by a different version of the compiler than other objects like '..\..\extern\lib\discord_rpc_r.lib'; rebuild all objects and libraries with the same compiler UserInterface D:\files\Leg\ClientSource\Client\UserInterface\LINK 1 and Severity Code Description Project File Line Suppression State Error LNK1257 code generation failed UserInterface D:\files\Leg\ClientSource\Client\UserInterface\LINK 1 I got this error in vs2022 Edited February 25, 2023 by Viello Link to comment Share on other sites More sharing options...
Debloat 88 Posted April 9, 2023 Share Posted April 9, 2023 Works like a charm. Awesome, thank you! Link to comment Share on other sites More sharing options...
Kenma 2 Posted May 7, 2023 Share Posted May 7, 2023 On 7/31/2021 at 8:09 PM, Cysgod said: Talvez alguém possa fazer uso dele: Fonte: Ocultar conteúdo discord_rpc.h (na fonte rpc e sua pasta externa) // 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; Serialização.cpp (na fonte RPC): // 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); } Na origem do cliente, você precisa adicioná-lo à atualização RPC: discordPresence.buttonLabel = "Join Servername2's Discord"; discordPresence.buttonURL = "https://discord.gg/ASDASDASDIASDASDAOPS"; Discord_UpdatePresence(&discordPresence); how do i make it work?? Link to comment Share on other sites More sharing options...
Randaron 2 Posted October 29, 2023 Share Posted October 29, 2023 Thanks, I'll install it and see how it goes. 1 Link to comment Share on other sites More sharing options...
Aemon 7 Posted March 18 Share Posted March 18 (edited) Can someone tell me what I did wrong here ? Edited March 18 by Metin2 Dev International Core X - External 2 Internal Link to comment Share on other sites More sharing options...
Recommended Posts