Re: The WIP Thread
Posted: Sun Sep 22, 2013 11:32 pm
darkest places makes me a little kid with an candy that chasing by slenderman.Pyroscourge wrote:"... And I still can't get a signal. Great."
darkest places makes me a little kid with an candy that chasing by slenderman.Pyroscourge wrote:"... And I still can't get a signal. Great."
Code: Select all
import sys, time, pydoc, io, traceback, os.path
import console, wads
from zdoom.textcolors import TEXTCOLOR_BLUE, TEXTCOLOR_RED
from zdoom.constants import BASEWAD
from zdoom.console_setup import ConsolePrinter
help = pydoc.help
# Helper functions
def BaseFileSearch (file, ext = None, lookfirstinprogdir = False):
if lookfirstinprogdir:
wad = os.path.join (sys.progdir, file)
if os.path.exists (wad):
return wad
if os.path.exists (file):
return wad
# TODO: Config file searching
if '.' not in file and ext:
return BaseFileSearch (file + "." + ext, None, lookfirstinprogdir)
return None
if True:
console.print ("Performing console setup...\n")
sys.stdin = ConsolePrinter ()
sys.stdout = ConsolePrinter (TEXTCOLOR_BLUE)
sys.stderr = ConsolePrinter (TEXTCOLOR_RED)
console.print ("Checking command-line arguments...\n")
# Will need to use a list to take care of this
console.print ("Loading {}...\n".format (BASEWAD))
basewad = wads.ResourceFile (BaseFileSearch (BASEWAD, None, True))
basewad_lumpdir = basewad.lumpnames ()
# FIXME: This reports less than there actually are because it returns the 8-letter names, not the full names.
# Make a function to return an alternate directory with full names. It should return None for wads, since they don't have full names.
print (" {} lumps\n".format (len (basewad_lumpdir)))
iwad_info = basewad.readlump (basewad_lumpdir["IWADINFO"])
# Make a scanner. Shouldn't be too hard with Python's string manipulation, of course.
#print (iwad_info.decode ("cp1252", "ignore"))
What map set puts in THAT many Revenants and Archies in the beginning of the map?TerminusEst13 wrote:samsara_lmsrules 1
samsara_dukedamage 30
samsara_dukedefense 15
Any blind map pick from your average slaughterwad, I guessEriance wrote:What map set puts in THAT many Revenants and Archies in the beginning of the map?
Spoiler:now with 100% less stolen content!
Try 'em with Russian Overkill. It's absolutely glorious.Mikk- wrote:Chillax - this is why I do not find slaughtermaps fun, at all. that aspect really ruined sunder for me.