Hello & Welcome to our community. Is this your first visit? Register
Page 1 of 2 12 LastLast
Results 1 to 15 of 25
  1. #1
    Working in private usage.

    Rank
    True Member
    Join Date
    Jul 2011
    Location
    The Netherlands
    Posts
    1,150
    Likes (Received)
    231

    Code your own Habbo Hotel Project [CMS & Emu] [From Scratch] - Part 1

    Things you need:

    - Microsoft C#
    - MySql.Data.dll (for MySql connections)
    - Swfs (R63, but before the crypto)
    - Notepad++ (coding CMS)
    - Flash Decompiler Trillix (editing swf images if you want)
    - Brains (for thinking)
    - Time (don't think you can do it in 5 minutes)

    Okay, first of all, make sure you opened Microsoft C#, because the first 4 steps are only Emulator, you can open Notepad++ but it's not necessary.

    Make a new project, it doesn't matter which name. Because it's a sample I call my project SampleProject. Make it a Console Application, because it's better to do.

    If project creation is done, a window will come with some text, on the file Program.cs. This is the file you want to invoke the Initialize method on another file, but first you need a new file.

    How to create a file: right-click your project name (UNDER solution) and go to Add and choose Class.

    Call it PROJECTNAMEEnvironment, or something like that. I'll call it SampleEnvironment.cs. Choose normal class (no interface, or something else).

    Once it's done, change class into public class, and between the { } under your class name, make a static void called Initialize or Debug or something. I call it Start. A method looks like this:

    public static void Start()
    {
    }

    You can start adding some Console.WriteLine("");, but I'm going to show you the sockets now.


    Sockets

    Sockets are needing to go on your hotel. Without sockets nothing work.
    Make a new map (right click your project name and Add->New Folder and call the folder something like Connections, TCP, NET. I'll call it Sockets. Add a new class called GameConnections.cs or something.

    Create a new method, no void and no static, with the class name, like this:

    public GameConnections()
    {
    }

    add 2 parameters: string IP and int Port:

    public GameConnections(string IP, int Port)
    {
    }

    Between the class bracelets (before the method) add:

    private Socket mSocket = new Socket(AddressFamily.InterNetwork, SocketType.Unknown, ProtocolType.Tcp);

    Now right-click Socket, Resolve and choose the first option.

    Once this is done, you make a new void called OnConnection or something with a parameter IAsyncResult Ias.

    public void OnConnection(IAsyncResult Ias)
    {
    }

    In the method you created earlier (the public CLASSNAME() method), add:

    mSocket.Bind(new IPEndPoint(IPAddress.Parse(IP), Port));

    Now right-click IPEndPoint and resolve it like you did earlier.
    Below it add:
    mSocket.BeginAccept(new AsyncCallback(OnConnection), null);

    In the OnConnection void add:

    Console.WriteLine("Accepted connection from " + mSocket.EndAccept(Ias).RemoteEndPoint.ToString());


    In next part:

    - Receiving and sending packets
    - Sql explaination

    Yes. It's true, I am scared of vaginas.

  2. #2
    Breaking Bad MentaL's Avatar

    Rank
      The Cook  
    Join Date
    Dec 2000
    Location
    Los Pollos
    Posts
    30,961
    Likes (Received)
    17307

    Re: Code your own Habbo Hotel Project [CMS & Emu] [From Scratch] - Part 1

    This is quite bad so hopefully the rest of it won't be.

  3. #3
    Working in private usage.

    Rank
    True Member
    Join Date
    Jul 2011
    Location
    The Netherlands
    Posts
    1,150
    Likes (Received)
    231

    Re: Code your own Habbo Hotel Project [CMS & Emu] [From Scratch] - Part 1

    Quote Originally Posted by MentaL View Post
    This is quite bad so hopefully the rest of it won't be.
    I know, I'll make a video soon which is better.

    Yes. It's true, I am scared of vaginas.

  4. #4
    Eye Eye Capt'n Spheral's Avatar

    Rank
    Alpha Male
    Join Date
    May 2010
    Location
    Tumptonshire
    Posts
    2,494
    Likes (Received)
    683

    Re: Code your own Habbo Hotel Project [CMS & Emu] [From Scratch] - Part 1

    Ah okay. Nice one



  5. #5
    All for one.

    Rank
    Alpha Male
    Join Date
    Jun 2011
    Location
    Banbury, UK
    Posts
    1,866
    Likes (Received)
    389

    Re: Code your own Habbo Hotel Project [CMS & Emu] [From Scratch] - Part 1

    No offence, I need to see a video to do this.. It'll be easier.
    Sincerely,
    zMagenta.


  6. #6
    Red Octobers Makarov's Avatar

    Rank
    Gamma
    Join Date
    Apr 2010
    Location
    NW Chicago
    Posts
    3,675
    Likes (Received)
    1554

    Re: Code your own Habbo Hotel Project [CMS & Emu] [From Scratch] - Part 1

    You need to have it 'less' bland. It's quite boring to read. I suggest instead of having the code like this:

    public static void Start()
    {
    }

    You have it like this:

    web development, software development, web design freelancing
    pm or vm me for work

  7. #7
    C# | C++ Emerica's Avatar

    Rank
    True Member
    Join Date
    Oct 2010
    Location
    Germany
    Posts
    421
    Likes (Received)
    59

    Re: Code your own Habbo Hotel Project [CMS & Emu] [From Scratch] - Part 1

    atm it isn't a Tutorial about making an Emulator, you only show us the TCP Connection ;P

    Next time:
    First Write the Tut, than release it.

  8. #8
    Hardcore Member AmirZ's Avatar

    Rank
    Member
    Join Date
    Jan 2012
    Posts
    128
    Likes (Received)
    12

    Re: Code your own Habbo Hotel Project [CMS & Emu] [From Scratch] - Part 1

    Can you write the next part please?

  9. #9
    Habbo Section <3 Glee's Avatar

    Rank
    Alpha Male
    Join Date
    Jun 2009
    Location
    Niagara Falls,
    Posts
    1,607
    Likes (Received)
    128

    Re: Code your own Habbo Hotel Project [CMS & Emu] [From Scratch] - Part 1

    Nice, i guess i'm going to try it for CMS

  10. #10
    Banned Liam's Avatar

    Rank
    Banned
    Join Date
    Dec 2011
    Location
    єαятн
    Posts
    2,344
    Likes (Received)
    481

    Re: Code your own Habbo Hotel Project [CMS & Emu] [From Scratch] - Part 1

    Okay, I don't want to be rude, but you said you were going to make a video, and that hasn't happened. And this thread doesn't help anyone, this wouldn't even be a start to an emulator, sorry to say. This is a poor effort.

  11. #11
    Banned Divide's Avatar

    Rank
    Banned
    Join Date
    Aug 2011
    Location
    British Coder
    Posts
    1,017
    Likes (Received)
    339
    Urghhh, reading the first 12 lines got me confused... no-one codes like this. (Omg, I CAN CODE!)

    Sent from my mobile via Tapatalk.

  12. #12
    Game of Thrones Bloodraven's Avatar

    Rank
    Alpha Male
    Join Date
    Sep 2009
    Location
    Red Keep
    Posts
    2,413
    Likes (Received)
    638

    Re: Code your own Habbo Hotel Project [CMS & Emu] [From Scratch] - Part 1

    Quote Originally Posted by Divide View Post
    Urghhh, reading the first 12 lines got me confused... no-one codes like this. (Omg, I CAN CODE!)

    Sent from my mobile via Tapatalk.
    You cannot code because the things you say make me laugh my ass of because they are so stupid.


  13. #13
    Learning C# - Developer wy479's Avatar

    Rank
    True Member
    Join Date
    Nov 2010
    Location
    :O You PERVERT!
    Posts
    1,141
    Likes (Received)
    83

    Re: Code your own Habbo Hotel Project [CMS & Emu] [From Scratch] - Part 1

    Where is the second one?
    Respect points annoy me.
    Awesomeness can only be earnt by trust.
    Post Count:
    1 100 200 300 400 500 600 700 800 900 1000 1100 1100 1200 1300 1400 1500---->
    Save my rep from sojobo! He eats it for breakfast with likes. Made in five minutes btw.
    [SIGPIC][/SIGPIC]

  14. #14
    My title is enabled NeonCrayonz's Avatar

    Rank
    True Member
    Join Date
    Sep 2010
    Posts
    283
    Likes (Received)
    36

    Re: Code your own Habbo Hotel Project [CMS & Emu] [From Scratch] - Part 1

    While its not written in the best of ways, its still usefull. And maybe, when more sections are added. I'll attempt this.

  15. #15
    Born free, taxed to death DeliriousCoder's Avatar

    Rank
    True Member
    Join Date
    Nov 2011
    Location
    United States
    Posts
    979
    Likes (Received)
    129

    Re: Code your own Habbo Hotel Project [CMS & Emu] [From Scratch] - Part 1

    Gibberish. My mind is fried. I understand the concept - but your teaching is scrambled and sloppy. No download links, pictures, not even a video.

    I give this a 5/10

 

 
Page 1 of 2 12 LastLast

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  

HostKey
Sponsored by HostKey , secured by Incapsula and mods by DBTech. RaGECRAFT.
All times are GMT +1. The time now is 11:10 AM.
Powered by vBulletin® Copyright , Jelsoft Enterprises Ltd.