ultimate-research / ssbh_lib

Reading and writing SSBH file formats in Rust
MIT License
8 stars 3 forks source link

Command Line Recomposition #152

Closed Messyproduct closed 11 months ago

Messyproduct commented 11 months ago

I previously had a version from 2021 installed and the current version broke a feature I used in a script

in order to decompile a nuanmb into a json file I would run this command with a full path: "E:\Documents\Smash Ultimate Modding\tools\ssbh_lib_json\ssbh_data_json.exe" "E:\Documents\Smash Ultimate Modding\tools\Wifi Safe Animation Maker\IN_NUANMB\b02escapef.nuanmb" "E:\Documents\Smash Ultimate Modding\tools\Wifi Safe Animation Maker\IN_JSON\b02escapef.nuanmb.json"

in order to recompile a json file into a nuanmb I would run this command with a full path: "E:\Documents\Smash Ultimate Modding\tools\ssbh_lib_json\ssbh_data_json.exe" "E:\Documents\Smash Ultimate Modding\tools\Wifi Safe Animation Maker\OUT_JSON\b02escapef.nuanmb.json" "E:\Documents\Smash Ultimate Modding\tools\Wifi Safe Animation Maker\OUT_NUANMB\b02escapef.nuanmb"

In the past this implementation would work, I recently updated and while the converting from nuanmb to JSON still works, converting from JSON to nuanmb results in the following error:

thread 'main' panicked at 'called `Result::unwrap()` on an `Err` value: Error("missing field `entries`", line: 167689, column: 1)', ssbh_data_json/src/main.rs:88:18 note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace

I would like to add additionally that previously I was able to drag and drop a JSON file from a different directory onto the exe to convert it and now it will result in the same error

Messyproduct commented 11 months ago

Found issue, script needs to be updated, disregard