[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

    Onza40

    Is there any chance you could contact the dev of mcmmo and have this integrated into that?
    Because that would be totally rad, otherwise, please link to wherever you move this plugin to :)
     
    dak393 likes this.
  3. Offline

    Soryo

    I wonder if LevelCraft will conflict with Mcmmo? If it does... what Onza40 said... hehe
     
  4. Offline

    sintri

    mcmmo here.
     
  5. Offline

    baunegaard

    Error again: (Craftbukkit 737)


    2011-04-28 15:07:31 [SEVERE] Could not load 'plugins/bigcatchtest.jar' in folder 'plugins':
    java.lang.NoClassDefFoundError: JavaPlugin
    at java.lang.ClassLoader.defineClass1(Native Method)
    at java.lang.ClassLoader.defineClass(ClassLoader.java:786)
    at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:144)
    at java.net.URLClassLoader.defineClass(URLClassLoader.java:382)
    at java.net.URLClassLoader.access$100(URLClassLoader.java:75)
    at java.net.URLClassLoader$1.run(URLClassLoader.java:294)
    at java.net.URLClassLoader$1.run(URLClassLoader.java:288)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.net.URLClassLoader.findClass(URLClassLoader.java:287)
    at org.bukkit.plugin.java.PluginClassLoader.findClass(PluginClassLoader.java:36)
    at org.bukkit.plugin.java.PluginClassLoader.findClass(PluginClassLoader.java:24)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:422)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:355)
    at java.lang.Class.forName0(Native Method)
    at java.lang.Class.forName(Class.java:264)
    at org.bukkit.plugin.java.JavaPluginLoader.loadPlugin(JavaPluginLoader.java:134)
    at org.bukkit.plugin.SimplePluginManager.loadPlugin(SimplePluginManager.java:160)
    at org.bukkit.plugin.SimplePluginManager.loadPlugins(SimplePluginManager.java:108)
    at org.bukkit.craftbukkit.CraftServer.loadPlugins(CraftServer.java:85)
    at net.minecraft.server.MinecraftServer.e(MinecraftServer.java:217)
    at net.minecraft.server.MinecraftServer.a(MinecraftServer.java:204)
    at net.minecraft.server.MinecraftServer.init(MinecraftServer.java:144)
    at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:259)
    at net.minecraft.server.ThreadServerApplication.run(SourceFile:394)
    Caused by: java.lang.ClassNotFoundException: JavaPlugin
    at java.net.URLClassLoader$1.run(URLClassLoader.java:299)
    at java.net.URLClassLoader$1.run(URLClassLoader.java:288)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.net.URLClassLoader.findClass(URLClassLoader.java:287)
    at org.bukkit.plugin.java.PluginClassLoader.findClass(PluginClassLoader.java:36)
    at org.bukkit.plugin.java.PluginClassLoader.findClass(PluginClassLoader.java:24)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:422)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:355)
    ... 24 more
     
  6. Offline

    spoonikle

    this is caused by a compile error... Eclipse failed to compile this right. Damn

    i will work on it, and i will add messages to help identify problems. like a message displaying how long the program though you fished for. and other things.

    here is my attempt to fix again.
    http://dl.dropbox.com/u/19143385/bigcatchtest.jar
     
  7. Offline

    Azukay

    Using your attempted fix version on #733. When I dropped an item (was crafting and exited the craft table) i got this error.
    Code:
    2011-04-29 11:33:24 [SEVERE] Could not pass event PLAYER_DROP_ITEM to BigCatch
    java.lang.NoSuchFieldError: a
        at com.hotmail.spoonikle.bigcatch.DropFish.onPlayerDropItem(DropFish.java:21)
        at org.bukkit.plugin.java.JavaPluginLoader$16.execute(JavaPluginLoader.java:296)
        at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:59)
        at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:257)
        at net.minecraft.server.EntityHuman.a(EntityHuman.java:287)
        at net.minecraft.server.EntityHuman.b(EntityHuman.java:250)
        at net.minecraft.server.ContainerWorkbench.a(SourceFile:61)
        at net.minecraft.server.EntityPlayer.z(EntityPlayer.java:339)
        at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:818)
        at net.minecraft.server.Packet101CloseWindow.a(SourceFile:16)
        at net.minecraft.server.NetworkManager.a(NetworkManager.java:195)
        at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:74)
        at net.minecraft.server.NetworkListenThread.a(SourceFile:100)
        at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:370)
        at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:285)
        at net.minecraft.server.ThreadServerApplication.run(SourceFile:394)
    
     
  8. Offline

    spoonikle

    i see... i still have to work on my DropFish class...
     
  9. Offline

    Kitteh

    Have you marked your plugin as inactive? I can help you out with it again if you would like.
     
    thecoolwolf and TheAnimus like this.
  10. Offline

    TheAnimus

    I'd love to see this updated and available as a stand-alone mod (as opposed to integration with other mods, for freedom's sake). I recommend having Kitteh help out with the new events and classes in order to get your feet grounded with the new versions of Bukkit. I've had my eye on this one since CB#607. Please don't let this great idea go to waste!
     
  11. Offline

    Azukay

    Yeah, please keep working on this, it's the only reason I'd bother fishing at all :)
     
  12. Offline

    spoonikle

    A MOD has marked it as inactive, because of how out of date it is.

    New test version available - with a feature that tells you how long the plug-in thinks you have fished for.

    If it dose not say anything, the plug-in thinks you are miss Casting your fishing rod at air.
    http://dl.dropbox.com/u/19143385/bigcatchtest.jar

    I will only work on the LC version after this version is Stable again for the latest RC.
     
  13. Offline

    Azukay

    With this version bigcatch does not even start for me, the last version you posted was playable for me.
    Code:
    2011-05-01 07:51:33 [INFO] This server is running Craftbukkit version git-Bukkit-0.0.0-706-gf53e007-b740jnks (MC: 1.5_02)
    2011-05-01 07:51:33 [INFO] Preparing level "world"
    2011-05-01 07:51:34 [INFO] Preparing start region
    2011-05-01 07:51:34 [SEVERE] Could not load 'plugins\bigcatchtest.jar' in folder 'plugins':
    java.io.FileNotFoundException: Jar does not contain plugin.yml
        at org.bukkit.plugin.java.JavaPluginLoader.loadPlugin(JavaPluginLoader.java:59)
        at org.bukkit.plugin.SimplePluginManager.loadPlugin(SimplePluginManager.java:160)
        at org.bukkit.plugin.SimplePluginManager.loadPlugins(SimplePluginManager.java:108)
        at org.bukkit.craftbukkit.CraftServer.loadPlugins(CraftServer.java:85)
        at net.minecraft.server.MinecraftServer.e(MinecraftServer.java:217)
        at net.minecraft.server.MinecraftServer.a(MinecraftServer.java:204)
        at net.minecraft.server.MinecraftServer.init(MinecraftServer.java:144)
        at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:259)
        at net.minecraft.server.ThreadServerApplication.run(SourceFile:394)
    
     
  14. Offline

    spoonikle

  15. Offline

    sintri

    No errors, debug messages may be wrong, but they seem to show up at random times, rather than consistantly at the end of each cast. Attempted least 10, caught 6 times, all 6 nothing other than fish, so not completely sure if it's working in the first place.
     
  16. Offline

    spoonikle

    Unless the fishing time messages where above 15 seconds, you wouldn't get a random event, and no big catch unless over 8 seconds. so the fishing time message is very important, it should display 2 seconds after you are done fishing.

    for the next version lowering the values to 5 and 10 seconds.
     
  17. Offline

    baunegaard

    It says "BigCatch version 05" enabled in the server.log, but i dont see any debug output at all, and i cant seem to get any bigcatch or random event.
     
  18. Offline

    spoonikle

    its not a debug output. There should be messages in the game telling the player what has happened.
    you should see it every time you fish....

    I now see that there is some sort of error related to big catch.

    on a side note, the player must look at water within 15 blocks when fishing in order for the events to be logged in the plug-in.
     
  19. Offline

    baunegaard

    All right i can see the message now, think i was too far away before, but it still aint working. i have been fishing for about 15 minutes and not a single event has happend
     
  20. Offline

    spoonikle

    can you describe the messages? how much time dose the plug-in believe you have been fishing. Can you estimate the real time?
     
  21. Offline

    noobcrafter

    Does this work for 1.5?
     
  22. Offline

    spoonikle

    currently no, as i am working out problems made by changes to bukkit.
     
  23. Offline

    Shortee

    One more "Please!" to motivate you :)
     
  24. Offline

    Kartus

    Yeah, i want it too.
     
  25. Offline

    spoonikle

  26. Offline

    Kitteh

    This version works :) Cake time?
     
    Kiim likes this.
  27. Offline

    spoonikle

    Shortee, dak393 and Kiim like this.
  28. Bigcatch does not seem to trigger when it's raining.
    EDIT: tested some more, proven my last statement to be false
     
  29. Offline

    spoonikle

    Testing - Its the only part of science that I know about.
     
  30. Love the plugin
    i do think that the BigCatch event triggers too often. i had a full chest of fish in a matter of minutes.
    more random events (maybe some rare ones with other loot or what not might be a fun idea.
     
  31. Offline

    Kiim

    YEAH! I LOVE THIS PLUGIN! <3 I have waited long for this, and this going right on my server!
     

Share This Page