YoYoGames / GameMaker-Bugs

Public tracking for GameMaker bugs
26 stars 8 forks source link

[IDE] Add an option to supply command line argument to the program when running #7628

Open Grisgram opened 2 months ago

Grisgram commented 2 months ago

Is your feature request related to a problem?

Yes. Most professional games offer some features through the command line, be it --fullscreen or other things, sometimes even tweaks, special logging modes or enable/disable plugins/mods.

We can analyze the commandline through GML, but we can not TEST it. There's no option, like in VS or VS Code, to add some arguments to the running exe when we press F5/F6, so we can actually debug and test our command line analysis code.

Describe the solution you'd like

In the "Game Options" add a text box "Additional command line args" for each platform, that supports it.

Describe alternatives you've considered

To test it, we have to generate an .exe file, create the shortcut and try it out... that's, especially with YYC and the enormous compile times, no efficient way to implement this.

Additional context

I know about the -game argument and other things, GMS adds to the command line, so a perfect implementation would take away all the gms-internal arguments and put only those into the argument array ingame, that were applied manually

tabularelf commented 2 months ago

It would be even nicer if we could have it here instead of Game Options, but I do agree. It'd be really nice to just pass in any and all parameters to the runner. (The other kind of wokaround requires an extension and it doesn't work on every platform) image