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

    simphax

    I made a PHP script for the hMod plugin, that outputs a player icon png based on their skin (cuts out the face and resizes it to 24x24 px). I'm sure it will work on this as well. I've released the code on pastebin: http://pastebin.com/uugSLDHs

    I haven't tested this on Bukkit, but I think it'll work if you do something like this:

    Put the code in a file named playerfaces.php and place it in the same folder as your GMap pages. Edit player_markers.js and replace 'player.png' with 'playerface.php?nick='+item.msg
     
    Monopol likes this.
  3. Offline

    billiam

    Related:
    https://github.com/ethzero/Minecraft-Overviewer-Addons
    Pretty much does the same thing, from the look of it, but uses a simple caching class (Cache_Lite) also.

    I have a fork of it here that adds some things I wanted (full skin view instead of just face, a configurable/optional border color and width because I couldn't make out avatars on my map well).

    https://github.com/Billiam/Minecraft-Overviewer-Addons

    example output:

    player-avatar.php?player=Notch&s=1&bc=0f0&bw=1&format=flat makes:
    notch2.png

    player-avatar.php?player=Notch&s=1&bc=0f0&bw=5&format=flat makes:
    notch1.png

    I'm planning to add an isometric view output, but not sure whether it's worth the trouble or if I'll get around to it :)
     
  4. Offline

    TJ09

    So I just tested with both Linux (Slackware) and Windows (7) and ../folder/file.json worked just fine for me. Do the logs show anything significant, such as java exceptions?

    anyways, next version coming soon with JSON id's, optional spawn marker, and I'm about to look into a PHP script that pulls skins from minecraft.net for the markers (even though that seems to be covered via third party stuff, I'd like to make it a "part" of the plugin anyways).
     
  5. Offline

    simphax

    Oh, Touché [​IMG] I also use a cache of outputs. This one seems to be more extensive though. Nice fork you did too ^^ though i think square faces is better suited for a google map. :)
    I'm pretty sure you are allowed to use mine or billiams' code if you want to :)
     
  6. Offline

    tahoward

    Is it possible to include a snap-to player list in the 'player_markers.js' without extra work being done to functions.js/map.js?

    Been trying to mesh old player snap lists to overviewer by editing the functions.js and including a styles.css pulled from mega-overviewer without much luck; getting to where the 'list' is visible but doesn't load players and the map goes away with home/spawn marker still visible. It would help if I knew what I was doing probably.
     
  7. Offline

    CoteRL

    @billiam, @simphax;

    I have tried both of your files and they both just fall back to the default skin. I made sure they both pointed to the new skins url to no avail. Do you know of any reason why my server (I have to assume its me) won't pull the skins?
     
  8. Offline

    Noxi Foxi

    Having problems with:
    Doesn't work for me. The overviewer shows like before: http://www.insane-architects.net/map/
     
  9. Offline

    billiam

    allow_url_fopen may be disabled in your php.ini. Check phpinfo();

    Your markers.json file is 403ing
     
  10. Offline

    Drakonas

    Just to let you guys know, I have just released my fork of Pigmap on github.

    It should work with this MapMarkers plugin, and still work for hMod, if needed.

    Also, I've updated my Overviewer fork to have support for this plugin, as well.

    If you want screenshots, here's my old post for hMod.

    I'm planning on adding that new script you made, billiam. Very nice. I was wondering when someone was going to make it show the entire body and not just the face.
     
  11. Offline

    Noxi Foxi

    ty it works now, the symbolic link was the reason ;)
     
  12. Offline

    h0us3cat

    <3 [diamond][diamond][diamond]

    Does it renders the new blocks like wool colors and sand/stone blocks?
     
  13. Offline

    Drakonas

    Yes it does. :)
     
  14. Offline

    Jonathan Bloom

    Is there a list of what's different from the original pigmap?
     
  15. Offline

    Drakonas

    Look at the readme on my Overviewer fork. I list all my changes there. They are pretty much the same for pigmap.

    I also provide a script to use with Linux and Windows, yet in order to use pigmap with Windows, it requires you to compile the code, which is a bit advanced for most people (I'm not sure how good you are with computers). I plan to release a win32 build on my github some day soon. I don't have access to my main computer to do so, for the time being.
     
  16. Offline

    you48230

    I realize this is a dumb question but where is the plugin's folder?
     
  17. Offline

    Drakonas

    Not the place to be asking this. Please ask this in the discussion/support forums.
    But I'll be nice. Sometimes you have to create a folder. :) The folder needs to be in the same place as craftbukkit.jar, named "plugins" without quotes.

    Don't expect others to be as nice about questions in the wrong place. Maybe next time you should do some research. :) Just a friendly warning.
     
  18. Offline

    Erbros

    Any idea why the markers wont show on my map? The markers.json is accessible from the webserver, I have added the scripts to the index.html

    Tried lots of different things.

    http://minecraft.erbros.net/output/index.html

    Any help is highly appreciated.
     
  19. Offline

    billiam

    You have a new line in the middle of a string in player_markers.js that shouldn't be there.

    Use this instead.
    Code:
    var c = "<div class=\"infoWindow\" style='width: 300px'><img src='player2.png'><h1>"+item.msg+"</h1></div>";
     
    Erbros likes this.
  20. Offline

    Erbros

    Thanks you so much, billiam! :) Would never have seen that myself :)
     
  21. Offline

    Airyina

    Billiam your script doesn't seem to work at all, it just times out. As for the faces one, it will only pull default skins, not really sure why, it looks like it is set up properly.
     
  22. Offline

    CoteRL

    You probably have the same issue I did, make sure allow url fopen is enabled in your php.ini
     
  23. Offline

    Airyina

    It's open.
     
  24. Offline

    EvilSeph Retired Staff

  25. Offline

    GmK

    I have been using different forks and whatnot for ages, and everything works splendidly just as I wish. (I loved it when I had the realms overlay working).

    The one and only thing I simply cannot get to work at all is any kind of avatar-showing.

    Using Drakonas script I get the message: 'The image "http://smp.blocktopia.net/map/faces.php?nick=Notch" cannot be displayed because it contains errors." (I didnt change anything in the script) and using billiams script (http://smp.blocktopia.net/map/player-avatar.php?player=Notch&s=1&bc=0f0&bw=1&format=flat) I only get a blank page (I did change the php tag to the full one, and fopen is enabled).

    Is there anything in the php.ini setting I can change / try / do to get this working? It can only be due to some php setting it seems to me. If it helps, our phpinfo() http://smp.blocktopia.net/map/phpinfo.php

    Thanks in advance!
    --- merged: Feb 2, 2011 12:01 PM ---
    One should of course check if GD is installed.

    I did get billiams script working now, only Drakonas is still giving the error message. Closing in :D
    --- merged: Feb 2, 2011 12:14 PM ---
    Eth0's script works fine, it is only Drakonas/simphax script that doesnt work. Weird.

    Anyways, all solved. For anyone having troubles, check you have php-gd installed and extension=gd.so; or such uncommented in the php.ini
     
  26. Offline

    datLicht

    Addon to MapMarkers by datLicht

    - Online Player List
    - Markers are heads
    - Info Window shows full avatar


    INSTALLATION:

    1. Copy the full content of MMLicht.rar to your overviewer web dir
    2. Edit your index.html:

    add (below line: <div id="mcmap" style="width:100%; height:100%"></div>) :

    <div id="playerList" style="position:absolute; background-image:url(./listbg.png); top:55px; right:20px; width:150px; height:*;border:solid;border-color:#FFFFFF;border-width:1px;color:#FFFFFF;font-family:Arial;">
    <strong>
    <div align="center" style="font-size:80%; position:relative; top:5px;">&nbsp;Online List&nbsp;</div>
    <hr style="color:#FFFFFF; background:#FFFFFF; heigth:1px;" />
    <div style="font-size:80%; left:10px; bottom:10px; top:5px" id="Spieler"></div>
    </strong>
    </div>

    3. enjoy your MapMarkers



    As seen on http://www.k9-kommando.de/mm
    (without Chat Window)

    PS: you have to follow all instructions given in first Post before installing this one!!

    Download: http://www.k9-kommando.de/mm/MMLicht.rar
     
    Ahava and FabianN like this.
  27. Offline

    FabianN

    @datLicht : Could I integrate this into my fork of the Overviewer map maker (of course credit would be given)? Some changes I'd want to make, such as keeping the player icons as their avatars instead of a face, otherwise it looks great and thanks
     
  28. Offline

    daze

    a client disconnecting by a crash and reconnecting immediatly after the crash causes this error:

    Code:
    Exception in thread "Timer-0" java.lang.NullPointerException
            at java.util.Calendar.setTime(Calendar.java:1092)
            at java.text.SimpleDateFormat.format(SimpleDateFormat.java:876)
            at java.text.SimpleDateFormat.format(SimpleDateFormat.java:869)
            at java.text.DateFormat.format(DateFormat.java:333)
            at com.bukkit.TJ09.MapMarkersTimerTask.run(MapMarkersTimerTask.java:48)
            at java.util.TimerThread.mainLoop(Timer.java:534)
            at java.util.TimerThread.run(Timer.java:484)
    
     
  29. Offline

    datLicht

    @FabianN:
    It's no problem just use it as you want... Credit would be nice and let me see what you have done to it ;)

    greetz datLicht
     
  30. Offline

    Drakonas

    For those that want pigmap for Windows, I now have a Windows package on my github.

    Features:
    - Face icons for markers (optional)
    - Player list (optional)
    - Information windows with custom avatars for players (optional, soon to have custom description as well)
    - Latitude, Longitude, and Zoom function allows you to send other people a link to what you are looking at
    - Soon to implement full player skins as icons

    Make sure to edit the config section in template.html before using.

    Download the Windows package here.

    Also supports Linux and should support Mac. Download the source here.

    My Github
     
  31. Offline

    immapoint

    nice nice nice nice work! but unfortunately not compatible with the newest bukkit version :/
    i would love if you compile(just compile!) this with the newest bukkit version :)
     

Share This Page