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/
Just to update about my last post here. The Vanish no packet guy has a modified version working with his plugin were using.
Hrm, have you considered multiple world support as a feature? Like, just have different .json outputs for each world? Or is that possible and I'm just an idiot?
I have a problem i can't see that anyone else has posted. The issue is that each time i run overviewer.py it will overwrite the index.html and thus remove the player_markers.js which i've added. Is there somehow i can config the overviewer to add the line, or what can i do? MapMarkers version 0.3.3 Minecraft-Overviewer 0.3.0-169
@Revenger Ah. Nice! I didn't know such files came with the overviewer. I edited the /Minecraft-Overviewer/overviewer_core/data/web_assets/index.html now
So I have my map located on a server that uploads the map to a shared hosting server once a day, I'd like to store my Markers.json file on my dropbox folder so it updated more often. So in player_markers.js I edited it and made it list line, however it doesn't work. Any help? Code: $.getJSON('http://dl.dropbox.com/u/2363305/Games/Minecraft/Server/Map/Markers.json', function(data) { As you can see, the file is there and the data is working, but the map will not pull that info and add the player locations.
Thnaks for this plugin, But, how i can do to make multiworld with marker.js ? Does the plugins accept : Code: outputFile: {world}/markers.json
The plugin outputs the world name in the json, so there's no need for per-world json. You just have to have the javascript ignore any points that aren't from the current world. If you look at my player_markers.js (http://minecraft.technoized.com/player_markers.js): Code: for (i in data) { var item = data[i]; //ignore anything not from the current world. if(item.world != overviewerConfig.world) continue; ... And in overviewerConfig.js (http://minecraft.technoized.com/overviewerConfig.js): Code: 'world': "world"
seems not to work for me, added everything to the files and nothing happens. JSON File is in directory, data is written, but no markers shown up on map1 Help please... mc-overview.k9-kommando.de
seems that markers.json is not delivered by Server renamed it to markers.txt and it is possible to open it... What is to do?
For overviewerConfig.js on the template files is there a way to use a variable to get the world name than hard coded? That way it can be more dynamic as we run the default way from a from the templates which update and overwrite each render.
I have made a more or less updated version, read i rewrote it. It now also supports offline Players if they were online at one point while the Plugin was running (I save the locations to a file). But this needs an updated version of the overviewer script. I will make a project in Bukkit Dev when i ready and link it here.
Uploaded 0.3.4, the only change is that it works on 1.2 beta. I heard something about Overviewer now supporting multiworld natively, so expect a possible update after I update my overviewer install.
Hey TJ09, all, I'm from the Overviewer development team (eminence on github, achin on IRC). You're right, Overviewer now does support multiworld natively! We want to support MapMarkers (and PlayerMarkers) natively, including integrated multiworld support. So your users won't need to mess with the javascript/html stuff, it should Just Work once they've installed your bukkit plugin (there's only be a small amount of configuring on the Overviewer side). This is what I'm working on now, and hope to have finished in a day or so. Let me know if you have any questions/comments/concerns.
As of overviewer .9+ the included script will no longer work. I am from the overviewer dev team and we've successfully updated the script to add additional functionality and support for both this plugin and competing plugins. In future we plan on including the required javascript functions directly in the core of our product. Until that time: your users will need to upgrade their scripts to the one hosted here: https://github.com/overviewer/Minecraft-Overviewer-Addons/tree/master/PlayerMarkers Note: this is only required if they are running the anvil supported version of Overviewer 0.9 or higher.