SHARE
TWEET

overviewer marker error

grzesiek11 Jul 22nd, 2019 62 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. grzesiek11@starypc:~/servers/mc$ overviewer --skip-scan --genpoi -c markers.conf
  2. 2019-07-22 11:23:37  Initialized an empty UUID cache.
  3. 2019-07-22 11:23:37 E An error has occurred. This may be a bug. Please let us know!
  4. See http://docs.overviewer.org/en/latest/index.html#help
  5.  
  6. This is the error that occurred:
  7. Traceback (most recent call last):
  8.   File "/home/grzesiek11/Programy/path/overviewer", line 650, in <module>
  9.     ret = main()
  10.   File "/home/grzesiek11/Programy/path/overviewer", line 168, in main
  11.     g.genPOI.main()
  12.   File "/home/grzesiek11/Programy/overviewer/overviewer_core/aux_files/genPOI.py", line 557, in main
  13.     handlePlayers(worldpath, list(worldpath_filters), markers)
  14.   File "/home/grzesiek11/Programy/overviewer/overviewer_core/aux_files/genPOI.py", line 361, in handlePlayers
  15.     result = filter_function(data)
  16.   File "markers.conf", line 7, in placeFilter
  17.     return poi['name']
  18.   File "/home/grzesiek11/Programy/overviewer/overviewer_core/aux_files/genPOI.py", line 270, in __getitem__
  19.     return super(PlayerDict, self).__getitem__(item)
  20. KeyError: 'name'
  21. grzesiek11@starypc:~/servers/mc$ cd
  22. grzesiek11@starypc:~$ cat ~/servers/mc/markers.conf
  23. def playerIcons(poi):
  24.     if poi['id'] == 'Player':
  25.         poi['icon'] = "https://overviewer.org/avatar/%s" % poi['EntityId']
  26.         return "Last known location for %s" % poi['EntityId']
  27.  
  28. def placeFilter(poi):
  29.     return poi['name']
  30.  
  31. worlds["survival"] = "/home/grzesiek11/servers/mc/world"
  32. outputdir = "/var/www/html/server/mcmap-test"
  33.  
  34. renders['survivalday'] = {
  35.     'world': 'survival',
  36.     'title': 'Survival Daytime',
  37.     'manualpois': [
  38.                     {'id':'Base',
  39.                     'x':200,
  40.                     'y':64,
  41.                     'z':200,
  42.                     'name':'Foo'},
  43.                     {'id':'Base',
  44.                     'x':-300,
  45.                     'y':85,
  46.                     'z':-234,
  47.                     'name':'Bar'}],
  48.     'markers': [dict(name="Bases", filterFunction=placeFilter),
  49.         dict(name="Players", filterFunction=playerIcons)]
  50. }
  51.  
  52. renders['survivalnight'] = {
  53.     'world': 'survival',
  54.     'title': 'Survival Nighttime',
  55.     'manualpois': renders['survivalday']['manualpois'],
  56.     'markers': renders['survivalday']['markers']
  57. }
  58.  
  59. renders['survivalnether'] = {
  60.     'world': 'survival',
  61.     'title': 'Survival Nether',
  62.     'manualpois': [
  63.                     {'id':'Portal',
  64.                     'x':200,
  65.                     'y':64,
  66.                     'z':200,
  67.                     'name':'Foo'},
  68.                     {'id':'Portal',
  69.                     'x':-300,
  70.                     'y':85,
  71.                     'z':-234,
  72.                     'name':'Bar'}],
  73.     'markers': [dict(name="Portals", filterFunction=placeFilter),
  74.         dict(name="Players", filterFunction=playerIcons)]
  75. }
  76. grzesiek11@starypc:~$
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Not a member of Pastebin yet?
Sign Up, it unlocks many cool features!
 
Top