[INFO/WEB] Landmarks v0.2 - with DynMap addon [953]

Discussion in 'Inactive/Unsupported Plugins' started by DFYX, Apr 7, 2011.

  1. Offline

    DFYX

    Landmarks
    Version: v0.2
    Tested with Craftbukkit 953/Dynmap 0.19.1

    [​IMG]

    This plugin lets you define landmarks that will be saved into a JSON file, similar to the old MapMarkers for hMod. I have included a DynMap component that shows those landmarks as little icons on the map.

    [​IMG]
    If you like this, why not donate a few bucks? But don't worry, this plugin will always be free.​

    Features:
    • Set and delete landmarks
    • Display them on a DynMap
    • Full support for multiple worlds
    Download Landmarks 0.2 (Jar only, dynmap component only)
    Source Code
    Older versions: 0.1.1, 0.1

    Commands
    /landmark add <name>
    Set a new landmark to your current position. Name may contain spaces.
    /landmark modify <name>
    Set update an existing landmark to your current position. Name may contain spaces.
    /landmark set <name>
    Shortcut for add or modify depending if there already is a landmark with this name. Name may contain spaces.
    /landmark delete|del|remove <name>
    Remove an existing landmark. Name may contain spaces.

    Permissions
    (All permissions include the rights to use the matching aliases and shortcuts such as /landmark set)
    landmarks.add
    The player may use /landmark add
    landmarks.modify.own
    The player may use /landmark modify on his own markers
    landmarks.modify.all
    The player may use /landmark modify on all markers
    landmarks.remove.own
    The player may use /landmark remove on his own markers
    landmarks.remove.all
    The player may use /landmark remove on all markers

    Planned:
    • List existing landmarks
    • Show information like creator and time (already included in JSON file)
    • Think about priorities or grouping
    • Different icons? Probably larger icons for higher zoom levels.
    • Save display settings in cookies
    Setup:
    1. Just unpack the contents of the zip file into your bukkit folder.
    2. If you want to use the DynMap component:
      1. Go to plugins/Landmarks/config.yml and set markersfile to ../dynmap/web/markers.json
      2. If you have copied your dynmap/web folder to your Apache folder (as described in DynMap's setup instructions), use that path instead or use a symlink
      3. Go to plugins/dynmap/configuration.txt, find "components:" and add the following below it:
        Code:
          - class: org.dynmap.ClientComponent
            type: landmarks
      4. Optional: to display the settings panel, add the following just above what you added in the last step:
        Code:
          - class: org.dynmap.ClientComponent
            type: settings
    There's also a more detailed howto for Linux users below. Thanks, paccer!

    Changelog
    Version 0.2
    • Permissions support
    • New settings panel where people can select if they want to see the markers and marker texts (optional). See setup instructions step 2.4
    • Markers are now automatically removed from dynmap without reloading the page
    • New commands add and modify (they do basically the same as set, but you won't accidentally update an existing marker when you want to add a new one or the other way round)
    • The default config now contains the correct markersfile path for dynmap
    Version 0.1.1
    • Included config.yml and removed markers.json (will be created automatically)
    • Added a 2 pixel semi-transparent white border around the landmark icons
    • No changes to the jar file itself!
     
  2. Landmarks appear to no longer show on Dynmap 0.20, just thought I would report.
     
  3. Offline

    Ratchet

    @DFYX
     
  4. Offline

    seriosbrad

    Ah, so I'm not completely stupid. It's definitely not working with .20 D:
     
  5. Offline

    Nikademus

    Landmarks seems to be loading ok with Dynmap 19.2 & Apache server, but nothing is appearing on the map. No players, no weather, no landmarks.
    Code:
      - class: org.dynmap.ClientComponent
        type: settings
      - class: org.dynmap.ClientComponent
        type: landmarks
      - class: org.dynmap.ClientConfigurationComponent
    
    If I remove the lines from configuration.txt, players & weather come back.
     
  6. Offline

    serenewaffles

    I can get the landmarks to load and the settings pane works fine. I had it working flawlessly previously. But I can no longer get newly added land marks to appear on the map. I am using DynMap with Apache. DynMap's webserver is off. If you would like the configs, let me know and I will email them to you. It is telling me that it is loading and saving the proper markers.json file.
    DynMap 0.19.2
    Landmarks 0.2

    EDIT: After removing all instances of markers.json from my computer, the markers that were on the DynMap are still on the map. When I get home, I am going to try completely removing both plugins and then reinstalling them. I will update with my progress.
     
  7. Offline

    ThePrall44

    Will require updating for Dynmap 0.20.0. Please! I love this plugin!
     
  8. Offline

    serenewaffles

    It seems that Landmarks doesn't work properly if you use Apache to serve the map. It doesn't properly update which markers appear on the map when looking at it, though it does properly update markers.json, Hope this gets fixed/added, because I really liked using Landmarks on my server.
     
  9. Offline

    oursoul

    Hi, this is working just fine on our map thankyou.
    I have a quick enquiry to find out how I would make the 'Show Text' in the settings default to 'Always' instead of 'Popup'?
    I've had a scan through the .css and .js files but dont want to mess anything up cos its working well.

    You just have it a bit muddled, it must be in this order:

    Code:
    - class: org.dynmap.ClientConfigurationComponent
    - class: org.dynmap.ClientComponent
        type: settings
    - class: org.dynmap.ClientComponent
        type: landmarks
    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: May 13, 2016
  10. Offline

    Trollkemada

    Is this inactive?
     
  11. Offline

    FrozenCow

    Dynmap 0.20 is just released. Landmarks v0.2 is not compatible with Dynmap 0.20, however the fix is ready to be released. I think it will come as soon as DFYX has time to do so.
     
    Luke.Handle likes this.
  12. Offline

    Nikademus

    Still getting the same problem, though. Nothing is appearing on the map. No players, no weather, no landmarks.
     
  13. Offline

    jycs

    Please DFYX !!!!
     
  14. Offline

    Ayaron

    Seconded.

    :O)
     
  15. Offline

    Luke.Handle

    When you say ready to be released, does that mean that it just needs posting? or compiling or actually needs a bit of work to fix? IE. Could anyone post an unofficial fix in the meantime?
     
  16. Offline

    FrozenCow

  17. Offline

    Luke.Handle

  18. Offline

    Mike Geitz

  19. Offline

    FrozenCow

    Luke.Handle likes this.
  20. I haven't been able to get this to work (note that I have never had this working, I only found landmarks after I was testing dynmap .20, so this is likely a configurational error on my end). Enclosed is my entire dynmap .21 config file, I have FrozenCow's new landmarks.jar downloaded, I run dynmap out publicaly via Apache2 configured as per recommended on the dynmap wiki. So in my dynmap/web folder I have the following:
    Code:
    -rwxrwxrwx 1 minecraft minecraft  351 Aug 10 12:14 markers.json
    and in my actual apache root directory for dynmap I have
    Code:
    lrwxrwxrwx 1 root root   54 Jul 27 21:25 markers.json -> /correct/path/to/dynmap/web/markers.json
    However, I have no time listed, no players, and no weather when I load the map with this configuration. As soon as I remove any lines that have to do with Landmarks, the map works fine again. I'm probably overlooking something obvious, that's generally my MO. ~.~
    configuration.txt (open)
    Code:
    # All paths in this configuration file are relative to Dynmap's data-folder: minecraft_server/plugins/dynmap/
    
    # All map templates are defined in the templates directory
    # By default, the 'classic' FlatMap and KzedMap templates are used, which can be found in normal.txt, nether.txt, and skylands.txt
    #
    # To use the HDMap low-res map templates as world defaults (normal-lowres, nether-lowres and skylands-lowres), uncomment the following line
    #   The definitions of these templates are in normal-lowres.txt, nether-lowres.txt, and skylands-lowres.txt
    #deftemplatesuffix: lowres
    # To use the HDMap hi-res map templates (these can take a VERY long time for initial fullrender), comment the following line
    #   The definitions of these templates are in normal-hires.txt, nether-hires.txt, and skylands-hires.txt
    deftemplatesuffix: hires
    # Other values will search for templates named normal-<value>, nether-<value>, skylands-<value>
    
    components:
      - class: org.dynmap.ClientConfigurationComponent
    
    #  - class: org.dynmap.ClientComponent
    #    type: settings
      - class: org.dynmap.ClientComponent
        type: landmarks
    #  - class: org.dynmap.ClientConfigurationComponent
    
      - class: org.dynmap.InternalClientUpdateComponent
        sendhealth: true
        sendposition: true
        allowwebchat: false
        webchat-interval: 5
        hidewebchatip: false
        trustclientname: false
      #- class: org.dynmap.JsonFileClientUpdateComponent
      #  writeinterval: 1
      #  sendhealth: true
      #  sendposition: true
      #  allowwebchat: false
      #  webchat-interval: 5
      #  hidewebchatip: false
    
      - class: org.dynmap.SimpleWebChatComponent
        allowchat: false
      #- class: org.dynmap.herochat.HeroWebChatComponent
      #  # Control which HeroChat channel messages from web are directed to
      #  herochatwebchannel: Global
      #  # Control which channels are monitored and reported to the web
      #  herochatchannels:
      #    - Global
      #    #- Trade
      #    #- Haggle
    
      #- class: org.dynmap.ClientComponent
      #  type: chat
      #- class: org.dynmap.ClientComponent
      #  type: chatballoon
      #  focuschatballoons: false
      #- class: org.dynmap.ClientComponent
      #  type: chatbox
      #  showplayerfaces: true
      #  messagettl: 5
      - class: org.dynmap.ClientComponent
        type: playermarkers
        showplayerfaces: true
        showplayerhealth: true
        # Option to make player faces small - don't use with showplayerhealth
        smallplayerfaces: false
      #- class: org.dynmap.ClientComponent
      #  type: digitalclock
      - class: org.dynmap.ClientComponent
        type: timeofdayclock
        showdigitalclock: true
        #showweather: true
      #- class: org.dynmap.ClientComponent
      #  type: logo
      #  text: "Dynmap"
      #  linkurl: "http://forums.bukkit.org/threads/dynmap.489/"
      #- class: org.dynmap.regions.RegionsComponent
      #  type: regions
      #  name: WorldGuard
      #  useworldpath: true
      #  filename: regions.yml
      #  basenode: regions
      #  use3dregions: true
      #  regionstyle:
      #    stroke: true
      #    color: "#FF0000"
      #    opacity: 0.8
      #    weight: 3
      #    fill: true
      #    fillColor: "#FF0000"
      #    fillOpacity: 0.35
      #  # Optional setting to limit which regions to show, by name - if commented out, all regions are shown
      #  visibleregions:
      #    - homebase
      #    - miningsite
      #- class: org.dynmap.regions.RegionsComponent
      #  type: regions
      #  name: Residence
      #  useworldpath: false
      #  filename: res.yml
      #  basenode: Residences
      #  use3dregions: false
      #  infowindow: '<div class="infowindow"><span style="font-size:120%;">%regionname%</span><br /> Owner <span style="font-weight:bold;">%playerowners%</span><br />Flags<br /><span style="font-weight:bold;">%flags%</span></div>'
      #  regionstyle:
      #    strokeColor: "#FF0000"
      #    strokeOpacity: 0.8
      #    strokeWeight: 3
      #    fillColor: "#FF0000"
      #    fillOpacity: 0.35
      #  # Optional setting to limit which regions to show, by name - if commented out, all regions are shown
      #  visibleregions:
      #    - homebase
      #    - miningsite
      #- class: org.dynmap.TestComponent
      #  stuff: "This is some configuration-value"
    
    # Treat hiddenplayers.txt as a whitelist for players to be shown on the map? (Default false)
    display-whitelist: false
    
    # How often a tile gets rendered (in seconds).
    renderinterval: 1
    
    # Zoom-out tile update period - how often to scan for and process tile updates into zoom-out tiles (in seconds)
    zoomoutperiod: 60
    
    # Tile hashing is used to minimize tile file updates when no changes have occurred - set to false to disable
    enabletilehash: true
    
    render-triggers:
      #- chunkloaded
      #- playermove
      #- playerjoin
      - blockplaced
      - blockbreak
      - leavesdecay
      - blockburn
      - chunkgenerated
      - blockformed
      - blockfaded
      - blockspread
    
    # The path where the tile-files are placed.
    tilespath: web/tiles
    
    # The path where the web-files are located.
    webpath: web
    
    # The network-interface the webserver will bind to (0.0.0.0 for all interfaces, 127.0.0.1 for only local access).
    webserver-bindaddress: 0.0.0.0
    
    # The TCP-port the webserver will listen on.
    webserver-port: 8123
    
    # Maximum concurrent session on internal web server - limits resources used in Bukkit server
    max-sessions: 30
    
    # Disables Webserver portion of Dynmap (Advanced users only)
    disable-webserver: false
    
    # Enable/disable having the web server allow symbolic links (true=compatible with existing code, false=more secure (default))
    allow-symlinks: true
    
    # Period between tile renders for fullrender, in seconds (non-zero to pace fullrenders, lessen CPU load)
    timesliceinterval: 0.0
    
    # Maximum chunk loads per server tick (1/20th of a second) - reducing this below 90 will impact render performance, but also will reduce server thread load
    maxchunkspertick: 200
    
    # Interval the browser should poll for updates.
    updaterate: 2000
    
    showplayerfacesinmenu: true
    
    # Set sidebaropened: true to pin menu sidebar opened
    sidebaropened: true
    
    joinmessage: "%playername% joined"
    quitmessage: "%playername% quit"
    spammessage: "You may only chat once every %interval% seconds."
    # webprefix and websuffix support using '&color;' as escape code for color code
    webprefix: "&color;2[WEB] "
    websuffix: "&color;f"
    # Enable checking for banned IPs via banned-ips.txt (internal web server only)
    check-banned-ips: true
    
    # Default selection when map page is loaded
    defaultzoom: 0
    defaultworld: world
    defaultmap: surface
    
    # NOTE: the 'templates' section is now found in the 'templates' directory
    #  Templates CAN still be defined in configuration.txt, as before 0.20
    templates:
    
    # NOTE: the 'worlds' section is now found in the worlds.txt (example custom settings can be found in worlds.txt.sample)
    #  Worlds CAN still be defined in configuration.txt, as before 0.20
    worlds:
    
    # Set to true to enable verbose startup messages - can help with debugging map configuration problems
    # Set to false for a much quieter startup log
    verbose: false
    
    # Enables debugging.
    #debuggers:
    #  - class: org.dynmap.debug.LogDebugger
    I have attempted variations of the actual place where the landmarks stuff is supposedly supposed to be to no avail. Any ideas?
    Variations (open)
    Code:
    components:
       - class: org.dynmap.ClientConfigurationComponent
    
       - class: org.dynmap.ClientComponent
         type: settings
       - class: org.dynmap.ClientComponent
         type: landmarks
     #  - class: org.dynmap.ClientConfigurationComponent
    
       - class: org.dynmap.InternalClientUpdateComponent
         sendhealth: true
    Code:
    components:
     #  - class: org.dynmap.ClientConfigurationComponent
    
       - class: org.dynmap.ClientComponent
         type: settings
       - class: org.dynmap.ClientComponent
         type: landmarks
       - class: org.dynmap.ClientConfigurationComponent
    
       - class: org.dynmap.InternalClientUpdateComponent
         sendhealth: true
    Code:
    components:
       - class: org.dynmap.ClientConfigurationComponent
       - class: org.dynmap.ClientComponent
         type: settings
       - class: org.dynmap.ClientComponent
         type: landmarks
     #  - class: org.dynmap.ClientConfigurationComponent
    
       - class: org.dynmap.InternalClientUpdateComponent
         sendhealth: true
    Quite a few more, but you get the idea...
    Thanks for looking and any suggestions/help. :)
     
  21. Offline

    FrozenCow

    Have you placed the files from Landmarks that were supposed to be in web/js, web/css, web/images to your Apache directory?
    If that isn't the problem, send me your dynmap url.
     
  22. Offline

    Luke.Handle

    Fixed it for me, I didn't wanna complain about the other one because it seemed to work for Mike. I just assumed I was being stupid. But thanks very much for the (unofficial) update!
     
  23. Offline

    vapid2323

    Got everything working, but I wanted to know how hard it would be to allow a URL to open if they click a marker?
     
  24. Offline

    Mint Condition

    I thought I had asked for help before, but I can't find my post. Anyway, I'm trying to make it all work... I can see (at least some) of the settings panel, but I can't see markers on the map. No errors, but no landmarks either.

    Any ideas?

    Map: http://continuum.minecraftgsp.com:8123/
     
  25. Offline

    FrozenCow

    You used my package with an older version of dynmap. My package is -only- compatible with Dynmap 0.20.
     
  26. Offline

    Afotai

    Biggest issue I have with this on a 50+ man server is that the component get pushed away by the playerlist, and then the Landmark options/buttons become inaccessible :/
     
  27. Offline

    Mint Condition

    No...

    Code:
    2011-08-11 07:03:03 [INFO] [dynmap] version 0.20 is enabled
    I upgraded from an earlier version... but its running .20

    Do I need to like clear out the old web dir or something? Sorry, I'm new to this

    Oh... and sorry if this came out snarky. I didn't intend it to, but rereading it sounds a little like that.

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: May 13, 2016
  28. i've try the 0.3 version but i can't see the landmark options on the map panel (i've add the -class to the configuration.txt), what iam doing wrong ?
     
  29. If you're using apache and previously copied over the web directory, did you do so again with the upgrade to dynmap .20+? That was, as FrozenCow pointed out to me, my own issue. I'd upgraded everything correctly and put all the pieces in the right places in the config file, but I'd forgotten to copy the new web directory out.
     
  30. i'am stupid it just i forgot to read this :

    "Optional: to display the settings panel, add the following just above what you added in the last step"

    Now everything work great :).
     
  31. Offline

    Trollkemada

    Is it working for 0.20.1 too? :S

    Edit: Yes, is working :D
     

Share This Page