[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

    unrivaledneo

    First thing i thought of is fishing up monsters :p
     
  3. Offline

    spoonikle

    yes fishing a zombie out of the water would be kinda funny.....
     
  4. Offline

    fullwall

    Add it XD. Random chance to catch monsters :p. Nice work.
     
  5. Offline

    spoonikle

    i guess i could make a version with a 1 in 100 chance to spawn spiders and zombies....
    but i will still keep a more "serious" version available.
     
  6. Offline

    Edward Hand

    Catching a squid would be fairly serious.
     
  7. Offline

    spoonikle


    true true! i like it! i was only gonna make you catch an ink sack, but i can do both!

    now that is a big catch, a squid....

    i think i will have the mobs spawn behind the player.

    expect version 0.2 to come Tuesday morning, i will re work the random event tables in that release, lowering the fish catching percent chance to 45% and adding more events to fill the table. i will also try to fish the BigCatch event bug, where it does not trigger when it should, if I cannot fix the method will make the event "Random" for now

    *** version 0.2 has been released, monsters don't spawn behind the player, but exactly where the player is standing.
     
  8. Installing now, I hope there's a chance to reel up leather boots with this.
     
  9. Offline

    Emalde

    Excellent plugin. Looking forward for later versions with additional events!

    My suggestion: Buckets (full of water or not) could be a thing that comes up. Not a fish, but still quaint.
     
  10. Offline

    spoonikle

    a bucket full of water, thats one hard thing to pull from a river... maybe i will have it break your fishing rod, or damage it , something i'm planing on for other events.
    --- merged: Feb 24, 2011 10:59 AM ---
    oh yes, there are boots : P

    i would have made a spoiler list, but... **whisper** I do not know how to make spoiler tags. :'(


    ** i think I am going to make v0.5 configurable in some way. possibly to change the FishingTime variable so a admin can make players eligible for the BigCatch sooner, or later, or never. once i figure how to do that, making configurable, on/off drop events may be on the table. Custom drop events will be very hard, and i know how much people hate configuring drop tables...

    *** I am not starting any new projects until BigCatch hits v0.7
     
  11. Offline

    fullwall

    Write [spoiler="spoilername"][/spoiler] - you can find all of these in the home section of bukkit - go to help.
     
  12. Offline

    spoonikle

    well, thanks for helping a dummy out : P, ill get to work on that spoiler list. I am sure potential users would appreciate knowing what they are getting into without having to dive into my code.

    ** added a drop table, while looking at my code to check the table i realized i forgot to add wooden bowls and gold ore... oh well, guess ill add that in v0.5
    *** fixed the v0.2 and source code links, they where swapped for some reason.... me
     
  13. Offline

    Agnate

    Fantastic plugin! Just added this, and it makes my fishing experience a lot more entertaining.

    Is there any chance to add some iConomy support, so people could catch some coin as well? (Basically just check if iConomy is present, and if so, add it to the drop table).

    I'm still hoping to catch a Squid one of these days. They're rarer than diamonds on our server, I swear.
     
  14. Offline

    th3sarg

    Would love to see the configurable options soon such as changing the drop rate and what can drop, trying to keep my server as normal as possible but with "enhancements" and being able to fish up just squid would be great.

    Keep up the good work though, loving the idea :)
     
  15. Offline

    oOunrealOo

    Nice 1 i felt fishing was to hard thanks :D
    --- merged: Feb 25, 2011 12:05 AM ---
    how to change cofig i have look through the files but cant find anything :'(
     
  16. Offline

    spoonikle

    I am currently working on a configuration method. the complexity of the drop table makes it difficult to figure a way to change it. in fact its much easier to alter the source code for everyone who asks. :p but thats just lazy coding.

    well, at 3.33% chance, you would be right. diamonds are easier to get than catching a squid. please PM me when one of your players or yourself manages to catch one. : P

    the way things are set up, i think i will have to rework the drop table. In order to make it configurable i could change thee minimum chance to 1 in 100 and make 100 options in the config. you would have to fill all 100 options for the plug-in to work well, but it wouldn't be necessary. If i do this, along with entering the item id and amount you would have to enter a message as well, but i may be able to work out a way to allow more than one item and amount.

    its going to be a lot of work.
     
  17. Offline

    Agnate

    Why not just put all the "possible drop types" in a config file with an integer beside them relating to percentage, and then just extrapolate that data and fill a table in the back-end?

    Example:

    // Please enter the odds of getting one of the items below (0=no chance, 100=always)
    // Try to ensure that the total of all numbers adds to 100. Otherwise your odds won't be exactly as you specified.

    LeatherBoots=45
    FishWithBones=50
    Diamond=3
    Squid=2

    Then in the back-end, just write an equation that sorts them by highest number, checks their value against the sum of all the values (ie. the percentage based on what the user wrote), then run a loop to fill the table accordingly (so if your table has 1000 slots * item_percentage = number of slots to fill with that value).

    Just don't make the values the user has to enter too restrictive. The total should equal 100, but if you just sum it up and divide by the value, you'll get a proper percentage anyways.
     
  18. Offline

    spoonikle

    Thats a good way of putting it. seeing as im new to all this, it will pose a moderate challenge. I will make it my goal to rebuild the table by monday.

    currently the system relies on random numbers. it generates a number 1-30 and some of the events generate another number, like the skeleton event. Its very... sloppy, but im not sure how to do in any other way.

    *** UH oh, found a bug. when the pig event is triggered, a skeleton is spawned instead. to much copy pasting :p i will make a patch.
     
  19. Offline

    Zenergyx3

    This mod is awesome, fishing is now practical and actually fun!
     
  20. Offline

    DJ_Idol

    This was a great idea, seeing as how my server is working towards being 80-90% water-based, this will really help in adding something extra for the players to do! Thanks! Are you planning on adding any ores or maybe hook it with iConomy to add a chance of receiving iConomy money?
     
  21. Offline

    zipfe

    Nice idea, fun plugin! Works fine with CB#439.
     
  22. Offline

    spoonikle

    I was actually playing with the idea of panning for gold and ores. with wooden bowls. maybe i will do it.
     
  23. Offline

    DJ_Idol

    Good idea :) My suggestion though: Make gold extremely rare, iron less rare, coal less, cobblestone less, dirt less, and sand very common. Kinda in that order? Just my opinion/suggestion :)
     
  24. Offline

    spoonikle

    my thoughts exactly. panning for ores will not be anywhere near as efficient as digging, but a good alternative on a server where players cannot dig or are afraid of the dark :p

    the Iconomy idea is a little... eh... wonky. your fishing for raw materials so you may sell them for currency. If you want players to be able to get instant cash set up a global shop that buys low and sells high, leaving a middle ground for player - player transactions.

    my sever allows for players to get instant cash by selling to the global shop, but the global shop sells the very same item for 4 - 5 times the price it buys at. leaving the player to be able to sell to other players who want a better deal than the global shop and make more money, while under cutting the global store by a good margin.
     
  25. Offline

    MonsterTV

    Does this mean anything to anyone?
    Edit: running CB 440 and the latest BigCatch

    java.lang.NoSuchMethodError: org.bukkit.event.player.PlayerDropItemEvent.getItemDrop()Lorg/bukkit/entity/ItemDrop;
    at com.hotmail.spoonikle.bigcatch.DropFish.onPlayerDropItem(DropFish.java:20)
    at org.bukkit.plugin.java.JavaPluginLoader$16.execute(JavaPluginLoader.java:205)
    at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:59)
    at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:225)
    at net.minecraft.server.EntityHuman.a(EntityHuman.java:264)
    at net.minecraft.server.EntityHuman.b(EntityHuman.java:227)
    at net.minecraft.server.ContainerWorkbench.a(SourceFile:61)
    at net.minecraft.server.EntityPlayer.v(EntityPlayer.java:323)
    at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:769)
    at net.minecraft.server.Packet101CloseWindow.a(SourceFile:16)
    at net.minecraft.server.NetworkManager.a(SourceFile:230)
    at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:70)
    at net.minecraft.server.NetworkListenThread.a(SourceFile:100)
    at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:338)
    at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:253)
    at net.minecraft.server.ThreadServerApplication.run(SourceFile:366)
     
  26. Offline

    spoonikle

    it dose to me. it seems that they are messing with the drop item events still.
    i will have to update the plug-in to fix this.

    it apears that i cannot use getItemDrop() hummm... it seems they changed it so now its just .getItem()

    i will release a patch in just a few, I will PM it to you so you can test it out before i release.

    **i cannot get this error to appear in build 453. i will use build 440 to see if it happens.

    *** using build 440, i am unable to recreate this error... i am still looking into it, and will ask around.

    **** can you tell me what seemed to cause this error? what happened? what item did you drop? did you get an event message?

    ***** Minor bug fix with v0.3_1, a fix to the drop table, All current users should update.
     
  27. Offline

    MonsterTV

    Well hell, I have no idea what is causing the error. To be honest, I just checked my server log this morning and this showed up a bunch while players were (I am assuming) fishing. I noticed BigCatch in there, thought I'd ask. I suppose it might be another plugin conflicting, but I don't have any others that effect fishing in any way.
     
  28. Offline

    spoonikle

    well lets hope its just a simple conflict, then everything should be just fine, as this error shouldn't prevent BigCatch from functioning. recreating the error and figuring out what caused it is 1# priority for me. it has somthing to do with dropping an item. May i suggest you drop a fish, then another and another and then go fishing. then drop some more.
     
  29. Offline

    Slash

    It would be awsome if you could catch mob spawners
     
  30. Offline

    DJ_Idol

    Another idea: make an event where maybe you catch something too heavy and it breaks your fishing rod?
     
    sawyer likes this.

Share This Page