Command List Compiler v1.1

Junior Spellweaver
Joined
Oct 6, 2009
Messages
150
Reaction score
35
Command List Compiler / @commands command maker [v1.2]

Howdy guys. Isaac here.

I was doing some stuff for the server I develop, and I realized we didn't have a command list... And we have a lot of commands, so it would take a while to compile one manually.

So I decided to make a command list compiling program that will take your raw Commands.java file and outputs the full list of commands.



LINK:






UPDATES:

v1.0:
Initial release.

v1.1:
Added a file>open option so you can browse over to your command file
added a file>save option so you can save your command list directly without copy/pasting
added some settings to make the results more customizeable and adaptable to other sources, or sources customized to use different player/donor command methods as well as different prefixes.
Made it so that the contents of the textbox don't get reset by default, unless you're entering the exact same thing twice. (Try not to double click the button if you're using multiple files.)
Added a manual reset button.

v1.2:
Added an option that will create a command to list the commands. That sounded redundant...
Added more customizability in the "other options" menu item, including a way to make it more friendly to prefix-including sources.




INSTRUCTIONS (can also be found in the program itself):

  1. Open your command.java (file>open) or paste it into the top box
  2. (unnecessary if you used file > open) Press compile button
  3. Click the button that best meets your needs
  4. Wait for it to compile the commands list
  5. Save the output (file > save) or copy it to wherever you want
  6. Profit



MORE INFO:

This program is made for MoopleDev, although not exclusively for it.
In theory, it should work for everything, although it is untested for anything other than MoopleDev.

Here are some problems that could arise, and solutions (when there are any):

  • If you're using a source that has multiple files for the commands, putting them in one by one should work fine, although the formatting may be questionable.
  • If your methods for Player commands and Donor commands (if you have them) do not contain the words Player and Donor/Donator respectively, you need to go to Settings>Prefix settings and change the keywords, or they'll end up with the wrong prefix (usually !)
  • If you don't use #commands for donors, go to Prefix Settings to change the donor commands prefix
  • If your source checks for commands with the prefix included, go to other settings and uncheck "append prefix", or you'll end up with the prefix twice.
  • By default, command methods start with 'execute'. If yours don't, the names of the sections will end up screwy. Change ur methods plz.
  • This program checks for certain features in your code. If you use methods other than .equals() and .equalsIgnoreCase() to check commands, you should probably get used to using it, because it's most practical. Oh, and the commands won't be detected at all, so you'll have a blank output. :D

Some of these things will be completely fixed if/when I choose to release a new version.




FAQ (not really, but I imagine I might get asked some day if I don't do this)

Q: When I load my commands class from a file, the formatting goes screwy. Will this effect the output?
A: No.

Q: Will compiling the list for a specific file overwrite the output that's already in the box?
A: Not unless you're submitting the same file twice in a row, in which case it will.

Q: Why did you choose to make this program?
A: I got bored.


Until then, peace out.
~Isaac~​

P.S. For all you foreign bast- ermm, cupcakes out there who know technical terms but not the alternate meaning of compile, don't get mad at me for using the wrong terminology. To compile something is to put a bunch of things together into one final product, so it is absolutely truthful to claim that this program compiles a list of commands.
 
Last edited:
Re: Command List Compiler v1.0

Do you mind putting a virus scan, to make sure its safe? Thanks.

Errm, actually, I'm not entirely sure what I'm supposed to do in response to this xD

I did a kaspersky scan, here's a pic

linkdamasta - Command List Compiler v1.1 - RaGEZONE Forums


Otherwise, I'm sure the people here can testify for me? :3
 
Re: Command List Compiler v1.0

Updated to v1.1! Yaaaayyy!
Added a bunch of new stuff.

Gonna try to find a good way to split the section titles and add solutions to some of the problems later.
 
Last edited:
Oh I see the problem. I had actually posted that I had updated before updating the main topic, so you only have version 1.0 downloaded at the moment. xP

You can just open it in the latest version.
 
You should make this try and interpret what the command does as well. (; -too lazy to type command descriptions- Anyone could do what this program does with a couple of Ctrl+H's.
 
You should make this try and interpret what the command does as well. (; -too lazy to type command descriptions- Anyone could do what this program does with a couple of Ctrl+H's.

That would take a long time to figure out; Teaching the program the logic... and then getting it to recognize all the various methods. It would be incredibly time consuming, plus I'd have to figure out a good code for it to logically explain the command. It's a huge workload.

Also, I see a flaw in your post. You say that people could do this with a few ctrl+h's, after you say you're too lazy to make command descriptions. What if you're too lazy to find all the commands and compile them section by section into a list?

Next I'm going to add a feature that allows you to export it as either an independent command list (already implemented) OR a code that you can stick into your commands file to get a command-list command.


EDIT:
Update released ;)
 
Last edited:
Back