-file

From Doomsday Wiki
Jump to: navigation, search
-file
Usage: -file F
Aliases: -f
Quick reference

The -file option is used to load data files (e.g., WAD, PK3, LMP) from the command line. The option loads in the given WAD file as a startup WAD (i.e., it can't be unloaded with the unload command).

Parameters

One or more file names.

Examples

You can give more than one WAD file as the parameter:

-file primary.wad secondary.wad tertiary.wad

In addition to normal WAD files, the -file option can be used to load any type of data files, for instance PCX images. An example:

-file image.pcx

This would load the file image.pcx from the runtime directory (or, as a fallback, the data directory). When loading files in this manner, the engine will treat the file as if it was a WAD file with a single data lump (and no WAD directory). The lump gets its name from the base of the file name, which in the example's case would be IMAGE. Anyone can then refer to the data lump using that name, just as if it was included in a WAD file.

Details

Any file loaded with the -file option can't be unloaded from memory at runtime using the unload command. This is mainly a precaution, since unloading the main WAD file of the game or any data related to it would lead to fatal errors.

See also

This is an exemplary article. It is considered to follow the DEW documentation guidelines in such a way that it serves as an example of good practices.