[MISC/INFO] Dynmap-Mobs v0.90 - add mobs to Dynmap maps! [1.6.4R2.0-]

Discussion in 'Archived: Plugin Releases' started by Mike Primm, Nov 18, 2011.

  1. Offline

    Liger_XT5

    Makes sense. Otherwise, the only bugs I've been having is some passive mobs don't seem to vanish/move on dynmap when the dynmap-mobs plugin is running, even when there is no one online.

    I've also noticed a large spike in CPU usage with this plugin.
     
  2. Offline

    Mike Primm

    What are you basing the CPU measurement on? Its kind of hard to imagine a plugin that only does work within one tick out of every 5 seconds can generate a measurable CPU load. Are you seeing tick timeouts ("can't keep up" messages)?
     
  3. Offline

    Liger_XT5

    At random times I do get can't keep up messages. On my host, I can use SSH and when I look at the htop and sort by CPU usage. Without the plugin I run around 20-30% with players, but jumps up to 60% to as high as 200% with the plugin.

    I can tell a difference when I enable/disable it though milkadmin's Web UI and look at the htop screen.
     
  4. Offline

    Mike Primm

    OK - which dynmap version are you running? You may want to give the latest dev builds a try - I just did some optimization on the marker publishing path that would be very relevant to having lots of moving markers running around.
     
  5. Offline

    Liger_XT5

    I am using DM25 from about a week ago, I think.
    I'll reupdate it, just the dynmap.jar file? Or other files I need to overwrite as well?
     
  6. Offline

    Mike Primm

    Always update all the files - we change both the JAR and associated javascript and data files routinely.
     
  7. Offline

    Liger_XT5

    Updated, running good. No odd CPU spikes this time around. Will have to wait till the server populates a bit more to push it better.

    I still have a weird issue where some passive mobs show on dynmap, but they do not move, nor vanish. The icons have been there for the last few days, but vanish when I disable dynmap-mobs, then return to the extact same place when I re-enable/restart the server.

    Right now, easily to tell SE of spawn. http://96.44.129.66:8122/
     
  8. Offline

    Mike Primm

    I need to look at the 'inside', but I don't actually persist anything, so they're coming from 'somewhere'. I know that Bukkit keeps the chunks around the spawn points in each world loaded, by default - I would expect any of the persistent mobs to go with that (cows, sheep, pigs, and such all persist now, while most hostile mobs don't). I suspect that they are loaded but not animated when nobody is near them....I'll try to confirm this theory....
     
  9. Offline

    Liger_XT5

    Makes sense. I'll go exploring to see what mobs got wasted this time. lol
    Thanks!
     
  10. Offline

    Mike Primm

    Also, for folks that are interested, the latest development build of 0.13 now has my intended behavior for the 'hideifundercover' (that is, the setting specifies the 'sky light level' that, if the mob's location is less than or equal to, will cause the mob to be hidden). This level corresponds to the light level that a cube would have during the daytime, in the absence of any block lighting (torches and such), and is a good approximation of how visible the location is to 'the sky'. So, being under glass or near a window will cause a mob to still be visible for most of these values, but being under ground or inside an opaque structure will cause them to be hidden.
     
  11. Offline

    Sithnar

    ooow 50% smaller looks good!

    think this might scare some of the people who look at the map tho :)
    deffinatly going to be adding this!
     
  12. Offline

    Monk3y

    is there a debug mode? im getting a severe error * failed to load dymap api*
     
  13. Offline

    Mike Primm

    That looks like you're missing the 'markers' component in Dynmap - you may need to add this to configuration.txt:
    Code:
      # Note: this component is needed for the dmarker commands, and for the Marker API to be available to other plugins
      - class: org.dynmap.MarkersComponent
        type: markers
        #showlabel: true
        #enablesigns: true
        # (optional) add spawn point markers to standard marker layer
        showspawn: true
        spawnicon: world
        spawnlabel: "Spawn"
        # (optional) layer for showing offline player's positions
        #showofflineplayers: true
        #offlinelabel: "Offline"
        #offlineicon: offlineuser
        #offlinehidebydefault: true
    
    I just released a new update to Dynmap (0.26) that has the support we'll need for the smaller icons - I'm hoping to spin an update here to utilize it in the next day or so.

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

    Liger_XT5

    I don't suppose there's a way for webbrowser users could disable all mob icons? Some of my users have been mentioning periodic lagg on low-end computers every few seconds, the 5 second recheck I have set.
     
  15. Offline

    Mike Primm

    You can set the layer.hidebydefault setting to 'false' - this will cause the layer to be disabled by default (unchecked in the layer selector on the left, just below the zoom buttons).
     
  16. Offline

    Monk3y

    Thanx for the speedy reply im still having issues im not sure what im doing wrong i might of put the code in the wrong place in the config file im not sure


    Code:
    2011-12-11 19:25:39 [INFO] [dynmap] Using Permissions 2.7.2 for access control
    2011-12-11 19:25:39 [SEVERE] Error occurred while enabling dynmap v0.25.1-624 (Is it up to date?): while parsing a block mapping; expected <block end>, but found BlockSequenceStart
    while parsing a block mapping
     in "<reader>", line 3, column 1:
        components:
        ^
    expected <block end>, but found BlockSequenceStart
     in "<reader>", line 436, column 3:
          - class: org.dynmap.MarkersComponent
          ^
    
        at org.yaml.snakeyaml.parser.ParserImpl$ParseBlockMappingKey.produce(ParserImpl.java:575)
        at org.yaml.snakeyaml.parser.ParserImpl.peekEvent(ParserImpl.java:161)
        at org.yaml.snakeyaml.parser.ParserImpl.checkEvent(ParserImpl.java:146)
        at org.yaml.snakeyaml.composer.Composer.composeMappingNode(Composer.java:230)
        at org.yaml.snakeyaml.composer.Composer.composeNode(Composer.java:160)
        at org.yaml.snakeyaml.composer.Composer.composeDocument(Composer.java:123)
        at org.yaml.snakeyaml.composer.Composer.getSingleNode(Composer.java:106)
        at org.yaml.snakeyaml.constructor.BaseConstructor.getSingleData(BaseConstructor.java:121)
        at org.yaml.snakeyaml.Yaml.loadFromReader(Yaml.java:480)
        at org.yaml.snakeyaml.Yaml.load(Yaml.java:423)
        at org.bukkit.util.config.Configuration.load(Configuration.java:89)
        at org.dynmap.DynmapPlugin.onEnable(DynmapPlugin.java:236)
        at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:188)
        at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader.java:957)
        at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:280)
        at org.bukkit.craftbukkit.CraftServer.loadPlugin(CraftServer.java:184)
        at org.bukkit.craftbukkit.CraftServer.enablePlugins(CraftServer.java:167)
        at net.minecraft.server.MinecraftServer.t(MinecraftServer.java:337)
        at net.minecraft.server.MinecraftServer.a(MinecraftServer.java:324)
        at net.minecraft.server.MinecraftServer.init(MinecraftServer.java:161)
        at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:388)
        at net.minecraft.server.ThreadServerApplication.run(SourceFile:457)
    2011-12-11 19:25:39 [WARNING] [dynmap] Marker API has been requested, but is not enabled.  Uncomment or add 'markers' component to configuration.txt.
    2011-12-11 19:25:39 [SEVERE] [dynmap-mobs] Error loading Dynmap marker API!
     
  17. Offline

    Liger_XT5

    W
    Will this also stop the 5 second re-checks?
     
  18. Offline

    Mike Primm

    The 5 seconds is how often the mob positions are queried, and the changed ones reported - this period is controlled by update.period setting.

    The i
    The intendation is wrong - needs to valid yaml syntax, which means consistent with the other components in the components section. Check it with http://www.yamllint.com

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

    Monk3y

    The site says that this is a valid yml
    http://pastebin.com/XvYRh2Vv

    But i keep getting this error
    Code:
    2011-12-12 02:09:00 [INFO] [dynmap] Using Permissions 2.7.2 for access control
    2011-12-12 02:09:00 [SEVERE] Error occurred while enabling dynmap v0.26-648 (Is it up to date?): while parsing a block mapping; expected <block end>, but found BlockEntry
    while parsing a block mapping
     in "<reader>", line 3, column 3:
          components:
          ^
    expected <block end>, but found BlockEntry
     in "<reader>", line 436, column 3:
          - class: org.dynmap.MarkersComponent
          ^
    
        at org.yaml.snakeyaml.parser.ParserImpl$ParseBlockMappingKey.produce(ParserImpl.java:575)
        at org.yaml.snakeyaml.parser.ParserImpl.peekEvent(ParserImpl.java:161)
        at org.yaml.snakeyaml.parser.ParserImpl.checkEvent(ParserImpl.java:146)
        at org.yaml.snakeyaml.composer.Composer.composeMappingNode(Composer.java:230)
        at org.yaml.snakeyaml.composer.Composer.composeNode(Composer.java:160)
        at org.yaml.snakeyaml.composer.Composer.composeDocument(Composer.java:123)
        at org.yaml.snakeyaml.composer.Composer.getSingleNode(Composer.java:106)
        at org.yaml.snakeyaml.constructor.BaseConstructor.getSingleData(BaseConstructor.java:121)
        at org.yaml.snakeyaml.Yaml.loadFromReader(Yaml.java:480)
        at org.yaml.snakeyaml.Yaml.load(Yaml.java:423)
        at org.bukkit.util.config.Configuration.load(Configuration.java:89)
        at org.dynmap.DynmapPlugin.onEnable(DynmapPlugin.java:239)
        at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:188)
        at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader.java:957)
        at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:280)
        at org.bukkit.craftbukkit.CraftServer.loadPlugin(CraftServer.java:184)
        at org.bukkit.craftbukkit.CraftServer.enablePlugins(CraftServer.java:167)
        at org.bukkit.craftbukkit.CraftServer.reload(CraftServer.java:430)
        at org.bukkit.Bukkit.reload(Bukkit.java:187)
        at org.bukkit.command.defaults.ReloadCommand.execute(ReloadCommand.java:22)
        at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:165)
        at org.bukkit.craftbukkit.CraftServer.dispatchCommand(CraftServer.java:372)
        at org.bukkit.craftbukkit.CraftServer.dispatchCommand(CraftServer.java:368)
        at net.minecraft.server.MinecraftServer.b(MinecraftServer.java:553)
        at net.minecraft.server.MinecraftServer.w(MinecraftServer.java:530)
        at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:414)
        at net.minecraft.server.ThreadServerApplication.run(SourceFile:457)
    2011-12-12 02:09:00 [WARNING] [dynmap] Marker API has been requested, but is not enabled.  Uncomment or add 'markers' component to configuration.txt.
    2011-12-12 02:09:00 [SEVERE] [dynmap-mobs] Error loading Dynmap marker API!
     
  20. Offline

    Liger_XT5

    I know that, but when the query is taking place on the interval, the browser either freezes or stutters, depending on the browser and machine. I've recently seen what everyone is talking about while watching Netflix. The video would freeze (sound still playing) then it would catch up in about a couple seconds. The video would freeze frame every 5 seconds. Even when I had the mobs layer off.

    The settings I have is 5 second, all monsters and wolves, all light levels. All requested by the players of the server. I'm about to change it to only see monsters on the top ground layer where the sun hits. :/
     
  21. Offline

    Mike Primm

    It needs to be in the components section - see this version - http://pastebin.com/C223hpWE

    At present, I don't control which sets of markers are communicated to the client from the server (so hiding a marker layer doesn't eliminate the I/O, just the processing of the graphics to produce the layer). It's possible to do something like this - it just hasn't been done yet.

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

    Monk3y

    Thanx mike that fixed my issue when i saw it had the derp face lol
     
  23. Offline

    AHgpeu

    please do the ability to disable the names of mobs, leaving the rest of the map markers?
    sorry for my english
     
  24. Offline

    Mike Primm

    I can add that easily - look for an update in the next day or so.
     
    AHgpeu likes this.
  25. Offline

    md_5

    You can only have one rb in the title.
    Looks good.
     
  26. Offline

    Mike Primm

    Done
     
  27. Offline

    md_5

    Approved.
     
    Mike Primm likes this.
  28. Offline

    ST-DDT

    Nice Plugin

    But can you please add a feature to set a MaxZoomVisibility?
    Because if i look on HD maps I don't see any landscape when zoomed out because to much mobs are shown.

    What about, torch lighted caves?
    Or Mobs seen by players not matching to given conditions, can they be made visible too?
     
  29. Offline

    AHgpeu

    mmm...?
     
  30. Offline

    Mike Primm

    Its in the development build for the next version - just haven't released it yet.

    Good thought - I'll need to add capability to Dynmap for that (can't do it from the add-on).

    The hideifshadow option works for any light source, so it will work for mobs in torch lit (or lava lit) caves (hideifundercover is used to distinguish between mobs visible from the surface - more correctly, the sky - and mobs lit by other means).

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

Share This Page