[C#, PHP, R38] Project Aurora

Page 6 of 14 FirstFirst 1234567891011121314 LastLast
Results 76 to 90 of 199
  1. #76
    Member Amariconao is offline
    MemberRank
    Nov 2011 Join Date
    66Posts

    Re: [V9] [R35] Aurora Emulator [C#] [NHibernate] [DotNetty] [Log4net]

    Quote Originally Posted by Boraida View Post
    So what does the StringBuilder class do better than a "+=" operator in this scenario?
    I dont know what is the max lenght of columns will be, but is a question of permormance. I give you a stackoverflow post for read, not for state there and be beautifull...
    https://stackoverflow.com/a/74233


    PD: I know use StringBuilder will not be the best way, but i dont know what is the lenght of the columns you use on the for, but think on it, use the best way can save your ass a lot of times

  2. #77
    Death from above! The General is offline
    DeveloperRank
    Aug 2011 Join Date
    9,235Posts

    Re: [V9] [R35] Aurora Emulator [C#] [NHibernate] [DotNetty] [Log4net]

    Quote Originally Posted by Boraida View Post
    So what does the StringBuilder class do better than a "+=" operator in this scenario?
    Not returning a new string when appending.
    Discord: TheGeneral#0063
    Join the Arcturus Discord server: https://discord.gg/eDr7FKQ (You can ask help here regarding Arcturus :love)

  3. #78
    Member Amariconao is offline
    MemberRank
    Nov 2011 Join Date
    66Posts

    Re: [V9] [R35] Aurora Emulator [C#] [NHibernate] [DotNetty] [Log4net]

    Quote Originally Posted by The General View Post
    Not returning a new string when appending.
    TRUE!


    As martinmine say on his post: How to write a good emulator

    Understand what happens under the hood
    If you want to write effective code, you must understand what happens under the hood of the code you are using.

    Write maintainable code

    Under the hood isn't the same use strings.Join(), StringBuilder or +=, and i have to say StringBuilder
    is the easiest code to keep, in my thinking

  4. #79
    Oldskool Resurrector Navine is online now
      V.I.P  Rank
    Oct 2012 Join Date
    The NetherlandsLocation
    2,330Posts

    Re: [V9] [R35] Aurora Emulator [C#] [NHibernate] [DotNetty] [Log4net]

    Okay, I will use StringBuilder then. As for how much columns, it can be either 1, 2, 3 or like 8. It depends on where you use it.
    Developer of Aurora (huge oldskool & Habbo BETA project):
    http://forum.ragezone.com/f331/v9-r3...netty-1132388/

    - C# developer
    - Webdeveloper

    Contact me @ discord: navv13#8055

  5. #80
    Member Amariconao is offline
    MemberRank
    Nov 2011 Join Date
    66Posts

    Re: [V9] [R35] Aurora Emulator [C#] [NHibernate] [DotNetty] [Log4net]

    Quote Originally Posted by Glaceon View Post
    Okay, I will use StringBuilder then. As for how much columns, it can be either 1, 2, 3 or like 8. It depends on where you use it.
    You can try with string.Join(STR, ",") it will be better too :p

  6. #81
    Oldskool Resurrector Navine is online now
      V.I.P  Rank
    Oct 2012 Join Date
    The NetherlandsLocation
    2,330Posts

    Re: [V9] [R35] Aurora Emulator [C#] [NHibernate] [DotNetty] [Log4net]

    Sorry for the lack of updates. I simply have had a hard time with school, and after that I needed some rest. Now, other personal things are on my mind (things, much much much more important than Habbo stuff). I would love to explain it, but nobody cares anyways (you can send me a PM, if you want to know, no promises I'll explain it though).
    @spreedblood was working on pathfinder and I'll most likely get back pretty soon. I had an annoying bug last time I worked on Aurora, which prevented me from working nicely (I could build the emulator once, then it'd give me errors saying "could not copy obj/....exe to bin/.....exe").

    Just so you know, the emulator development isn't stopped, I just wasn't up for it. I still am not, but I should continue someday. So it doesn't hurt to start.
    Developer of Aurora (huge oldskool & Habbo BETA project):
    http://forum.ragezone.com/f331/v9-r3...netty-1132388/

    - C# developer
    - Webdeveloper

    Contact me @ discord: navv13#8055

  7. #82
    Newbie Kanly is offline
    MemberRank
    Jul 2017 Join Date
    2Posts

    Re: [V9] [R35] Aurora Emulator [C#] [NHibernate] [DotNetty] [Log4net]

    Achievements, I hope Aurora Plus Like You See ...

  8. #83
    Ultimate Member spreedblood is offline
    MemberRank
    May 2014 Join Date
    174Posts

    Re: [V9] [R35] Aurora Emulator [C#] [NHibernate] [DotNetty] [Log4net]

    Sorry for the lack of updates, we've both been busy with irl and I decided to pick up on where we left. I've started rewriting the source and from now on we don't use the 'GetInstance()' that created an instance of the class and followed the singleton pattern but instead (credits to @Joopie) I started reading up on Dependency Injection. I'm now using a IoC container (DI Container) called Autofac. I associate every controller with an interface and then setup the controllers.
    PHP Code:
    ContainerBuilder builder = new ContainerBuilder();
    builder.RegisterType<MainController>();
    builder.RegisterType<ControllerLocator>().As<IControllerLocator>();
    builder.RegisterType<CatalogController>().As<ICatalogController>();
    builder.RegisterType<ClientController>().As<IClientController>();
    builder.RegisterType<ItemController>().As<IItemController>();
    builder.RegisterType<MessengerController>().As<IMessengerController>();

    builder.RegisterType<NavigatorController>().As<INavigatorController>();
    builder.RegisterType<PlayerController>().As<IPlayerController>();
    builder.RegisterType<RoomController>().As<IRoomController>();
    builder.RegisterType<TaskController>().As<ITaskController>();
    builder.RegisterType<WordfilterController>().As<IWordfilterController>();
    Container builder.Build();
    Controller Container.Resolve<MainController>();
    Controller.SetupControllers(); 
    I've then created a controller locator that I pass as a parameter to the main controller which then locates for me all the controllers.
    Screenshot: Screenshot by Lightshot.
    I'm fairly new to Dependency Injection and I'll continue reading up on this.

    I've also made a Task controller that can execute periodic tasks for me, it's currently being used in the cycling of the rooms. You can currently walk around but there's something wrong in the a* algorithm where it won't find the path to the last point. Once I've done that I'll include some screenshots. :) (Thanks to @Joopie for pointing out Dependency Injection).

  9. #84
    Oldskool Resurrector Navine is online now
      V.I.P  Rank
    Oct 2012 Join Date
    The NetherlandsLocation
    2,330Posts

    Re: [V9] [R35] Aurora Emulator [C#] [NHibernate] [DotNetty] [Log4net]

    I want to clarify something, I will wait until @spreedblood is done with the updated source. Also, then I don't know how long it'll be. I just started my work so I have to get used to long days again. I might start on a CMS on Symfony in the weekends, if I feel like.
    Developer of Aurora (huge oldskool & Habbo BETA project):
    http://forum.ragezone.com/f331/v9-r3...netty-1132388/

    - C# developer
    - Webdeveloper

    Contact me @ discord: navv13#8055

  10. #85
    "(still lacks brains)" NoBrain is offline
    Alpha MaleRank
    Sep 2011 Join Date
    United KingdomLocation
    2,722Posts

    Re: [V9] [R35] Aurora Emulator [C#] [NHibernate] [DotNetty] [Log4net]

    Quote Originally Posted by Glaceon View Post
    I might start on a CMS on Symfony in the weekends, if I feel like.
    One project at a time or it'll end up like every other project you've done. Get the emulator to a stable state before even considering working on a CMS.



  11. #86
    Ultimate Member spreedblood is offline
    MemberRank
    May 2014 Join Date
    174Posts

    Re: [V9] [R35] Aurora Emulator [C#] [NHibernate] [DotNetty] [Log4net]

    Quote Originally Posted by NoBrain View Post
    One project at a time or it'll end up like every other project you've done. Get the emulator to a stable state before even considering working on a CMS.
    Good thing we're 2 people on this project of his

  12. #87
    The Legend Returns vista4life is offline
    True MemberRank
    Mar 2007 Join Date
    netherlandLocation
    856Posts

    Re: [V9] [R35] Aurora Emulator [C#] [NHibernate] [DotNetty] [Log4net]

    Quote Originally Posted by spreedblood View Post
    Good thing we're 2 people on this project of his
    The focus on the emulator is main prio, what josh can is a simple cms with a client. that just it :)

    i wish everyone goodluck with this.!

  13. #88
    Retired maritnmine is offline
    True MemberRank
    May 2007 Join Date
    North KoreaLocation
    1,113Posts

    Re: [V9] [R35] Aurora Emulator [C#] [NHibernate] [DotNetty] [Log4net]

    Is this in .net core so we can finally have something running on linux written in C#? (its 2017 guys...)

  14. #89
    Oldskool Resurrector Navine is online now
      V.I.P  Rank
    Oct 2012 Join Date
    The NetherlandsLocation
    2,330Posts

    Re: [V9] [R35] Aurora Emulator [C#] [NHibernate] [DotNetty] [Log4net]

    Quote Originally Posted by maritnmine View Post
    Is this in .net core so we can finally have something running on linux written in C#? (its 2017 guys...)
    Concidered it, might do it. If @spreedblood can get all the stuff working on .NET Core. I fully agree with you though.

    Quote Originally Posted by NoBrain View Post
    One project at a time or it'll end up like every other project you've done. Get the emulator to a stable state before even considering working on a CMS.
    A simple CMS with login, register and a client (MAYBE, just maybe, simple news), isn't a big project. Besides, with Symfony those things are done easily. And @spreedblood is working a lot on the emulator, and I'm settling in with work (started last week, it's tough getting back to 8 hours of work after doing nothing for 2 months). Anyways, once @spreedblood is done rewriting the source and doing DI, I'll continue on the emulator as well. But once the emulator is in a stable state there has to be a simple CMS for it for a BETA test, so why not write one while I'm waiting for the emulator rewrite. I might think in a weird, maybe stupid way, but I feel like this is a decent plan. Of course I understand you, I do, but I don't agree.
    Developer of Aurora (huge oldskool & Habbo BETA project):
    http://forum.ragezone.com/f331/v9-r3...netty-1132388/

    - C# developer
    - Webdeveloper

    Contact me @ discord: navv13#8055

  15. #90
    Retired maritnmine is offline
    True MemberRank
    May 2007 Join Date
    North KoreaLocation
    1,113Posts

    Re: [V9] [R35] Aurora Emulator [C#] [NHibernate] [DotNetty] [Log4net]

    Quote Originally Posted by Glaceon View Post
    Concidered it, might do it. If @spreedblood can get all the stuff working on .NET Core. I fully agree with you though.
    Last time I checked, NHibernate does not support .net core yet. Considering their low activity, I actually doubt they ever will. Its an old and slow ORM. If you consider switching, Entity Framework Core is a much better option. I do however see that Log4net already supports .net core (please remind me why we need a dependency for printing to the console?).



Advertisement