Added some debug stuff
Hopefully this will be useful in tracking down dimension/rendermode issues
This commit is contained in:
@@ -424,6 +424,7 @@ dir but you forgot to put quotes around the directory, since it contains spaces.
|
|||||||
tex = texcache[texopts_key]
|
tex = texcache[texopts_key]
|
||||||
|
|
||||||
try:
|
try:
|
||||||
|
logging.debug("Asking for regionset %r" % render['dimension'][1])
|
||||||
rset = w.get_regionset(render['dimension'][1])
|
rset = w.get_regionset(render['dimension'][1])
|
||||||
except IndexError:
|
except IndexError:
|
||||||
logging.error("Sorry, I can't find anything to render! Are you sure there are .mca files in the world directory?")
|
logging.error("Sorry, I can't find anything to render! Are you sure there are .mca files in the world directory?")
|
||||||
|
|||||||
@@ -154,6 +154,7 @@ class World(object):
|
|||||||
return self.regionsets[index]
|
return self.regionsets[index]
|
||||||
else: # assume a get_type() value
|
else: # assume a get_type() value
|
||||||
candids = [x for x in self.regionsets if x.get_type() == index]
|
candids = [x for x in self.regionsets if x.get_type() == index]
|
||||||
|
logging.debug("You asked for %r, and I found the following candids: %r", index, candids)
|
||||||
if len(candids) > 0:
|
if len(candids) > 0:
|
||||||
return candids[0]
|
return candids[0]
|
||||||
else:
|
else:
|
||||||
@@ -249,6 +250,8 @@ class RegionSet(object):
|
|||||||
"""
|
"""
|
||||||
self.regiondir = os.path.normpath(regiondir)
|
self.regiondir = os.path.normpath(regiondir)
|
||||||
self.rel = os.path.normpath(rel)
|
self.rel = os.path.normpath(rel)
|
||||||
|
logging.debug("regiondir is %r" % self.regiondir)
|
||||||
|
logging.debug("rel is %r" % self.rel)
|
||||||
|
|
||||||
# we want to get rid of /regions, if it exists
|
# we want to get rid of /regions, if it exists
|
||||||
if self.rel.endswith(os.path.normpath("/region")):
|
if self.rel.endswith(os.path.normpath("/region")):
|
||||||
@@ -260,7 +263,7 @@ class RegionSet(object):
|
|||||||
logging.warning("Unkown region type in %r", regiondir)
|
logging.warning("Unkown region type in %r", regiondir)
|
||||||
self.type = "__unknown"
|
self.type = "__unknown"
|
||||||
|
|
||||||
logging.debug("Scanning regions")
|
logging.debug("Scanning regions. Type is %r" % self.type)
|
||||||
|
|
||||||
# This is populated below. It is a mapping from (x,y) region coords to filename
|
# This is populated below. It is a mapping from (x,y) region coords to filename
|
||||||
self.regionfiles = {}
|
self.regionfiles = {}
|
||||||
|
|||||||
Reference in New Issue
Block a user