Common Habbo retro Fixes

Gajeel

Well-Known Member
Oct 4, 2011
2,411
413
Hello!

I'll be posting common problems and post on how to troubleshoot them. These may be in range from emulator - client, up to CMS problem.

1. Phoenix Emulator: Data truncated for column 'stamp' at row 1
This is common for those who are having MySQL strict mode. Here is a query you have to run inorder to let the emulator read your server_status properly:
Code:
SET @@global.sql_mode= '';

2. Setting spawn room (also known as homeroom) for users
If you have existing users with different room IDs, we can make them spawn back to the room you want by running this query:
Code:
UPDATE users SET `home_room` = 'ROOMID'

This step is only applicable to Navicat.
Now we would like new users to be spawned to that room. Go to Navicat, open your database, right-click the 'users' table and select "Design Table".

It should take you a screen similar to this:
455471135135.png


Click home_room, then on the default field type in the ROOM ID.
a. How do I know the ROOMID of the room I want to be the spawning room?
Go to the room, click Room info and something similar will appear like this:
685663726993.png


Or you may go to the database, open 'rooms' table, Ctrl + F then type the room name and the room id will appear, something similar like this:
15379728047.png

The first column states the room ID.

3. Client white screen
There are alot of reasons why users gets a white screen client instead of loading one. Here I'll be stating several good fixes which are effective.

a. The SWFs and external_variables are all sat up, but I'm still getting a white screen
Replace your client.php with this:
PHP:
<!DOCTYPE html>
<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/Habbo/styles/client.css" type="text/css">
       
        <script type="text/javascript" src="{url}/app/tpl/skins/Habbo/js/swfobject.js"></script>
        <script type="text/javascript">
            var BaseUrl = "{swf_folder}";
            var flashvars =
            {
                "client.starting" : "{username} is now loading {hotelName}",
                "client.allow.cross.domain" : "1",
                "client.notify.cross.domain" : "0",
                "connection.info.host" : "{server_ip}",
                "connection.info.port" : "30000",
                "site.url" : "{url}",
                "url.prefix" : "{url}",
                "client.reload.url" : "{url}/client",
                "client.fatal.error.url" : "{url}/me",
                "client.connection.failed.url" : "{url}/me",
                "external.variables.txt" : "{external_vars}",
                "external.texts.txt" : "{external_texts}",
                "productdata.load.url" : "{product_data}",
                "furnidata.load.url" : "{furni_data}",
                "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", "{swf_folder}/expressInstall.swf", flashvars, params, null);
        </script>
        <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js"></script>
 
 
<script type="text/javascript">
           
    var id = 48;
           
    $(document).ready(function(){
          $.getJSON("http://*****.com/index.php?page=vote", { id: id, hasVoted: 'unknown' }, function(data) {
              if(data == 2) {
                    window.location.replace("http://*****.com/index.php?page=vote&id=" + id);
              }
          });
    });
           
</script>
    </head>
   
    <body>
        <div id="client"></div>
   
    </body>
</html>

b. I did not modify anything on the SWF pack I had
Check out your r63 folder and see whether your external_variables.txt points out to your VPS/Hamachi/Personal IP and not to someone else. If it is, see if those directories are actually existing. Also make sure the .SWF files are alright and aren't corrupted.

This is not yet the end of the thread.. I'll be adding more later. :)
 

Gajeel

Well-Known Member
Oct 4, 2011
2,411
413
Thanks. Right now these are few in my opinion and I should be adding more soon.
 

Gajeel

Well-Known Member
Oct 4, 2011
2,411
413
Welcome ! :)
, as they are 'common' you can see them anywhere else. ;)
 

FarLock

ThisHabbo Media Journalist
Apr 21, 2012
224
52
Sorry, screenshots are currently down. Contacting host as I do not have local copies of the images.
Spawn room "fix" only applies to existing users. If a new user joins, he/she is not affected.
I forgot to detail that. I remembered answering the same question for someone else so I'll be pasting it once is unbanned.
 

Users who are viewing this thread

Top