Sierra ~ Java // Netty // MySQL // BoneCP // Plugin System (Like Bukkit!)

Page 35 of 103 FirstFirst ... 2527282930313233343536373839404142434585 ... LastLast
Results 511 to 525 of 1536
  1. #511
    Developer Quackster is offline
    DeveloperRank
    Dec 2010 Join Date
    AustraliaLocation
    3,476Posts

    re: Sierra [R63, JAVA, MySQL (JDBC), Netty]

    Quote Originally Posted by Leon View Post
    Epic idea, Quackie! Can't wait for this..
    It was an idea..

    Updates -- pushed all my latest changes to git hub, please don't ask how you create plugins. As it's still in development

    Quote Originally Posted by iHarrison View Post
    That's so cool!

    Looking at the code instantly reminded me of bukkit =)
    Ah! Awesome! :D

  2. #512
    Developer Quackster is offline
    DeveloperRank
    Dec 2010 Join Date
    AustraliaLocation
    3,476Posts

    re: Sierra [R63, JAVA, MySQL (JDBC), Netty]

    Fixed the messenger, now to code friend requests and shizz, (removed staff category due to errors, but it will come back in future)



    Code:
    package sierra.messages.console;
    
    
    import sierra.SierraEnvironment;
    import sierra.composers.Outgoing;
    import sierra.messages.MessageEvent;
    import sierra.network.clients.Session;
    import sierra.network.clients.SessionManager;
    import sierra.packethelper.ClientMessage;
    import sierra.packethelper.ServerMessage;
    import sierra.utils.UserInputFilter;
    
    
    public class SendMessage implements MessageEvent {
    
    
    	@Override
    	public void Parse(Session Session, ClientMessage Request)
    	{
    		/*
    		 * Get friend id
    		 */
    		int FriendId = Request.popInt();
    
    
    		/*
    		 * Get console message
    		 */
    		String ConsoleMessage = UserInputFilter.filterString(Request.popFixedString(), true);
    
    
    		/*
    		 * New server message instance
    		 */
    		ServerMessage Message = new ServerMessage();
    
    
    		/*
    		 * Build packet
    		 */
    
    
    		SessionManager Sessions = SierraEnvironment.getConnections().GetConnections();
    
    
    		if (Sessions.UserByIdOnline(FriendId))
    		{
    			Message.Initialize(Outgoing.TalkOnChat);
    			Message.AppendInt32(Session.GetHabbo().Id);
    			Message.AppendString(ConsoleMessage);
    			Sessions.GetUserById(FriendId).Send(Message);
    		}
    		else
    		{
    			Message.Initialize(Outgoing.TalkOnChat);
    			Message.AppendInt32(FriendId);
    			Message.AppendString("Your friend is offline.");
    			Session.Send(Message);
    		}
    	}
    }

  3. #513
    ส็็็็็็็ Bloodraven is offline
    MemberRank
    Sep 2009 Join Date
    AntarcticaLocation
    2,414Posts

    re: Sierra [R63, JAVA, MySQL (JDBC), Netty]

    Nice work Alex, And yes the code does remind me of craftbukkit.

  4. #514
    Alpha Member Caustik is offline
    MemberRank
    May 2011 Join Date
    LondonLocation
    1,837Posts

    re: Sierra [R63, JAVA, MySQL (JDBC), Netty]

    Nice plugin idea, maybe you could take a modular approach to design? (E.g what Nillus did with his openholo(?) server) So if someone wanted to switch to the b64 and vl64 encoding, they could load a jar with classes specific to that encoding protocol.

  5. #515
    Developer Quackster is offline
    DeveloperRank
    Dec 2010 Join Date
    AustraliaLocation
    3,476Posts

    re: Sierra [R63, JAVA, MySQL (JDBC), Netty]

    Updates

    - Friends coming online and offline is now 100% detectable and it will not fail.

    - Re-wrote my logging formatter.



    Quote Originally Posted by Caustik View Post
    Nice plugin idea, maybe you could take a modular approach to design? (E.g what Nillus did with his openholo(?) server) So if someone wanted to switch to the b64 and vl64 encoding, they could load a jar with classes specific to that encoding protocol.
    That will not be added as Sierra will have all normal hotel functions coded, but this plugin system gives users a chance to create addons without editing Sierra itself.

  6. #516
    ส็็็็็็็ Bloodraven is offline
    MemberRank
    Sep 2009 Join Date
    AntarcticaLocation
    2,414Posts

    re: Sierra [R63, JAVA, MySQL (JDBC), Netty]

    Quote Originally Posted by Quackster View Post
    Updates

    - Friends coming online and offline is now 100% detectable and it will not fail.

    - Re-wrote my logging formatter.




    That will not be added as Sierra will have all normal hotel functions coded, but this plugin system gives users a chance to create addons without editing Sierra itself.
    Sounds good, The code looks clean. (I'm still learning Java so don't take my word for it lol)

  7. #517
    Banned V for Vendetta is offline
    BannedRank
    Feb 2007 Join Date
    1,809Posts

    re: Sierra [R63, JAVA, MySQL (JDBC), Netty]

    Quack just as i've posted previously at Aaron's developement, are you capeable to keep starting developements when behalf of them are not released yet nor finished, good luck,

  8. #518
    Developer Quackster is offline
    DeveloperRank
    Dec 2010 Join Date
    AustraliaLocation
    3,476Posts

    re: Sierra [R63, JAVA, MySQL (JDBC), Netty]

    Sorry for the lack of updates. This plugin system is really... really annoying. I might consider getting rid of it. Unless I figure out a way to register events like Bukkit has.

  9. #519
    Proficient Member MrSolution is offline
    MemberRank
    May 2012 Join Date
    174Posts

    re: Sierra [R63, JAVA, MySQL (JDBC), Netty]

    How do you handle the shuffle headers?

  10. #520
    Alpha Member Zak© is offline
    MemberRank
    Oct 2007 Join Date
    2,693Posts

    re: Sierra [R63, JAVA, MySQL (JDBC), Netty]

    Quote Originally Posted by MrSolution View Post
    How do you handle the shuffle headers?
    He had most the headers, this is on a single build.

  11. #521
    Developer Quackster is offline
    DeveloperRank
    Dec 2010 Join Date
    AustraliaLocation
    3,476Posts

    re: Sierra [R63, JAVA, MySQL (JDBC), Netty]

    Quote Originally Posted by Zak© View Post
    He had most the headers, this is on a single build.
    And proud of it! ;D

    Also on a serious note:

    - Would you like me to transfer all hotel packet handling into plugins, or not?

  12. #522
    Account Upgraded | Title Enabled! GertJanA is offline
    MemberRank
    Jan 2010 Join Date
    The NetherlandsLocation
    391Posts

    re: Sierra [R63, JAVA, MySQL (JDBC), Netty]

    Quote Originally Posted by Quackster View Post
    And proud of it! ;D

    Also on a serious note:

    - Would you like me to transfer all hotel packet handling into plugins, or not?
    I guess that would be easy'er to change them (if possible)

    Greetz,

  13. #523
    Alpha Member Zak© is offline
    MemberRank
    Oct 2007 Join Date
    2,693Posts

    re: Sierra [R63, JAVA, MySQL (JDBC), Netty]

    Quote Originally Posted by Quackster View Post
    And proud of it! ;D

    Also on a serious note:

    - Would you like me to transfer all hotel packet handling into plugins, or not?
    Well, what would the pro and cons be to it, it seems pretty useless as it's fine as it is at the moment.

  14. #524
    Developer Quackster is offline
    DeveloperRank
    Dec 2010 Join Date
    AustraliaLocation
    3,476Posts

    re: Sierra [R63, JAVA, MySQL (JDBC), Netty]

    Quote Originally Posted by Zak© View Post
    Well, what would the pro and cons be to it, it seems pretty useless as it's fine as it is at the moment.
    Pros
    - No actual physical editing of Sierra itself.
    - People would learn more if they wanted to code for Sierra
    - Makes the source really dynamic
    - The emulator is more unique with such a system
    - You can just remove a plugin to disable that from being handled

    Cons
    - You'd need a lot of memory to store heaps of plugins
    - Slower boot up

  15. #525
    Alpha Member Zak© is offline
    MemberRank
    Oct 2007 Join Date
    2,693Posts

    re: Sierra [R63, JAVA, MySQL (JDBC), Netty]

    Well, looks at the pros, is not that bad at all.

    The cons are not that much of a serious issue, since a decent 2gb ram with standard cpu could be able to handle that.

    Slower Boot Up? Well, doesn't matter, your only booting once or twice a day, (Depends what the user is doing)

    But i guess it will be more work for you, porting all them plugins.



Advertisement