Add support for command line arguments #14432
Open
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This adds command line arguments to Psych Engine, allowing for much quicker mod development.
Video showcase:
arg.mp4
To see what you can use, open the game up with
-h
or--help
:The help message uses docopt as reference.
Examples:
PsychEngine freeplay
PsychEngine play ballistic "Whitty" -s -d=hard
PsychEngine chart "Satin Panties" -d=hard
PsychEngine character dside-nat "DDTO D-Sides"
This can also be used with lime with the following:
lime test Project.xml windows -debug -args <args>
An example of this would be:
lime test Project.xml windows -debug -args play "Sugarcoat It" -d=hard
Given this was written for source mods using Psych 0.6, I have not had much time testing this to make sure it fully works with Psych 0.7+. Given that, I have set this PR as a draft. If there aren't any issues that crop up, I'll set it as ready for review.
Test Build (no base game assets)