This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/php | |
<?php | |
// TEXTMAP stats script for DoomWiki.org, by Frans P. de Vries (Xymph) | |
$usage = "Usage: {$argv[0]} TEXTMAP-file\n"; | |
// check input parameter | |
if ($argc != 2) { | |
echo $usage; | |
exit(1); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/php | |
<?php | |
// TEXTMAP extra monsters & equipment script for DoomWiki.org, by Frans P. de Vries (Xymph) | |
$usage = "Usage: {$argv[0]} TEXTMAP-file\n"; | |
// check input parameter | |
if ($argc != 2) { | |
echo $usage; | |
exit(1); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/python | |
# texture pack statistics, by Frans P. de Vries (Xymph) | |
# discussion: https://doomwiki.org/wiki/User_talk:Redneckerz#Texture.2Fpalette_automation.3F | |
import sys, getopt, pprint | |
from omg import * | |
from omg.txdef import * | |
pp = pprint.PrettyPrinter(indent=2) | |
class SwitchDef(WADStruct): |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/python3 | |
# based on https://sourceforge.net/p/omgifol/code/HEAD/tree/demo/drawmaps.py | |
# original by Fredrik Johansson, 2006-12-11 | |
# updated by Frans P. de Vries, 2016-04-26/2018-09-05/2018-10-04 | |
import sys, getopt | |
from omg import * | |
from PIL import Image, ImageDraw, ImageFont | |
verbose = False |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/php | |
<?php | |
// TEXTMAP sector position script for DoomWiki.org, by Frans P. de Vries (Xymph) | |
$usage = "Usage: {$argv[0]} [-v] TEXTMAP-file sector-id\n"; | |
// check input parameters | |
$verbose = false; | |
if (isset($argv[1]) && $argv[1] == '-v') { | |
$verbose = true; | |
unset($argv[1]); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/php -q | |
<?php | |
// count total number of unique colors used in palettes of Doom-engine games, | |
// optionally skipping unused palettes and truncating 8-bits colors to 6-bits | |
// by Frans P. de Vries (Xymph) | |
define('PALSIZE', 3 * 256); | |
define('USAGE', "usage: {$argv[0]} [-u] [-t] -d|-h|-x|-s PLAYPAL-file\n"); | |
// check options & file parameter |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/python3 | |
# search maps for linedefs and things invoking specials, by Frans P. de Vries (Xymph) | |
import sys | |
from omg import * | |
def searchmap(wad, name, special, theid): | |
try: | |
edit = UMapEditor(wad.udmfmaps[name]) | |
except KeyError: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/python3 | |
# search maps for things of the given type, by Frans P. de Vries (Xymph) | |
import sys | |
from omg import * | |
def searchmap(wad, name, thingtype): | |
try: | |
edit = UMapEditor(wad.udmfmaps[name]) | |
except KeyError: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/python3 | |
# search maps for secret exit linedefs, by Frans P. de Vries (Xymph) | |
import sys, getopt | |
from omg import * | |
def searchmap(wad, name, alwys): | |
try: | |
edit = UMapEditor(wad.udmfmaps[name]) | |
except KeyError: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/python3 | |
# search maps for no monsters nor secret sectors, by Frans P. de Vries (Xymph) | |
import sys | |
from omg import * | |
def searchmap(wad, name): | |
try: | |
edit = UMapEditor(wad.udmfmaps[name]) | |
except KeyError: |
OlderNewer