Carbon V2.10 BETA - Fluent NHibernate - C# - SAEA - From Scratch

Page 1 of 2 12 LastLast
Results 1 to 15 of 29
  1. #1
    Alpha Member Emily is offline
    MemberRank
    Oct 2012 Join Date
    The NetherlandsLocation
    2,408Posts

    Carbon V2.10 BETA - Fluent NHibernate - C# - SAEA - From Scratch

    Hello. My laptop didn't work anymore (couldn't backup anything, couldn't make files in Visual Studios) so I lost my old source. I've made a new source, which works on new crypto off course.

    Features:
    - Packet ids in SQL (easy to be managed by your staff members), cached in beginning
    - Habbo Encryption (RSA, DH, RC4)
    - SocketAsyncEventArgs Socket Network (only Game, not Remote)
    - Fluent NHibernate MySQL Mapping
    - Logging in with SSO
    - Navigator frontpage shows up, with recommended choosing from a list (random 1 item)

    Screens:
    Spoiler:






    Downloads:
    Download RELEASE63-201301231323-316947488.rar from Sendspace.com - send big files the easy way - SWF + Logs
    Download carbon.sql from Sendspace.com - send big files the easy way - Database
    Download carbon.rar from Sendspace.com - send big files the easy way - Emulator

    How to add new packets:

    1. Make sure you have the incoming header AND the outgoing header.
    2. Open PHPMyAdmin, go to your database and insert the header in table `packet_ids_incoming` (give it the same name as your class is gonna be)
    3. In C#, add a new class with the same name as your entry in SQL had
    4. Let it implement IMessageEvent.
    5. Go to table `packet_ids_outgoing`, insert the outgoing header and give it a name.
    6. Use ServerMessage Message = new ServerMessage(Application.GetOutgoingHeader("NAME"));
    7. Change NAME into the name you gave in SQL and add structure. When your structure is done, end with Session.send(Message);

    How to add new SQL shit:

    1. Go to C# -> go to the Mappings folder and add 2 files:
    1 file you call w/e you want (for example Rooms.cs) and the other file you call FIRSTNAMEMap, so if my first name was Rooms.cs, the name of the other file is RoomsMap.cs.
    2. Add properties in Rooms.cs, always declare it as public virtual, for example:
    public virtual int Id{get;set;}
    3. Make sure you add at least one ID
    4. Go to ....Map.cs (for example RoomsMap.cs)
    5. Make it extend ClassMap<FIRSTNAME>, so for me it will be:
    public class RoomsMap : ClassMap<Rooms>
    {
    }
    6. Add a constructor (public CLASSNAME(){})
    7. In the constructor, add Table(""); and insert the table name of SQL (for examlpe: Table("rooms");)
    8. Add an id, doing in this way:
    Id(x => x.PROPERTYNAME).GeneratedBy.Identity().Column("COLUMN NAME");
    PROPERTYNAME is the name of the public virtual ...
    COLUMN NAME is the name of the column in SQL
    9. Add Map(...) methods
    Map(x => x.PROPERTYNAME).Column("COLUMN NAME");

    I know it can be messy. This is not finished. Please like if you like, and rep up if you show some respect, please leave if you have unhelpful flame comments.


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

    Re: Carbon V2.10 BETA - Fluent NHibernate - C# - SAEA - From Scratch

    Thanks for this you're the best.

    Ps off topic i never knew you listened dire straights.

  3. #3
    Zephyr Studios PRIZM is offline
    MemberRank
    Feb 2012 Join Date
    DenmarkLocation
    2,291Posts

    Re: Carbon V2.10 BETA - Fluent NHibernate - C# - SAEA - From Scratch

    Your pro <3
    I like this, thanks!

  4. #4
    Alpha Member Emily is offline
    MemberRank
    Oct 2012 Join Date
    The NetherlandsLocation
    2,408Posts

    Re: Carbon V2.10 BETA - Fluent NHibernate - C# - SAEA - From Scratch

    Quote Originally Posted by Silver060 View Post
    Thanks for this you're the best.

    Ps off topic i never knew you listened dire straights.
    I do, I'm a fan of 80s and 90s.

  5. #5
    Account Upgraded | Title Enabled! FapInc is offline
    MemberRank
    Nov 2012 Join Date
    499Posts

    Re: Carbon V2.10 BETA - Fluent NHibernate - C# - SAEA - From Scratch

    How do i config this to my cms and where is the db sql?

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

    Re: Carbon V2.10 BETA - Fluent NHibernate - C# - SAEA - From Scratch

    Quote Originally Posted by Tha View Post
    I do, I'm a fan of 80s and 90s.
    I've + rep.

  7. #7
    Account Upgraded | Title Enabled! FapInc is offline
    MemberRank
    Nov 2012 Join Date
    499Posts

    Re: Carbon V2.10 BETA - Fluent NHibernate - C# - SAEA - From Scratch

    oh, i found the sql but the other i didnt

  8. #8
    Alpha Member Emily is offline
    MemberRank
    Oct 2012 Join Date
    The NetherlandsLocation
    2,408Posts

    Re: Carbon V2.10 BETA - Fluent NHibernate - C# - SAEA - From Scratch

    Quote Originally Posted by FapInc View Post
    How do i config this to my cms and where is the db sql?
    For the config, go to Application.cs in Visual Studios, and change this line;
    .Database(MySQLConfiguration.Standard.ConnectionString("Server=localhost;Database=carbon;Uid=root;Pwd=123;"))
    Into your own settings, Server= the host, Uid = username, Pwd = Password.

    The SQL is in the thread if you read

  9. #9
    Account Upgraded | Title Enabled! FapInc is offline
    MemberRank
    Nov 2012 Join Date
    499Posts

    Re: Carbon V2.10 BETA - Fluent NHibernate - C# - SAEA - From Scratch

    Where is the application.css located, and i dont think i have visual studios

  10. #10
    Alpha Member Emily is offline
    MemberRank
    Oct 2012 Join Date
    The NetherlandsLocation
    2,408Posts

    Re: Carbon V2.10 BETA - Fluent NHibernate - C# - SAEA - From Scratch

    Quote Originally Posted by FapInc View Post
    Where is the application.css located, and i dont think i have visual studios
    You must have, this is only a base and not a full hotel emulator.

  11. #11
    Lurking around Clawed is offline
    MemberRank
    Jun 2012 Join Date
    RaGEZONELocation
    785Posts

    Re: Carbon V2.10 BETA - Fluent NHibernate - C# - SAEA - From Scratch

    I will test this out later when i get back home, cheers man.
    What features work on it?

  12. #12
    Account Upgraded | Title Enabled! FapInc is offline
    MemberRank
    Nov 2012 Join Date
    499Posts

    Re: Carbon V2.10 BETA - Fluent NHibernate - C# - SAEA - From Scratch

    What SWFs is it compable with, and what should i do with the swf folder i got?

  13. #13
    Alpha Member Emily is offline
    MemberRank
    Oct 2012 Join Date
    The NetherlandsLocation
    2,408Posts

    Re: Carbon V2.10 BETA - Fluent NHibernate - C# - SAEA - From Scratch

    @Clawed read the thread.
    @FapInc It's compatible with the Habbo.swf I gave, you only need to get the rest of .SWF files + external_vars + banner.php and banner.txt yourself.

  14. #14
    Account Upgraded | Title Enabled! FapInc is offline
    MemberRank
    Nov 2012 Join Date
    499Posts

    Re: Carbon V2.10 BETA - Fluent NHibernate - C# - SAEA - From Scratch

    Should i use R63B swfs?

  15. #15
    Alpha Member Emily is offline
    MemberRank
    Oct 2012 Join Date
    The NetherlandsLocation
    2,408Posts

    Re: Carbon V2.10 BETA - Fluent NHibernate - C# - SAEA - From Scratch

    Quote Originally Posted by FapInc View Post
    Should i use R63B swfs?
    Yes, it's R63B emulator.



Page 1 of 2 12 LastLast

Advertisement