dolphin-memory-reader
TypeScript icon, indicating that this package has built-in type declarations

0.6.7 • Public • Published

Dolphin Memory Reader

Initialize

import DolphinMemory from "dolphin-memory-reader";
import { ByteSize } from 'dolphin-memory-reader/dist/types/enum';
import os from "os"

async readFromMemory() {
    if (os.platform() !== "win32") return;

    const memory = new DolphinMemory();

    // Looks for a running process once every second
    await memory.init();

    // Current stage Id address
    const address = 0x8049e6c8 + 0x88 + 0x03;

    // Throws error if not able to read memory address or dolphin is no longer active when called
    const byte = memory.read(address, ByteSize.U8);

    console.log("Byte from memory", byte);
}

Info

Package is written in rust and is currently only supported for windows and tested on Super Smash Bros Melee

Contribute

To be able to run this project locally you will need to have Rust installed on your computer with Nightly

Package Sidebar

Install

npm i dolphin-memory-reader

Weekly Downloads

0

Version

0.6.7

License

MIT

Unpacked Size

221 kB

Total Files

8

Last publish

Collaborators

  • sindrevatnaland