Closed white-axe closed 3 months ago
This is awesome!
It'd be really nice to be able to extract scripts from an rgssad
, or the currently loaded project though.
The order of scripts is pretty important as well- Main
(or an equivalent) has to be the last loaded script, so it'd be really nice if the tool could order scripts too!
The extract mode already does try loading the scripts file from the currently loaded project by default. I'll add the ability to select a .rgssad archive and have it look for the scripts file inside the archive automatically, though. As for the ordering of the scripts, I'll make it write the order of the scripts to _scripts.txt in the output folder when extracting and then read _scripts.txt from the input folder when creating.
@zimberzimber since you requested this feature, I figured you might want to review it?
Connections
Description Adds a "Script Manager" under the Tools menu in the top bar that can be used to extract the scripts from Scripts.rxdata, create Scripts.rxdata from scripts or convert Scripts.rxdata to another format (JSON/YAML/RON).
Testing I tested that it's capable of extracting the scripts from the following example games from https://www.rpgmakerweb.com/additional-downloads:
Checklist
cargo fmt
.cargo clippy
. If applicable, add:--target wasm32-unknown-unknown -Z build-std=std,panic_abort
cargo build --release
trunk build --release