1. Tired of not being able to see links? Want to chat with other members? Need help?

[Tut] How to make a Habbo Retro with Xampp [Noob Friendly]

Discussion in 'Habbo Tutorials' started by HarkRetros, Dec 16, 2014.

?

Did you like the tutorial?

Poll closed Dec 18, 2014.
  1. Yes

    66.7%
  2. No

    0 vote(s)
    0.0%
  3. Could've been better

    33.3%
  1. HarkRetros

    HarkRetros Member

    Files:
    Just download every file below, and follow the onscreen instructions.
    [ Want to see this link? Register ! ]
    [ Want to see this link? Register ! ]
    [ Want to see this link? Register ! ]
    [ Want to see this link? Register ! ]
    [ Want to see this link? Register ! ]
    [ Want to see this link? Register ! ]

    [ Want to see this link? Register ! ]
    Credits to Arabal for links (50%)
    Credits to Nippy for inspiration (10%)
    Credits to me for screenshots, configuration information and other images.(40%)
    [​IMG]

    First, you need to download Xampp, from the link above. Once you've opened the file, it will look like this: (don't mind the colors)
    [​IMG]
    Click next, and follow the instructions from there. It will take a few minutes to install. Once it's been installed open the control panel, you can do this simply by searching it in your start menu. It'll look like this: (don't mind the colors)
    [​IMG]
    Click the "start" button next to MySQL and Apache. If you have Skype open, close it via Task Manager or Apache will not start up.
    Now, you'll want to go to [ Want to see this link? Register ! ] (This link will not work if both MySQL and Apache are not running).
    The screen should look something like this:
    [​IMG]
    Choose your language to proceed to the next step.
    There will be an orange bar to the left that should look like this:
    [​IMG]
    Click the "Security" option which will bring up a screen like this:
    [​IMG]
    Click the orange link ([ Want to see this link? Register ! ]) under your dialougue box which will bring up a screen like this:
    [​IMG]
    If "Current Password: " appears, type in root then change your password to whatever you want. If not, just type in your password.
    (Note: Click "Safe plain password in text file" checkbox if you are bad at remembering passwords. Then to retrieve it, go to xampp > security > mysqlrootpassword and double click this file.)
    Now, you need to go to [ Want to see this link? Register ! ], this is where you will be holding your database. This page should look like this:
    [​IMG]
    You need to sign-in with the password you just created on the previous step. Leave the username as "root".
    Once you have signed in, click the [​IMG] button in the top left.
    Type in your database name, any name you wish, then hit the [​IMG] button.
    Your database name will then appear on the left like this:
    [​IMG]
    As you can see, I named my database "retro".
    You now want to download the database from above. (Note: You cannot open this file manually)
    Once you have downloaded it, click the [​IMG] button on the top row.
    Press [​IMG] and find the name of the Database you've just downloaded. (Hint: Search hotel.sql in your files)
    Scroll down and press the [​IMG] button.

    Once the database is done importing, it should look like this:
    [​IMG]
    Now, you need to go to Computer > OS (C: ) > Xampp > Htdocs and deleted everything in there. You can do this by pressing ctrl+a then the delete button.
    Now, you will need to download HabboExtreme (link above). Once you've downloaded it, open the file in WinRar. (You can download WinRar [ Want to see this link? Register ! ])
    Double click [​IMG] then double click [​IMG], and then press [​IMG]
    Press OS (C: ) > Xampp > htdocs then press the "Ok" button.
    Your new htdocs should now look like this:
    [​IMG]
    Now, download Notepad++ from above.
    Open the program once downloaded.

    Now, here comes the part where you need to listen up if this is your first time making a habbo retro.
    Click [​IMG] then [​IMG] then [​IMG] which will bring up a screen like this:
    [​IMG]

    You will then need to press ctrl+a then backspace. This will delete everything, then you need to
    copy everything in the box below, then paste it on the previous step.
    PHP:
    <?php[/SIZE][/COLOR][/CENTER][/SIZE][/COLOR][/CENTER][/SIZE][/COLOR][/CENTER][/SIZE][/COLOR][/CENTER]
    [
    COLOR=#000000][SIZE=5]
    [CENTER][COLOR=#000000][SIZE=5]
    [CENTER][COLOR=#000000][SIZE=5]
    [CENTER][COLOR=#000000][SIZE=5]
    [CENTER]if(!defined('IN_INDEX')) { die('Sorry, you cannot access this file.'); }
    #Please fill this all out.

    #NOTE: To set up TheHabbos.ORG's API go to wwwroot/mysite/thehabbos_api for IIS, OR, htdocs/thehabbos_api for XAMPP and others.

    /*
    *
    *    MySQL management
    *
    */

    $_CONFIG['mysql']['connection_type'] = 'connect'//Type of connection: It must be connect, or pconnect: if you want a persistent connection.

    $_CONFIG['mysql']['hostname'] = 'localhost'//MySQL host

    $_CONFIG['mysql']['username'] = 'root'//MySQL username

    $_CONFIG['mysql']['password'] = 'PASSWORD'//MySQL password

    $_CONFIG['mysql']['database'] = 'DATABASE'//MySQL database

    $_CONFIG['mysql']['port'] = '3306'//MySQL's port

    /*
    *
    *    Hotel management  - All URLs do not end with an "/"
    *
    */

    $_CONFIG['hotel']['server_ip'] = '127.0.0.1'//IP of VPS/DEDI/etc

    $_CONFIG['hotel']['url'] = 'http://localhost'//Does not end with a "/"

    $_CONFIG['hotel']['name'] = 'Habbo'// Hotel's name

    $_CONFIG['hotel']['desc'] = 'Where The Fun Begins!'//Hotel's description

    $_CONFIG['hotel']['email'] = 'Support@hotmail.com'//Where the help queries from users are emailed to.@Priv skin

    $_CONFIG['hotel']['in_maint'] = False//False if hotel is NOT in maintenance. True if hotel IS in maintenance

    $_CONFIG['hotel']['motto'] = 'I am a new player.'//Default motto users will register with.

    $_CONFIG['hotel']['credits'] = 30000//Default number of credits users will register with.

    $_CONFIG['hotel']['pixels'] = 15000//Default number of pixels users will register with.

    $_CONFIG['hotel']['figure'] = 'hr-125-31.ch-215-62.hd-209-8.lg-275-63'//Default figure users will register with.

    $_CONFIG['hotel']['web_build'] = '63_1dc60c6d6ea6e089c6893ab4e0541ee0/1532'//Web_Build

    $_CONFIG['hotel']['external_vars'] = 'http://localhost/game/external_variables.txt'//URL to your external

    $_CONFIG['hotel']['external_texts'] = 'http://localhost/game/external_flash_texts.txt'//URL to your external texts

    $_CONFIG['hotel']['product_data'] = 'http://localhost/game/productdata.txt'//URL to your productdata

    $_CONFIG['hotel']['furni_data'] = 'http://localhost/game/furnidata_xml.xml'//URL to your furnidata

    $_CONFIG['hotel']['swf_folder'] = 'http://localhost/game'//URL to your SWF folder(does not end with a '/')
    /*
    *
    *    Templating management - Pick one of our default styles or make yours by following our examples!
    *
    */

    #RevCMS has 2 default styles, 'Mango' by dannyy94 and 'Priv' by joopie - Others styles are to come, such as RastaLulz's ProCMS style and Nominal's PhoenixCMS 4.0 style.

    $_CONFIG['template']['style'] = 'HabboExtreme';

    /*
    *
    *    Other topsites.. thing
    *
    */

    $_CONFIG['thehabbos']['username'] = 'Habbam';
    $_CONFIG['retro_top']['user'] = 'Habbam';

    /*
    *
    *    Recaptcha management - Fill the information below if you have one, else leave it like that and don't worry, be happy.
    *
    */

    $_CONFIG['recaptcha']['priv_key'] = '6LcZ58USAAAAABSV5px9XZlzvIPaBOGA6rQP2G43';
    $_CONFIG['recaptcha']['pub_key'] = '6LcZ58USAAAAAAQ6kquItHl4JuTBWs-5cSKzh6DD';


    /*
    *
    *    Social Networking stuff
    *
    */

    $_CONFIG['social']['twitter'] = ''//Hotel's Twitter account

    $_CONFIG['social']['facebook'] = 'habbamcom'//Hotel's Facebook account


    ?>




    Now, you will need to edit the following:
    [​IMG]
    Change PASSWORD to the password you set up in the beginning of the tutorial. This can be found at Xampp > Security. Change DATABASE to the name of the database you set up in phpmyadmin. (Do NOT remove the ( '' ) symbols!)
    Now, click save.
    Now, you need to download the EMU from the link above. Once downloaded, open it with WinRar (or extract it to your desktop before WinRar) then double click [​IMG] then click [​IMG]
    then click Desktop. Go to your desktop, open the folder, then go to [​IMG] then [​IMG] then [​IMG]
    A screen like the first one will come up, and you'll want to edit these 2 things:
    [​IMG]
    Use the same password and database name you used in the beginning of the tutorial.
    Click save after you've edited it with your password and database name.
    Now, go back to your htdocs folder.
    Click the [​IMG] button and name the folder "game".
    Download the swfs from above. Once downloaded, go to WinRar, click the swfs folder you just downloaded, then click it once more, then press the "Extract To" button, and choose the game folder. (OS (C: ) > Xampp > htdocs > game)
    While that extracts, go to htdocs > app > tpl > skins > HabboExtreme > client.php (Right click Client.php > Edit with Notepadd++)
    Press ctrl+a then the backspace button.
    Copy and paste everything from the box below into the previous step.

    PHP:
    <!DOCTYPE html>[/SIZE][/COLOR][/CENTER][/SIZE][/COLOR][/CENTER][/SIZE][/COLOR][/CENTER][/SIZE][/COLOR][/CENTER]
    [
    COLOR=#000000][SIZE=5]
    [CENTER][COLOR=#000000][SIZE=5]
    [CENTER][COLOR=#000000][SIZE=5]
    [CENTER][COLOR=#000000][SIZE=5]
    [CENTER]<html lang="en">
        <
    head>
            <
    meta http-equiv="content-type" content="text/html; charset=utf-8">
            <
    title>{hotelName} - Client</title>
       
            <
    link rel="stylesheet" href="{url}/app/tpl/skins/{skin}/styles/client.css" type="text/css">
       
            <
    script type="text/javascript" src="{url}/app/tpl/skins/{skin}/js/swfobject.js"></script>
            <
    script type="text/javascript">
                var 
    BaseUrl "http://localhost/game";
                var 
    flashvars =
                {
                    
    "client.starting" "Please wait, {hotelname} loading",
                    
    "hotelview.banner.url" "http://localhost/game/rs4.php",
                    
    "client.allow.cross.domain" "1",
                    
    "client.notify.cross.domain" "0",
                    
    "connection.info.host" "127.0.0.1",
                    
    "connection.info.port" "30000",
                    
    "site.url" "http://localhost",
                    
    "url.prefix" "http://localhost",
                    
    "client.reload.url" "http://localhost/client",
                    
    "client.fatal.error.url" "http://localhost/me",
                    
    "client.connection.failed.url" "http://localhost/me",
                    
    "external.variables.txt" "http://localhost/game/external_variables.txt",
                    
    "external.texts.txt" "http://localhost/game/external_flash_texts.txt",
                    
    "productdata.load.url" "http://localhost/game/productdata.txt",
                    
    "furnidata.load.url" "http://localhost/game/furnidata_xml.xml",
                    
    "use.sso.ticket" "1",
                    
    "sso.ticket" "{sso}",
                    
    "processlog.enabled" "0",
                    
    "flash.client.url" BaseUrl,
                    
    "flash.client.origin" "popup"
                
    };
                var 
    params =
                {
                    
    "base" BaseUrl "/",
                    
    "allowScriptAccess" "always",
                    
    "menu" "false"           
                
    };
                
    swfobject.embedSWF(BaseUrl "/Habbo.swf""client""100%""100%""10.0.0""http://localhost/game/expressInstall.swf"flashvarsparamsnull);
            </
    script>
        </
    head>

        <
    body>

            <
    div id="client"></div>

        </
    body>
    </
    html>




    Now click save, and wait for the swfs to extract.
    When they are done, they should look like this:
    [​IMG]
    Scroll down and find the folder named "Habbo" click that folder, and that folder only. Press the delete button. Now download [ Want to see this link? Register ! ] from above. When it's done downloading, extract it to the game folder. (WinRar > [ Want to see this link? Register ! ] > Extract To > OS (C: ) > Xampp > Game) then go to your game folder, find [ Want to see this link? Register ! ] and rename it as "Habbo". Now, go back to that folder on your desktop. Go to Bin > Debug > weblink. Double click weblink, which will open and boot up your EMU. It should look like this: (don't mind the colors)
    [​IMG]
    Now, go to [ Want to see this link? Register ! ] and register. Go to your client and it should be working if you followed every step correctly. Please comment your errors below and I'll assist you.
    [​IMG]

    Extra
    To fix your HouseKeeping, go to htdocs > app > tpl > skins > HabboExtreme > Hk > databaseconfig.php and change the password and name of database as you did in the previous steps.
    -
    To change your client from Spanish to English, go [ Want to see this link? Register ! ] and press ctrl+a. Then go to htdocs > game > external_flash_texts and press ctrl+a then backspace. Now, press ctrl+v then save it.
    -
    Why did I use so many images some of you users may be asking? I wanted to make this as noob friendly as possible. As you can see, throughout the tutorial I was getting less and less thorough, less images hoping that they were catching on.
    -
    "If all screenshots are provided by you, why are they all different colors?" this is because I changed my appearance purposely for this tutorial.
    -
    Why use xampp and not IIS? Well, I don't know what your definition of noob is but most of them won't understand IIS, so xampp is to give them experience.
    -

    If you are using a vps and/or custom domain, just change all of the "[ Want to see this link? Register ! ]" to your custom domain name, and all of the "127.0.0.1"'s to your VPS IP.
    -
    You can also download [ Want to see this link? Register ! ] (trial) to host your database. Just choose "New Connection > MySQL > and log in with your phpmyadmin details
    -

    Don't forget to leave a like and your comments. :)
     
    Last edited: Dec 17, 2014
    Onie, Ian2456 and soofus like this.
  2. Janzeer

    Janzeer Headmaster Of Hogwart's

    Well detailed tutorial! Would be pretty much be useful for the noobs. :p
     
    HarkRetros likes this.
  3. RPSarefun

    RPSarefun New Member

    no swfs here?
     
  4. HarkRetros

    HarkRetros Member

    My bad, at first I was gonna send my whole htdocs folder, but I didn't have a place to upload them. So forgot about SWF's but they've been added.
     
    RPSarefun likes this.
  5. RPSarefun

    RPSarefun New Member

    ah ty im doing this with a vps and a domain care to message me what i would need to change compared to this version
     
  6. HarkRetros

    HarkRetros Member

    Thankyou. :)
    --- Double Post Merged, Dec 17, 2014, Original Post Date: Dec 17, 2014 ---
    You only need to change all the "localhost" to your hotel link (if you've purchased a custom domain) and all the "127.0.0.1" to your server's IP. (VPS IP)
     
  7. RPSarefun

    RPSarefun New Member

    hmm i did that but it didnt work so :/
     
  8. HarkRetros

    HarkRetros Member

    What exactly didn't work? Because I think you need IIS if you're using custom domain/VPS.
     
  9. RPSarefun

    RPSarefun New Member

    nah you can use xampp idk maybe its too fiddly for me i dont generally change things its probably jsut something ive accidently put a full stop somewhere or something xD
     
  10. HarkRetros

    HarkRetros Member

    I'm surprised nobody asked me what type of computer I have this time.
     
    RPSarefun likes this.
  11. LukeGrice00

    LukeGrice00 New Member

    Fatal error: Function name must be a string in C:\xampp\htdocs\app\class.engine.php on line 48
    I get this error on homepage
     
    RPSarefun likes this.
  12. HarkRetros

    HarkRetros Member

    Go back and check your config.php file. Make sure your database and password are correct. Providing me with screenshots of it and the error would be most helpful.
     
  13. RPSarefun

    RPSarefun New Member

    what type of computer u got :p
     
  14. soofus

    soofus New Member

    i wonder why i can't download the swf, gets to the site but fails at 99% i get decryption error
     
    Last edited: Dec 18, 2014
  15. HarkRetros

    HarkRetros Member

    Maybe this has something to do with your connection.
    --- Double Post Merged, Dec 18, 2014, Original Post Date: Dec 18, 2014 ---
    Windows 7. :p It just looks different.
     
    RPSarefun likes this.
  16. soofus

    soofus New Member

    Tried many times... even with my mobile nettwork
     
  17. HarkRetros

    HarkRetros Member

    Have you checked your proxy and firewall settings?
     
  18. FunzyKiller

    FunzyKiller Member

    $this->connection = $this->mysql[$type]($_CONFIG['mysql']['hostname'], $_CONFIG['mysql']['username'], $_CONFIG['mysql']['password']);

    if($this->connection)
    {
    $mydatabase = $this->mysql['select_db']($_CONFIG['mysql']['database'], $this->connection);

    which one to change?
    --- Double Post Merged, Dec 20, 2014, Original Post Date: Dec 20, 2014 ---
    Fatal error: Function name must be a string in C:\xampp\htdocs\app\class.engine.php on line 48

    i check the confiq.php and i see i did change it properly. anyone can help?
     
  19. HarkRetros

    HarkRetros Member

    Can you screenshot your config.php?
     
  20. Identifier

    Identifier New Member

    Näyttökuva (1).png

    I have same problem.. :/
     

Share This Page

Loading...