Skip to content

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.

Get it with Api.diagnostics().

addZone(zone: number | bigint, version: number): void
removeZone(zone: number | bigint): void
addHeap(heap: number | bigint, version: number): void
removeHeap(heap: number | bigint): void
recordScan(scan: import("salamander").Given<Wraith.Diagnostics.SignatureScan>): void
original(start: number | bigint, length: number | bigint): number
recordScanFrom(scan: import("salamander").Given<Wraith.Diagnostics.ScanRecord>): void
codeCopy(start: number | bigint, length: number | bigint, source: Wraith.Addresses.Source | Wraith.Addresses.SourceName): number
cachedScan(start: number | bigint, length: number | bigint, pattern: string, first_match: boolean): Wraith.Diagnostics.ScanHit
cacheScan(start: number | bigint, length: number | bigint, pattern: string, first_match: boolean, hit: import("salamander").Given<Wraith.Diagnostics.ScanHit>): void

For the Signatures window, and named plugin.name in the address list when found

Uses Diagnostics.SignatureScan.

The unpatched copy of the game’s code from start, or 0

Like recordScan, with which copy it read

Uses Diagnostics.ScanRecord.

Where source’s copy of the game’s code from start is, or 0. Live has none

Uses Addresses.Source.

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.

Where it matched, for next time. Address 0 forgets it

Uses Diagnostics.ScanHit.

An enum of u8.

Value Name
0 found
1 not_found
2 not_unique

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: string
pattern: string
start: number
length: number
original: boolean
outcome: Wraith.Diagnostics.ScanOutcome | Wraith.Diagnostics.ScanOutcomeName
address: number
ns: bigint

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: string
pattern: string
start: number
length: number
source: Wraith.Addresses.Source | Wraith.Addresses.SourceName
first_match: boolean
outcome: Wraith.Diagnostics.ScanOutcome | Wraith.Diagnostics.ScanOutcomeName
address: number
ns: bigint

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: number
source: Wraith.Addresses.Source | Wraith.Addresses.SourceName

Made with ♥ by Asgard