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

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

  1. Offline


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


    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.

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

    • 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

    /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.

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

    • 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
    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:
          - 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:
          - class: org.dynmap.ClientComponent
            type: settings
    There's also a more detailed howto for Linux users below. Thanks, paccer!

    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. But are they in the right folder? The contents of the dynmap folder from the webfiles zipfile need to be in the plugins/dynmap/web/ folder. So you should have, among others, the file plugins/dynmap/web/js/landmarks.js (the file that error is complaining about not being able to find).

    Good point. I guess I shouldn't rely on common sense for file placement, heh. I'll change it in the next release of the plugin, hopefully that "fixes" some of the problems others have been having.
  3. Offline


    i did check that, thats what i didnt understand its right there i can see it : /
  4. Offline


    I'm still having the same problem as Illblack...
    the files are in the right location:

    tom@Ubuntu-1010-maverick-64-minimal:/usr/games/minecraft/plugins/dynmap/web/js$ ll
    total 332
    drwxr-xr-x 2 tom tom 4096 2011-09-27 09:36 ./
    drwxr-xr-x 7 tom tom 4096 2011-09-27 09:37 ../
    -rw-r--r-- 1 tom tom 1929 2011-08-15 15:09 chatballoon.js
    -rw-r--r-- 1 tom tom 2614 2011-05-22 09:06 chatbox.js
    -rw-r--r-- 1 tom tom 1346 2011-06-13 06:35 chat.js
    -rw-r--r-- 1 tom tom 1122 2011-09-12 00:45 coord.js
    -rw-r--r-- 1 tom tom 2431 2011-07-31 19:44 custommarker.js
    -rw-r--r-- 1 tom tom 1009 2011-03-31 23:56 digitalclock.js
    -rw-r--r-- 1 tom tom 10811 2011-08-26 00:54 dynmaputils.js
    -rw-r--r-- 1 tom tom 1115 2011-08-14 07:11 flatmap.js
    -rw-r--r-- 1 tom tom 1642 2011-08-14 07:11 hdmap.js
    -rw-r--r-- 1 tom tom 5748 2011-03-17 01:39 jquery.json.js
    -rw-r--r-- 1 tom tom 91626 2011-09-08 05:03 jquery.min.js
    -rw-r--r-- 1 tom tom 2235 2011-03-17 21:42 jquery.mousewheel.js
    -rw-r--r-- 1 tom tom 2055 2011-08-14 07:11 kzedmaps.js
    -rw-r--r-- 1 tom tom 3001 2011-05-08 12:36 landmarks.js
    -rw-r--r-- 1 tom tom 76935 2011-08-14 07:11 leaflet.js
    -rw-r--r-- 1 tom tom 1017 2011-07-27 18:53 logo.js
    -rw-r--r-- 1 tom tom 21788 2011-09-14 06:58 map.js
    -rw-r--r-- 1 tom tom 5357 2011-09-14 06:58 markers.js
    -rw-r--r-- 1 tom tom 947 2011-09-04 08:50 minecraft.js
    -rw-r--r-- 1 tom tom 4765 2011-09-14 06:58 playermarkers.js
    -rw-r--r-- 1 tom tom 856 2011-07-27 17:13 projectiontest.js
    -rw-r--r-- 1 tom tom 1119 2011-08-29 04:35 regions_Factions.js
    -rw-r--r-- 1 tom tom 6501 2011-09-14 06:58 regions.js
    -rw-r--r-- 1 tom tom 1482 2011-08-23 05:15 regions_Residence.js
    -rw-r--r-- 1 tom tom 1113 2011-08-25 05:13 regions_Towny.js
    -rw-r--r-- 1 tom tom 2330 2011-08-23 05:15 regions_WorldGuard.js
    -rw-r--r-- 1 tom tom 2232 2011-05-08 12:58 settings.js
    -rw-r--r-- 1 tom tom 3032 2011-05-10 13:11 timeofdayclock.js
  5. I don't have any control over which files are served from where by which server, so there's not much I can do to help.
    A test you can do is open your dynmap in the browser, and add "js/landmarks.js" to the end of the address. It should open the landmarks script and have a changelog at the top telling you which version you are using.

    If the script does not open that way, it's not installed in the right folder.
    If the script has no changelog, you're using 0.2 or older.

    That might help some people figure out what's going on. Note that /plugins/dynmap/web is just the default location for the webfiles, it can be changed through a setting or can be running from a different server so it might be somewhere else!
  6. Offline


    thanks that helped... the files didn't get copied properly in the end... like someone already mentioned, if you rename the folder "dynmap" in the zip to web it then the path would be correct and it might cause less confusion...

    thanks for the help!
  7. Offline


    Edit: the error i posted earlier about: "Removing player" on the server console was actually Landbrush plugin. I notified the plugin developer of that already and he/she will be working on it
  8. Offline



    Read pages 12 and 13 of this thread. Thulinma has released a completely rewritten version. Page 12 has some info that you need (his version 0.4 released) and page 13 has updates to that (his version 0.5 released).
  9. Offline



    You should really create a new thread of your own for your fork of this project. Digging through pages and posts to find your revisions is pretty annoying and this will help reduce the amount of people asking if 0.2 will be updated.
  10. Offline


    @Thulinma I agree with seriousbrad,

    I say you merge your landmark version with the dynmap developer. FrozenCow just updated his dynmap too. Perhaps create a Bukkitdev project and have him has the creator with you.
  11. Offline


    I think it´s a very cool Plugin, but how can I enable the Markers on my Dynmap? I could add it ingame, but there is nothing on the map :( I have CB 1185, so can you make an update for it :D
  12. Offline


    Speaking selfishly, I would love to see the landmark feature stay available on it's own too. Since I use it with Pigmap and not Dynmap. As long as it creates a JSON file, i can work with it - thanks again to the helpful assistance with JavaScript from @Thulinma .
  13. My latest version works on all recent craftbukkit versions and all recent dynmap versions - there is no need for an update. Did you copy the web files into the dynmap/web directory? Did you enable landmarks in your dynmap config? You need to do both these things for it to work!

    Yes, I like it separate, too. Still - integrating with dynmap more closely wouldn't hurt either. I'll make sure not to break "compatibility" with other mapping systems though! So don't worry - you'll be able to keep using your pigmap script with landmarks, even if it does integrate with dynmap more.
  14. Offline


  15. Yes, starting right now! :)
    This is my version 0.6:

    Plugin: Landmarks.jar
    Dynmap webfiles: dynmap_webfiles.zip

    Changes since 0.5:
    - Webfiles now in "dynmap/web/..." instead of "dynmap/..." to prevent confusion. No other changes, so no need to update the webfiles if you have 0.5 working already.
    - Switched to BukkitPermissions.
    - Switched to new Configuration API.
    - Changed class name.

    This version works with all recent CraftBukkit builds.
  16. Offline



    Are you going to start your own page or bukkitdev site for easier tracking of info? I found this by watching the thread, but I'm sure some newbies would like to find this wonderful mod through normal searches. Plus, you deserve the credit for maintaining it.

    - SBHouse
  17. Yeah, I'll put it on bukkitdev since the forum pages will be removed at some point and all that - no use making a thread about it just to have it deleted shortly after :)

    EDIT: Approved. Here's where the bukkitdev project is:

    I'll keep following this topic just in case, but questions and such should now be directed there. :)
  18. Offline



    Now there is an "I" as a symbol, as well as other possible symbols
  19. Offline

    Elias Nilsson

    Thanks For a great plugin :)
  20. Offline


    Is this still working with Pigmap?
  21. Offline

    George Abitbol


    "Dynmap webfiles" where necessary ?

    I added the plugin on my server
    I added a marker, but he did not appear on my dynmap.

    The console is OK :
    11:38:52 [INFO] [Landmarks] Saved /home/minecraft_srv_1/plugins/Landmarks/../dynmap/web/markers.json
  22. You need to extract the webfiles to the dynmap folder in your plugins dir, or it will not work.
  23. Offline


    It also works on Minecraft version 1.1 ?
  24. Offline


    Having the same problem. Web files is in the dynmap/web folder anyway.

    The instructions seem very vague and could do with being clarified. Like what to do with the markers.json file? It doesn't say anywhere to put it in dynmap/web folder, but there are navigations to it.

    Also what do landmarks do ingame. I have add and set a landmark, but it has nothing in game and nothing on dynmap? Is it supposed to tell you that you are in a certain area? I am getting nothing on the screen, but the mod appears to have installed ok.

Share This Page