Skip to content

Addresses

The game’s address list, by id like player.health. A plugin’s own go under its name. Any thread.

Get it with Api.addresses().

get(id: string): number
resolve(text: string, names: Array<import("salamander").Given<Wraith.Addresses.Name>>): number
add(entry: import("salamander").Given<Wraith.Addresses.Entry>): void
remove(id: string): void
find(text: string, names: Array<import("salamander").Given<Wraith.Addresses.Name>>): Wraith.Addresses.Found
setSources(sources: import("salamander").Given<Wraith.Addresses.Sources>): void
activeSources(): Wraith.Addresses.Sources

Where the entry with this id is now.

Fails with AddressError.

Where location text is now. names come before the list’s.

Fails with AddressError. Uses Addresses.Name.

Until it’s removed or the plugin goes. Not saved.

Fails with AddressError. Uses Addresses.Entry.

Only the plugin’s own.

Like resolve, saying which copy it was found in. Non-live means the code’s hooked now.

Fails with AddressError. Uses Addresses.Name, Addresses.Found.

Which copies this plugin’s lookups may use. Defaults to Wraith’s setting; a sig’s Sources(..) wins.

Uses Addresses.Sources.

What this plugin’s lookups may use now.

Uses Addresses.Sources.

What can go wrong, besides Cancelled, Unsupported and Gone.

Code Error
1 NotFound
2 Unreadable
3 InvalidAddress Location text that doesn’t parse
4 InvalidId Empty, or has spaces
5 AlreadyAdded
6 Failed

A name for an address, like a tweak’s @data, for location text and asm.

A struct, 0x18 bytes, aligned to 8.

Offset Field Type
0x0 name string
0x10 address usize
name: string
address: number

Which copy of the game’s code an address came from: snapshot is taken at startup, disk is the exe.

An enum of u8.

Value Name
0 live
1 snapshot
2 disk

Which copies lookups may use, tried live, then snapshot, then disk.

A struct, 0x3 bytes, aligned to 1.

Offset Field Type
0x0 live bool
0x1 snapshot bool
0x2 disk bool
live: boolean
snapshot: boolean
disk: boolean

An address and which copy of the code it came from.

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

A struct, 0x58 bytes, aligned to 8.

Offset Field Type
0x0 id string Unique for the plugin
0x10 address string Location text, like game.exe+0x1234 or sig("48 8B ??", Rip)
0x20 offsets []i64 Pointers to follow, each one’s offset added after
0x30 name string Pointers to follow, each one’s offset added after
0x40 type string What’s there, like u32 or a schema type’s name
0x50 size u32 Bytes, so addresses inside it are named after it. 0 is just the one.
id: string
address: string
offsets: Array<bigint>
name: string
type: string
size: number

Made with ♥ by Asgard