Inactive [FUN/ECON]MonsterHunt v1.5.1 - Who kills most mobs? [1.1-R4]

Discussion in 'Inactive/Unsupported Plugins' started by matejdro, Jan 29, 2011.

  1. Offline

    matejdro

    MonsterHunt

    Are your players building at day, but bunker into their houses, when night comes? Make them hunt monsters!

    This plugins adds another layer of fun against monsters. It's absolute must have, if you have monsters turned on.

    At night, when monsters come out, plugin will count how many monsters each player kills. At the end of the night, name of the player with most kills is announced globally.

    Additionally, you can enable reward to add another way of gathering stuff to the server or to simply motivate players to hunt monsters.


    (BIG thanks to @Samkio for the video)

    See BukkitDev page for more information and download links: http://dev.bukkit.org/server-mods/monsterhunt/
    (you can use your minecraft forum username and password on BukkitDev)
     
  2. Offline

    matejdro

    are you admin? Then you probably have * permissions, which will also give you another reward from monsterhunt.rewardeverytime permission.
     
  3. Offline

    Ioncat

    I am, and that nailed it. All is good now! Thanks mate!
     
  4. Offline

    famerdave

    Code:
    01:32:13 [SEVERE] java.lang.StringIndexOutOfBoundsException: String index out of range: -1
    01:32:13 [SEVERE]       at java.lang.String.substring(String.java:1949)
    01:32:13 [SEVERE]       at com.matejdro.bukkit.monsterhunt.Rewards.Reward(Rewards.java:118)
    01:32:13 [SEVERE]       at com.matejdro.bukkit.monsterhunt.Rewards.NormalReward(Rewards.java:61)
    01:32:13 [SEVERE]       at com.matejdro.bukkit.monsterhunt.Rewards.Reward(Rewards.java:29)
    01:32:13 [SEVERE]       at com.matejdro.bukkit.monsterhunt.MonsterHunt.stop(MonsterHunt.java:162)
    01:32:13 [SEVERE]       at com.matejdro.bukkit.monsterhunt.MonsterHunt$1.run(MonsterHunt.java:244)
    01:32:13 [SEVERE]       at org.bukkit.craftbukkit.scheduler.CraftScheduler.mainThreadHeartbeat(CraftScheduler.java:122)
    01:32:13 [SEVERE]       at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:345)
    01:32:13 [SEVERE]       at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:272)
    01:32:13 [SEVERE]       at net.minecraft.server.ThreadServerApplication.run(SourceFile:366)
    01:32:13 [SEVERE] Unexpected exception
    java.lang.StringIndexOutOfBoundsException: String index out of range: -1
            at java.lang.String.substring(String.java:1949)
            at com.matejdro.bukkit.monsterhunt.Rewards.Reward(Rewards.java:118)
            at com.matejdro.bukkit.monsterhunt.Rewards.NormalReward(Rewards.java:61)
            at com.matejdro.bukkit.monsterhunt.Rewards.Reward(Rewards.java:29)
            at com.matejdro.bukkit.monsterhunt.MonsterHunt.stop(MonsterHunt.java:162)
            at com.matejdro.bukkit.monsterhunt.MonsterHunt$1.run(MonsterHunt.java:244)
            at org.bukkit.craftbukkit.scheduler.CraftScheduler.mainThreadHeartbeat(CraftScheduler.java:122)
            at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:345)
            at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:272)
            at net.minecraft.server.ThreadServerApplication.run(SourceFile:366)
    
    On 556..
     
  5. Offline

    matejdro

    Can you show me your RewardParameters?
     
  6. Offline

    famerdave

    SkipDays: 0
    MinimumPlayers: 2
    EnableSignup: true
    MySQLPassword: password
    PointsSkeleton: 2
    PointsSlime: 5
    CountBows: true
    DeathPenalty: 30
    EnabledWorlds: world
    PointsCreeper: 8
    MinimumPoints: 1
    RewardEveryone: false
    PointsGhast: 3
    OnlyCountMobsSpawnedOutside: false
    FinishTime: 23600
    EnableHighScores: true
    StartTime: 13000
    PointsGiant: 1
    MySQLConn: jdbc:mysql://localhost:3306/minecraft
    RewardParameters: 0 50
    PointsSpider: 2
    Debug: false
    MySQLUsername: root
    RewardParametersEveryone: 0 10
    PointsZombiePigman: 1
    SignUpPeriodTime: 2
    UseMySQL: false
    StartChance: 100
    PointsZombie: 3
    TellTime: true
    EnableReward: true
     
  7. Offline

    matejdro

    I really need to update manual, it appears that this part is confusing.

    Even if you have static amount, you still need to define it as a range:

     
  8. Offline

    viviengaetan

    Hi famerdave, you have :
    RewardParameters: 0 50

    test with :
    RewardParameters: 0 50-50



    Also matejdro, I have a problem with MonsterHunt.
    Look at my log here. If you want more information ask me.

    Thanks.
    viviengaetan.
     
  9. Offline

    matejdro

    How much RAM do you have?
     
  10. Offline

    Diet Taco

    The plugin works great! But as I said before can you please make it so that if a player does not have the "monsterhunt.usercmd.hunt" permission then they will not see notifications about hunts. Its a bit confusing to my players when they first join and see all these messages about a hunt but cannot participate in a hunt because they don't have the permission.

    Keep up the good work!
     
  11. Offline

    viviengaetan

    My bat launcher file :
    Code:
    @echo off
    java -Xms1024M -Xmx1024M -jar craftbukkit.jar nogui
    pause
     
  12. Offline

    ClonedInsanity

    Great plugin! Just curious though, would it be possible to have multiple hunts running? So say one hunt happens every 3 nights that only gives points for killing spiders and another happens every 4 nights that only gives points for zombies?
     
  13. Offline

    matejdro

    @Diet Taco on my list.

    @viviengaetan well, error clearly suggest that you don't have enough memory (RAM). I'm not completely sure what do to here.

    @ClonedInsanity Not possible yet, but i have something like that planned.
     
  14. Offline

    risinglotus

    Hey, I downloaded the mod.

    The signup period started at middle of day but that seemed silly because they don't spawn till night. So I changed the start time to 0 (which was said to be midnight) and end time at 13000. Now I get a WARNING Monsterhunt Wrong SignUpPeriodTime Configuration! SIgn up period will be disabled!
    Code:
    SkipDays: 2
    MinimumPlayers: 3
    EnableSignup: true
    MySQLPassword: password
    PointsSkeleton: 1
    PointsSlime: 5
    CountBows: true
    DeathPenalty: 30
    EnabledWorlds: The MC WORLD
    PointsCreeper: 2
    MinimumPoints: 1
    RewardEveryone: false
    PointsGhast: 1
    OnlyCountMobsSpawnedOutside: false
    FinishTime: 13000
    EnableHighScores: true
    StartTime: 0
    PointsGiant: 1
    MySQLConn: jdbc:mysql://localhost:3306/minecraft
    RewardParameters: 264 0-3,322 1-20;12 10-64
    PointsSpider: 1
    Debug: false
    MySQLUsername: root
    RewardParametersEveryone: 264 1-1
    PointsZombiePigman: 1
    SignUpPeriodTime: 5
    UseMySQL: false
    StartChance: 100
    PointsZombie: 1
    TellTime: true
    EnableReward: false
    Thats my setup

    How do I fix that?
     
  15. Offline

    matejdro

    Setting starttime would mean that hunt itself will start at midnight. Lower SignUpPeriodTime to make it start later.

    Sign up period is meant for servers with random start, so players have some time to prepare. But yes, it's a bit pointless if you have it start every night. You can disable it by setting SignUpPeriodTime to 0.
     
  16. Offline

    Codisimus

    perhaps add BOSEconomy/iConomy support, gives prize of money instead of item...
     
  17. Offline

    risinglotus

    Sorry don't really get what u mean? Also with the settings I have mentioned, I got the signup message the exact same time as the starting round, so it never worsk as people just dont have enough time to put in the participate command.

    Thanks for the help and sorry for being a hassle.
     
  18. Offline

    matejdro

    @Codisimus there is support for iConomy. Enter item id 0 to use iconomy money.

    @risinglotus I suggest, you set starttime to default value and set SignUpPeriodTime to less than 5.
     
  19. Offline

    Codisimus

    ok sorry didnt see it in original post (i was just glancing through features) but BOSEconomy would be nice too
     
  20. Offline

    Speakr4thedead

    I wanted to update to the latest Monster Hunt build and when I did, this error started popping up. I created a 'lib' folder in the root and placed the sqllite jar in it, I deleted the MonsterHunt folder just to try to start fresh, and I updated to the latest build of CraftBukkit as of last night. According to the console that would be build number "0.0.0-544"
    What am I doing wrong?
    Servererror.JPG
     
  21. Offline

    matejdro

    Did you placed proper sqlite jar? I recommend you download one from first post.
     
  22. Offline

    killerbeez

    When I try to /huntstart world it says that the world does not exist but it sure does.
    The events never happen.

    Code:
    SkipDays: 0
     MinimumPlayers: 2
     EnableSignup: true
     MySQLPassword: password
     PointsSkeleton: 2
     PointsSlime: 5
     CountBows: true
     DeathPenalty: 30
     EnabledWorlds: world
     PointsCreeper: 8
     MinimumPoints: 1
     RewardEveryone: false
     PointsGhast: 3
     OnlyCountMobsSpawnedOutside: false
     FinishTime: 23600
     EnableHighScores: true
     StartTime: 13000
     PointsGiant: 1
     MySQLConn: jdbc:mysql://localhost:3306/minecraft
     RewardParameters: 0 50-50
     PointsSpider: 2
     Debug: false
     MySQLUsername: root
     RewardParametersEveryone: 0 10
     PointsZombiePigman: 1
     SignUpPeriodTime: 2
     UseMySQL: false
     StartChance: 100
     PointsZombie: 3
     TellTime: true
     EnableReward: true
     
  23. Offline

    matejdro

    Is name of your world folder "world" ?
     
  24. Offline

    killerbeez

    Yes, I am also using Multiverse, could that be causing an issue?
     
  25. Offline

    XspeedPL

    Exception at start:
    bukkit 572
    plugin v0.4.3

    Details:
    Code:
    15:44:13 [SEVERE] ENTITY_DAMAGED loading MonsterHunt v0.4.3 (Is it up to date?)
    java.lang.NoSuchFieldError: ENTITY_DAMAGED
    at com.matejdro.bukkit.monsterhunt.MonsterHunt.onEnable(MonsterHunt.java:67)
    at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:118)
    at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader.java:453)
    at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:217)
    at org.bukkit.craftbukkit.CraftServer.loadPlugin(CraftServer.java:92)
    at org.bukkit.craftbukkit.CraftServer.loadPlugins(CraftServer.java:70)
    at net.minecraft.server.MinecraftServer.e(MinecraftServer.java:203)
    at net.minecraft.server.MinecraftServer.a(MinecraftServer.java:190)
    at net.minecraft.server.MinecraftServer.d(MinecraftServer.java:130)
    at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:245)
    at net.minecraft.server.ThreadServerApplication.run(SourceFile:366)
    
    
     
  26. Offline

    matejdro

    @killerbeez can you try seting EnabledWorlds to "world," (comma at the end is intentional)?

    @XspeedPL probably change in newest bukkit. Please use recommended builds.
     
  27. Offline

    viviengaetan

    Thanks for answer me matejdro,

    I've seen on a wiki :
    Code:
    catch(SQLException e)
        {
          // if the error message is "out of memory",
          // it probably means no database file is found
          System.err.println(e.getMessage());
    Maybe it can help you to help me.
     
  28. Offline

    matejdro

    Hm, no database file found? Weird, i thought that SQLite automatically creates database if is missing. Do you have any sqlite files in plugins\MonsterHunt directory?
     
  29. Offline

    viviengaetan

    No, in plugings\MonsterHunt I only have messages.yml and config.yml.


    On my server I run Stats and when I had MonsterHunt.jar in plugins folder, stats had the same "out of memory" error.
     
  30. Offline

    matejdro

    Can you check how much RAM is server actually using when you get this error? Just want to be sure.
     
  31. Offline

    viviengaetan

    Yes, actually, without players and without MonsterHunt and MyHome who bug, it start with 150M and go higher and higher, maybe another mod create a memory leak.

    With MonsterHunt at start memory is around 150M and jump rapidly to 380M before writing "Out of memory". After the message memory go down to 170M and like without MonsterHunt memory go higher and higher.

    I really think another mod had a problem with SQLite, because MonsterHunt and MyHome work alone.
     

Share This Page