-
Notifications
You must be signed in to change notification settings - Fork 1
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
add scripts for automated export of .ajmodel
files
#64
Conversation
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.
lotta stuff as a start, mostly small things and pretty easy though.
have more stuff in the pipeline, but just focus on these for now
Requested changes made to PR. Does not significantly alter functionality, but significant improvements made to formatting consistency, readability, and code integrity. Of note:
New supplemental change: |
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.
.ajmodel
files
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.
added some extra stuff after trying to run locally. got it working, changes are in commit names.
most notably fixed the recursive file search thing. also added a yarn script so we can run the thing more easily: yarn start export
(5dde75e
(#64))
LGTM. i'm gonna start further work on this on another branch
LGTM and works locally |
- bb-cli.js to allow for command line functionality with blockbench - ajexport.js & associated config file for automated animated java exporting, to be passed to blockbench and executed from command line - Currently requires a modified version of animated java
- specifies prettier - also auto-changed other formatting? (unclear cause)
- Changing default formatter for json seems to have changed the workspace file which then defaulted to using json default formatting which then changed the formatting of the workspace file :)))
- Is this the best strategy?
- re-added spacing in workspace - moved json and jsonc formatter declaration
- add linting support for modules - ajexport script exported as async (now properly handled by bb-cli) - reverted old workspace file changes (user settings issue resolved)
Co-authored-by: Afro <[email protected]>
Co-authored-by: Afro <[email protected]>
Co-authored-by: Afro <[email protected]>
- was accidentally added during `friendliness-pellets` development: ca544f5#diff-596e795db462b6f907d978c7c1f0b55f7143b20a2a020cfef06c11074e1e9211 - good example of why we need #8 done to avoid thoose accidents
- should be no difference functionally
d477984
to
be2355d
Compare
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.
LGTM thx for rebasing correctly
Summary
This PR addresses #8 and adds three files:
The bb-cli.js script must be loaded from file as a plugin within Blockbench and can then be used to execute scripts from the command line. Usage is as follows:
NOTE: Since the scripts are executed from the Blockbench directory, the script must either be moved to the BB directory or a full path must be provided.
The ajexport.js script is a script that automatically exports .ajmodel files indicated by a directory with the config.json file. The config file is also used to provide the target data pack and resource pack files, as well as locate the assets necessary for Animated Java / Blockbench export. These currently must be changed manually.
NOTE: Currently, the ajexport.js script requires a modified version of Animated Java that exposes the safeExportProject() function to the AJ API. A repository containing such a modification can be found here:
Test plan
Not currently planned at this stage.
Reproducing in-game
N/A
Preview
Supplemental changes
yarn start export
script