Skip to content

Instantly share code, notes, and snippets.

@logikal
Created March 20, 2012 05:27
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save logikal/2131662 to your computer and use it in GitHub Desktop.
Save logikal/2131662 to your computer and use it in GitHub Desktop.
Overviewer POI issues
# Marker definitions
def homeFilter(poi):
"Homes"
return poi[id] == 'Sign' and (\
'.' in poi['Text1'])
def signFilter(poi):
"All signs"
return poi['id'] == 'Sign'
worlds["My world"] = "/stripe//minecraft/worlds/world/world"
renders["normalrender"] = {
"world": "My world",
"title": "Daytime",
"rendermode": smooth_lighting,
"markers": [signFilter, homeFilter],
}
renders["Nighttime"] = {
"world": "My world",
"title": "Nighttime",
"rendermode": smooth_night,
}
# Commented out since no one has gone to the nether
#renders["nether"] = {
# "world": "My world",
# "title": "Nether",
# "rendermode": nether_smooth_lighting,
# "dimension": "nether",
#}
texturepath = "/stripe/minecraft/"
outputdir = "/var/www/minecraft"
@logikal
Copy link
Author

logikal commented Mar 20, 2012

Running Overviewer complied from #ff0f4fe

> /usr/local/bin/overviewer.py --version
Minecraft Overviewer 0.9.58 (ff0f4fe)
built on Sun Mar 18 12:35:24 2012

From the log:

Found the following render thing: OrderedDict([('imgformat', 'png'),
('imgquality', 95), ('title', 'Daytime'), ('rerenderprob', 0.0), ('bgcolor',
(26, 26, 26, 0)), ('optimizeimg', False), ('world',
'/stripe/minecraft/worlds/world/world'), ('northdirection', 0), ('rendermode',
[<overviewer_core.rendermodes.Base object at 0x11a8a50>,
<overviewer_core.rendermodes.EdgeLines object at 0x11a8a90>,
<overviewer_core.rendermodes.SmoothLighting object at 0x11a8ad0>]), ('markers',
[<function signFilter at 0x1280c08>, <function homeFilter at 0x1217ed8>]),
('dimension', 'default'), ('texturepath', '/stripe/minecraft/'),
('worldname_orig', 'My world')])

So it's definitely seeing my filters. I'm assuming I've written an error in my filter or in the way I've specified them in the "markers" line.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment