[FIX/ADMN/MECH] EntitySuppressor v3.0- Limit Mobs, Reduce Lag! [1.4.7-R1.0]

Discussion in 'Archived: Plugin Releases' started by Fishrock123, Oct 3, 2011.

  1. Offline

    Fishrock123

    [​IMG]

    Moved to BukkitDev

    Features!
    Downloads [CB 1.2.5-R1.0]
    Changelog
    Source


    [​IMG]
     
    strontkever and FlamingArmor like this.
  2. Offline

    Fishrock123

    Did 2.0.1 TEST Solve your first problem?

    What parameters did you use for /es?
     
  3. Offline

    PhunkeyMonkeh

    No sorry, i missed this in the log before i tried the

    /es count all command

    [SEVERE] Error occurred while enabling EntitySuppressor v2.0.1 TEST (1L5) (Is it up to date?): null
    java.lang.NullPointerException
    at Fishrock123.EntitySuppressor.ESConfig.load(ESConfig.java:123)
    at Fishrock123.EntitySuppressor.EntitySuppressor.initialize(EntitySuppressor.java:61)
    at Fishrock123.EntitySuppressor.EntitySuppressor.onEnable(EntitySuppressor.java:44)
    at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:188)
    at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader.java:968)
    at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:280)
    at org.bukkit.craftbukkit.CraftServer.loadPlugin(CraftServer.java:186)
    at org.bukkit.craftbukkit.CraftServer.enablePlugins(CraftServer.java:169)
    at net.minecraft.server.MinecraftServer.t(MinecraftServer.java:348)
    at net.minecraft.server.MinecraftServer.a(MinecraftServer.java:335)
    at net.minecraft.server.MinecraftServer.init(MinecraftServer.java:165)
    at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:399)
    at net.minecraft.server.ThreadServerApplication.run(SourceFile:457)

    Sounds like a config error, im using the one you provide on your page, should i maybe try leaving it create its own?
     
  4. Offline

    Fishrock123

    I would suggest letting it re-generate the config.
    You're trying to use a non-number for a world maximum, that no longer works.

    I will investigate /es count all; do all the other /es count commands work? does /es reload work?
     
  5. Offline

    PhunkeyMonkeh

    Ok it seems to be an issue on my end, i just tried it on my test server and it seems to work, however i have set the following in the config

    LimitMonsters: true
    LimitSquid: true
    LimitAnimals: true
    MonsterMaximums:
    world: 300
    world_nether: 100
    world_the_end: 0
    ChunkCalculatedMonsterMaximums:
    world: 23
    world_nether: 23
    SquidMaximums:
    world: 32
    ChunkCalculatedSquidMaximums:
    world: 6
    AnimalMaximums:
    world: 100
    ChunkCalculatedAnimalMaximums:
    world: 23
    ScanInterval: 100
    UseMonsterDistanceRemoval: true
    RemoveAtDistance: 128
    CancelSpawnAtDistance: 92

    Yet on starting the server the following is in the logs

    2011-12-28 23:22:17 [INFO] ES: Loading Config File...
    2011-12-28 23:22:17 [INFO] ES: Maximum monsters in world is: 56
    2011-12-28 23:22:17 [INFO] ES: Maximum squid in world is: 14
    2011-12-28 23:22:17 [INFO] ES: Maximum animals in world is: 56
    2011-12-28 23:22:17 [INFO] ES: Maximum monsters in world_nether is: 56
    2011-12-28 23:22:17 [INFO] ES: Maximum squid in world_nether is: 0
    2011-12-28 23:22:17 [INFO] ES: Maximum animals in world_nether is: 0
    2011-12-28 23:22:17 [INFO] ES: Maximum monsters in world_the_end is: 0
    2011-12-28 23:22:17 [INFO] ES: Maximum squid in world_the_end is: 0
    2011-12-28 23:22:17 [INFO] ES: Maximum animals in world_the_end is: 0
    2011-12-28 23:22:17 [INFO] EntitySuppressor version 2.0.1 TEST (1L5) is enabled! {61 ms}

    Where is it getting these limits from?
     
  6. Offline

    Fishrock123

    I should really add the word "currently" after "is".
    Those are being calculated by the chunk-calculated maximum as per this equation:

    (#Chunks * (world: 23)) /256)

    So, the more chunks you load, the more monsters can spawn, its dynamic, and works nicely. For a single player you don't really need more than 50-60 monsters.
     
  7. Offline

    PhunkeyMonkeh

    I've had to go back to 1.4 :(

    On the main server is simply doesnt work, so im guessing its conflicting with another plugin.
     
  8. Offline

    Fishrock123

    1.4 Is quite terribly outdated now, it is like, 2 months old.

    Can you please explain to me what exactly does not work?
     
  9. Offline

    PhunkeyMonkeh

    As before really.

    I tested the plugin on a test server and it worked fine, so its not the plugin, but it must be a compatability issue somewhere.

    When i add the 2.01 jar you provided, even when i remove the configs and let it re-generate its own on startup i get the following error

    [SEVERE] Error occurred while enabling EntitySuppressor v2.0.1 TEST (1L5) (Is it up to date?): null
    java.lang.NullPointerException
    at Fishrock123.EntitySuppressor.ESConfig.load(ESConfig.java:123)
    at Fishrock123.EntitySuppressor.EntitySuppressor.initialize(EntitySuppressor.java:61)
    at Fishrock123.EntitySuppressor.EntitySuppressor.onEnable(EntitySuppressor.java:44)
    at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:188)
    at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader.java:968)
    at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:280)
    at org.bukkit.craftbukkit.CraftServer.loadPlugin(CraftServer.java:186)
    at org.bukkit.craftbukkit.CraftServer.enablePlugins(CraftServer.java:169)
    at net.minecraft.server.MinecraftServer.t(MinecraftServer.java:348)
    at net.minecraft.server.MinecraftServer.a(MinecraftServer.java:335)
    at net.minecraft.server.MinecraftServer.init(MinecraftServer.java:165)
    at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:399)
    at net.minecraft.server.ThreadServerApplication.run(SourceFile:457)

    And when trying to use any /es command i get the following

    2011-12-29 20:23:19 [SEVERE] null
    org.bukkit.command.CommandException: Unhandled exception executing command 'es' in plugin EntitySuppressor v2.0.1 TEST (1L5)
    at org.bukkit.command.PluginCommand.execute(PluginCommand.java:42)
    at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:165)
    at org.bukkit.craftbukkit.CraftServer.dispatchCommand(CraftServer.java:378)
    at net.minecraft.server.NetServerHandler.handleCommand(NetServerHandler.java:757)
    at net.minecraft.server.NetServerHandler.chat(NetServerHandler.java:722)
    at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:715)
    at net.minecraft.server.Packet3Chat.a(Packet3Chat.java:33)
    at net.minecraft.server.NetworkManager.b(NetworkManager.java:226)
    at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:93)
    at net.minecraft.server.NetworkListenThread.a(SourceFile:108)
    at net.minecraft.server.MinecraftServer.w(MinecraftServer.java:527)
    at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:425)
    at net.minecraft.server.ThreadServerApplication.run(SourceFile:457)
    Caused by: java.lang.NullPointerException
    at Fishrock123.EntitySuppressor.EntitySuppressor.onCommand(EntitySuppressor.java:108)
    at org.bukkit.command.PluginCommand.execute(PluginCommand.java:40)
    ... 12 more

    Also your website doesnt seem to have any versions inbetween 1.4 and 2.0 so i couldnt use any other version

    http://dev.bukkit.org/server-mods/entitysuppressor/files/
     
  10. Offline

    Fishrock123

    There are no versions between 1.4 and 2.0....

    So.. what plugins are you using?
     
  11. Offline

    PhunkeyMonkeh

    I just wanted to thank you for your help also. I really like the plugin, and the other similar plugins try doing too much for what i need. I just want a simple mob limiter , which is why im here :)

    I think its only fair i try trouble shoot this my end, ill add each plugin one by one to my test server to try rule some out.
    Thanks.
     
  12. Offline

    Fishrock123

    " BukkitCompat r16B "

    Are you trying to use "/es" form McMyAdmin?
     
  13. Offline

    PhunkeyMonkeh

    i use mcmyadmin, but im not trying to use it from the mcma console.

    Im using it ingame.
     
  14. Offline

    strontkever

    i got a 16 players server, mostly full..

    the only problem i have is my 1mb upload :(
    so looking for a way to limit connection usage...

    ill let u know what it does

    [edit]
    Same error as dude above..
    also tried test version, same error
    :(
     
  15. Offline

    Fishrock123

  16. Offline

    Cheewy

  17. Offline

    Fishrock123


    Use the test version above, and if it works, tell me!!!
     
  18. Offline

    CubieX

    @Fishrock123
    Using EntitySuppressor 2.0 on Bukkit RB 1597 (1.0.1-R1)
    But I've a problem: As soon as I alter the default config in any way, monsters completele despawn.
    I run this on a 80 slot public server and have currently about 400 animals, 100 squids and 0 monsters in my world.
    Reloading it does nothing.

    Here's my config:

    Code:
    LimitMonsters: true
    LimitSquid: true
    LimitAnimals: false
    MonsterMaximums:
      ccraft4: 512
      ccraft4_nether: 128
      ccraft4_the_end: 256
    ChunkCalculatedMonsterMaximums:
      ccraft4: 14
      ccraft4_nether: 23
    SquidMaximums:
      ccraft4: 32
    ChunkCalculatedSquidMaximums:
      ccraft4: 6
    AnimalMaximums:
      ccraft4: 128
    ChunkCalculatedAnimalMaximums:
      ccraft4: 23
    ScanInterval: 100
    UseMonsterDistanceRemoval: true
    RemoveAtDistance: 128
    CancelSpawnAtDistance: 92
    
    I tested this extensively. When I delete the altered config and use the automaticly generated one, monsters appear as normal.
    But if I change only one number or character in the config and save it, monsters disappear.

    Because our world is called "ccraft4" and not "world" I can not use the default config.
    I'm using Notepad++ for editing this, like I do for all my plugins to edit the configs.
     
  19. Offline

    Cheewy

    Yes same error very strange =/
     
  20. Offline

    Fishrock123

    It's not reading the config correctly. Why, I do not know, It works fine on my computer.. ;-;
     
  21. Offline

    Cheewy

    Ya that stinks was really looking forward to a way to keep a limit on monsters it seems I have just thousands of them on my current server can't go anywhere without being mobbed by 5-10 monsters at a time it's pretty annoying same with caves or mining area's.​
     
  22. Offline

    Fishrock123

  23. Offline

    CubieX

    mmmm, same problem for me. Monsters despawn.
    Perharps someone other can test this?
     
  24. Offline

    Fishrock123

    Hope this atleast fixes the logger problem.

    If you are having config problems, use a non-formatting text editor, such as standard notepad or textedit.
     
  25. Offline

    Justin Quach

    Works. :)

    nvm, error:
    Code:
    06:27:47 [SEVERE] Error occurred while enabling EntitySuppressor v2.0.1 (1L9) (
    s it up to date?): null
    java.lang.NullPointerException
            at Fishrock123.EntitySuppressor.ESConfig.load(ESConfig.java:123)
            at Fishrock123.EntitySuppressor.EntitySuppressor.initialize(EntitySuppr
    ssor.java:61)
            at Fishrock123.EntitySuppressor.EntitySuppressor.onEnable(EntitySuppres
    or.java:44)
            at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:188)
            at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoade
    .java:968)
            at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManag
    r.java:280)
            at org.bukkit.craftbukkit.CraftServer.loadPlugin(CraftServer.java:186)
            at org.bukkit.craftbukkit.CraftServer.enablePlugins(CraftServer.java:16
    )
            at net.minecraft.server.MinecraftServer.t(MinecraftServer.java:348)
            at net.minecraft.server.MinecraftServer.a(MinecraftServer.java:335)
            at net.minecraft.server.MinecraftServer.init(MinecraftServer.java:165)
            at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:399)
            at net.minecraft.server.ThreadServerApplication.run(SourceFile:457)
    Plugins:
    Code:
    06:28:30 [INFO] Plugins: Backup, BleedingMobs, ChunkManager, CombatTag, CookieMo
    nster, CustomMessages, EntitySuppressor, HeroChat, iConomy, JSONAPI, LagMeter, L
    CCombat, LCExcavation, LCFarming, LCMining, LCRange, LCScavenger, LCWoodCutting,
     LevelCraftCore, LWC-Economy, RemoteToolkitPlugin, Minequery, motd, OwnBlocksX,
    PermissionsBukkit, StarterKit, Tips, UnhealthyDeath, WorldEdit, WorldGuard, Citi
    zens, dynmap, LWC, WorldBorder
    
    Config:
    Code:
    # ###############################################################
    #
    #  EntitySuppressor v2 Configuration
    #
    #      Developer: Fishrock123
    #           Report bugs and feature requests to: http://dev.bukkit.org/server-mods/entitysuppressor/tickets/
    #      Support:
    #           @[URL='http://forums.bukkit.org/members/fishrock123.63041/']Fishrock123[/URL] on Twitter
    #           Fishrock123 on www.bukkit.org or dev.bukkit.org
    #           http://forums.bukkit.org/threads/fix-admn-mech-entitysuppressor-v1-4-limit-monsters-reduce-lag-1597.39794/
    #           http://dev.bukkit.org/server-mods/entitysuppressor/forum/
    #
    #  REMEMBER: Animals are Mobs too!
    #
    #  ##############################################################
    #
    #  In brackets following suggested values are general setting levels, this is a rough guide:
    #
    #  Very Low: Under 2GB ram, Under 2Ghz processor speed. (~1-6 players)
    #  Low: 3 - 4GB ram, 2 - 2.3Ghz processor speed. (~6-12 players)
    #  Medium (mid): 4 - 6GB ram, 2.3 - 2.7Ghz processor speed. (~12-24 players)
    #  High: 6 - 8+ GB ram, 2.8Ghz processor speed. (~24-32+ players)
    #
    # ###############################################################
    #
    #  Set what the plugin should limit.
    #  LimitMonsters: true / false
    #  LimitSquid: true / false
    #  LimitAnimals: true / false
    #
    #
    #  Set the total maximum monsters per world.
    #  MonsterMaximums:
    #    world: 128 (very low) / 256 (low) / 512 (mid) / 1024 (high)
    #    world_nether: 128 (very low) / 256 (low) / 512 (mid) / 1024 (high)
    #    world_the_end: 256 (no less than this)
    #
    #  Set the total maximum squid per world.
    #  SquidMaximums:
    #    world: 16 (very low) / 32 (low) / 64 (mid) / 128 (high)
    #
    #  Set the total maximum animals per world.
    #  AnimalMaximums:
    #    world: 64 (very low) / 128 (low) 256 (mid) / 512 (high)
    #
    #
    #  The dynamic chunk-calculated maximums are calculated using this formula:
    #  ( ( Number of loaded chunks ) times ( config value ) ) divided by ( 256 )
    #  (loaded_chunks * X) / 256
    #
    #  Set the dynamically calculated maximum monsters per world.
    #  ChunkCalculatedMonsterMaximums:
    #    world: 23
    #    world_nether: 23
    #
    #  Set the dynamically calculated maximum squid per world.
    #  ChunkCalculatedSquidMaximums:
    #    world: 6
    #
    #  Set the dynamically calculated maximum animals per world.
    #  ChunkCalculatedAnimalMaximums:
    #    world: 23
    #
    #
    #  Set number of server ticks between checks to allow additional mobs.
    #  ScanInterval: 100
    #
    #
    #  Set whether to use dynamic monster removal and spawn prevention (Increases difficulty back to that of vanilla)
    #  UseMonsterDistanceRemoval: true / false
    #
    #  Set the distance at which any mobs farther away from all players should be removed each scan.
    #  RemoveAtDistance: 128
    #
    #  Set the distance at which monsters will have their spawn's cancelled.
    #  CancelSpawnAtDistance: 92
    #
    #
    #  Get extra debugging information
    #  Debug: true / false
    #
    # #######   OUTDATED SETTINGS - REMOVE IF YOU HAVE THEM #######
    #
    #     ESConfigVersion
    #         Removed.
    #
    #     checkDifference
    #         Replaced by a square root function.
    #
    #     maxMonsters / DefaultMaximum
    #         Removed, everything must now be set per world.
    #
    #     nonLimitedWorlds:
    #         Removed, set that world's maximum to 9001.
    #
    #     SpawnFlagsCheckInterval:
    #         Replaced by ScanInterval.
    #
    # ###############################################################
    
    LimitMonsters: true
    LimitSquid: true
    LimitAnimals: true
    MonsterMaximums:
      world: 384
      world_nether: 256
      world_the_end: 128
    ChunkCalculatedMonsterMaximums:
      world: 23
      world_nether: 23
    SquidMaximums:
      world: 32
    ChunkCalculatedSquidMaximums:
      world: 6
    AnimalMaximums:
      world: 32
    ChunkCalculatedAnimalMaximums:
      world: 23
    ScanInterval: 200
    UseMonsterDistanceRemoval: true
    RemoveAtDistance: 512
    CancelSpawnAtDistance: 512
    
    I use Notepad++ with the spaces instead of tab's option ON.
     
  26. Offline

    Fishrock123

    Is your world called "world"?
     
  27. Offline

    TowelieDOH

    Having some issues with 2.0.1 (as well with 2.0.0)

    - Mobs don't spawn in nether (0 mobs)
    - any /es commands return internal server error

    Below is my config:

    Code:
    LimitMonsters: true
    LimitSquid: true
    LimitAnimals: true
    MonsterMaximums:
      World1: 1536
      SKY: 256
      World1_nether: 1024
      World1_the_end: 256
    ChunkCalculatedMonsterMaximums:
      World1: 32
      World1_nether: 32
    SquidMaximums:
      World1: 8
    ChunkCalculatedSquidMaximums:
      World1: 4
    AnimalMaximums:
      World1: 256
    ChunkCalculatedAnimalMaximums:
      World1: 23
    ScanInterval: 100
    UseMonsterDistanceRemoval: true
    RemoveAtDistance: 128
    CancelSpawnAtDistance: 92
    Same issue with this build. (you asked me to try with this)

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

    Mercury

    Does this plugin conflict with Monster Apocalypse?
     
  29. Offline

    Justin Quach

    My world isn't called world, is that the issue?
     
  30. Offline

    Fishrock123

    The two should be able to work together, but it may take some work to properly configure.

    Umm... yes?! Replace world(_nether,_the_end) with your world's name.
     
    Justin Quach likes this.
  31. Offline

    Mercury

    Interesting thing is that i have more animals (150) than monsters (80) at night. How is it possible?

    Also
    LimitAnimals: true
    world: 64

    I still have a lot of animals. 306 animals - 127.

    Number won't decrease. While mob number is limited.

    Also when I do

    /es count

    ES: Maximum monsters in world is 146 (MonsterMaximums: world: 512)
    ES: Maximum squid in world is: 16 (SquidMaximums: world: 16)
    ES: Maximum animals in world is: 64 (AnimalMaximums: world: 64)
    ES Count (167): 45 monsters, 117 animals, 0 squid and 5 players.

    () - Shows setting in config.

    -----------
    MonsterMaximums: world: 512 - Whenever i change number to 256 it still says ES: Maximum monsters in world is 146. When i change number from config to 128 then it's fine:
    Maximum monsters in world is 128. How do I make number bigger then?

    ----------
    Everytime I do /es count
    I get different numbers for MonsterMaximums: world
    Sometimes 220, 329, 200 - Maximum Squids / Maximum Animals stays constant.
    ---------
    After server restart:
    09.01 16:03:23 [Server] INFO ES: Maximum animals in world is: 48
    09.01 16:03:23 [Server] INFO ES: Maximum squid in world is: 14
    09.01 16:03:23 [Server] INFO ES: Maximum monsters in world is: 73
    Plugin Y U NO read correct numbers?
     

Share This Page