$ rndmap -h
Usage rndpen [-a minroomsize] [-b maxroomsize] \ [-c mincorridorlength] [-d maxcorridorlength] \ [-e totalcorridorlength] [-h] [-o outputfile] \ [-s seed] [-x maxx] [-y maxy] -a minroomsize (default is 6) -b maxroomsize (default is 13) -c mincorridorsize (default is 15) -d maxcorridorsize (default is 70) -e totalcorridorlength (default is 300) -o outputfile (default is stdout) -s seed (default is 3) -x minx for whole map (default is 120) -y maxy for whole map (default is 80)
####################### ###### ###### ###### ###### ######..######...## ##### #####...## #...####### ###...######## #.# #.# #.# ###### ################...## ### #.# #.# ########.# #.###### #.###### ### ###### #### ## ## ## ## ## ######
$ cd $HOME/Sandpit/chisel/python
$ python txt2pen.py -h
-d debugging -h help -V verbose -v version -o outputfile name
def handleOptions (): global debugging, verbose, outputName outputName = None try: optlist, l = getopt.getopt(sys.argv[1:], ':dho:vV') for opt in optlist: if opt[0] == '-d': debugging = True elif opt[0] == '-h': usage (0) elif opt[0] == '-o': outputName = opt[1] elif opt[0] == '-v': printf ("txtpen version " + str (versionNumber) + "\n") sys.exit (0) elif opt[0] == '-V': verbose = True if l != []: return (l[0], outputName) except getopt.GetoptError: usage (1) return (None, outputName)
$ cd $HOME/Sandpit/chisel/python
$ python pen2map.py -h
Usage: pen2map [-c filename.ss] [-dhmtvV] [-o outputfile] inputfile -c filename.ss use filename.ss as the defaults for the map file -d debugging -e provide comments in the map file -g type game type. The type must be 'single' or 'deathmatch' -h help -m create a doom3 map file from the pen file -s generate statistics about the map file -t create a txt file from the pen file -V generate verbose information -v print the version -o outputfile place output into outputfile
# style sheet for simple doom3 maps define floor textures/hell/qfloor define portal textures/editor/visportal define open textures/editor/visportal define closed textures/hell/wood1 define secret textures/hell/bricks1a_d define wall textures/hell/cbrick2b define ceiling textures/hell/wood1
assignment := lhs "=" rhs =:
ROOM 1 WALL 1 21 18 21 18 21 18 14 18 14 1 14 1 14 1 21 DOOR 18 18 18 17 STATUS OPEN LEADS TO 2 MONSTER python_doommarine_mp AT 13 18 LIGHT AT 12 20 LIGHT AT 4 15 LIGHT AT 15 15 SPAWN PLAYER AT 3 18 END
FileUnit := RoomDesc { RoomDesc } [ RandomTreasure ] "END." =: RoomDesc := 'ROOM' Integer { WallDesc | DoorDesc | TreasureDesc } 'END' =: WallDesc := 'WALL' WallCoords { WallCoords } =: WallCoords := Integer Integer Integer Integer =: DoorDesc := 'DOOR' DoorCoords { DoorCoords } =:
DoorCoords := Integer Integer Integer Integer Status 'LEADS' 'TO' Integer =: Status := 'STATUS' ( 'OPEN' | 'CLOSED' | 'SECRET' ) =: TreasureDesc := 'TREASURE' 'AT' Integer Integer 'IS' Integer =: RandomTreasure := 'RANDOMIZE' 'TREASURE' Integer { Integer } =:
This document was produced using groff-1.22.