Python Plugin Loader

Discussion in 'WIP and Development Status' started by masteroftime, Jun 13, 2011.

Thread Status:
Not open for further replies.
  1. Offline

    Redyugi

    Bother to read the thread? :) Did you see anyone use it?
     
  2. Offline

    Drakia

    Yes, I've read the whole thread. You said THIS was tried as a plugin, not there was a different plugin the implemented something similar.
    If that plugin was never used, what makes you think this would be any more successful, whether implemented in CB or as a plugin?
     
  3. Offline

    Clem

    @Drakia @Redyugi ! Ahhh Enough fighting.... It wouldn't hurt to add this no? Come on guys...
     
  4. Offline

    Redyugi

    Implemented something similar? I do believe it did this and more, and never caught on.
    It would be more successful if it was integrated because it is
    1) 1 less dependency for the user
    2) Would be more accessible for a plugin developer
    Also, quoting the "About Us" section up top.
    You can't write a plugin in Python if Python isn't integrated and there isn't a Python plugin floating around. Just as you can't write a C++ plugin if there isn't a C++ plugin floating around. As you might see, once these language plugins start spreading around, the user will have more and more dependencies, and honestly, it wouldn't be worth the effort at that point. Just integrate it, and it would allow for "ease of use" to be easier then updating all the plugins AND the language dependencies.
     
  5. Offline

    MalcolmLC

    Hey Clem Im still trying to learn python , what do you think is a really important thing to remember . because my brain kinda hurts from reading that book you told me about.
     
  6. Offline

    Drakia

    The way Bukkit is designed is such that other language plugins are implemented using a plugin. Yes, it means there is a dependency (ONE, not more and more as you say), but that's how the bukkit team wants it.
    If adding one single plugin to be able to use Python plugins is too much work for you, then stick with what Bukkit supports by default, Java.
     
  7. Offline

    Redyugi

    I am talking about future wise. Because you seem to think it'll only be one or two languages. Thing is, is that everyone has their own language that they love and do well with. I can see 5+ easily happening within a few months, if this catches on.
    But hey, don't let me stop you from thinking whatever. But you should stay off this thread, because it's more for the people who will use it. Done arguing with you.
     
    Benjaneer and Clem like this.
  8. Offline

    Drakia

    Again, how hard is it to add a plugin if you want to use plugins coded in another language that what Bukkit officially supports? As it is, if you want to use something like iChat, you need Permissions. Or if you want to have costs associated with Stargate usage, you need to install iConomy. Dependencies are required for many things, and it shouldn't be any different for loading plugins in another language.
    As for staying off this thread, the thread is for discussion, not JUST for people who will/want to use this.
     
  9. Offline

    MalcolmLC

    I just want to be able to use python :( SO i can make my first plugin :D
     
    Clem likes this.
  10. Offline

    Clem

    @MalcolmLC Definitions/Modules... Important.
    @Drakia Listen mate, the plugin and the mod will both work... The mod is made... Lets just use it? Why reinvent the wheel?
     
  11. Offline

    Drakia

  12. Offline

    Clem

    That was just DinnerBone... It's still open to me, I think they should add it. Just drop it @Drakia ? You would make a great Lawyer :D
     
  13. Offline

    Redyugi

    You do know that DinnerBone is one of the Bukkit devs and an Admin right?
     
  14. Offline

    Drakia

  15. Offline

    MalcolmLC

    sorry i keep asking you question but I think I may have looked up to more info on python than I needed lol and how do I know what I need to import. I tried making a test plugin with eclipse And It pretty much told me what I need to import . I plan on making a plugin So i can schedule console commands commands . Im not really sure if a plugin like this exist already but It dosent matter to me I just want something to work on first
     
  16. Offline

    EvilSeph Retired Staff

    @masteroftime

    We appreciate the work you've put into this and I realise you've tried to get approval from my team and myself way ahead of time, however we've been incredibly busy and hadn't had time to discuss this issue until recently. 3 out 4 of our core team believes this, and all other plugin loaders, should be handled through a plugin as it provides more flexibility in terms of maintenance and development. It allows you to update and maintain the loader and releases the loader from being dependent on our getting a Recommended Build out. We feel that anyone who wants to program for or use a plugin written in Python won't have any issues with dropping a dependency into their plugins directory as they are already doing with Permissions, Economy plugins, etc.

    I am sincerely sorry for the delay in addressing this issue. My community staff have been bothering me about this non-stop since you reported the OP but I was unable to deal with it until recently.
     
    Clem and Phaedrus like this.
  17. Offline

    MalcolmLC

    God that was the most professional sounding text I have ever read on this forum
     
  18. Offline

    Zeerix

    I made a plugin that loads plugins which are written in Ruby/JRuby: http://forums.bukkit.org/threads/RubyBukkit.24899/

    If you want to make a plugin to load Python plugins, you could use the source of my plugin and modify it to load the Python runtime instead.
     
    Benjaneer likes this.
  19. Offline

    Clem

    <3 Python. Thanks for the info @EvilSeph . Hopefully when @masteroftime returns from his 3 week vactation he will make a plugin. :)
    P.S. How come you don't get more devs?
     
  20. Offline

    MalcolmLC

    0_O
     
  21. Offline

    4am

    Larger teams are harder to manage and can lead to disagreements; newer people eager to contribute want to take things their own direction. Much easier to manage a smaller team efficiently and deal with pull requests from the community. Aside from the vacation delays (which are quite reasonable) the Bukkit team has been very efficient, especially lately.

    On another subject: Is there a good tutorial somewhere that shows how to do things like use Python and Ruby (or any other languages) from Java code as would be required for a plugin like this? I'm thinking it would be neat not only for full development but to add the ability to let users add short (preferrably sandboxed) scripts to a plugin.
     
  22. Offline

    MalcolmLC

    So your saying to make a plugin for a plugin you made so we can make a plugin in python 0_o im wayyy to stupid for that XD
     
  23. Offline

    masteroftime

  24. Offline

    MalcolmLC

    I love you , now I get to practice what I learned :D and MAYBE get become an actual programmer :D
     
  25. Offline

    lahwran

    I was offline with jython last night, so I decided to write a python plugin loader. it uses annotations instead of classes - my test plugin:

    Code:
    @pyplugin.onEnable
    def onEnable():
        print "enabled!"
    
    
    @pyplugin.onDisable
    def onDisable():
        print "disabled!"
    
    
    def onPlayerJoin(event):
        print event
        print dir(event)
    
    
    pyplugin.registerEvent(onPlayerJoin, "PLAYER_JOIN", "Normal")
    
    I'm still not done, but I don't really want to compete with you, so when I am done I'll just give it to my friend who requested it a while ago, and then to you if you want a copy.
     
  26. Offline

    masteroftime

    @lahwran cool thing, I'm very interested to learn how you've done that and maybe, with your permissions, I could combine this with my loader.
     
  27. Offline

    lahwran

    well, I'd like to fix all the bugs in yours first, because I'm a perfectionist. I'll try to get it to you by the end of the week though, clean or not.
     
  28. Offline

    lahwran

    Okey-dokey, I pull requested. now I just have to wait for you to get on at the same time as me so we can discuss it :<
     
  29. Offline

    Clem

    I love you @masteroftime I have myself a Java book, a C# book, a Python Book (fav), and a Objective-C book (pain in butt). :D Thanks soooo much
     
  30. Offline

    ThelleoPL

    Nice... if somebody can create PHP Loader I want to use it.
     
Thread Status:
Not open for further replies.

Share This Page