Inactive [MECH] CrowdControl v0.0.3 - The creature control plugin [1.1R3]

Discussion in 'Inactive/Unsupported Plugins' started by WinSock, Jun 8, 2011.

  1. Offline

    WinSock

    CrowdControl - The creature control plugin.
    Version 0.0.3

    New Rewrite is out! Get it at:
    http://dev.bukkit.org/server-mods/crowdcontrol/
    Temp Download Link Below


    Yes it's back, the two plugins MobControl and CrowdControl have been merged now and I present to you on the behalf of the elBukkit team the new and improved CrowdControl! Features are still being added from both of the old plugins but i have decided that enough basic functionality is here to release it to the general public!

    If you're not familiar with JSON i recommend this online editor:
    http://jsoneditoronline.org/

    Todo/Issues

    Download

    Source

    Milestones

    Full Changelog
     
    11RJB and NathanWolf like this.
  2. Offline

    WinSock

    I shall quote @Stabhappy to give you the awnser
     
  3. Offline

    Stabhappy

    There is little to NO lag. Even the server is sitting at ~10% CPU while maintaining a cap of 1000 zombies (although it isnt spawning that many, but it's quite a lot).

    Very stable also. I'm quite impressed with how it's going and it's probably only way to completely control monsters on a minecraft server at the moment: also thanks WinSock, I'll keep an eye out for an update. Thanks again!
     
  4. Offline

    WinSock

    For you i changed SpawnMaterialRule to block materials instead of allow materials :)

    Version 0.25.04 released

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

    Stabhappy

    so I would just add water as the block type? I tried to add dirt erlier to test the command and it threw an exception. So could you provide an example of how to block them spawning in/on water?
     
  6. Offline

    bill45

    Can't run my server offline btw, most my plugins don't work with it in offline mode. Anyway, just got home and I tried to run the new release and throws me some errors complaining about the new config.txt which it cannot find and it disables the mod. Also asks if it is up to date which it is I deleted any old files of crowdcontrol.

    Code:
    2011-06-14 16:16:36 [INFO] CrowdControl v0.25.04 is enabled!
    2011-06-14 16:16:37 [INFO] Failed to read config file!
    2011-06-14 16:16:37 [INFO] CrowdControl v0.25.04 is disabled!
    2011-06-14 16:16:37 [SEVERE] Error occurred while enabling CrowdControl v0.25.04 (Is it up to date?): Plugin attempted to register CREATURE_SPAWN while not enabled
    org.bukkit.plugin.IllegalPluginAccessException: Plugin attempted to register CREATURE_SPAWN while not enabled
        at org.bukkit.plugin.SimplePluginManager.registerEvent(SimplePluginManager.java:346)
        at com.elBukkit.bukkit.plugins.crowd.CrowdControlPlugin.onEnable(CrowdControlPlugin.java:132)
        at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:125)
        at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader.java:799)
        at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:253)
        at org.bukkit.craftbukkit.CraftServer.loadPlugin(CraftServer.java:140)
        at org.bukkit.craftbukkit.CraftServer.loadPlugins(CraftServer.java:118)
        at net.minecraft.server.MinecraftServer.e(MinecraftServer.java:235)
        at net.minecraft.server.MinecraftServer.a(MinecraftServer.java:222)
        at net.minecraft.server.MinecraftServer.init(MinecraftServer.java:149)
        at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:286)
        at net.minecraft.server.ThreadServerApplication.run(SourceFile:422)
    
    That be the error and also the config.txt turns into a folder called config.txt.
     
  7. Offline

    WinSock

    I have not had that happen to me at all, if you manually make config.txt in the folder does it work?

    Read the new material section of the Command page on my wiki.

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

    bill45

    Yea I just added it manually and it took it just fine. Rather odd it just created a folder called config.txt
     
  9. Offline

    WinSock

    Well i think my new version fixes it for new users. I hope lol.

    Released Version 0.25.05
     
  10. Offline

    Stabhappy

    Latest build from Jenkins: Monsters with the SetSpawnMaterial rule ONLY spawn on those materials. Set it for water and stationary_water (in caps) and zombies only spawn in water :(

    Probably a simple fix, though!

    EDIT: I was wrong, they're still spawning everywhere. I will try to add the spawn rules AFTER I run SET.
     
  11. Offline

    bill45

    Yea I'm not sure the rules are working at least the material rule and light rule. I set it so zombies couldn't spawn on either and well they like to spawn in the water and during the day to kill themselves either by drowning or burning to death. Going to try the new version to test the fix.
     
  12. Offline

    Stabhappy

    These errors are on 0.25.05 though, so be warned that it probably won't fix.
     
  13. Offline

    WinSock

    Hrmmm, my code logic is good i think
    Code:
     if(block.getLightLevel() > min){
    if(block.getLightLevel() < max){
    return true;
    }
    }
    
     
  14. Offline

    Stabhappy

    if the light level is equal to maximum wouldn't that rule not work? so if we're using light level 15 (daylight) and it's checking, it will give the wrong return
     
  15. Offline

    WinSock

    good catch ill change them to <= >=
     
  16. Offline

    bill45

    The config.txt now is created correctly for me thank you. The rule that doesn't seem to wanna work is the material one. I made it so zombies couldn't spawn in air,water or stationary water. And well they just keep happily swimming along after I kill them all and wait for respawn.
     
  17. Offline

    WinSock

    Found the error!!!! Expect 0.25.06 soon :)
     
  18. Offline

    bill45

    Cool can't wait to test it. I do love this plugin was hoping to make something similar after I uh learn some more about java but this is nice. It does give you a lot of control over monsters.
     
  19. Offline

    WinSock

    Updated to 0.25.06 :)
     
  20. Offline

    bill45

    Lol as I'm slowly going through the source code I see OMG I FAIL through out it.
     
    WinSock likes this.
  21. Offline

    WinSock

    Version 0.25.07 with my fail bug gone.

    I did have many epic fail mistakes that i didn't catch and fyi bill this release is bug free! *knocks on wood*

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

    bill45

    Hahaha , we shall see. I think I see a few already, but gonna test a few more things to make sure.

    Edit: The zombies still refuse to not spawn in the water or under it really. They like spawn underwater and rise up to say hello. You think if I add the height rule it will change that? I ask that cause I have no idea what are fair numbers for the zombies to not spawn from clouds. Also a question about the max,min in the spawn light rule, what are those numbers for?
     
  23. Offline

    Stabhappy

    Looks like they're spawning underneith the water, on a dirt or stone block. Is it possible to check to see if the block above the target block is on the blocked material list? If so, that would fix it.
     
  24. Offline

    WinSock

    Version 0.25.08 that i uploaded just as you replied just fixed it.
    The min max is what it sounds like, Max = The maximum allowed light level, Min = Minimum required light.
     
  25. Offline

    Jabbic

    Can you post a file that just has all the creatures set to the default so that we don't have to go and set up every creature...
     
  26. Offline

    bill45

    Ah ok it's about as I thought, thank you. Water is fixed so no more emerging zombies from the water. Now, there is a bug I didn't mention early that is still around. Which is they creatures seem to have a chance to spawn in the ground and then take damage till they die. Didn't mention it earlier because I wasn't sure if it was lag or I set one of the rules oddly.
     
  27. Offline

    WinSock

    Weird that is impossible, this line of code only allows the mob to spawn where the block is air or water, otherwise it bails out to the next chunk:
    Code:
    if (spawnBlock.getType() == Material.AIR || spawnBlock.getType() == Material.WATER || spawnBlock.getType() == Material.STATIONARY_WATER) {
    
    Are you sure its just not this bug notch mentioned: (http://notch.tumblr.com/post/5938461844/minecraft-beta-1-6-5)
    * Fixed some entities appearing to fall through the ground repeatedly in multiplayer (some might still do so)
     
  28. Offline

    bill45

    It might very well be. I might only be noticing as much as I do because the mobs are just spawning more than usual. Other than that I haven't found anything else wrong as of yet. Now time to add some more creatures.
     
  29. Offline

    Darcion

    my db was written in 25.01 but now with 25.08 i get this errors:

    PHP:
    2011-06-15 08:29:31 [WARNINGTask of 'CrowdControl' generated an exception
    java
    .lang.NullPointerException
        at com
    .elBukkit.bukkit.plugins.crowd.rules.Rule.checkWorld(Rule.java:55)
        
    at com.elBukkit.bukkit.plugins.crowd.RuleHandler.passesRules(RuleHandler.java:97)
        
    at com.elBukkit.bukkit.plugins.crowd.creature.SpawnHandler.run(SpawnHandler.java:80)
        
    at org.bukkit.craftbukkit.scheduler.CraftScheduler.mainThreadHeartbeat(CraftScheduler.java:138)
        
    at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:386)
        
    at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:309)
        
    at net.minecraft.server.ThreadServerApplication.run(SourceFile:422)
    2011-06-15 08:29:43 [INFOLoaded worldfree2fly



    ah and one idea, its very hard to configure all the rules or to change the rules on some parts.

    i would like to see a extra file whats generated with all existing rules and the possibilitiy to read this file ingame to take the changes, i am faster to write all rules in a file then ingame.
     
  30. Offline

    bill45

    Might have to delete your database if you already haven't.
     
  31. Offline

    Darcion

    omg you kidding me? 1 hour to setup all this data and now begin from new? sry but i dont like that idea
     

Share This Page