Skip to content

Instantly share code, notes, and snippets.

@Xymph
Xymph / listdir.py
Last active February 26, 2022 19:44
Omgifol (https://doomwiki.org/wiki/Omgifol) script to list a WAD's directory with lump names & sizes, or comprehensive info from the library itself
#!/usr/bin/python
# list WAD directory with lump names/sizes or verbose info from Omgifol itself, by Frans P. de Vries (Xymph)
import sys, getopt
from omg import *
if len(sys.argv) < 2:
print("\n Omgifol script: list WAD directory\n")
print(" Usage:")
print(" listdir.py [-v] source.wad\n")
@Xymph
Xymph / slotfile.py
Created February 26, 2022 12:44
Omgifol (https://doomwiki.org/wiki/Omgifol) script to set a WAD's map slot from its filename
#!/usr/bin/python
# set WAD's map slot from filename, by Frans P. de Vries (Xymph)
import sys, re
from omg import *
if len(sys.argv) < 2:
print("\n Omgifol script: set slot from filename\n")
print(" Usage:")
print(" slotfile.py slot##.wad [-s oldslot]\n")
@Xymph
Xymph / searchSector.py
Last active August 21, 2022 10:43
Omgifol (https://doomwiki.org/wiki/Omgifol) script to search for a sector in maps and show its sidedefs & linedefs; for DoomWiki.org
#!/usr/bin/python3
# search maps for a sector's sidedefs/linedefs, by Frans P. de Vries (Xymph)
import sys
from omg import *
def searchmap(wad, name, thesector):
try:
edit = UMapEditor(wad.udmfmaps[name])
except KeyError: