Last active
August 29, 2015 14:12
-
-
Save mpgirro/abe487fbed85c8157c49 to your computer and use it in GitHub Desktop.
minecraft.disposia.org overviewer config file
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
# coding: utf8 | |
import os | |
def villageFilter(poi): | |
if poi['id'] == 'Village': | |
info = '' | |
if 'name' in poi.keys(): | |
info += poi['name'] + '\n' | |
if 'x' in poi.keys() and 'y' in poi.keys() and 'z' in poi.keys(): | |
info += str(poi['x']) + ' / ' + str(poi['y']) + ' / ' + str(poi['z']) + '\n' | |
if 'description' in poi.keys(): | |
info += poi['description'] + '\n' | |
return info | |
def industrialFilter(poi): | |
if poi['id'] == 'Industrial': | |
info = '' | |
if 'name' in poi.keys(): | |
info += poi['name'] + '\n' | |
if 'x' in poi.keys() and 'y' in poi.keys() and 'z' in poi.keys(): | |
info += str(poi['x']) + ' / ' + str(poi['y']) + ' / ' + str(poi['z']) + '\n' | |
if 'description' in poi.keys(): | |
info += poi['description'] + '\n' | |
return info | |
def towerFilter(poi): | |
if poi['id'] == 'Tower': | |
info = '' | |
if 'name' in poi.keys(): | |
info += poi['name'] + '\n' | |
if 'x' in poi.keys() and 'y' in poi.keys() and 'z' in poi.keys(): | |
info += str(poi['x']) + ' / ' + str(poi['y']) + ' / ' + str(poi['z']) + '\n' | |
if 'description' in poi.keys(): | |
info += poi['description'] + '\n' | |
return info | |
def farmFilter(poi): | |
if poi['id'] == 'Farm': | |
info = '' | |
if 'name' in poi.keys(): | |
info += poi['name'] + '\n' | |
if 'x' in poi.keys() and 'y' in poi.keys() and 'z' in poi.keys(): | |
info += str(poi['x']) + ' / ' + str(poi['y']) + ' / ' + str(poi['z']) + '\n' | |
if 'description' in poi.keys(): | |
info += poi['description'] + '\n' | |
return info | |
def shipFilter(poi): | |
if poi['id'] == 'Ship': | |
info = '' | |
if 'name' in poi.keys(): | |
info += poi['name'] + '\n' | |
if 'x' in poi.keys() and 'y' in poi.keys() and 'z' in poi.keys(): | |
info += str(poi['x']) + ' / ' + str(poi['y']) + ' / ' + str(poi['z']) + '\n' | |
if 'description' in poi.keys(): | |
info += poi['description'] + '\n' | |
return info | |
def portalFilter(poi): | |
if poi['id'] == 'Portal': | |
info = '' | |
if 'name' in poi.keys(): | |
info += poi['name'] + '\n' | |
if 'x' in poi.keys() and 'y' in poi.keys() and 'z' in poi.keys(): | |
info += str(poi['x']) + ' / ' + str(poi['y']) + ' / ' + str(poi['z']) + '\n' | |
if 'description' in poi.keys(): | |
info += poi['description'] + '\n' | |
return info | |
def pixelartFilter(poi): | |
if poi['id'] == 'PixelArt': | |
info = '' | |
if 'name' in poi.keys(): | |
info += poi['name'] + '\n' | |
if 'x' in poi.keys() and 'y' in poi.keys() and 'z' in poi.keys(): | |
info += str(poi['x']) + ' / ' + str(poi['y']) + ' / ' + str(poi['z']) + '\n' | |
if 'description' in poi.keys(): | |
info += poi['description'] + '\n' | |
return info | |
def infrastructureFilter(poi): | |
if poi['id'] == 'Infrastructure': | |
info = '' | |
if 'name' in poi.keys(): | |
info += poi['name'] + '\n' | |
if 'x' in poi.keys() and 'y' in poi.keys() and 'z' in poi.keys(): | |
info += str(poi['x']) + ' / ' + str(poi['y']) + ' / ' + str(poi['z']) + '\n' | |
if 'description' in poi.keys(): | |
info += poi['description'] + '\n' | |
return info | |
def agriculturalFilter(poi): | |
if poi['id'] == 'Agricultural': | |
info = '' | |
if 'name' in poi.keys(): | |
info += poi['name'] + '\n' | |
if 'x' in poi.keys() and 'y' in poi.keys() and 'z' in poi.keys(): | |
info += str(poi['x']) + ' / ' + str(poi['y']) + ' / ' + str(poi['z']) + '\n' | |
if 'description' in poi.keys(): | |
info += poi['description'] + '\n' | |
return info | |
def castleFilter(poi): | |
if poi['id'] == 'Castle': | |
info = '' | |
if 'name' in poi.keys(): | |
info += poi['name'] + '\n' | |
if 'x' in poi.keys() and 'y' in poi.keys() and 'z' in poi.keys(): | |
info += str(poi['x']) + ' / ' + str(poi['y']) + ' / ' + str(poi['z']) + '\n' | |
if 'description' in poi.keys(): | |
info += poi['description'] + '\n' | |
return info | |
def houseFilter(poi): | |
if poi['id'] == 'House': | |
info = '' | |
if 'name' in poi.keys(): | |
info += poi['name'] + '\n' | |
if 'x' in poi.keys() and 'y' in poi.keys() and 'z' in poi.keys(): | |
info += str(poi['x']) + ' / ' + str(poi['y']) + ' / ' + str(poi['z']) + '\n' | |
if 'description' in poi.keys(): | |
info += poi['description'] + '\n' | |
return info | |
# Stuff like Ocean Monuments, Desert / Jungle Temples, etc | |
def structureFilter(poi): | |
if poi['id'] == 'Structure': | |
info = '' | |
if 'name' in poi.keys(): | |
info += poi['name'] + '\n' | |
if 'x' in poi.keys() and 'y' in poi.keys() and 'z' in poi.keys(): | |
info += str(poi['x']) + ' / ' + str(poi['y']) + ' / ' + str(poi['z']) + '\n' | |
if 'description' in poi.keys(): | |
info += poi['description'] + '\n' | |
return info | |
def playerFilter(poi): | |
if poi['id'] == 'Player': | |
poi['icon'] = "http://overviewer.org/avatar/%s" % poi['EntityId'] | |
return "Last known location for %s" % poi['EntityId'] | |
def shelterFilter(poi): | |
if poi['id'] == 'Shelter': | |
html = '<div>' | |
kwargs = {} | |
if 'name' in poi.keys(): | |
html += '<span class="name">{name}</span><br />' | |
kwargs['name'] = poi['name'] | |
if 'x' in poi.keys() and 'y' in poi.keys() and 'z' in poi.keys(): | |
html += '<span class="coordinates">Coordinates: {x} / {y} / {z}</span><br />' | |
kwargs['x'] = poi['x'] | |
kwargs['y'] = poi['y'] | |
kwargs['z'] = poi['z'] | |
if 'description' in poi.keys(): | |
html += '<span class="description">{description}</span>' | |
kwargs['description'] = poi['description'] | |
html += '</div>' | |
try: | |
return (poi['name'], html.format(None,**kwargs)) | |
except KeyError: | |
return poi['name'] + '\n' | |
poi_filters = [{ | |
"name": "Industrial", | |
"icon": "icons/marker_industrial_green.png", | |
"filterFunction": industrialFilter | |
}, { | |
"name": "Ship Ports", | |
"icon": "icons/marker_port_green.png", | |
"filterFunction": shipFilter | |
}, { | |
"name": "NetherHub System Portals", | |
"icon": "icons/marker_nexus_orange.png", | |
"filterFunction": portalFilter | |
}, { | |
"name": "Pixel Art", | |
"icon": "icons/marker_pixelart_green.png", | |
"filterFunction": pixelartFilter | |
}, { | |
"name": "Infrastructure", | |
"icon": "icons/marker_infrastructure_orange.png", | |
"filterFunction": infrastructureFilter | |
}, { | |
"name": "Towers", | |
"icon": "icons/marker_tower_green.png", | |
"filterFunction": towerFilter | |
}, { | |
"name": "Villages", | |
"icon": "icons/marker_village_green.png", | |
"filterFunction": villageFilter | |
}, { | |
"name": "Farmgrounds", | |
"icon": "icons/marker_agricultural_green.png", | |
"filterFunction": agriculturalFilter | |
}, { | |
"name": "Castles", | |
"icon": "icons/marker_castle_green.png", | |
"filterFunction": castleFilter | |
}, { | |
"name": "Houses", | |
"icon": "icons/marker_house_green.png", | |
"filterFunction": houseFilter | |
}, { | |
"name": "Structures (Monuments, Temples, ...)", | |
"icon": "icons/marker_monument_green.png", | |
"filterFunction": structureFilter | |
}, { | |
"name": "Players", | |
"filterFunction": playerFilter | |
}, { | |
"name": "Shelter", | |
"icon": "icons/marker_house_green.png", | |
"filterFunction": shelterFilter | |
}, ] | |
poi_overworld = [ | |
# === Castles === | |
{ | |
'id': 'Castle', | |
'x': 293, | |
'y': 79, | |
'z': 60, | |
'name': 'Down-town Abbey' | |
}, { | |
'id': 'Castle', | |
'x': 102, | |
'y': 95, | |
'z': 220, | |
'name': 'Juergens "little" Outpost', | |
'description': 'really, really "little"' | |
}, { | |
'id': 'Castle', | |
'x': 2, | |
'y': 71, | |
'z': 302, | |
'name': 'The Garrison', | |
'description': 'The old Fortress this side of the trench' | |
}, { | |
'id': 'Castle', | |
'x': 266, | |
'y': 66, | |
'z': 1115, | |
'name': 'End Portal Base' | |
}, | |
# === Infrastructure === | |
{ | |
'id': 'Infrastructure', | |
'x': 18, | |
'y': 64, | |
'z': 350, | |
'name': 'Upway Main Station' | |
}, { | |
'id': 'Infrastructure', | |
'x': 169, | |
'y': 81, | |
'z': 347, | |
'name': 'XP Farm Routing Node' | |
}, { | |
'id': 'Infrastructure', | |
'x': 264, | |
'y': 75, | |
'z': 357, | |
'name': 'Midway Station' | |
}, { | |
'id': 'Infrastructure', | |
'x': 411, | |
'y': 73, | |
'z': 179, | |
'name': 'Village Upway Station' | |
},{ | |
'id': 'Infrastructure', | |
'x': 1316, | |
'y': 91, | |
'z': 578, | |
'name': 'Eastern Sea Line Upway Station' | |
},{ | |
'id': 'Infrastructure', | |
'x': 1143, | |
'y': 91, | |
'z': 580, | |
'name': 'Eastern Sea Line Upway Station' | |
},{ | |
'id': 'Infrastructure', | |
'x': 985, | |
'y': 91, | |
'z': 678, | |
'name': 'Tip of the World Upway Station' | |
},{ | |
'id': 'Infrastructure', | |
'x': 887, | |
'y': 91, | |
'z': 678, | |
'name': 'Mountains Edge Upway Station' | |
},{ | |
'id': 'Infrastructure', | |
'x': 624, | |
'y': 91, | |
'z': 678, | |
'name': 'Eastern Sea Line Upway Station' | |
},{ | |
'id': 'Infrastructure', | |
'x': 434, | |
'y': 91, | |
'z': 678, | |
'name': 'Eastern Sea Line Upway Station' | |
}, | |
# === Industrial === | |
{ | |
'id': 'Industrial', | |
'x': 171, | |
'y': 167, | |
'z': 357, | |
'name': 'XP Farm' | |
}, { | |
'id': 'Industrial', | |
'x': -95, | |
'y': 70, | |
'z': 398, | |
'name': 'Iron Farm' | |
}, { | |
'id': 'Industrial', | |
'x': 35, | |
'y': 75, | |
'z': 285, | |
'name': 'Bread Farm' | |
}, { | |
'id': 'Industrial', | |
'x': 1768, | |
'y': 51, | |
'z': 678, | |
'name': 'Guardian Farm' | |
}, { | |
'id': 'Industrial', | |
'x': 42, | |
'y': 194, | |
'z': -930, | |
'name': 'Gold Farm' | |
}, | |
# === Villages === | |
{ | |
'id': 'Village', | |
'x': 367, | |
'y': 70, | |
'z': 175, | |
'name': 'Village', | |
'description':'They\'ve got some 5 Golems of themselves, so best don\'t fuck with \'em...' | |
}, { | |
'id': 'Village', | |
'x': 759, | |
'y': 68, | |
'z': -1343, | |
'name': 'Village' | |
}, { | |
'id': 'Village', | |
'x': 1077, | |
'y': 67, | |
'z': 2135, | |
'name': 'Village' | |
}, { | |
'id': 'Village', | |
'x': 1237, | |
'y': 64, | |
'z': 1821, | |
'name': 'Village' | |
}, { | |
'id': 'Village', | |
'x': 1764, | |
'y': 64, | |
'z': 2345, | |
'name': 'Village' | |
}, { | |
'id': 'Village', | |
'x': 2278, | |
'y': 71, | |
'z': 1860, | |
'name': 'Village' | |
}, { | |
'id': 'Village', | |
'x': 102, | |
'y': 67, | |
'z': -1845, | |
'name': 'Village' | |
}, { | |
'id': 'Village', | |
'x': -1282, | |
'y': 64, | |
'z': -890, | |
'name': 'Village' | |
}, { | |
'id': 'Village', | |
'x': 4116, | |
'y': 70, | |
'z': 2066, | |
'name': 'Village' | |
}, { | |
'id': 'Village', | |
'x': 2916, | |
'y': 69, | |
'z': -1858, | |
'name': 'Village' | |
}, { | |
'id': 'Village', | |
'x': 4303, | |
'y': 70, | |
'z': -483, | |
'name': 'Village' | |
}, { | |
'id': 'Village', | |
'x': 4165, | |
'y': 67, | |
'z': -800, | |
'name': 'Village' | |
}, { | |
'id': 'Village', | |
'x': 5680, | |
'y': 64, | |
'z': -2017, | |
'name': 'Village' | |
}, { | |
'id': 'Village', | |
'x': -14, | |
'y': 68, | |
'z': 24, | |
'name': 'Village', | |
'description:':'New JuergenVille' | |
}, | |
# === Towers === | |
{ | |
'id': 'Tower', | |
'x': -423, | |
'y': 96, | |
'z': 392, | |
'name': 'Westwatch' | |
}, { | |
'id': 'Tower', | |
'x': 985, | |
'y': 193, | |
'z': 691, | |
'name': 'Tip of the World' | |
}, { | |
'id': 'Tower', | |
'x': 276, | |
'y': 88, | |
'z': 818, | |
'name': 'Deep Forrest Upway Station' | |
}, { | |
'id': 'Tower', | |
'x': 912, | |
'y': 72, | |
'z': -270, | |
'name': 'Forrest Fortress' | |
}, { | |
'id': 'Tower', | |
'x': 1574, | |
'y': 141, | |
'z': 577, | |
'name': 'Eastwatch by the Sea' | |
}, { | |
'id': 'Tower', | |
'x': 1475, | |
'y': 64, | |
'z': -717, | |
'name': 'Monument Camp' | |
}, { | |
'id': 'Tower', | |
'x': 981, | |
'y': 73, | |
'z': -1225, | |
'name': 'Asian Outpost' | |
}, | |
# === Houses === | |
{ | |
'id': 'House', | |
'x': -85, | |
'y': 68, | |
'z': 309, | |
'name': 'Zentrallager' | |
}, { | |
'id': 'House', | |
'x': 209, | |
'y': 85, | |
'z': 91, | |
'name': 'Abhorsen House' | |
}, { | |
'id': 'House', | |
'x': 452, | |
'y': 67, | |
'z': 795, | |
'name': 'Forrest Camp' | |
}, { | |
'id': 'House', | |
'x': 860, | |
'y': 71, | |
'z': 737, | |
'name': 'Foot of the Mountains Camp' | |
}, { | |
'id': 'House', | |
'x': 628, | |
'y': 68, | |
'z': 701, | |
'name': 'Forrest Camp' | |
}, | |
# === Agriculturals === | |
{ | |
'id': 'Agriculturals', | |
'x': 227, | |
'y': 70, | |
'z': -39, | |
'name': 'Farmgrounds' | |
}, | |
# === Structures === | |
{ | |
'id': 'Structure', | |
'x': 1765, | |
'y': 62, | |
'z': 679, | |
'name': 'Ocean Monument' | |
}, { | |
'id': 'Structure', | |
'x': 1403, | |
'y': 63, | |
'z': -743, | |
'name': 'Ocean Monument' | |
}, { | |
'id': 'Structure', | |
'x': 1850, | |
'y': 64, | |
'z': -1254, | |
'name': 'Ocean Monument' | |
}, { | |
'id': 'Structure', | |
'x': 1800, | |
'y': 64, | |
'z': 2880, | |
'name': 'Ocean Monument' | |
}, { | |
'id': 'Structure', | |
'x': 3141, | |
'y': 74, | |
'z': 759, | |
'name': 'Jungle Temple' | |
}, { | |
'id': 'Structure', | |
'x': 2584, | |
'y': 64, | |
'z': -711, | |
'name': 'Ocean Monument' | |
}, { | |
'id': 'Structure', | |
'x': 2279, | |
'y': 64, | |
'z': -759, | |
'name': 'Ocean Monument' | |
}, { | |
'id': 'Structure', | |
'x': 2215, | |
'y': 79, | |
'z': -2042, | |
'name': 'Jungle Temple' | |
}, { | |
'id': 'Structure', | |
'x': 2071, | |
'y': 74, | |
'z': -2330, | |
'name': 'Jungle Temple' | |
}, { | |
'id': 'Structure', | |
'x': 5915, | |
'y': 69, | |
'z': -2389, | |
'name': 'Desert Temple' | |
}, { | |
'id': 'Structure', | |
'x': 3240, | |
'y': 64, | |
'z': 88, | |
'name': 'Ocean Monument' | |
}, | |
# === Portals === | |
{ | |
'id': 'Portal', | |
'x': -5, | |
'y': 45, | |
'z': 274, | |
'name': 'Garrision Basement Portal' | |
}, { | |
'id': 'Portal', | |
'x': -97, | |
'y': 71, | |
'z': 309, | |
'name': 'Central Storage Unit Portal' | |
}, { | |
'id': 'Portal', | |
'x': 42, | |
'y': 194, | |
'z': -912, | |
'name': 'Gold Farm Portal' | |
}, | |
# === Ships === | |
{ | |
'id': 'Ship', | |
'x': 1620, | |
'y': 63, | |
'z': 672, | |
'name': 'Monument Ship Port' | |
}, { | |
'id': 'Ship', | |
'x': 1080, | |
'y': 63, | |
'z': -1090, | |
'name': 'Hidden Harbor' | |
}, | |
# === Shelters === | |
{ | |
'id': 'Shelter', | |
'x': 2033, | |
'y': 64, | |
'z': 244, | |
'name': 'Shelter' | |
}, { | |
'id': 'Shelter', | |
'x': 2684, | |
'y': 64, | |
'z': 1277, | |
'name': 'Shelter' | |
}, { | |
'id': 'Shelter', | |
'x': 3090, | |
'y': 64, | |
'z': 1230, | |
'name': 'Shelter' | |
}, { | |
'id': 'Shelter', | |
'x': 3375, | |
'y': 64, | |
'z': 880, | |
'name': 'Shelter' | |
}, { | |
'id': 'Shelter', | |
'x': 3548, | |
'y': 63, | |
'z': 994, | |
'name': 'Shelter' | |
}, { | |
'id': 'Shelter', | |
'x': 4628, | |
'y': 63, | |
'z': 78, | |
'name': 'Shelter' | |
}, { | |
'id': 'Shelter', | |
'x': 4168, | |
'y': 65, | |
'z': -837, | |
'name': 'Shelter' | |
}, { | |
'id': 'Shelter', | |
'x': 5315, | |
'y': 64, | |
'z': -713, | |
'name': 'Shelter' | |
}, { | |
'id': 'Shelter', | |
'x': 10055, | |
'y': 65, | |
'z': -4551, | |
'name': 'Shelter' | |
}, { | |
'id': 'Shelter', | |
'x': 8769, | |
'y': 64, | |
'z': -4037, | |
'name': 'Shelter' | |
}, { | |
'id': 'Shelter', | |
'x': 5880, | |
'y': 64, | |
'z': -2031, | |
'name': 'Shelter' | |
}, { | |
'id': 'Shelter', | |
'x': 3832, | |
'y': 67, | |
'z': -642, | |
'name': 'Shelter' | |
}, { | |
'id': 'Shelter', | |
'x': 1966, | |
'y': 64, | |
'z': -1740, | |
'name': 'Shelter' | |
}] | |
poi_nether = [] | |
poi_end = [] | |
# Load OS environment variables exported by the calling script | |
worlds['Disposia'] = os.environ['MINECRAFT_SERVER_WORLD'] | |
outputdir = os.environ['MINECRAFT_OVERVIEWER_OUTPUT_DIR'] | |
texturepath = os.environ['MINECRAFT_OVERVIEWER_TEXTURES'] | |
# South - East | |
renders['renderer-overworld-se'] = { | |
'world': 'Disposia', | |
'title': 'South-East', | |
'northdirection': 'upper-right', | |
'rendermode': 'smooth_lighting', | |
'dimension': 'overworld', | |
'manualpois': poi_overworld, | |
'markers': poi_filters, | |
} | |
# North - West | |
renders['renderer-overworld-nw'] = { | |
'world': 'Disposia', | |
'title': 'North-West', | |
'northdirection': 'lower-left', | |
'rendermode': 'smooth_lighting', | |
'dimension': 'overworld', | |
'manualpois': poi_overworld, | |
'markers': poi_filters, | |
} | |
# North - East | |
renders['renderer-overworld-ne'] = { | |
'world': 'Disposia', | |
'title': 'North-East', | |
'northdirection': 'lower-right', | |
'rendermode': 'smooth_lighting', | |
'dimension': 'overworld', | |
'manualpois': poi_overworld, | |
'markers': poi_filters, | |
} | |
# South - West | |
renders['renderer-overworld-sw'] = { | |
'world': 'Disposia', | |
'title': 'South-West', | |
'northdirection': 'upper-left', | |
'rendermode': 'smooth_lighting', | |
'dimension': 'overworld', | |
'manualpois': poi_overworld, | |
'markers': poi_filters, | |
} | |
renders['renderer-overworld-night'] = { | |
'world': 'Disposia', | |
'title': 'Night', | |
'northdirection': 'upper-right', | |
'rendermode': 'night', | |
'dimension': 'overworld', | |
'manualpois': poi_overworld, | |
'markers': poi_filters, | |
} | |
renders['renderer-overworld-caves'] = { | |
'world': 'Disposia', | |
'title': 'Caves', | |
'northdirection': 'upper-right', | |
'rendermode': 'cave', | |
'dimension': 'overworld', | |
'manualpois': poi_overworld, | |
'markers': poi_filters, | |
} | |
renders['renderer-nether'] = { | |
'world': 'Disposia', | |
'title': 'Nether', | |
'northdirection': 'lower-right', | |
'rendermode': 'nether', | |
'dimension': 'nether', | |
'manualpois': poi_nether, | |
'markers': poi_filters, | |
} | |
renders['renderer-end'] = { | |
'world': 'Disposia', | |
'title': 'End', | |
'northdirection': 'lower-right', | |
'rendermode': 'normal', | |
'dimension': 'end', | |
'manualpois': poi_end, | |
'markers': poi_filters, | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment