2024-12-31 18:40:27 -08:00
2024-12-31 18:40:27 -08:00
2024-12-30 04:36:10 -08:00
2024-12-30 04:36:10 -08:00
2024-12-30 04:36:10 -08:00
2024-12-30 04:47:03 -08:00
2024-12-30 04:47:03 -08:00
2024-12-31 03:59:54 -08:00

Roblox Bhop/Surf Bot File Format

Example

use strafesnet_roblox_bot_file::{File,TimedBlockId};

let file=std::fs::File::open("bot_file")?;
let input=std::io::BufReader::new(file);
let mut bot_file=File::new(input)?;
for &TimedBlockId{time,block_id} in &bot_file.header.offline_blocks_timeline{
	// header is immutably borrowed
	// while data is mutably borrowed
	let block_info=bot_file.header.block_info(block_id)?;
	let block=bot_file.data.read_block_info(block_info)?;
	// offline blocks include the following event types:
	// World, Gravity, Run, Camera, Setting
}
for &TimedBlockId{time,block_id} in &bot_file.header.realtime_blocks_timeline{
	let block_info=bot_file.header.block_info(block_id)?;
	let block=bot_file.data.read_block_info(block_info)?;
	// realtime blocks include the following event types:
	// Input, Output, Sound
}

License

Licensed under either of Apache License, Version 2.0 or MIT license at your option.
Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in this crate by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.
Description
No description provided
Readme 138 KiB
Languages
Rust 100%