Inactive [INFO] MapMarkers v0.3.4 [1.1R6]

Discussion in 'Inactive/Unsupported Plugins' started by TJ09, Jan 16, 2011.

  1. Offline

    TJ09

    PURPOSE
    This plugin outputs a JSON file containing player locations for use with various Minecraft mapping software.

    INSTALLATION
    1. Put MapMarkers.jar in your plugins folder
    2. Run your server once to generate a config file
    3. Edit plugins/MapMarkers/config.yml to your liking

    SETUP FOR MINECRAFT OVERVIEWER (Courtesy of FlukiestEmperor)
    0. Perform installation (see above)
    1. Edit MapMarkers.yml so that markers.json is placed in the same folder as your Minecraft Overviewer output
    Alternatively don't edit MapMarkers.yml, make a symlink (Linux):
    ln -s path/to/minecraft/server/bin/world/markers.json path/to/minecraft/map/markers.json
    2. Put player.png, player.php, and player_markers.js where the overviewer index.html is. (Optionally web_assets in your overviewer source directory)
    If you don't want to use player skins as the markers (requires PHP, allow_url_fopen, and ideally write permissions by your PHP user), copy player_markers_noskin.js and rename it to player_markers.js
    3. Add a line to your source overviewer index.html that reads:
    <script type="text/javascript" src="player_markers.js"></script>
    4. Run overviewer and everything should work

    SETUP FOR PIGMAP
    0. Perform installation (see above)
    1. Edit MapMarkers.yml so that markers.json is placed in the same folder as your Pigmap output
    Alternatively don't edit MapMarkers.yml, make a symlink (Linux):
    ln -s path/to/minecraft/server/bin/world/markers.json path/to/minecraft/map/markers.json
    2. Put player.png, player.php, and player_markers_old.js where the pigmap HTML is.
    If you don't want to use player skins as the markers (which requires PHP, allow_url_fopen, and ideally write permissions by your PHP user), copy player_markers_noskin_old.js and rename it to player_markers.js
    3. Add two lines to your source template.html that reads:
    <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.4/jquery.min.js"></script>
    <script type="text/javascript" src="player_markers.js"></script>
    4. Run pigmap and everything should work

    CONFIGURATION
    plugins/MapMarkers/config.yml contains all settings

    saveInterval (default 3000): How often to output the markers, in milliseconds
    outputFile (default world/markers.json): Where to place the output file
    dateFormat (default yyyyMMdd HH:mm:ss): How to format timestamps in the output JSON.
    writeSpawn (default false): Whether or not to place spawn markers (one for each world) in the output.

    CHANGELOG
    0.3.4:
    • Fixed for new configuration and event handling (Now works in 1.1-R6 and 1.2-betawhatever)
    0.3.3:
    • Updated quit event signature (fixes the nag errors)
    • Updated player_markers.js for the latest version of Overviewer. Pigmap and old versions of Overviewer are in the _old suffix (unchanged from 0.3.2)
    • Readme file contains the right instructions pointing to the new config location.
    0.3.2:

    • Properly included player_markers_noskin.js in the zip
    • Fixed a bug in player.php
    • Config file is now located in plugins/MapMarkers/config.yml. The plugin will automatically create the folder/file as necessary.
    • JSON output now includes world name instead of GUID.
    0.3.1:

    • Removed the constructor for compatability with new versions of Bukkit.
    • Plugin now handles player teleport events.
    • Timer now uses the bukkit scheduling stuff instead of a separate thread.
    0.3:

    • JSON output now has IDs indicating the marker type
    • Optional spawn markers (see config file)
    • JSON output includes world GUID
    • Player skins as can be used as icons
    FUTURE(Possible features)
    • Easy multiworld support.
    • Commands to add custom markers
    • Server weather and time
    • Player-controlled hiding of their position.
    • Zoom-to-player and track player
    DOWNLOAD

    Most recent version available at:
    http://tj09.net/minecraft/MapMarkers/MapMarkers-0.3.4.zip (Direct Jar)
    Older versions can be downloaded from:
    http://tj09.net/minecraft/MapMarkers/
     
    Mahagon, Phaedrus and DiddiZ like this.
  2. Offline

    GmK

    Thanks for the updates, guys!

    Now we need those script genius people to adapt them to read the world and place the marker or not place it.
     
  3. Offline

    FabianN

    I get this in my server log:

    2011-02-23 01:35:03 [WARNING] Using the stupidly long constructor com.bukkit.TJ09.MapMarkers(PluginLoader, Server, PluginDescriptionFile, File, File, ClassLoader) is no longer recommended. Go nag the plugin author of MapMarkers to remove it! (Nothing is broken, we just like to keep code clean.)

    NAGNAGNAG
     
  4. Offline

    EdGruberman

    Code:
    2011-02-23 22:30:15 [WARNING] Using the stupidly long constructor com.bukkit.TJ09.MapMarkers(
    PluginLoader, Server, PluginDescriptionFile, File, File, ClassLoader) is no longer recommende
    d. Go nag the plugin author of MapMarkers to remove it! (Nothing is broken, we just like to k
    eep code clean.)
    NAGNAGNAG
     
  5. Offline

    bastion

    is there a map that this works with after the map format update?
     
  6. Offline

    FabianN

    At the moment, I don't think so, not fully. I know there is a fork of overviewer where support for the new file format is being added and they are pretty far, but it's not complete. No idea on what time-frame they are working with or when they expect it to be done. Just be patient and everything should be back up and running smoothly shortly.
     
  7. Offline

    bastion

    Cool my existing maps still work for markers so i was just wondering if someone was working on it. No rush. Do need to let everyone know that as of craftbukkit build 449 mapmarkers will no longer work because of the stupid long plugin constructor, tslpc. It currently works on 448 but not 449. This is do to the dev team [Dinnerbone] taking out support for the said tslpc.
     
  8. Offline

    sunkid

    If you download the source and simply delete the constructor, the plugin compiles and seems to work again. Here is the jar file: <Edit by Moderator: Redacted mediafire url>

    @TJ09: maybe you can host this on github?
     
    Last edited by a moderator: Dec 15, 2016
  9. Offline

    Xon

    You can use the attached version of RegionTool, I've updated with the classes linked from Mojang (here) as well as fixing which files it looks for.

    Once you have that;
    Code:
    cd ~/RegionTool
    java RegionTool unpack <worlddir>
    Then you probably want to use rync to pickup changed chunks to copy into another folder which Minecraft Overviewer is reading chunks to render from.
    Code:
    rsync -v --recursive --whole-file -c --delete-during <packed data location> <Minecraft Overviewer world dir> --exclude region --exclude "*.mcr"  > minecraft_chunklist
    That way you only overwrite changed chunks, and keep the re-render time down. Really helps if all that is performed on a ramdisk to keep to per-file-access time down to something sane.
     

    Attached Files:

  10. Offline

    GmK

    Pigmap has been updated :)

    All works as it should again.
     
  11. Offline

    Dateranoth

  12. Offline

    FlukiestEmperor

    What about support for multiple worlds?
     
  13. Offline

    but2002

    That breaks the yml file. I can no longer configure it.

    Can we get an official update on this plugin because the "Stupidly Long Constructor" bug is causing it not to work, and I dearly need this plugin.
     
    Last edited by a moderator: Dec 15, 2016
  14. Offline

    Dreamskiller

    I can't find player_markers_noskin.js ... and I don't use php :/
     
  15. Offline

    FlukiestEmperor

    Config does work. Tried it myself, everything is fine.
     
  16. Offline

    sunkid

    The tiny modification I made has nothing to do with the handling of the configuration file. The deprecated constructor only called the parent class' initialize method, which is now called automatically.

    Did you move the configuration file? It's still expected to be in the directory craftbukkit lives in, not in the plugin directory.
     
  17. Offline

    Dreamskiller

    So, nothing for non-php user ? ...
     
  18. Offline

    but2002

    I checked both locations. These files do not exist. I tried looking in
    ./plugins/MapMarkers/
    ./MapMarkers

    And even looked for
    ./plugins/MapMarkers.yml
    ./MapMarkers.yml

    No such file exists.
    I can confirm that it -IS- loading correctly, because the json file is being shot out to ./world

    In the end, I just took the source code, fixed the stupidly long constructor, and then manually set my parameters and compiled with NetBeans. That did the trick for me.
     
  19. Offline

    FabianN

    Yea, you're going to need to use PHP. PHP is essential for this to work.
    What's your issue with PHP? Web hosts should have it. If it's a case of your own server, you can set it up fairly easily.
     
  20. Offline

    Xon

    Making an equivalent aspx page would be fairly trivial. I guess the player head thing could be done in javascript like dynmap does, but that is a lot of work to replicate and introduces more compatibility issues since javascript and how it interacts with the browser is easily on of the worse things even inflicted onto the software industry.
     
  21. Offline

    Kyrin

    Is there any way to get this to work with Dynmap plugin?
     
  22. Offline

    Landmine

    WTB Update for this!
     
  23. Offline

    WindTag

    Offtopic, but if it hasn't been pointed out before, I remember you from Dragon Cave, that avatar is hard to forget.
     
  24. Offline

    Dreamskiller

    Because I use the integrated McMyAdmin public folder to share my pigmap map, and I think that McMyAdmin web server (which is integrated) does not support PHP.

    I'm confused, because the installation tutorial says something about a player_marker_noskins.js :/
     
  25. Offline

    sunkid

    If your configuration files are not there, then I would expect your plugin not to use anything but the default values. It seems that the MapMarkers reads ./MapMarkers.yml but may not create it by itself... not sure.

    If there is sufficient interest, I wouldn't mind taking this over. It works well for me as is, but I can see the advantage of an integration with McMyAdmin for example.
     
  26. Offline

    but2002

    I would say go for it. This kind of plugin should never die. Not with something as useful as a world map.
     
  27. Offline

    Landmine

    Please take it over, this is an awesome mod that every server with a map needs.
     
  28. Offline

    TJ09

    0.3.1 is out, I believe the only change is the removal of the constructor for compatibility with new versions of bukkit, but to be honest, I don't recall if I made any other changes to the source after releasing 0.3
     
  29. Offline

    CoteRL

    As far as I can tell it ignores the placement of markers.json. I've tried pointing it to my gmap directory and restarted and it didnt use it, then I just tried in the main minecraft folder (out of the world directory), still in the world directory.
     
  30. Offline

    TJ09

    So I just did a diff on the 0.3 code and discovered that I did make some changes, but nothing that would affect changing the file location (In fact, I tested changing file locations and had no issues).

    What I did change, though:
    Plugin now handles player teleport events
    Timer now uses the bukkit scheduling stuff like Xon and I discussed earlier.
     
  31. Offline

    EdGruberman

    It still says 0.3 only when loaded in the console:
     

Share This Page