Skip to content

Commit

Permalink
- Updates RaidBlockPointer and BlockKeyPointer (#146)
Browse files Browse the repository at this point in the history
- Updates Block size from 32 to 48 for search
  • Loading branch information
santacrab2 authored Apr 21, 2023
1 parent e918bdd commit 9bc5b82
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions RaidCrawler.Core/Connection/ConnectionWrapper.cs
Original file line number Diff line number Diff line change
Expand Up @@ -131,8 +131,8 @@ public async Task<ulong> SearchSaveKey(uint key, CancellationToken token)

while (start < end)
{
var block_ct = (end - start) / 32;
var mid = start + (block_ct >> 1) * 32;
var block_ct = (end - start) / 48;
var mid = start + (block_ct >> 1) * 48;

data = await Connection.ReadBytesAbsoluteAsync(mid, 4, token).ConfigureAwait(false);
var found = BitConverter.ToUInt32(data);
Expand All @@ -141,7 +141,7 @@ public async Task<ulong> SearchSaveKey(uint key, CancellationToken token)

if (found >= key)
end = mid;
else start = mid + 32;
else start = mid + 48;
}
return start;
}
Expand Down
4 changes: 2 additions & 2 deletions RaidCrawler.Core/Structures/Offsets.cs
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ public abstract class Offsets
public const string VioletID = "01008F6008C5E000";

public IReadOnlyList<long> SaveBlockPointer = new List<long>() { 0x44AAC88, 0xE0, 0x80, 0x08, 0x0 }; // Thanks Lincoln-LM!
public IReadOnlyList<long> RaidBlockPointer = new List<long>() { 0x44A98C8, 0x180, 0x40 };
public IReadOnlyList<long> BlockKeyPointer = new List<long>() { 0x449EEE8, 0xD8, 0x0, 0x0, 0x30, 0x0 };
public IReadOnlyList<long> RaidBlockPointer = new List<long>() { 0x44BFBA8, 0x180, 0x40 };
public IReadOnlyList<long> BlockKeyPointer = new List<long>() { 0x44B5158, 0xD8, 0x0, 0x0, 0x30, 0x0 };
public IReadOnlyList<uint> DifficultyFlags = new List<uint>() { 0xEC95D8EF, 0xA9428DFE, 0x9535F471, 0x6E7F8220 };

public const uint BCATRaidBinaryLocation = 0x520A1B0; // Thanks Lincoln-LM!
Expand Down

0 comments on commit 9bc5b82

Please sign in to comment.