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 support for command line arguments #14432

Open
wants to merge 1 commit into
base: experimental
Choose a base branch
from

Conversation

ActualMandM
Copy link
Contributor

@ActualMandM ActualMandM commented Apr 6, 2024

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:

2024-04-06_15-43-22_WindowsTerminal

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)

@Stefan2008Git
Copy link

Finally someone did a better thing for easiest modding, but with terminal

@DetectiveBaldi
Copy link
Contributor

the Flixel debugger can already be used for switching states, and a bunch of other miscellaneous things, I don't see much use for this?

@ActualMandM
Copy link
Contributor Author

Didn't know you could switch states with the Flixel debugger. This works in both Debug and in Release builds, for if you're making a mod folder mod.

@ActualMandM
Copy link
Contributor Author

ActualMandM commented Apr 30, 2024

No issues were reported, so setting as ready for review.

@ActualMandM ActualMandM marked this pull request as ready for review April 30, 2024 18:07
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.

None yet

3 participants