Inactive [GEN/INFO] EZCalc 1.5 - Do advanced math in-game! [1.1-R6]

Discussion in 'Inactive/Unsupported Plugins' started by TexasGamer, May 29, 2011.

  1. Offline

    TexasGamer

    EZCalc is now on BukkitDev! Click here to visit.
    EZCalc 1.5
    The most advanced calculator plugin available! Ease-of-use for newer players while allowing for more advanced operations. Variables are even saved after logging out.
    Commands (open)

    • Commands
      • calc <equation>
      • ans
      • setx <equation>
      • sety <equation>
      • setz <equation>
      • getx
      • gety
      • getz
      • clearvar
      • clearvar <name>
      • ezcalc <version|reload>
      • getdeaths
      • listvar
    • Permission Nodes
      • ezcalc.calc - all commands (except admin command)
      • ezcalc.admin - clearvar <name>
    Operators and Variables (open)

    All of the following work with any command that accepts an <equation> (i.e. /calc, /setx)
    • Operators: +, -, /, *, %, sqrt
    • Variables: x, y, z, ans, health, death, height, bubble, coordx, coordy, coordz
    • Constants: stack (64)
      • Custom:var1, var2, var3, var4, var5
        • No operators, variables, and constants
    • Other: You can use parenthesis and powers (^). Spacing doesn't affect output.
    Developer API (open)

    EZCalc has a very simple API that lets your plugin use EZCalc for calculations. In addition, you can see a user's variables. The API will be getting improvements along the way to make it more powerful and easy to use.
    • EZCalc API 0.1 (requires EZCalc 2+)
      • Read and write access to variables x, y, z
      • Calculate equations
      • Custom variables and constants (requires your plugin to handle replacing the variables before calculating)
      • Replace variables before calculating
      • More plugin information

    Download
    EZCalc 1.5 (older downloads) Need 1.1-R5+ support? Check out the preview!
    Requirements: Java 6+, recent Bukkit build
    [​IMG]

    Version history
    • 1.5
      • Addition: PermissionsBukkit (native Bukkit permissions) support
      • Addition: Square roots
        • sqrt
      • Addition:Coordinate variables
        • coordx, coordy, coordz
      • Removal: Permissions 3.x support
      • Removal: Auto updater and nightly builds
      • Tweak: Code optimization
      • Tweak:Permission nodes are now simpler
        • ezcalc.calc and ezcalc.admin
      • Compatibility: 1597*
    • 1.4
      • Addition: Ability to reload config file in-game
      • Addition: Ability to update in-game
      • Tweak: Updates are now only done via command (not at server start)
      • Tweak: Updater output is much more readable and suited for in-game
      • Tweak: Updates are now hosted on Dropbox (instead of my crappy server)
      • Compatibility: 1000-1597*
    Older Versions (open)

    • 1.3
      • Addition: Added a configuration file (config.yml)
        • Define custom constants
        • Choose update settings (see below!)
        • Thanks to Jayjay110 for his config file tutorial!
      • Addition: Automatic updates
        • Enable in config.yml
        • You can subscribe to a nightly channel for the latest features
        • Note that updates are downloaded to /plugins/AutoUpdater/EZCalc
        • Thanks to Adamki11s for his auto updater library!
      • Fix: Permissions nodes affect usage of variables (health, death) in /setx, /sety, etc.
      • Fix: Added /setz and /getz to the Help plugin registration
      • Tweak: Clean up onEnable() messages
      • Tweak: Moved EZCalc.jar to the /bin folder to help prevent unzipping issues
      • Compatibility: 1000*
    • 1.2
      • Addition: New variables including height, bubble, and stack
      • Addition: Variable z (similar to x and y)
      • Addition: Admins can now /clearvar <name>
        • ezcalc.admin
      • Addition: Help support
      • Addition:A readme is now included with the download
        • Credit to sk89q!
      • Tweak: /setx (and other variables) now take equations like /calc
      • Tweak: Restructured code to be more flexible and easy to read
      • Fix: Typos and incorrect error messages
      • Compatibility: 818-860*
    • 1.1.1
      • Fix: Variables now work without spacing (i.e. x(4+ans) will work now)
      • Compatibility: 818-860*
    • 1.1
      • Addition: /calc supports advanced equations with parenthesis, powers, etc.
        • Credit to Connor Mahaffey!
      • Addition: /listvar lists all variables and their values
        • ezcalc.variable
      • Tweak: /calc supports spacing, no spacing, or both!
      • Fix: Typos and code structure
      • Compatibility: 740-817*
    • 1.0
      • Initial release
      • Compatibility: 740-817*
    *Compatibility is only what I can guarantee and what I have tested that specific version with. The plugin doesn't heavily rely on the Bukkit API, so it shouldn't break often.

    Coming Soon (open)

    • Tons of new features and tweaks are coming soon in EZCalc 2. Stay tuned!
    Bugs? (open)
     
    KoryuObihiro and Connor Mahaffey like this.
  2. Offline

    Goldkoron

    pffft who needs a calculator plugin, be a boss and make a 64 bit Redstone ALU
     
    TexasGamer likes this.
  3. Offline

    TexasGamer

    After five months, the next version of EZCalc has been released. Unfortunately, the API and calculation engine rewrite needed to be pushed back to the next version. This update includes some more variables and lots of clean up. Also, I have (finally) ported permissions from the old Permissions plugin to Bukkit's native system. The system has been greatly simplified, too!

    EZCalc 1.5 (older downloads)
    Requirements: Java 6+, recent Bukkit build
    [​IMG]

    Changes
    • 1.5
      • Addition: PermissionsBukkit (native Bukkit permissions) support
      • Addition: Square roots
        • sqrt
      • Addition: Coordinate variables
        • coordx, coordy, coordz
      • Removal: Permissions 3.x support
      • Removal: Auto updater and nightly builds
      • Tweak: Code optimization
      • Tweak: Permission nodes are now simpler
        • ezcalc.calc and ezcalc.admin
      • Compatibility: 1597
     
  4. Offline

    peng_bears

    nice to see the additions of sqrt, and coord

    Is this still a work in progress though or dead? If you are still working on it, a spout interface could be nice, simplecalc has one but less of the other features like setting custom variables and square root, maybe combine efforts?
     
  5. Offline

    TexasGamer

    Thanks! EZCalc 2 is currently in the beginning stages of development. The new version will be a complete overhaul of the plugin to increase performance and add new features. The unnecessary config file, ability to create custom variables in-game, and a few more surprises will all be included. Spout support should be coming soon as well!

    EZCalc 1.5 (and earlier!) is designed to be relatively future-proof when it comes to Bukkit builds. I've updated the OP and title appropriately.
     
  6. Offline

    TexasGamer

    As a follow up, here's my progress with EZCalc 2 as of writing this:
    Code:
    + EZCalc API allows access to calculation engine and other data for plugin developers
    + Vault hook for economy integration (using bal or balance variables)
    + /ezcalc debug for bug reports
    + Custom variables using the new /var command
    + Metrics hook (Thanks to Hidendra - https://github.com/Hidendra/metrics.griefcraft.com)
    - Config file
    * Migrate to Bukkit's new event system
    * Cleaner package structure
    * Better variable storage
    * Command system overhaul
    * Full Maven support
    * Support for latest Bukkit RB (1.1-R4)
    I only have to add Spout support, clean up the code, and add some more variables and functions. Once these are done, I will release the update.
     
  7. Offline

    peng_bears

    thanks for the info, appreciated and sounds good
     
  8. Offline

    TexasGamer

    Update: Version 1.5.1 is coming soon and will fix compatibility issues.

    With the recent announcements, I feel like it's time for another update:

    My personal thoughts on the ordeal
    Feel free to read up on my blog post

    EZCalc development
    EZCalc 2 is still under heavy development. There isn't an ETA at this time. Within the coming months, the following will happen:
    • EZCalc will gain full-on Spout support. This means that the upcoming Spout server will be fully supported (hopefully with the same file!).
    • EZCalc will be ported to the Minecraft API (still using the same file if possible) once it is released and I feel up for rewriting code once again.
     
  9. Not wanting to steal you an users TexasGamer ;) But i have to correct that statement.

    With the now released version 2.3 you have support of 51 custom variables, several math functions (including sqrt) and the two constants pi and e. Also you have the possibility to calc with your current location(x/y/z) or the spawn one(again x/z/z).

    And i am not currently working with texas, we will see what the future brings. Maybe collaborating?
     
  10. Offline

    TexasGamer

    Competition is healthy, my friend. ;) If you want to discuss collaboration, feel free to PM me!

    Edit: As of EZCalc 2.x (e952ff4), unlimited custom variables are supported. <3
     
  11. Offline

    TexasGamer

    Due to extended development time, I have decided to release a preview build. The preview has most features, but more are coming in the final release! Spout support among others are all included. I'll let you figure out the rest. ;)

    EZCalc 2.0-SNAPSHOT (older downloads)
    Requirements: Java 6+, recent Bukkit build

    This is a preview build. Bugs, etc. are to be expected. I take no responsibility if the plugin destroys your world or server.
     
  12. Offline

    peng_bears

    I was messing with this and not sure how to get a spout calc menu up or was that not part of it... either way what is the spout support exactly?

    also it seems as though the calling coords is not in this snapshot?
     
  13. Offline

    TexasGamer

    With the SpoutPlugin installed (and using the SpoutCraft client), you can press "C" on the keyboard to bring up the GUI. It's pretty self explanatory from there... you can use the escape key to close the GUI.
     
  14. Offline

    peng_bears

    thanks, also good to see that you can change the key client side in your own spout bindings, i use c for inventory. Looking good and just waiting for those variable to be added in for 2.0, thanks for the snapshot.
     
  15. Offline

    TexasGamer

    Glad you like it! Hopefully the full version will be done in the next week or so. Things have just gotten busy :p

    Two more cool features (of many):
     

Share This Page