p2r3 / spplice

Simple Portal 2 Package Loading Instrument for Convenient External modding
GNU General Public License v3.0
17 stars 2 forks source link

implemented command line arguments #13

Closed derdilla closed 2 years ago

derdilla commented 2 years ago

Why:

Command line arguments allow adding spplice mods to the start menu and help other processes to directly start a mod without complicated user interaction.

Arguments:

p2r3 commented 2 years ago

Tested -offline and -start odyssey, both confirmed working on Linux. Once someone tests this on Windows, I'll accept the pull request. Unfortunately, I can't do it myself at the moment.

Ideally we'd also check if -start works on locally installed packages, but I have no reason to doubt that it does.

derdilla commented 2 years ago

Tested -offline, -start odyssey, -start testmod and -start nomod on Windows 11, where testmod is a custom mod and nomod doesn't exist. The arguments work fine functionwise, however I am not getting console feedback when giving wrong arguments like which is different from the Linux behavior. This is issue persists when using the Neutralino.debug.log function, however when logging and log file are enabled in the config, Neutralino.debug.log is written to the file. I do not recommend using this as it wouldn't actually help the situation and is annoying for most users.

p2r3 commented 2 years ago

It seems that the JavaScript console isn't forwarded to the program's StdOut. Quite a shame, but I doubt anything can be done about it on our end.