[FUN/MECH] Battery - Store and Release the Power of Redstone [1.5.1]

Discussion in 'Archived: Plugin Releases' started by rominos2, Jun 23, 2011.

  1. Offline

    rominos2

    Battery - Store and Release the Power of Redstone
    Version : 1.5 (Power Plant Edition)

    This plugin is now on BukkitDev

    Old Post


    Create batteries.
    Catch any redstone activity in a battery and release it later with a lever.
    For example, you can use it with my ThunderTower plugin.

    Features :
    • Create Batteries with a block, a sign, and a lever
    • Save it in a flatfile
    • Charge your battery
    • Uncharge it
    • Full configurable
    Download Links :

    Battery v1.4.3


    How To Use :
    • Place a Battery Block (configurable)
    • Put a Sign with the first line [Battery]
    • Optional : See the Parameters section to make special batteries
    • Let's charge with redstone on the left side (redstone wire) or with an active furnace
    • Click on the Sign yo power on the right side (redstone wire) or a to active a furnace
    Parameters on Sign :

    All the Parameters can be written on the second line of the Battery sign on the creation of the Battery
    Only One parameter can be set for a battery

    Params (open)

    AutoPower
    Battery will automaticly uncharge it when arrive to a define level
    Usage : APxx when xx is the specific level

    AutoActivation
    Battery will uncharge it only if a redstone wire is powering the back of the battery
    Usage :AA

    Screenshots:
    Screenshots (open)

    [​IMG]
    [​IMG]
    [​IMG]
    [​IMG]
    [​IMG]
    [​IMG]

    Todo :
    • Load Batteries Chunks
    Known Issues :

    • No more
    ChangeLog :

    Version 1.4.3 (11-09-2011)
    • Fix the remaining problems with the CurrentModificationException
    • The timeCheck is no more in miliseconds but now in 1/20 seconds (10 = 0.5sec)
    ChangeLog (open)



    Version v1.4.2 (09-09-2011)
    • Code cleaning of the remaining classes
    • Fix a lot of bugs
    Version 1.4.1(08-09-2011)

    • Enormous Code Cleaning
    • Fix battery loose problem
    • Fix AP Problem
    Version 1.4(05-09-2011) (Furnace Edition)

    • Add furnace powering
    • Add AA param (AutoActivation) on a battery to activate it with a redstone current on the back of the block
    Version 1.3(28-08-2011) (Timer Edition)

    • Some code cleaning
    • Add Furnace charging
    • Add AutoPower to X% with the parameter APXX (where XX is the number)
    Version 1.2.2(27-07-2011)

    • Perhaps fix the non charging error
    • Delete batteries instead of spamming the console don't finding them
    Version 1.2.1(13-07-2011)

    • Fix a little bug in the configs on the plugin loading
    Version 1.2(09-07-2011) (St-Evarzec Edition)

    • Rewrite of the energy support (using my own RedstoneManager)
    • Delete of the AutoPower configs in properties
    • Add AutoPower optional on Batteries Sign
    Version 1.1(27-06-2011)

    • Fix the right Click issue
    • Add an autoPower config to deliver power when charged at 100%
    Version 1.0(23-06-2011)

    • Just the release of this awesome plugin


     
  2. Offline

    Grammar Troll

    Now you actually are making me curious!
     
  3. Offline

    Kingadams

    Im having the same problem i place one (But once charged when i rightclick nothing happens) i set it up right.

    When i make a second it doesnt work. Can you help?

    Using permissions your thundertower plugin, and Bukkit build 995(I thinks)
     
  4. Offline

    rominos2

    @Kingadams
    Can you send more details ?
    I actually test and it function with 2 batteries
    I clicked on a battery or on the others and they charged and power like normal
     
    bellardie likes this.
  5. Offline

    Kingadams

    Odd, well it usually will stop battery's from working if i make more if i break ones sign. The sign rightclicking just never works, i use essentials, WorldEdit, WorldGuard, Thundertower, This, and iChat.

    Also when i try to change its blockid in its config i get a nasty error in console if you want ill include.
     
  6. Offline

    Shooty

    Same here
     
  7. Offline

    rominos2

    @Kingadams
    @Shooty
    I'm sorry I cannot reproduce your errors
    I test rightclick and It functions on mine
    Please send the report it can surely help me
     
    bellardie likes this.
  8. Offline

    Kingadams

    It works for me now but tends to give a error message.. when it comes ill post it.
     
  9. Offline

    rominos2

    @Kingadams
    Hmm when I spoke it stops problems ^^ (good to keep in mind)
    Ok for the error it will show me where is the problem
     
    bellardie likes this.
  10. Offline

    Semirotta

    screenshots not working
    video would be nice
     
  11. Offline

    rominos2

    @Semirottta
    What ?
    Screenshot are working !
    For the vid I have a very bad english accent so if someone could make one it would be nice ^^

    Thanks for that sir ^^

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

    Anarchy219

    It's a very nice pluggin, but i have an error in my console

    It work in some worlds but in my default world the battery don't charge, Can you help me ?
    Thank's a lot.
     
  13. Offline

    rominos2

    Yes I don't currently know why it doesn't works somewhere but for your errors I suggest you to suppress the .save of the world
    It doesn't find the sign for the battery, it's why it spam your console (I just had the same some minutes ago)
    I'll put in the Todo list to suppress the battery if it cannot find them
     
    bellardie likes this.
  14. Offline

    Anarchy219

    I have suppress all of them but it didn't change anything.
    Any solution for the charge problem?
     
  15. Offline

    rominos2

    Not for the moment
    Without error it's very difficult to find out what's happen
    I'll work on ti tommorow
     
    bellardie likes this.
  16. Offline

    XxBTWxX

    Same like Legomaster98
    Batteries didn't charge ;(

    For what i can use these batteries?

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

    rominos2

    @XxBTWxX
    You can use them for what you want it's for RP first

    For the non charging issue I'll see later because I have not time for the moment (Thursday i'll see that)
     
    bellardie likes this.
  18. Offline

    Anarchy219

    Sometimes when i reload or reboot my server i can charge the battery anywhere but when i destroy a battery, i can't charge them and my old charged battery don't change the powering/charging status on the sign but the redstone on the right is activated...
    And, when you destroy the battery sign i have the message 'you destroy a battery' , but when you destroy the block with the sign on you don't have the message.
     
  19. Offline

    rominos2

    @Anarchy219
    Ok for the block I'll fix that
    For the problem of charging/powering I don't actually know where is the problem I'll search this weekend
     
    Blacky and bellardie like this.
  20. Offline

    vinni96

    auto power doesnt work for me.
    :(
     
  21. Offline

    rominos2

    --- Release of Version 1.2.2 ---
    Some Fixes (I hope non charging bug is fixed)

    @vinni96
    Did you write AP on the second line of the sign ?
     
    bellardie likes this.
  22. Offline

    Shivanous

    Out of curiosity, would it be possible to have a redstone current going to the sign toggle the power output of the battery?
     
  23. Offline

    rominos2

    @Shivanous
    For the moment no,
    But it an excellent idea and I had to the Todo list a way to activate to battery at the opposite of the sign (I'm lucky there is one face left to do that ^^)
     
    bellardie likes this.
  24. Offline

    Shivanous

    Cool, definately hope to see that (Yeah, that's the great thing about cubes).
     
  25. Offline

    XxBTWxX

    You can make it when impulse powered (like from pressureplate or button) from backwards to activate and when powered again to disactivate. It will bi like "Limited Time Adder". It will be useful for complex traps.
     
  26. Offline

    rominos2

    @XxBTWxX
    No I think I would make just a bottom activation like a transistor
    The one push to activate, another to unactivate would be to you to be done ^^
    BTW if you have an idea how doing this switch, I'll be GLaD to know
     
    bellardie likes this.
  27. Offline

    Crig000

    Looks awesome!
    So many use's
     
  28. Offline

    rominos2

    @Crig000
    Hey send me vids and screens of your creation using Batteries
    I'll create a Creations part on my post
     
    bellardie likes this.
  29. Offline

    Crig000

    Ok im working on that now!
     
  30. Offline

    Thelgilius

    can you make the battery as redstone torch? when battery loaded ID 76 when not Id 75! can you make this?
     
  31. Offline

    yakasuki

    great for spaceships that that uses power
     

Share This Page