Closed TTFH closed 3 years ago
I changed
let dirs = find_teardown_dirs().unwrap();
to
let dirs = Directories {
mods: PathBuf::from(r"C:\Users\User\Documents\Teardown\mods"),
progress: PathBuf::from(r"C:\Users\User\AppData\Local\Teardown"),
main: PathBuf::from(r"E:\JUEGOS\SteamLibrary\steamapps\common\Teardown")
};
and now I can open the graphic interface. But when I click on Convert to Editor I get the next error:
thread '<unnamed>' panicked at 'called
Result::unwrap()on an
Errvalue: Parsing requires 4 bytes/chars', editor-format\src\lib.rs:226:38
lib.rs:226:38: `VoxStoreFile::new(self.hash_vox_dir.join(format!("{}.vox", hash_n_to_str(hash_n))), palette).unwrap()
Ok, so models are extracted to SteamLibrary\steamapps\common\Teardown\data\vox\hash, just copying the folder hash to the mods/converted and change hash/ to MODS/hash/ in main.xml and the map can be opened in the editor.
I compiled the aplication with:
cargo run --release --package teardown-converter
When I open it I got the next error:thread 'main' panicked at 'called
Result::unwrap()on an
Errvalue: Parsing error.', user-interface\src\graphical\mod.rs:172:41
That it's probably related to the paths on main.rsI try changing that to:
or
But the crash still occurs.
Can you please add an option to select the paths in the graphic interface? and avoid the crash to happen.