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

Did you like the tutorial?


  • Total voters
    3
  • Poll closed .
Status
Not open for further replies.

sumo

The end is nigh.
Jan 18, 2014
143
102
Files:
Just download every file below, and follow the onscreen instructions.







Credits to Arabal for links (50%)
Credits to Nippy for inspiration (10%)
Credits to me for screenshots, configuration information and other images.(40%)
ykzTdcc.png

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)
QcAVUvM.png

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)
bkvKwvt.png

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 (This link will not work if both MySQL and Apache are not running).
The screen should look something like this:
sjQofQk.png

Choose your language to proceed to the next step.
There will be an orange bar to the left that should look like this:
xaPe2u7.png

Click the "Security" option which will bring up a screen like this:
DTyjzhs.png

Click the orange link ( ) under your dialougue box which will bring up a screen like this:
pwvFVGY.png

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 , this is where you will be holding your database. This page should look like this:
a7LqFlN.png

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
k4RoDbe.png
button in the top left.
Type in your database name, any name you wish, then hit the
MJt25KR.png
button.
Your database name will then appear on the left like this:
bk7F4Bp.png

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
0XcBIHh.png
button on the top row.
Press
gVptN3j.png
and find the name of the Database you've just downloaded. (Hint: Search hotel.sql in your files)
Scroll down and press the
LTukgSJ.png
button.

Once the database is done importing, it should look like this:
S6Fodhu.png

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 )
Double click
fCqZ3m8.png
then double click
pn9PYRt.png
, and then press
e31e21bef89adae3c0d94c06b14738c3.png

Press OS (C: ) > Xampp > htdocs then press the "Ok" button.
Your new htdocs should now look like this:
f09fd06e8f9f534f28fe1e32bb18691c.png

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
smIAw4b.png
then
TyEAfyY.png
then
FlL6WoA.png
which will bring up a screen like this:
ClV8mHc.png

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'] = '[email protected]'; //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:
KqwzjxO.png

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
xOOZW2I.png
then click
07b3ef5ac3f516a4ff20ccf7784f6f09.png

then click Desktop. Go to your desktop, open the folder, then go to
8LKQMwR.png
then
zUDgqgp.png
then
J69pRrQ.png

A screen like the first one will come up, and you'll want to edit these 2 things:
GdLmQoj.png

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
AwcmGGw.png
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", flashvars, params, null);
        </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:
EPcgGzF.png

Scroll down and find the folder named "Habbo" click that folder, and that folder only. Press the delete button. Now download from above. When it's done downloading, extract it to the game folder. (WinRar > > Extract To > OS (C: ) > Xampp > Game) then go to your game folder, find 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)
MfyXVgy.png

Now, go to 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.
sMGnu5S.png

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 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 " " to your custom domain name, and all of the "127.0.0.1"'s to your VPS IP.
-
You can also download (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:

Janzeer

Headmaster Of Hogwart's
Apr 30, 2012
522
47
Well detailed tutorial! Would be pretty much be useful for the noobs. :p
 

RPSarefun

New Member
Sep 11, 2013
21
1
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.
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
 

sumo

The end is nigh.
Jan 18, 2014
143
102
Well detailed tutorial! Would be pretty much be useful for the noobs. :p
Thankyou. :)
 
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
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)
 

RPSarefun

New Member
Sep 11, 2013
21
1
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
 

sumo

The end is nigh.
Jan 18, 2014
143
102
I'm surprised nobody asked me what type of computer I have this time.
 

sumo

The end is nigh.
Jan 18, 2014
143
102
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
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.
 

soofus

New Member
Dec 18, 2014
2
0
i wonder why i can't download the swf, gets to the site but fails at 99% i get decryption error
 
Last edited:

FunzyKiller

Member
Apr 7, 2014
201
5
$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?
 
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?
 

sumo

The end is nigh.
Jan 18, 2014
143
102
$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?
 
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?
Can you screenshot your config.php?
 
Status
Not open for further replies.

Users who are viewing this thread

Top