-
Notifications
You must be signed in to change notification settings - Fork 6
Running via Command Line
As of v0.3.1, Level-Headed includes command line support. For now, support is basic, but functional. GUI components (such as message boxes and file dialogs) may still be used in some circumstances if things aren't configured properly or if an error occurs.
In order to function, Level-Headed needs to know what interpreter plugin to use. Consequently, each command must start with the -i [interpreter plugin] flag. The specified interpreter plugin should be named exactly the same as the plugin in the "./Plugins/Interperters" folder, but without the extension.
To generate a new SMB1 game with the SMB1_Compliance level generator, simply use the following command:
Level-Headed.exe -i SMB1_Compliance_To_SMB1
Level scripts can be specified via command line. The command assumes that a .lvls archive of the same name exists in the "./Levels/SMB1" folder. In this example, "It Plays Itself.lvls" exists in this folder. Bear in mind that the order of these commands is important, as the "-s [.lvls archive]" is actually being passed to the SMB1_Compliance_To_SMB1.dll.
Level-Headed.exe -i SMB1_Compliance_To_SMB1 -s "It Plays Itself"
Level-Headed's previously used settings are saved in a "Config" folder. These settings are loaded whenever the program launches via GUI or command line. If no config file is found, the default settings will be loaded. Settings can be easily changed by launching in GUI mode and clicking "Configure Settings". The settings will be saved to the config file on program exit.
Alternatively, these config files can be edited by hand. To edit them, simply open the config file for the specified plugin (e.g. "./Config/SMB1_Compliance_To_SMB1.cfg") in a text editor.