[unsupported][MECH] Fizzled v0.2.5 - Torches burn out after a set time. [1.2.5-R1.0]

Discussion in 'Inactive/Unsupported Plugins' started by TopGear93, Mar 28, 2012.

  1. Offline

    TopGear93

    Fizzled
    v0.2.5

    Torches burn out after a set time and on random you might be able to pick one or two back up! The torches still burnout even when the player is offline.

    Conversion Chart for timer:
    1. 20 Ticks //1 second
    2. 60 seconds //1 minute
    3. 20 * 60 = 1200 //1 minute
    4. 1200 + 1200 = 2400 //2 minutes
    5. 2400 + 1200 = 3600 //3 minutes
    6. 3600 + 1200 = 4800 //4 minutes
    7. 4800 + 1200 = 6000 //5 minutes
    8. Do your own math. follow the pattern.
    Config:

    Code:
    # Fizzled
    Fizzled:
      timer: 1200
    
    Download:
    http://dl.dropbox.com/u/1015938/Fizzled.jar

    Changelog:

    vo.1
    • released.
    • torches burn out at a configurable time.
    • randomly get back torches.
    v0.2
    • removed chances of getting back torches. this will stop all lag from occuring
    v0.2.5
    • updates to 1.2.5
    v0.3
    • removes unneeded code. This was cuasing the negative error.


    STOP THE SERVER.DELETE FIZZLED CONFIG AND INSTALL v0.3 AND RESTART
     
    kahlilnc likes this.
  2. Offline

    TheLimaBeanman

    This is nice.
     
    TopGear93 likes this.
  3. Offline

    Adrenaline

    Maybe add "disappear" option to this? better (rpg) ;)
     
  4. Offline

    TopGear93

    disappear? So you want to make the random chances of receiving the torch back toggle-able?
     
  5. Offline

    Adrenaline

    nope

    After burn out torch disappear.

    less laggy..
     
  6. Offline

    TopGear93

    ok so ill just remove the random chances system. ill do that when i get on my home pc

    v0.2
    • removed chances of getting back torches. this will stop all lag from occuring

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: May 24, 2016
  7. Offline

    TopGear93

    v0.2.5
    • updates to 1.2.5
     
  8. Offline

    kahlilnc

    Nice!
     
  9. Offline

    TripleXPenguin

    You are my God, op.

    D:
    Code:
    12:30:01 AM [WARNING] Task of 'Fizzled' generated an exception
    12:30:01 AM java.lang.IllegalArgumentException: n must be positive
    12:30:01 AM    at java.util.Random.nextInt(Unknown Source)
    12:30:01 AM    at us.topgear93.fizzled.Fizzled$1.run(Fizzled.java:57)
    12:30:01 AM    at org.bukkit.craftbukkit.scheduler.CraftScheduler.mainThreadHeartbeat(CraftScheduler.java:126)
    12:30:01 AM    at net.minecraft.server.MinecraftServer.w(MinecraftServer.java:520)
    12:30:01 AM    at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:452)
    12:30:01 AM    at net.minecraft.server.ThreadServerApplication.run(SourceFile:490)
    
    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: May 24, 2016
  10. Offline

    TopGear93

    edit:/// I know whats wrong ill push another update.

    v0.3
    removes unneeded code. This was cuasing the negative error.

    STOP THE SERVER.DELETE FIZZLED CONFIG AND INSTALL v0.3 AND RESTART

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: May 24, 2016
  11. Offline

    TripleXPenguin

    Code:
    1:27:49 PM [SEVERE] Cannot load plugins\Fizzled\config.yml
    1:27:49 PM org.bukkit.configuration.InvalidConfigurationException: mapping values are not allowed here
    1:27:49 PM  in "<string>", line 3, column 25:
    1:27:49 PM      timer: 600  randomdrop: 6
    1:27:49 PM                            ^
    1:27:49 PM    at org.bukkit.configuration.file.YamlConfiguration.loadFromString(YamlConfiguration.java:55)
    1:27:49 PM    at org.bukkit.configuration.file.FileConfiguration.load(FileConfiguration.java:143)
    1:27:49 PM    at org.bukkit.configuration.file.FileConfiguration.load(FileConfiguration.java:109)
    1:27:49 PM    at org.bukkit.configuration.file.YamlConfiguration.loadConfiguration(YamlConfiguration.java:177)
    1:27:49 PM    at org.bukkit.plugin.java.JavaPlugin.reloadConfig(JavaPlugin.java:117)
    1:27:49 PM    at org.bukkit.plugin.java.JavaPlugin.getConfig(JavaPlugin.java:111)
    1:27:49 PM    at us.topgear93.fizzled.Fizzled.onBlockPlace(Fizzled.java:56)
    1:27:49 PM    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    1:27:49 PM    at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
    1:27:49 PM    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
    1:27:49 PM    at java.lang.reflect.Method.invoke(Unknown Source)
    1:27:49 PM    at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:301)
    1:27:49 PM    at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:62)
    1:27:49 PM    at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:459)
    1:27:49 PM    at org.bukkit.craftbukkit.event.CraftEventFactory.callBlockPlaceEvent(CraftEventFactory.java:97)
    1:27:49 PM    at net.minecraft.server.ItemBlock.interactWith(ItemBlock.java:71)
    1:27:49 PM    at net.minecraft.server.ItemStack.placeItem(ItemStack.java:83)
    1:27:49 PM    at net.minecraft.server.ItemInWorldManager.interact(ItemInWorldManager.java:303)
    1:27:49 PM    at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:636)
    1:27:49 PM    at net.minecraft.server.Packet15Place.handle(SourceFile:39)
    1:27:49 PM    at net.minecraft.server.NetworkManager.b(NetworkManager.java:229)
    1:27:49 PM    at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:113)
    1:27:49 PM    at org.getspout.spout.SpoutNetServerHandler.a(SpoutNetServerHandler.java:169)
    1:27:49 PM    at net.minecraft.server.NetworkListenThread.a(NetworkListenThread.java:78)
    1:27:49 PM    at net.minecraft.server.MinecraftServer.w(MinecraftServer.java:554)
    1:27:49 PM    at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:452)
    1:27:49 PM    at net.minecraft.server.ThreadServerApplication.run(SourceFile:490)
    1:27:49 PM Caused by: mapping values are not allowed here
    1:27:49 PM  in "<string>", line 3, column 25:
    1:27:49 PM      timer: 600  randomdrop: 6
    1:27:49 PM                            ^
    1:27:49 PM    at org.yaml.snakeyaml.scanner.ScannerImpl.fetchValue(ScannerImpl.java:733)
    1:27:49 PM    at org.yaml.snakeyaml.scanner.ScannerImpl.fetchMoreTokens(ScannerImpl.java:305)
    1:27:49 PM    at org.yaml.snakeyaml.scanner.ScannerImpl.checkToken(ScannerImpl.java:179)
    1:27:49 PM    at org.yaml.snakeyaml.parser.ParserImpl$ParseBlockMappingKey.produce(ParserImpl.java:563)
    1:27:49 PM    at org.yaml.snakeyaml.parser.ParserImpl.peekEvent(ParserImpl.java:161)
    1:27:49 PM    at org.yaml.snakeyaml.parser.ParserImpl.checkEvent(ParserImpl.java:146)
    1:27:49 PM    at org.yaml.snakeyaml.composer.Composer.composeMappingNode(Composer.java:230)
    1:27:49 PM    at org.yaml.snakeyaml.composer.Composer.composeNode(Composer.java:160)
    1:27:49 PM    at org.yaml.snakeyaml.composer.Composer.composeMappingNode(Composer.java:237)
    1:27:49 PM    at org.yaml.snakeyaml.composer.Composer.composeNode(Composer.java:160)
    1:27:49 PM    at org.yaml.snakeyaml.composer.Composer.composeDocument(Composer.java:123)
    1:27:49 PM    at org.yaml.snakeyaml.composer.Composer.getSingleNode(Composer.java:106)
    1:27:49 PM    at org.yaml.snakeyaml.constructor.BaseConstructor.getSingleData(BaseConstructor.java:121)
    1:27:49 PM    at org.yaml.snakeyaml.Yaml.loadFromReader(Yaml.java:480)
    1:27:49 PM    at org.yaml.snakeyaml.Yaml.load(Yaml.java:399)
    1:27:49 PM    at org.bukkit.configuration.file.YamlConfiguration.loadFromString(YamlConfiguration.java:53)
    1:27:49 PM    ... 26 more
    
    Ok, this is just a problem with the config when it made it, I put each thing on its own line and it works now. Its just when the plugin made the first config it wasnt set up right.

    Whenever they go out it always gives the torch back...even when setting the random drop to 0. Is it supposed to do this? If so then its kind of pointless because I want the torches to disappear so they will need to make more.

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: May 24, 2016
  12. Offline

    TopGear93

    delete Fizzled. Delete the config. Download new version. Run it. There is no issue on RB 1.2.5
     
  13. Offline

    TripleXPenguin

    So this wont work on 1.2.4-R1.0?
     
  14. Offline

    TopGear93

    It should work, but its recommended that you run 1.2.5
     
  15. Offline

    TripleXPenguin

    Ok, I just ran it on 1.2.5 and it does the same thing where it gives the torch back every time.
     
  16. Offline

    TopGear93

    show me the inside of the config.
     
  17. Offline

    TripleXPenguin

    This is a fresh config that the plugin created:

    Code:
    # FizzledFizzled:  timer: 1200
    
     
  18. Offline

    TopGear93

    download again and see how it works. i pushed another build.
     
  19. Offline

    TripleXPenguin

    Runs perfect! Thank you so much and thanks for the quick help and updates! This is perfect for my Hunger Games game tonight...now only if I could get my plugin working! Do you happen to know how to work with onPlayerJoin() ?
     
  20. Offline

    TopGear93

    LOL, heck yea! what do you need done?
     
  21. Offline

    TripleXPenguin

  22. Offline

    md_5

    Approved.
     
  23. Very cool..!

    But plzz make permission so its only a certain group it works for
     
  24. Offline

    TopGear93

    anyone want to take this over?
     
  25. Offline

    nhoclesnar

    Noo why do you abandon such a great plugin? D:

    I really want to try this plugin but the link is dead.
     
  26. Offline

    DCWH

    It's not working :(

    Code:
    2012-07-02 16:10:52 [SEVERE] Could not load 'plugins\Fizzled.jar' in folder 'plugins'
    org.bukkit.plugin.InvalidDescriptionException: Invalid plugin.yml
        at org.bukkit.plugin.java.JavaPluginLoader.getPluginDescription(JavaPluginLoader.java:201)
        at org.bukkit.plugin.SimplePluginManager.loadPlugins(SimplePluginManager.java:132)
        at org.bukkit.craftbukkit.CraftServer.loadPlugins(CraftServer.java:207)
        at org.bukkit.craftbukkit.CraftServer.<init>(CraftServer.java:183)
        at net.minecraft.server.ServerConfigurationManager.<init>(ServerConfigurationManager.java:53)
        at net.minecraft.server.MinecraftServer.init(MinecraftServer.java:156)
        at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:422)
        at net.minecraft.server.ThreadServerApplication.run(SourceFile:492)
    Caused by: java.util.zip.ZipException: error in opening zip file
        at java.util.zip.ZipFile.open(Native Method)
        at java.util.zip.ZipFile.<init>(Unknown Source)
        at java.util.jar.JarFile.<init>(Unknown Source)
        at java.util.jar.JarFile.<init>(Unknown Source)
        at org.bukkit.plugin.java.JavaPluginLoader.getPluginDescription(JavaPluginLoader.java:189)
        ... 7 more
     
  27. Offline

    TopGear93

    Caused by: java.util.zip.ZipException: error in opening zip file

    its not my problem. Some where on your end is the problem. BTW i dont support this anymore.
     

Share This Page