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

    cool_s

    MapMakers.yml has been replaced with config.yml (can be found in /plugins/MapMarkers/config.yml)

    fix pls =3

    Also... after a few tries... I finally managed to get the players to show up ^.^
    I have PHP5, fopen allowed, PHP GD installed... and at first it didn't work.

    After adding error_reporting(0); to the player.php file (placed at first line) it works =3
    Code:
    <?php
        error_reporting(0);
        $username = preg_replace('/[^a-zA-Z0-9_]/', '', $_SERVER['QUERY_STRING']);
    
        //Headers.
        header("Content-Type: image/png");
        header("Content-Disposition: inline; filename={$username}.png");
     
  3. Offline

    brages

    Mapmarkers.yml file is missing in 3.2
     
  4. Offline

    YorVeX

    this doesn't work with the latest version of minecraft-overviewer, as some items were renamed. depending on which file you use open player_markers.js or player_markers_noskin.js with a text editor and find this line:
    Code:
    var converted = fromWorldToLatLng(item.x, item.y, item.z);
    change it to:
    Code:
    var converted = overviewer.util.fromWorldToLatLng(item.x, item.y, item.z);
    then 3 lines below find this line:
    Code:
    map: map,
    change this to:
    Code:
    map: overviewer.map,
    now it should work again.
     
  5. Offline

    heifinator

    I did the above change but its still not working.

    No errors in the log, the JSON file is writing to my overviewer output but the map shows no players.

    Any ideas?

    =)
     
  6. Offline

    TJ09

    I'll be updating my server to the most recent Overviewer soon, when I'm done I'll post an updated version of MapMarkers.
     
    Phaedrus likes this.
  7. Offline

    Jellyfrog

    Sounds good!
    You have a solution for the new Overviewer format in either mine or YorVeX post...
     
  8. Offline

    Reil

    First of all, thanks for bringing a Bukkit version of this! I like the Overviewer/Pigmap stuff, and don't want DynMap attaching itself to my server and eating resources. =S

    Now for nagging:
    Server says I should nag you about onPlayerQuit. A few RBs back, it went from beign onPlayerQuit(PlayerEvent event) to onPlayerQuit(PlayerQuitEvent event). Hooray.

    The installation instructions at the very top still mention a MapMarkers.yml for the bin/ folder. I noticed while updating that you've moved to the 'standard Bukkit' practice of a config.yml in the plugin folder. Some people have posted in confusion about this; you should probably fix it. :3

    I think that's it. :3 Keep up the good work!
     
  9. Offline

    Phaedrus

    I'm looking forward to this being updated. I just switched from dynmap to the new DTT overviewer. I tried to get this to work, but no luck.
     
  10. Offline

    h0us3cat

    It still works, we only get one error about "nag". But it still works fine.
     
  11. Offline

    Jellyfrog

  12. Offline

    Phaedrus

  13. Offline

    TJ09

    Before I release an update, does anyone know if pigmap has updated to the new setup that overviewer uses (or something similar), or should I still retain the old javascript?

    Try the _noskin one. If that works then it's PHP's fault.

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: May 6, 2016
  14. Offline

    Jellyfrog

    If your running linux with apache...
    1. tail -f /var/log/apache2/error.log
    2. Visit your map
    3. Post error here
    If not... find the error log or even easier; check the output of the request with firebug.

    No idea, but it havent been updated since 22 april, https://github.com/equalpants/pigmap

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: May 6, 2016
  15. Offline

    GmK

    No, unfortunately the pigmap web assets still use the old format, I am starting to get really lost inbetween all the different web versions.
     
  16. Offline

    neko259

    Can you update it to work with MC1.6?
     
  17. Offline

    TJ09

    As far as I know it does work. The current version (Without updated the overviewer javascript) is working just fine on my 818 server.
     
  18. Offline

    aarr

    I have setup a test server and I think I am on the right track. However, when I start the server I get an error telling me the markers.json file is denied write access. I am new to this so I am not sure exactly how to give it access. I am on an account with full admin privileges so I figured that it would work.

    I am using XP and wamp..
     
  19. Offline

    TJ09

    Have you changed the markers.json location at all?

    If so, what did you change it to?
    If you haven't, does the "world" folder exist, or are you using a different folder name for your default world?
     
  20. Offline

    aarr

    yes. I changed it to the output of my pigmap render, which is c:\wamp\www\world

    I think it is outputting to the correct place however, something to do with the web server (apache??) isnt allowing it to modify the markers.json.

    I tried running the bukkit server from my desktop outside of wamp and markers.json updates correctly

    I think I need to know how to give my bukkit server permission to write on apache...??


    ***Update***

    I got it working. I ended up droping everything in my www folder and it worked.
     
  21. Offline

    Revenger

    Its been a while and were close to finishing our multiworld setup.

    You mentioned in your post here about your own server multiworld setup has any progress etc been made to make a viable easy way for people like me to have multiworld overviewers and player posistions>

    You seem to have done it but never really explained how you did it back then or make a way that others can do it easilly.
     
  22. Offline

    TJ09

    I've had this code sitting around for a while, so I'm just going to release it while I finish polishing new features.

    It's just a bugfix release, no new features. Although now you have four javascript versions to choose from (how exciting?)

    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.

    As I mentioned in the linked post, my current multiworld map setup is kind of "hacked together," and not much has changed since then. I'm working on a patch I may submit to overviewer to make things much easier.

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: May 6, 2016
  23. Offline

    Revenger

    Thanks for the info I kinda thought you were going to look at your hacked stuff to see what you could do and release that at some stage.

    Thanks for the clarifications etc.
     
  24. Offline

    xcanner

    Could you optimize the code. It is actually generating lag on my server. Make it run on a scheduler every X seconds, writing the positions of all the players? Currently its using syncronized alot when a player moves.
     
  25. Offline

    ekeup

    I made a plugin using billiam's Character image generator (version 0.1), I couldn't find him by searching on the forums, but thanks!
     
  26. Offline

    TJ09

    It already uses a scheduler, the only synchronized stuff is for last-seen timestamps, for which there is no replacement function in Bukkit. I can add a config option to disable timestamps in the output if it's actually causing lag..
     
  27. Offline

    Pr4w

  28. Offline

    TJ09

    The corrupt images there are pigmap tiles, which has nothing to do with this plugin (although it does indicate some issues with your pigmap setup or that you viewed the map while it was still generating).

    Unrelated issues aside, looking at http://minecrafteurope.com/maps/Lorencia/Aerium1/player_markers.js shows that you're using the JS file for the newest version of overviewer. Which I guess is understandable, because that's what the readme says to do (apparently I never updated it). You'll want to copy player_markers_noskin_old.js to player_markers.js instead.
     
  29. Offline

    SyPi

    Dosent work with Permissions 3

    Error (MapMakers enable):

    Code:
    01:57:19 [SCHWERWIEGEND] java.lang.IllegalAccessError: tried to access class com.nijiko.permissions.ModularControl$RefreshTask from class com.nijiko.permissions.ModularControl
    01:57:19 [SCHWERWIEGEND]        at com.nijiko.permissions.ModularControl.<clinit>(ModularControl.java:45)
    01:57:19 [SCHWERWIEGEND]        at com.nijikokun.bukkit.Permissions.Permissions.setupPermissions(Permissions.java:184)
    01:57:19 [SCHWERWIEGEND]        at com.nijikokun.bukkit.Permissions.Permissions.onLoad(Permissions.java:139)
    01:57:19 [SCHWERWIEGEND]        at org.bukkit.craftbukkit.CraftServer.loadPlugins(CraftServer.java:121)
    01:57:19 [SCHWERWIEGEND]        at org.bukkit.craftbukkit.CraftServer.<init>(CraftServer.java:89)
    01:57:19 [SCHWERWIEGEND]        at net.minecraft.server.ServerConfigurationManager.<init>(ServerConfigurationManager.java:52)
    01:57:19 [SCHWERWIEGEND]        at net.minecraft.server.MinecraftServer.init(MinecraftServer.java:132)
    01:57:19 [SCHWERWIEGEND]        at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:335)
    01:57:19 [SCHWERWIEGEND]        at net.minecraft.server.ThreadServerApplication.run(SourceFile:422)
    01:57:19 [SCHWERWIEGEND] [Permissions] Unable to load permission data.
    01:57:19 [SCHWERWIEGEND] [Permissions] Shutting down Permissions due to error(s).
    
     
  30. Offline

    TJ09

    Uh, are you sure it's MapMarkers? MapMarkers doesn't even use Permissions.
     
  31. Offline

    SyPi

    with mapmarkers in the plugin dir permissions crashes
     

Share This Page