This tool allows you to fix corrupted images' metadata in a resource pack, where the images have been corrupted to be protected.
This tool will not overcome any protection to the zip archive itself. See a program such as MCRPX for that.
- Go to the releases tab
- Download for your system and unzip it
- (Step for linux users only) run
chmod +xon the executable - Open a command prompt (windows) and run rpfixer.exe
- Open a terminal / terminal emulator (linux) and run rpfixer.exe
- Download the Rust-Lang for your system (WARNING: THIS IS LIKE 10GIGABYTES ON WINDOWS)
- run
cargo install rpfixer - Then run the
rpfixercommand
- You really should not do this
- download the Rust-Lang for your system (WARNING: THIS IS LIKE 10GIGABYTES ON WINDOWS)
- download this repository
- run
cargo build --releasein the directory - check
./target/release - run
rpfixerif you are on linux/mac (RUNchmod +x rpfixerON IT FIRST)rpfixerif you are on windows
Check --help for syntax.
Example syntax: rpfixer --path ./filepath/
- The library has one function:
rpfixer::fix. Use aVec<u8>in it.
use std::fs;
fn main() {
let frfr: Vec<u8> = fs::read("filepath.png").expect("wtf the path doesnt exist");
let mut fr: Vec<u8> = rpfixer::fix(frfr);
fs::write("filepath.png", fr).expect("file could not write btw");
}It's all MIT, except the example corrupted inventory.png and inventory-fix.png which is courtesy of Wynncraft.
Zeer you better not come after me for this one, you guys still haven't answered my gdpr req yet