Skip to content

Commit

Permalink
Fix fake roster member on recent VALORANT versions, bump version
Browse files Browse the repository at this point in the history
  • Loading branch information
molenzwiebel committed May 1, 2023
1 parent 3061039 commit 0f01060
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Deceive/Deceive.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<OutputType>WinExe</OutputType>
<UseWindowsForms>true</UseWindowsForms>
<Nullable>enable</Nullable>
<AssemblyVersion>1.12.0.0</AssemblyVersion>
<AssemblyVersion>1.12.1.0</AssemblyVersion>
<ApplicationIcon>Resources\deceive.ico</ApplicationIcon>
<LangVersion>default</LangVersion>
<ApplicationManifest>app.manifest</ApplicationManifest>
Expand Down
8 changes: 6 additions & 2 deletions Deceive/MainController.cs
Original file line number Diff line number Diff line change
Expand Up @@ -278,7 +278,10 @@ private async Task OutgoingLoopAsync()
content = content.Insert(content.IndexOf(roster, StringComparison.Ordinal) + roster.Length,
"<item jid='[email protected]' name='&#9;Deceive Active!' subscription='both' puuid='41c322a1-b328-495b-a004-5ccd3e45eae8'>" +
"<group priority='9999'>Deceive</group>" +
"<id name='&#9;Deceive Active!' tagline=''/><lol name='&#9;Deceive Active!'/>" +
"<state>online</state>" +
"<id name='Deceive Active!' tagline='...'/>" +
"<lol name='&#9;Deceive Active!'/>" +
"<platforms><riot name='Deceive Active' tagline='...'/></platforms>" +
"</item>");
var contentBytes = Encoding.UTF8.GetBytes(content);
await Incoming.WriteAsync(contentBytes, 0, contentBytes.Length);
Expand Down Expand Up @@ -401,7 +404,7 @@ private async Task SendFakePlayerPresenceAsync()
SentFakePlayerPresence = true;
// VALORANT requires a recent version to not display "Version Mismatch"
var valorantPresence = Convert.ToBase64String(
Encoding.UTF8.GetBytes($"{{\"isValid\":true,\"partyId\":\"00000000-0000-0000-0000-000000000000\",\"partyClientVersion\":\"{ValorantVersion ?? "unknown"}\"}}")
Encoding.UTF8.GetBytes($"{{\"isValid\":true,\"partyId\":\"00000000-0000-0000-0000-000000000000\",\"partyClientVersion\":\"{ValorantVersion ?? "unknown"}\",\"accountLevel\":1000}}")
);

var randomStanzaId = Guid.NewGuid();
Expand All @@ -416,6 +419,7 @@ private async Task SendFakePlayerPresenceAsync()
$"<bacon><st>chat</st><s.t>{unixTimeMilliseconds}</s.t><s.l>bacon_availability_online</s.l><s.p>bacon</s.p></bacon>" +
"</games>" +
"<show>chat</show>" +
"<platform>riot</platform>" +
"</presence>";

var bytes = Encoding.UTF8.GetBytes(presenceMessage);
Expand Down

0 comments on commit 0f01060

Please sign in to comment.