Skip to content

Posts tagged ‘programming’

8
Dec
herobrine! oh no wait thats sean.

The future of ClearInv

Ok so today I was trying to decide if there is anything that ClearInv is missing, and the only possible thing I could think of that it was missing was economy support.  So my next major revision will be adding support for the various bukkit economy plugins (using the vault plugin to make it as compatible as possible).  My current plan (and this is still quite rough so it may change), is that I will make a permission node clear.free which will allow players with that node to clear for free even if economy support is activated in the config.yml.  This will also add two options to the config.yml, a boolean for whether or not your server uses an economy, which will be false by default, and the price to use the command, which will probably be 0 by default.  Once finals are done next week I will be able to devote much more time to programming, and will likely begin looking for another problem to solve in minecraft.

13
Oct

Order Of Operations (Programming)

I feel like there should be an order of operations when it comes to programming.  While watching the bukkit plugin development forums over the last couple of months I have noticed that there is a trend of people not knowing about the basic syntax of the language trying to develop a plugin for minecraft.  Here is a perfect example of some code I ran into today that outlines my point: Read moreRead more

5
Oct

New LCD, Yay

Well almost one week later the new LCD for my laptop came in.  That was an expensive lesson, don’t use the tables on the CS department chairs in the lounge.  Now I just have to install the new LCD in my computer (Lenovo ThinkPad T500) and it’ll be back in working order.  Once I do that my development will be back on track.  I will start off by testing out to make sure all the bukkit permission system code was successfully added, and if it was I will release v. 1.8.1, which will include that (because I forgot to merge it in 1.8.0), and some bug fixes for the commands from the console (though /clear * is still throwing an odd error that makes no sense).

26
Sep
herobrine! oh no wait thats sean.

ClearInv 1.8, where is it?

Ok so I’m still trying to patch up two distinct bugs for the 1.8 version of ClearInv.  In order to be transparent, the first bug is if you are trying to clear an item with a damage value, like the old version it will not recognize the damage values, compare them and remove if necessary, it will remove all the items with that ID, even if it has a different damage value.  I am also fighting with a null pointer exception for the clear except, which has slowed that down (i am focusing on the normal clearing) so hopefully I can get some good advice on the bukkit forums, and will be able to release this very soon.  I’m sorry I could not make it in time for bukkit for v. 1.8 of minecraft.

21
Sep
herobrine! oh no wait thats sean.

Today in minecraft and java

So this post is about two things.  I am currently working on fixing v. 1.8 of ClearInv up because in the shower I realized a bug in my code (I need to get a life if I’m thinking about code in the shower).  I realized that the way that I had set it up, if you had say told it to clear wool, it would clear all wools instead of just 0 damage wool (it only affects 0 damage items), so hopefully I can write up a solution for that today.  I would also like to mention a certain minecraft video that I can’t stop watching, and that is Revenge by: CaptainSparklez, this is the same guy that made TNT, he is very talented and has worked very hard on this video, and it shows.  Good Job CaptainSparklez.  Check it out after the jump: Read moreRead more

20
Sep

What to expect for ClearInv 1.8

Well it’s been a while since I updated ClearInv, and v. 1.8 coincides with Notches 1.8 release (no I did not plan this conspiracy theorists).  Version 1.8 is quite a major update as it rewrites how much of the base functionality works.

  • First off, I have written a ~1,600 line CSV of minecraft item names, id, damage, and output names, which will be available for anyone who would like to use it in their plugins, please give me credit though as this took a while, and was quite tedious.
  • In this rewrite I made it so that you can clear specific color wool, for example if you want to clear lime wool you can do /clear 35:5 or /clear limewool (or /clear lime i think, i forget).  Needless to say, this will be a very nice addition to the plugin.
  • I have added an option in the config file to use super perms, this is set to false by default, but if you set it to true it will use that, all the nodes are the same.
  • I have also included all the latest items that came with 1.8 in the csv, so don’t despair, it’s there.

Once bukkit updates for 1.8 I will test it to make sure it works, and that nothing in the bukkit update breaks it, and then I will release the update.  So sit tight people, 1.8 is on its way!

27
Aug

ClearInv 1.7.1 is up

ClearInv 1.7.1 is now up, this update includes players previewing an inventory will automatically have it removed after about 5 minutes (6000 ticks) and their original inventory given back to them. I also have made a new permission node “clear.admin” which is used to be able to clear the inventories of all players at once, either completely or selectively. You can also do this using the console. See more info here.

24
Aug

What to expect from the next ClearInv update

Here is what I’m planning to release in version 1.7.1.  First I will be adding some protection to people who are previewing an inventory by making it so that after about 5 minutes (6000 ticks) it will give you your own inventory back.  This is to protect the player that preview an inventory and goes afk for a bit, but then theres some sort of problem with the server.  I know this is not a major issue 99.9% of the time but figured I should add the safeguard anyways.

I am also making it so if you do /preview without a name then it will act as if you typed /unpreview.  This should prevent any confusion about commands, however /unpreview will still be there for people who are used to that. 

Finally I am planning to make it so you can use a wildcard for a name in order to clear everyones inventory, and it will also work selectively clearing.  This will have it’s own permission node (probably something like clear.all) that way you can chose to only give it to admins and not moderators if your server is set up that way.  Hopefully i can do this all before school starts and I move into my new appartment and start school for the semester.

Thank you for reading and using my plugin.

19
Aug

ClearInv updated with a new feature

Today I am releasing v 1.7.0 of ClearInv which adds the ability for users with the clear.other permission node to view other players inventories.  It does this by saving the players inventory, and temporarily replacing his or hers inventory with that of the player they use it on.  I know this is nothing new in the world of bukkit plugins, but it’s just one more step in the progression of this plugin.  I would like to thank Kohle on the bukkit forums for suggesting the addition to the plugin.  For more information, and a download link, go here.

15
Aug
HTC boot loader unlock process

HTC boot loader unlock process and what we can reasonably assume

So to start this off, this is not about how to unlock your HTC phones boot loader, it is about what we can infer about the process due to the way to works (for more information on the process, see this).  From what it would appear this is some sort of hashing algorithm, upon first look it would most likely be a one way hash of the token passed to them at step 2.  However there is also the possibility that this is RSA in reverse. Read moreRead more