Diagnostics
What the Timings and Signatures windows list from native code: wraith_core zones and heaps, by layout version. Listed till removed or the plugin goes.
Diagnostics
Section titled “Diagnostics”Get it with Api.diagnostics().
addZone(zone: number | bigint, version: number): voidremoveZone(zone: number | bigint): voidaddHeap(heap: number | bigint, version: number): voidremoveHeap(heap: number | bigint): voidrecordScan(scan: import("salamander").Given<Wraith.Diagnostics.SignatureScan>): voidoriginal(start: number | bigint, length: number | bigint): numberrecordScanFrom(scan: import("salamander").Given<Wraith.Diagnostics.ScanRecord>): voidcodeCopy(start: number | bigint, length: number | bigint, source: Wraith.Addresses.Source | Wraith.Addresses.SourceName): numbercachedScan(start: number | bigint, length: number | bigint, pattern: string, first_match: boolean): Wraith.Diagnostics.ScanHitcacheScan(start: number | bigint, length: number | bigint, pattern: string, first_match: boolean, hit: import("salamander").Given<Wraith.Diagnostics.ScanHit>): voidaddZone(zone: integer, version: integer)removeZone(zone: integer)addHeap(heap: integer, version: integer)removeHeap(heap: integer)recordScan(scan: Wraith.Diagnostics.SignatureScan)original(start: integer, length: integer): integerrecordScanFrom(scan: Wraith.Diagnostics.ScanRecord)codeCopy(start: integer, length: integer, source: Wraith.Addresses.Source|Wraith.Addresses.SourceName): integercachedScan(start: integer, length: integer, pattern: string, first_match: boolean): Wraith.Diagnostics.ScanHitcacheScan(start: integer, length: integer, pattern: string, first_match: boolean, hit: Wraith.Diagnostics.ScanHit)void AddZone(nuint zone, uint version)void RemoveZone(nuint zone)void AddHeap(nuint heap, uint version)void RemoveHeap(nuint heap)void RecordScan(Wraith.Diagnostics.SignatureScan scan)nuint Original(nuint start, nuint length)void RecordScanFrom(Wraith.Diagnostics.ScanRecord scan)nuint CodeCopy(nuint start, nuint length, Wraith.Addresses.Source source)Wraith.Diagnostics.ScanHit CachedScan(nuint start, nuint length, string pattern, bool first_match)void CacheScan(nuint start, nuint length, string pattern, bool first_match, Wraith.Diagnostics.ScanHit hit)void addZone(uintptr_t zone, uint32_t version) constvoid removeZone(uintptr_t zone) constvoid addHeap(uintptr_t heap, uint32_t version) constvoid removeHeap(uintptr_t heap) constvoid recordScan(Wraith::Diagnostics_SignatureScan scan) constuintptr_t original(uintptr_t start, uintptr_t length) constvoid recordScanFrom(Wraith::Diagnostics_ScanRecord scan) constuintptr_t codeCopy(uintptr_t start, uintptr_t length, Wraith::Addresses_Source source) constWraith::Diagnostics_ScanHit cachedScan(uintptr_t start, uintptr_t length, std::string_view pattern, bool first_match) constvoid cacheScan(uintptr_t start, uintptr_t length, std::string_view pattern, bool first_match, Wraith::Diagnostics_ScanHit hit) constpub fn add_zone(&self, zone: usize, version: u32)pub fn remove_zone(&self, zone: usize)pub fn add_heap(&self, heap: usize, version: u32)pub fn remove_heap(&self, heap: usize)pub fn record_scan(&self, scan: wraith::DiagnosticsSignatureScan)pub fn original(&self, start: usize, length: usize) -> usizepub fn record_scan_from(&self, scan: wraith::DiagnosticsScanRecord)pub fn code_copy(&self, start: usize, length: usize, source: wraith::AddressesSource) -> usizepub fn cached_scan(&self, start: usize, length: usize, pattern: &str, first_match: bool) -> wraith::DiagnosticsScanHitpub fn cache_scan(&self, start: usize, length: usize, pattern: &str, first_match: bool, hit: wraith::DiagnosticsScanHit)fn addZone(self: Wraith.Diagnostics, zone: usize, version: u32) voidfn removeZone(self: Wraith.Diagnostics, zone: usize) voidfn addHeap(self: Wraith.Diagnostics, heap: usize, version: u32) voidfn removeHeap(self: Wraith.Diagnostics, heap: usize) voidfn recordScan(self: Wraith.Diagnostics, scan: Wraith.Diagnostics.SignatureScan) voidfn original(self: Wraith.Diagnostics, start: usize, length: usize) usizefn recordScanFrom(self: Wraith.Diagnostics, scan: Wraith.Diagnostics.ScanRecord) voidfn codeCopy(self: Wraith.Diagnostics, start: usize, length: usize, source: Wraith.Addresses.Source) usizefn cachedScan(self: Wraith.Diagnostics, start: usize, length: usize, pattern: []const u8, first_match: bool) Wraith.Diagnostics.ScanHitfn cacheScan(self: Wraith.Diagnostics, start: usize, length: usize, pattern: []const u8, first_match: bool, hit: Wraith.Diagnostics.ScanHit) voidvoid Wraith_Diagnostics_addZone(Wraith_Diagnostics self, uintptr_t zone, uint32_t version)void Wraith_Diagnostics_removeZone(Wraith_Diagnostics self, uintptr_t zone)void Wraith_Diagnostics_addHeap(Wraith_Diagnostics self, uintptr_t heap, uint32_t version)void Wraith_Diagnostics_removeHeap(Wraith_Diagnostics self, uintptr_t heap)void Wraith_Diagnostics_recordScan(Wraith_Diagnostics self, Wraith_Diagnostics_SignatureScan scan)uintptr_t Wraith_Diagnostics_original(Wraith_Diagnostics self, uintptr_t start, uintptr_t length)void Wraith_Diagnostics_recordScanFrom(Wraith_Diagnostics self, Wraith_Diagnostics_ScanRecord scan)uintptr_t Wraith_Diagnostics_codeCopy(Wraith_Diagnostics self, uintptr_t start, uintptr_t length, Wraith_Addresses_Source source)Wraith_Diagnostics_ScanHit Wraith_Diagnostics_cachedScan(Wraith_Diagnostics self, uintptr_t start, uintptr_t length, sal_string pattern, bool first_match)void Wraith_Diagnostics_cacheScan(Wraith_Diagnostics self, uintptr_t start, uintptr_t length, sal_string pattern, bool first_match, Wraith_Diagnostics_ScanHit hit)addZone
Section titled “addZone”removeZone
Section titled “removeZone”addHeap
Section titled “addHeap”removeHeap
Section titled “removeHeap”recordScan
Section titled “recordScan”For the Signatures window, and named plugin.name in the address list when found
Uses Diagnostics.SignatureScan.
original
Section titled “original”The unpatched copy of the game’s code from start, or 0
recordScanFrom
Section titled “recordScanFrom”Like recordScan, with which copy it read
Uses Diagnostics.ScanRecord.
codeCopy
Section titled “codeCopy”Where source’s copy of the game’s code from start is, or 0. Live has none
Uses Addresses.Source.
cachedScan
Section titled “cachedScan”Where a scan of pattern, as scans format it, matched in this range before, if its module’s the same build.
Check it still matches there before using it
Uses Diagnostics.ScanHit.
cacheScan
Section titled “cacheScan”Where it matched, for next time. Address 0 forgets it
Uses Diagnostics.ScanHit.
Diagnostics.ScanOutcome
Section titled “Diagnostics.ScanOutcome”An enum of u8.
| Value | Name | |
|---|---|---|
| 0 | found |
|
| 1 | not_found |
|
| 2 | not_unique |
Diagnostics.SignatureScan
Section titled “Diagnostics.SignatureScan”A struct, 0x48 bytes, aligned to 8.
| Offset | Field | Type | |
|---|---|---|---|
| 0x0 | name |
string |
|
| 0x10 | pattern |
string |
|
| 0x20 | start |
usize |
|
| 0x28 | length |
usize |
|
| 0x30 | original |
bool |
Scanned the code as it was before anything patched it |
| 0x31 | outcome |
Diagnostics.ScanOutcome |
|
| 0x38 | address |
usize |
|
| 0x40 | ns |
u64 |
name: stringpattern: stringstart: numberlength: numberoriginal: booleanoutcome: Wraith.Diagnostics.ScanOutcome | Wraith.Diagnostics.ScanOutcomeNameaddress: numberns: bigintname: stringpattern: stringstart: integerlength: integeroriginal: booleanoutcome: Wraith.Diagnostics.ScanOutcome|Wraith.Diagnostics.ScanOutcomeNameaddress: integerns: integerstring Namestring Patternnuint Startnuint Lengthbool OriginalWraith.Diagnostics.ScanOutcome Outcomenuint Addressulong Nssal::String namesal::String patternuintptr_t startuintptr_t lengthbool originalWraith::Diagnostics_ScanOutcome outcomeuintptr_t addressuint64_t nspub name: salamander::Strpub pattern: salamander::Strpub start: usizepub length: usizepub original: boolpub outcome: wraith::DiagnosticsScanOutcomepub address: usizepub ns: u64name: []const u8pattern: []const u8start: usizelength: usizeoriginal: booloutcome: Wraith.Diagnostics.ScanOutcomeaddress: usizens: u64sal_string namesal_string patternuintptr_t startuintptr_t lengthbool originalWraith_Diagnostics_ScanOutcome outcomeuintptr_t addressuint64_t nsDiagnostics.ScanRecord
Section titled “Diagnostics.ScanRecord”A scan, saying which copy of the code it read
A struct, 0x48 bytes, aligned to 8.
| Offset | Field | Type | |
|---|---|---|---|
| 0x0 | name |
string |
|
| 0x10 | pattern |
string |
|
| 0x20 | start |
usize |
|
| 0x28 | length |
usize |
|
| 0x30 | source |
Addresses.Source |
|
| 0x31 | first_match |
bool |
Took the first of several matches |
| 0x32 | outcome |
Diagnostics.ScanOutcome |
|
| 0x38 | address |
usize |
|
| 0x40 | ns |
u64 |
name: stringpattern: stringstart: numberlength: numbersource: Wraith.Addresses.Source | Wraith.Addresses.SourceNamefirst_match: booleanoutcome: Wraith.Diagnostics.ScanOutcome | Wraith.Diagnostics.ScanOutcomeNameaddress: numberns: bigintname: stringpattern: stringstart: integerlength: integersource: Wraith.Addresses.Source|Wraith.Addresses.SourceNamefirst_match: booleanoutcome: Wraith.Diagnostics.ScanOutcome|Wraith.Diagnostics.ScanOutcomeNameaddress: integerns: integerstring Namestring Patternnuint Startnuint LengthWraith.Addresses.Source Sourcebool FirstMatchWraith.Diagnostics.ScanOutcome Outcomenuint Addressulong Nssal::String namesal::String patternuintptr_t startuintptr_t lengthWraith::Addresses_Source sourcebool first_matchWraith::Diagnostics_ScanOutcome outcomeuintptr_t addressuint64_t nspub name: salamander::Strpub pattern: salamander::Strpub start: usizepub length: usizepub source: wraith::AddressesSourcepub first_match: boolpub outcome: wraith::DiagnosticsScanOutcomepub address: usizepub ns: u64name: []const u8pattern: []const u8start: usizelength: usizesource: Wraith.Addresses.Sourcefirst_match: booloutcome: Wraith.Diagnostics.ScanOutcomeaddress: usizens: u64sal_string namesal_string patternuintptr_t startuintptr_t lengthWraith_Addresses_Source sourcebool first_matchWraith_Diagnostics_ScanOutcome outcomeuintptr_t addressuint64_t nsDiagnostics.ScanHit
Section titled “Diagnostics.ScanHit”Where a scan matched, kept in Wraith’s sig cache. Address 0 is none
A struct, 0x10 bytes, aligned to 8.
| Offset | Field | Type | |
|---|---|---|---|
| 0x0 | address |
usize |
|
| 0x8 | source |
Addresses.Source |
address: numbersource: Wraith.Addresses.Source | Wraith.Addresses.SourceNameaddress: integersource: Wraith.Addresses.Source|Wraith.Addresses.SourceNamenuint AddressWraith.Addresses.Source Sourceuintptr_t addressWraith::Addresses_Source sourcepub address: usizepub source: wraith::AddressesSourceaddress: usizesource: Wraith.Addresses.Sourceuintptr_t addressWraith_Addresses_Source sourcewraith.io · Mods on the Hub · Get Wraith
Made with ♥ by Asgard
