To use the script you call the parser script from the command line through the Python interpreter.
To do so type the following into the command line:
python parser.py --h
This command tells the Python interpreter to run the script
parser.py if it can be found in the current directory. The
--h option tells the script to print its usage instructions which should look something like the following:
usage: parser.py [-h] [-a AUTHOR] [-w [WALL_WIDTH]] [-v] [-e EXTENSION]
[-g GRID_COLOR] [--version]
[M] F [F ...]
Converts one or more df2vtt files into a Fantasy Grounds module.
M The name for the output module
F One or more paths to df2vtt files to parse into a module
-h, --help show this help message and exit
-a AUTHOR Specify the module author (Default: DungeonFog)
-w [DOOR_WIDTH] Specify door width (Default: 10)
-v Whether detailed debugging output should be provided.
-e EXTENSION The desired file name extension for the output module file.
-g GRID_COLOR The grid color. (Default: 000F00AF)
--version show program's version number and exit
Once you can see that this is working you can try using the parser in the most basic way:
python parser.py \"MyModule\" \"input file 1.df2vtt\"
This will take the file
input file 1.df2vtt, if it can be found in the working directory, and include it in the output
MyModule.mod which, if the parser was successful, should appear in the working directory as well.
You may also specify multiple input files after the first, all of which will be included in the same module.