[MECH] BigCatch v0.7 - making Fishing more interesting. [818]

Discussion in 'Inactive/Unsupported Plugins' started by spoonikle, Feb 20, 2011.

  1. Offline

    spoonikle

    BigCatch - Fishing, Made fun:

    I dont have much time for MC, or coding for fun. So i am going to have to throw in the towel. Anyone is welcome to Pick up the plug-in if they would like. I am just to busy for this kind of work. Here is the source <3

    by: Spoonikle
    with special thanks to...
    Yurij - great code
    FullWall - Good advice, and spotting big problems before they hurt my head
    darknesschaos - Words of encouragement
    Edward Hand - great code
    and to Samkio - For his Tutorials and helping me when my head hurt
    the most.

    Version: v0.7

    BigCatch, adds to the Fishing mechanic in Minecraft. With random catch events, and making it easier to get a fish, even when the server is laggy. Using the plug-in is simple, just throw it in your plug-in folder. when ever a player starts fishing, its working!

    All events are simple, there is no gold - or unobtainable items - in fact most of the fishing events created in BigCatch are well balanced for any traditional survival server.

    BigCatch Makes a great and FUN addition to any server!

    Features:
    • Added random events, such as catching a leather hat, with a fish inside.
    • Added the BIG CATCH, where a player gets 4 fish for the price of 1!
    • Events range from Saving a drowning Pig, to catching a Squid!!
    When a player has been fishing for 10 seconds, and fails to catch a fish he is then given a 45% chance to catch a fish, and then a range of other random events.

    but, if a player has been fishing for 5 seconds or more, and catches a fish, they will receive a BIGCATCH - 3 additional fish.

    The Drop Table (open)
    "item" - "chance"
    dirt and failure - 2 in 30
    Leather boots - 1 in 10
    leather boots and a fish - 2 in 30
    a fish - 5 in 40
    a leather hat - 1 in 10
    a leather hat with a fish - 1 in 30
    a fish and a bone - 1 in 30
    a fish and 2 bones - 1 in 30
    BigCatch (3 fish) - 1 in 90
    nothing - 1 in 10
    a squid - 2 in 60
    a squid with a fish - 1 in 90
    String - 2 in 30
    A skeleton - 0.333%
    a near miss with a skeleton and broken bones - 2.997 %
    a pig - 0.666%
    The pig drowns and you get a piece of pork - 2.667%

    Planned additions:
    • More random events.
    • Configurable parameters
    • Configurable events, and event messages
    • Even more, cooler Fishing events! Keep sending them to me!
    known bugs:
    • Event catches involving mobs do not work properly (minor)
    Download BigCatch! v0.7 for Craftbukkit!

    Source Code

    Changelog:

    Version 0.7
    • Made the migration to latest CB-RB
    • Ate your Cake, it was delicious.
    • fixed DropFish bug - again
    • increased the distance away water can be from a players cross-hair and still be considered fishing. (now = 20 blocks)
    • reduced time required for BigCatch and Catch Event calculations
    • Fixed bug that stacked 3 fish in the inventory instead of 3 separate fish during a BigCatch
    • Tested method of catching radioactive woolly Mammoths with new quantum entanglement tangle angler and uranium 238 tackle box, to make space holes - failed
    • redesigned the Miscast, improper fishing line use, check.
    • Conformed to new ItemPickup standards
    • Ignored government regulations that apply to human testing
    Version 0.5
    • Fixed a bug where players fishing at the same time, would interferer with each-others event calculations.
    • Fixed a glitch that would occur when you cast a line at dirt, then reeled in facing water.
    • Fixed a glitch that would allow the generation of an insane number of timer threads by anyone with a large amount of fish.
    • Added miss cast checks to the fishing rod.
    • increased the overall efficiency of the program
    Version 0.4
    • Major Bug fix, warranting new version number. Fixed Major exploit.
    • Added wooden Bowls and gold to the table. (A tribute to my new plug-in project)
    Version 0.3_1
    • Fixed minor bug - Skeleton spawning instead of a pig :p surprise!
    Version 0.3
    • Removed TSLPC
    • conformed to new Drop item event standards
    • BigCatch! event confirmed to be 100% operational!!
     
    Undrtakr, Litt, Montag and 2 others like this.
  2. Offline

    DJ_Idol

    Looking forward to the update on this AWESOME plugin! Great job man!
     
  3. Offline

    spoonikle

    do you think the method of finding what the player is looking at changed? I will look through all of the logs to see more changes, bukkit may have changed a lot of methods.

    ^ Pisses me off.
     
  4. Offline

    Gea

    I'm not sure. I just know that if it isn't throwing any errors and says it is working, the first thing to check logically should be any restraints or filters for it. Ergo start with those, then work your way down. Everyone is excited for your update, but take your time, your loyal fans will still be here :)
     
  5. Offline

    Johannes

    update please =)
     
  6. Offline

    Rhuen

    yeah update please :) with this method i can zombies turn off and the others can fishing her strings :D!
     
  7. I'm also using this plugin - tried the latest test build on bukkit #621 with no joy ........ still, will eagerly await your update ! ......
     
  8. Offline

    Kartus

    please update/test this plugin to new bukkit recommended #670 ;)
     
  9. Offline

    Scipione

    yap also awaiting an update of this great plugin :)
     
  10. Offline

    overlordror

    Looking for an update here as well. Fishing needs to be exciting!
     
  11. Offline

    dak393

    what?
     
  12. Offline

    Onza40

    also waiting on an update here, wouldn't normally post but this hasn't updated in a while
     
  13. Offline

    spoonikle

  14. Offline

    UndeadLex

    Show Spoiler
    Code:
    2011-04-12 11:18:01 [INFO] Starting minecraft server version Beta 1.4
    2011-04-12 11:18:01 [INFO] Loading properties
    2011-04-12 11:18:01 [INFO] Starting Minecraft server on 192.168.1.13:25565
    2011-04-12 11:18:01 [INFO] This server is running Craftbukkit version git-Bukkit-0.0.0-646-gb61ef8c-b670jnks (MC: 1.4)
    2011-04-12 11:18:01 [INFO] Preparing level "world"
    2011-04-12 11:18:01 [INFO] Preparing start region
    2011-04-12 11:18:01 [INFO] 144 recipes
    2011-04-12 11:18:02 [INFO] Preparing spawn area: 32%
    2011-04-12 11:18:03 [INFO] [Permissions] (Phoenix) was Initialized.
    2011-04-12 11:18:03 [SEVERE] PLAYER_ITEM loading BigCatch v0.5 (Is it up to date?)
    java.lang.NoSuchFieldError: PLAYER_ITEM
        at com.hotmail.spoonikle.bigcatch.BigCatch.onEnable(BigCatch.java:50)
        at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:127)
        at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader.java:578)
        at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:216)
        at org.bukkit.craftbukkit.CraftServer.loadPlugin(CraftServer.java:115)
        at org.bukkit.craftbukkit.CraftServer.loadPlugins(CraftServer.java:93)
        at net.minecraft.server.MinecraftServer.e(MinecraftServer.java:215)
        at net.minecraft.server.MinecraftServer.a(MinecraftServer.java:202)
        at net.minecraft.server.MinecraftServer.d(MinecraftServer.java:142)
        at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:257)
        at net.minecraft.server.ThreadServerApplication.run(SourceFile:375)

    Unfortunately, there's a bit of an error.
     
  15. Offline

    spoonikle

  16. Offline

    UndeadLex

    No error, but I just fished for 10 minutes, caught fish, just normally. No special text, no new catches...
    The console still reads 0.5... is it supposed to?
     
  17. Offline

    manura133

    Sorry dude, doesen't seem to work. Only normal catches.
    But I got some errors in the log. Seems like a problem with pressure plates:
    Code:
    2011-04-12 20:39:45 [SEVERE] Could not pass event PLAYER_INTERACT to BigCatch
    java.lang.NullPointerException
        at com.hotmail.spoonikle.bigcatch.RodActivation.onPlayerInteract(RodActivation.java:38)
        at org.bukkit.plugin.java.JavaPluginLoader$9.execute(JavaPluginLoader.java:252)
        at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:59)
        at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:255)
        at org.bukkit.craftbukkit.event.CraftEventFactory.callPlayerInteractEvent(CraftEventFactory.java:162)
        at net.minecraft.server.BlockPressurePlate.g(BlockPressurePlate.java:107)
        at net.minecraft.server.BlockPressurePlate.a(BlockPressurePlate.java:73)
        at net.minecraft.server.Entity.c(Entity.java:550)
        at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:240)
        at net.minecraft.server.Packet10Flying.a(SourceFile:126)
        at net.minecraft.server.NetworkManager.a(NetworkManager.java:198)
        at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:72)
        at net.minecraft.server.NetworkListenThread.a(SourceFile:100)
        at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:368)
        at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:283)
        at net.minecraft.server.ThreadServerApplication.run(SourceFile:375)
    But don't give up! Can't wait until it runs again. :D
     
  18. Offline

    spoonikle

    SUCH A NIGHTMARE!!

    gaaaaaa, why did they have to screw with the system! darn you bukkit devs!!
     
  19. Offline

    baunegaard

    Just wanted to say that im following this thread, eagerly waiting for new bigcatch update :)

    Just keep fighting you can get this running again :p
     
  20. Offline

    Kiim

    Just wanna say the same! :D Its a awesome plugin!
     
  21. Offline

    Plague

    Do not use a plus sign in the RB version, you should state the latest tested version.
     
  22. Offline

    spoonikle

    over looked that, done sorry.
     
  23. Offline

    ssechaud

    02:39:57 [SEVERE] PLAYER_ITEM loading BigCatch v0.5 (Is it up to date?)
    java.lang.NoSuchFieldError: PLAYER_ITEM
    at com.hotmail.spoonikle.bigcatch.BigCatch.onEnable(BigCatch.java:50)
    at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:127)
    at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader.java:578)
    at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:216)
    at org.bukkit.craftbukkit.CraftServer.loadPlugin(CraftServer.java:115)
    at org.bukkit.craftbukkit.CraftServer.loadPlugins(CraftServer.java:93)
    at net.minecraft.server.MinecraftServer.e(MinecraftServer.java:215)
    at net.minecraft.server.MinecraftServer.a(MinecraftServer.java:202)
    at net.minecraft.server.MinecraftServer.d(MinecraftServer.java:142)
    at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:257)
    at net.minecraft.server.ThreadServerApplication.run(SourceFile:375)
     
  24. Offline

    spoonikle

  25. Offline

    meatloaf

    using that latest release there, i got no errors, but fishing seemed to be regular, with the exception of reeling in not working 60% of the time. i did however, catch a leather hat with nothing inside
     
  26. Offline

    spoonikle

    this should not affect reeling in, this may be a latency issue on your end.

    My program only responds to fishing actions and dose not interfere with any of them, normal fishing as notch made will not, and cannot be changed by my plug-in.
    Please note that random events only occur after a minimum of 15 seconds of fishing - to prevent this plug-in from making fishing an insta-win.

    Dropping a fish will force you to wait 1 min, before you can get a new random event. (to prevent exploitation of the big-catch mechanic.

    This used to stack over and over, and at one time could kill your game with thousands of timer threads if a player dropped a thousand fish. This is no longer the case and after dropping a fish a new timer is not made if you drop another.
     
  27. Offline

    meatloaf

    aha i just got a big catch. when reeling in doesn't work it seems to be only splashing briefly, which i don't regularly see. also sometimes i get no fish, and no message. if you want i could live stream this
     
  28. Offline

    Gimmic

    Looking forward to this plugin being deemed stable for 617+
     
  29. Offline

    manura133

    I can't confirm a big catch or any custom event. But this could be a problem on my end as some people seem to get custom events.
    It would be easier to test if there won't be any time limits/counters. Only for testing of course.
    Anyway, still got exeption errors in the log when moveing over wooden pressure plates:
    Code:
    java.lang.NullPointerException
        at com.hotmail.spoonikle.bigcatch.RodActivation.onPlayerInteract(RodActivation.java:35)
        at org.bukkit.plugin.java.JavaPluginLoader$9.execute(JavaPluginLoader.java:252)
        at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:59)
        at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:255)
        at org.bukkit.craftbukkit.event.CraftEventFactory.callPlayerInteractEvent(CraftEventFactory.java:162)
        at net.minecraft.server.ItemInWorldManager.a(ItemInWorldManager.java:208)
        at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:447)
        at net.minecraft.server.Packet15Place.a(SourceFile:57)
        at net.minecraft.server.NetworkManager.a(NetworkManager.java:198)
        at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:72)
        at net.minecraft.server.NetworkListenThread.a(SourceFile:100)
        at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:368)
        at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:283)
        at net.minecraft.server.ThreadServerApplication.run(SourceFile:375)
    2011-04-13 18:55:56 [SEVERE] Could not pass event PLAYER_INTERACT to BigCatch
    java.lang.NullPointerException
        at com.hotmail.spoonikle.bigcatch.RodActivation.onPlayerInteract(RodActivation.java:35)
        at org.bukkit.plugin.java.JavaPluginLoader$9.execute(JavaPluginLoader.java:252)
        at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:59)
        at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:255)
        at org.bukkit.craftbukkit.event.CraftEventFactory.callPlayerInteractEvent(CraftEventFactory.java:162)
        at net.minecraft.server.BlockPressurePlate.g(BlockPressurePlate.java:107)
        at net.minecraft.server.BlockPressurePlate.a(BlockPressurePlate.java:73)
        at net.minecraft.server.Entity.c(Entity.java:550)
        at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:240)
        at net.minecraft.server.Packet10Flying.a(SourceFile:126)
        at net.minecraft.server.NetworkManager.a(NetworkManager.java:198)
        at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:72)
        at net.minecraft.server.NetworkListenThread.a(SourceFile:100)
        at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:368)
        at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:283)
        at net.minecraft.server.ThreadServerApplication.run(SourceFile:375)
     
  30. Offline

    meatloaf

    ^ i was about to come and post the same sever exception
     
  31. Offline

    spoonikle

    I will look into this for test cases.

    This is really not avoidable. the Bukkit crew had the "bright" idea of throwing, what should be half a dozen separate interact actions, under one event label (BREAKING MY SHIT!). Forcing me to grab values and processes them for no good reason. This is going to happen all the time, and will have no effect on the plug-in... I hope... I could put a catch to stop the errors though.
     

Share This Page