#unsafe #game #mumble #operating-systems #mumblelink

mumblelink_reader

Mumblelink reader for Windows & Unix based operating systems

11 releases

0.3.5 Sep 5, 2021
0.3.4 Sep 2, 2021
0.2.3 Sep 1, 2021
0.1.0 Aug 31, 2021

#412 in Operating systems

Download history 32/week @ 2024-03-28 9/week @ 2024-04-04 1/week @ 2024-06-20 2/week @ 2024-06-27 68/week @ 2024-07-04

71 downloads per month

Custom license

16KB
277 lines

mumblelink_reader

use mumblelink_reader::mumble_link_handler::MumbleLinkHandler;
use mumblelink_reader::mumble_link::MumbleLinkReader;
use std::{thread, time};

fn main() {
    let handler = MumbleLinkHandler::new().unwrap();
    loop {
        let linked_memory = handler.read().unwrap();
        println!("{:?}", linked_memory);
        thread::sleep(time::Duration::from_millis(50));
    }
}

Reading data from context (eg: Guildwars2)

use mumblelink_reader::mumble_link_handler::MumbleLinkHandler;
use mumblelink_reader::mumble_link::{MumbleLinkReader, MumbleLinkDataReader};
use std::{thread, time};

#[derive(Copy, Clone, Debug)]
#[repr(C)]
struct GuildwarsContext {
    pub server_address: [u8; 28],
    pub map_id: u32,
    pub map_type: u32,
    pub shard_id: u32,
    pub instance: u32,
    pub build_id: u32,
    pub ui_state: u32,
    pub compass_width: u16,
    pub compass_height: u16,
    pub compass_rotation: f32,
    pub player_x: f32,
    pub player_y: f32,
    pub map_center_x: f32,
    pub map_center_y: f32,
    pub map_scale: f32,
    pub process_id: u32,
    pub mount_index: u8,
}

fn main() {
    let handler = MumbleLinkHandler::new().unwrap();
    loop {
        let linked_memory = handler.read().unwrap();
        println!("{:?}", linked_memory.read_context_into_struct::<GuildwarsContext>());
        thread::sleep(time::Duration::from_millis(50));
    }
}

TODO:

  • Proper Unix based OS support
  • Test suite
  • Java JNI & dylib support (C#)

Dependencies

~0.3–1MB
~19K SLoC