-
-
Notifications
You must be signed in to change notification settings - Fork 13
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Script manager #129
Script manager #129
Conversation
This is awesome! The order of scripts is pretty important as well- |
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. |
In the "Extract" and "Convert" parts of the script manager, you can now select a .rgssad archive. It'll look for a scripts file inside that archive automatically.
@zimberzimber since you requested this feature, I figured you might want to review it? |
This fixes a bug where if the project's script path is set to something beginning with "Game", the script manager searches for that in the root directory of the project instead of the Data directory of the project. The script manager now searches for the project's script path in the Data directory regardless of what the script path is set to.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
seemsgood
* feat: implement script manager for RPG Maker XP * feat: script manager now works for VX/VXA scripts as well * fix: fix error when extracting every script at the same time * feat: script manager now supports JSON/YAML/RON * feat: add scripts conversion to script manager * chore: clippy * feat: allow selecting .rgssad archive as scripts file In the "Extract" and "Convert" parts of the script manager, you can now select a .rgssad archive. It'll look for a scripts file inside that archive automatically. * feat: read/write script order to _scripts.txt * fix: fix edge case in `get_scripts_from_filesystem` This fixes a bug where if the project's script path is set to something beginning with "Game", the script manager searches for that in the root directory of the project instead of the Data directory of the project. The script manager now searches for the project's script path in the Data directory regardless of what the script path is set to.
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