Kickstarter - Plugin codegenerator

Discussion in 'Resources' started by s1mpl3x, Jul 28, 2011.

  1. Offline

    s1mpl3x

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    inspired by @Dinnerbone 's plugin generator i tried to push this a litte further and created Kickstarter.

    Kickstarter is a Java Desktop Application which does basically the same thing as the plugin generator but creates a bit more code so repetitive tasks as setup configuration, register listeners and so on is automated and you can start to implement the functionality of the plugin without being hold back by stucture stuff.

    Kickstarter is able to produce the code for:
    • Commands
    • Tasks
    • Listeners
    • Configuration
    • the main-class
    • plugin.yml
    The GUI offers a easy way to enter the data (at least imo) and to export the plugin afterwards.

    Download:

    [IMG][IMG]

    Screenshots:


    The Code generated is (as far as i tested it :3 ) valid and Craftbukkit loads it without problems.
    Although the structure might be not 100% solid but yeah... it works and im happy for every suggestion on how to impove the quality of the code produced.

    So i hope it works and it is useful for someone and any feedback is appreciated

    Changelog:

    v0.2:
    updated listeners to build 1185
    fixed listener import @ mainfile

    This post has been edited 3 times. It was last edited by s1mpl3x Oct 1, 2011.
    civ77, Fauglir, Codex Arcanum and 7 others like this.
  2. Offline

    Col1500

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    This will help a lot of people, I'm pretty much a newb and even I can easily use this.
    It also makes it so that you don't have to memorize so many events :3. Thanks a lot!
  3. Offline

    Celeo

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    This looks really great! Thought creating this code is not hard, it can be very boring due to the repetition! I'll try this out when I get home.
  4. Offline

    LoneWold1245

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Hitting the DL button nice work :D
  5. Offline

    manill66

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Do I put the .jar in my plugins folder even though I want to make plugins for my server?
  6. Offline

    s1mpl3x

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    you can place it anywhere you want, just doubleclick it like a .exe
  7. Offline

    manill66

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    I just tried this out and it looks amazing! How do you test your new plugin now?
  8. Offline

    s1mpl3x

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    create a new project in eclipse, netbeans wherever and copy the output into your new project and from there it is business as usual
  9. Offline

    manill66

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Okay thanks, hope this works!
  10. Offline

    tips48

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    This is pretty freakin awesome :p The only thing I would like is to select a custom package name, besides that...tested all the features, passes with flying colors
  11. Offline

    Tster

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    A work of art, I feel no shame using this, why make life harder
    Followed
  12. Offline

    Tster

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Edit:
    Nice, but not my preffered package format
    Edit:
    Or my code format, good plugin, but not my scene

    This post has been edited 1 time. It was last edited by Tster Jul 31, 2011.
    tips48 likes this.
  13. Offline

    tips48

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Moar customizable? :D Maybe allow devs to provide the templete or something like that, that would be FREAKIN AWESOME xD
  14. Offline

    s1mpl3x

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    hm well make the package customizable is not a problem and stuff like only 1 command executor for all commands or use the onCommand in the MainClass... But what apart from that doesn't fit your code format/style?
  15. Offline

    tips48

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Thats good, although I like the command executors :p Apart from that, things like Not defining the Logger in the top, Using a PDF(I use a double for the main version and int for the sub version, as I use a custom Auto-Updater library that requires so), Not defining the prefix in the top.. Just little things, I guess everyone codes in their own way :)
  16. Offline

    s1mpl3x

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Yes and because everyone does code different, the codegen only produces 'basic' code that should fit just fine for the most basic plugins, and even for more complex ones it provide a base to work with. ;)
    Sure you have to change a lot to fit for stuff like an auto updater or whatever extension you want to add. Adding all those stuff to the codegen would just be too much but you can edit the source or the templates so they fit your needs :)
  17. Offline

    tips48

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Yea, i guess. I don't know, more configurable = better :p
  18. Offline

    s1mpl3x

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    small update:
    added a package textfield
    fixed exit button not working
    fixed event tabs (server/vehicle)

    edit: some more fixes for the package stuff..

    This post has been edited 1 time. It was last edited by s1mpl3x Aug 6, 2011.
    Vynlar and tips48 like this.
  19. Offline

    thehutch

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Make an update for the new command API
  20. Offline

    s1mpl3x

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
  21. Offline

    Delocaz

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    I really like this.
  22. Offline

    Ineentho

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Great program, but I found a bug:
    It tries to include
    Code:
    import me.ineentho.worldswitcher.listener.Listener_Player;
    but the package is called
    Code:
    import me.ineentho.worldswitcher.listeners.Listener_Player;
  23. Offline

    ZNickq

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    :O
    You sir,are epic!
    thehutch likes this.
  24. Offline

    EdenCampo

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Wow, I like it,but one thing,learning from this,nope.
    Well,yeah it's a newb progrem,It makes life easier,but if you really wanna be a developer,even start yourself,learn basics,then use the plug to make your life easy..,

    ANYWAY,awesome thing,thanks for this.
  25. Offline

    s1mpl3x

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    thanks to your feedback, updated to version 0.2.
    • updated listeners to build 1185
    • fixed listener import @ mainfile
    i'll may add permissions and change the configuration gui when i have more time
    undeadmach1ne likes this.
  26. Offline

    drampelt

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Version 2 is having issues with commands (well for me anyways). I configured a command, it said it was going to create that file, but then the commands package is empty and the main class shows: getCommand("/mycommand").setExecutor(new CommandExecutor_/mycommand(this));
  27. Offline

    bobbysmithyy

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
  28. Offline

    dakoslug

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    You should add a permission field when setting up commands.
  29. Offline

    AdvsNoob

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    BUMP: I would love to see this updated :]
  30. Offline

    BlackHawkLex

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Same here, update this pls :).

Share This Page