Client redirect to /me

ItsMeRomian

Member
Oct 3, 2015
190
22
Hi!
I made my own habbo hotel and i can access the site, but when i press the go to hotel button, it loads the game but after 1 second I get redirected to localhost/me inside the popup.

config file pastebin Jm6irJtu
client file pastebin hgpPDd6j
extenal vars pastebin ZBT1bMNe
cant post links yes soo.....
 

ItsMeRomian

Member
Oct 3, 2015
190
22
A screenshot of your emulator please, as it could be logging exceptions...
I'll help you out.
2iuqsnr.png
 

Ali Saied

Member
Jun 3, 2011
36
6
I Also get this problem. However i went to my client.php in the htdocs/app/tpl/skins/(skin your using) and edited the client.php on line 15 i replaced rs4 with banner and then the problem was solved. However new problems have arrived. Now when i go into the client it takes me to a 404 page saying is not found.
 

RyanzRetros

Developer of ChakCMS
Jan 14, 2015
978
182
I Also get this problem. However i went to my client.php in the htdocs/app/tpl/skins/(skin your using) and edited the client.php on line 15 i replaced rs4 with banner and then the problem was solved. However new problems have arrived. Now when i go into the client it takes me to a 404 page saying is not found.
Make sure all of your SWF links are working, and DON'T RELEASE THE IP...
 

RyanzRetros

Developer of ChakCMS
Jan 14, 2015
978
182
Open your client.php. find {server_port} delete all server port along with the {} in its place put the number 30000
That depends, it could also be {server_ip}. The better way of fixing this if you're thinking about that would be to give him some code and instructions on how to make {server_ip}/{server_port} work.

Go to your class.template.php file, located in your app folder and look for these lines.

PHP:
$this->setParams('server_ip', $_CONFIG['hotel']['server_ip']);
$this->setParams('server_port', $_CONFIG['hotel']['server_port']);


If they're not there, then add them BELOW hotelName
JH7aKXa.png


Then go to your config.php file and add this:
$_CONFIG['hotel']['server_ip'] = '127.0.0.1'; //Server IP; insert the proxy IP here. NEVER put your VPS IP here!!
$_CONFIG['hotel']['server_port'] = '30000'; //Server Port; insert the proxy/VPS's emulator port here.
Now replace 127.0.0.1 with your PROXY IP (never use your VPS IP as this allows people to DDoS the hotel).
Then replace 30000 with the PORT from your PROXY.

Last step is to replace your client.php file with the one below:
HTML:
<!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="/app/tpl/skins/{skin}/styles/client.css" type="text/css">
       
        <script type="text/javascript" src="/app/tpl/skins/{skin}/js/swfobject.js"></script>
        <script type="text/javascript">
            var BaseUrl = "{swf_folder}";
            var flashvars =
            {
                "client.starting" : "Please wait, {hotelName} is loading",
                "client.allow.cross.domain" : "1",
                "client.notify.cross.domain" : "0",
                "connection.info.host" : "{server_ip}",
                "connection.info.port" : "{server_port}",
                "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>
    </head>
   
    <body>
   
        <div id="client"></div>
   
    </body>
</html>
 

flyest

Doctor
Mar 3, 2013
94
13
Make sure everything is linked right in your external_variables.
Do you have a gamedata folder inside your game folder or is the external texts in the game folder?

In Chrome you can also press CTRL + Shift + I and look at the errors given (when you enter the client) in the Developer Tools.
 

Users who are viewing this thread

Top