This script simply loads any command-line arguments into ARGV. RM doesn’t do this natively so we need to do it ourselves. This script is meant to be used for games that will be using custom game launchers that will supply command-line arguments.
Script: download here
In the script editor, place this above Modules
Access command-line arguments using ARGV variable in your scripts.
For your launchers, you would execute
Game.exe and pass in your desired arguments.
f you started the game using
game.exe test debug "some value"
You will get the following array in ARGV
["test", "debug", "some value"]
You can then use array operations to control how the game will respond depending on what kind of arguments are passed in. A simple example is when you want to set a switch when the argument “enable_debug” is passed in
$DEBUG = false if ARGV.include?("enable_debug") $DEBUG = true end
This script does not provide extra behavior when options are involved and does not parse them into a hash of options.