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

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

  1. Offline


    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!

    • 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


    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


    this code here is showing that you should have caught a pig... did you see a pig anywhere? the new entity "lightningstrike" is interfering with the "crappy" entity spawn code i wrote. harmless... but i should fix it.

    As for the cheating.... fishing in a single block of water is hard to detect. I could do more checks... It would take some work...
  3. Offline


    12:56:59 [SEVERE] Could not pass event PLAYER_INTERACT to BigCatch
            at com.hotmail.spoonikle.bigcatch.RodActivation.onPlayerInteract(RodActi
            at org.bukkit.plugin.java.JavaPluginLoader$9.execute(JavaPluginLoader.ja
            at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.jav
            at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.j
            at org.bukkit.craftbukkit.event.CraftEventFactory.callPlayerInteractEven
            at org.bukkit.craftbukkit.event.CraftEventFactory.callPlayerInteractEven
            at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:524)
            at net.minecraft.server.Packet15Place.a(SourceFile:57)
            at net.minecraft.server.NetworkManager.b(NetworkManager.java:217)
            at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:75)
            at net.minecraft.server.NetworkListenThread.a(SourceFile:105)
            at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:401)
            at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:311)
            at net.minecraft.server.ThreadServerApplication.run(SourceFile:422)
    12:57:02 [INFO] tyeabc lost connection: disconnect.quitting
    12:57:02 [INFO] Connection reset
    BigCatch frowned upon tye's interaction :C
  4. Offline


  5. Offline


    can you tell me what version of CB you where using, and how often this happens, and can you speculate on why?
  6. Offline


    CB 818, it doesn't happen very often and I haven't noticed it being connected to any type of action. Sorry :/

    Also, is it normal to not get anything from fishing even when your bobber goes down and you reel in?
  7. Offline


    this is server lag or player error, as i have stated before BC dose not change fishing actively, it only reacts to fishing.
  8. Offline


    So this works with 818 100%?
  9. Offline


    It would appear that the plug-in functions, at around 90% atm it appears that the random event of catching a Mob is not working. other than that it works.
    kahlilnc likes this.
  10. Offline


    The plugin's awesome but I'm getting way too many big catches from fishing over 5 seconds each time, will it be possible to disable that soon?
  11. Offline


    Is there a config file for drops table ? :eek:
  12. Offline


    Love this mod - just another idea, perhaps broadcasting the catch to players within 10 or 20 blocks?
  13. Offline


    Love it ! Can you make an editing file for drops please ?

    Found issue : BigCath drops by double sometimes
  14. This one was new I think:

    17:03:55 [SEVERE] Could not pass event PLAYER_INTERACT to BigCatch
            at com.hotmail.spoonikle.bigcatch.RodActivation.onPlayerInteract(RodActivation.java:37)
            at org.bukkit.plugin.java.JavaPluginLoader$10.execute(JavaPluginLoader.java:306)
            at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:58)
            at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:310)
            at org.bukkit.craftbukkit.event.CraftEventFactory.callPlayerInteractEvent(CraftEventFactory.java:166)
            at org.bukkit.craftbukkit.event.CraftEventFactory.callPlayerInteractEvent(CraftEventFactory.java:137)
            at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:520)
            at net.minecraft.server.Packet15Place.a(SourceFile:57)
            at net.minecraft.server.NetworkManager.b(NetworkManager.java:223)
            at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:75)
            at net.minecraft.server.NetworkListenThread.a(SourceFile:105)
            at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:399)
            at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:309)
            at net.minecraft.server.ThreadServerApplication.run(SourceFile:422)
  15. Still getting this on 928:

    14:03:05 [SEVERE] Could not pass event PLAYER_INTERACT to BigCatch
            at com.hotmail.spoonikle.bigcatch.RodActivation.onPlayerInteract(RodActivation.java:37)
            at org.bukkit.plugin.java.JavaPluginLoader$10.execute(JavaPluginLoader.java:307)
            at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:58)
            at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:310)
            at org.bukkit.craftbukkit.event.CraftEventFactory.callPlayerInteractEvent(CraftEventFactory.java:168)
            at org.bukkit.craftbukkit.event.CraftEventFactory.callPlayerInteractEvent(CraftEventFactory.java:139)
            at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:531)
            at net.minecraft.server.Packet15Place.a(SourceFile:57)
            at net.minecraft.server.NetworkManager.b(NetworkManager.java:223)
            at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:75)
            at net.minecraft.server.NetworkListenThread.a(SourceFile:105)
            at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:451)
            at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:361)
            at net.minecraft.server.ThreadServerApplication.run(SourceFile:422)
  16. Offline


    Try this update. I noticed it was obsolete so here's my attempt to fix that.

    By the way, this is mainly an overhaul of the mob catching stuff, to use bukkit api instead of craftbukkit server functions. (AKA the way it should be done) The code should now be much more stable. I also repackaged it under zonedabone.MegaCatch to be compliant with open source licences. (Changed software name) Since it's inactive, I may take it under my wing and maintain it. I also have a few features I'd like to implement. =)

    Oh, Joy. I looked at the source where your error is and there's no null checks! No woonder you were getting nullPointerExceptions. Were you right clicking stuff with nothing in your hand?

    Attached Files:

    kahlilnc likes this.
  17. Offline


    Nice plugin, starts fishing... OMG OMG I GOT... CREEPER! *boom* that would be funny xD
  18. thanks Zonedabone :)
  19. Offline



    You're the man. Please keep up the good work!
    (also, would be great if you start a new thread, as the BigCatch mantainer already stated that he is not working on the plugin anymore)
  20. Offline


    I miss this plugin.
  21. Offline


    What is wrong with zonedabones corrected version?
  22. Offline


    @zonedabone just curious if you intend to take this up?
  23. Offline


    Would love to see more updates.
  24. Offline


    This is working?

    Really it needs to be rewritten from scratch, because this uses an api which is inside of mc whereas a new api came out which is easier to access.
  25. Offline



    the new API being spout?

    And yes it does work.. :)
  26. Offline


    The new api being new bukkit stuff. It's awesome that it works. If I get some free time I'll consider formally adopting this and making some changes.
  27. Offline


    I would like to see this Plugin a video first before I download and or use it.
  28. Offline


    please consider continuing megacatch at least when 1.8 is out. catching fish is a great way to stay fed while exploring, and it's hard to catch fish with even the slightly latency
  29. Offline


    I like this plugin, but I think that the implementation is very messy. I'm planning on possibly rewriting it from scratch in the next few days.

    By the way, that version I updated no longer uses any internal minecraft code, so it would theoretically work in 1.8.
    spunkiie and BioRage like this.
  30. Offline


    I am using this on CB 1060 and it still works without any errors this has always been on my server. its a lovely little plugin hopefully it stays compatible with newer CB versions
  31. Offline


    Well you are done with it eh? I want to say thanks! Reminds me of Animal Crossing fishing!

Share This Page