Skip to content
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 rascript-cli command line interpreter #434

Merged
merged 2 commits into from
Feb 27, 2024
Merged

add rascript-cli command line interpreter #434

merged 2 commits into from
Feb 27, 2024

Conversation

Jamiras
Copy link
Owner

@Jamiras Jamiras commented Feb 18, 2024

Allows rascript files to be processed from the command line for people who prefer to use other editors (like VSCode).

It does not provide the same feature set however. There's no way to see what changes are being applied to individual achievements, and only update specific achievements. The tool effectively does an Update Local with everything in the Update column checked. It will abort if there are any errors.

The tool has one required parameter.

rascript-cli 1.13.0
========================
Usage: rascript-cli [-v] [-q] [-i script] [-o outdir] [-a author]

  -v            (optional) enabled verbose messages
  -q            (optional) disable all messages
  -i script     specifies the input file to process
  -o outdir     (optional) specifies the output directory to write to [default: current directory]
                will append RACache\Data to the specified directory if an RACache\Data subdirectoy exists
  -a author     (optional) specifies the author to attribute the achievements to [default: Author]

-i specifies the path to the input file.
-o specifies the path to the output directory. If not provided, the current directory will be used.
-a specifies which author to use in the XXX-User.txt file. If not specified, Author will be used. When uploaded to the server, the logged in user will be attributed to the new achievements.
-q suppresses all output
-v adds additional output

Some examples:
image

The first run is a successful run. 20 achievements and 1 leaderboard were written to the XXX-User.txt file, and 987 bytes were written to the XXX-Rich.txt file.

The second run illustrates an error, and reflects the same error as would be reported in the UI:
image

@Jamiras Jamiras merged commit e2ebbd0 into master Feb 27, 2024
1 check passed
@Jamiras Jamiras deleted the rascript-cli branch February 27, 2024 14:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant