-
Notifications
You must be signed in to change notification settings - Fork 180
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix fake roster member on recent VALORANT versions, bump version
- Loading branch information
1 parent
3061039
commit 0f01060
Showing
2 changed files
with
7 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -278,7 +278,10 @@ private async Task OutgoingLoopAsync() | |
content = content.Insert(content.IndexOf(roster, StringComparison.Ordinal) + roster.Length, | ||
"<item jid='[email protected]' name='	Deceive Active!' subscription='both' puuid='41c322a1-b328-495b-a004-5ccd3e45eae8'>" + | ||
"<group priority='9999'>Deceive</group>" + | ||
"<id name='	Deceive Active!' tagline=''/><lol name='	Deceive Active!'/>" + | ||
"<state>online</state>" + | ||
"<id name='Deceive Active!' tagline='...'/>" + | ||
"<lol name='	Deceive Active!'/>" + | ||
"<platforms><riot name='Deceive Active' tagline='...'/></platforms>" + | ||
"</item>"); | ||
var contentBytes = Encoding.UTF8.GetBytes(content); | ||
await Incoming.WriteAsync(contentBytes, 0, contentBytes.Length); | ||
|
@@ -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(); | ||
|
@@ -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); | ||
|