Welcome!

Join our community of MMO enthusiasts and game developers! By registering, you'll gain access to discussions on the latest developments in MMO server files and collaborate with like-minded individuals. Join us today and unlock the potential of MMO server development!

Join Today!

PlusEMU - Client disconnects on hotel view

Initiate Mage
Joined
Nov 26, 2013
Messages
2
Reaction score
0
Hi,


I'm in the process of setting up a Habbo retro (Won't be made public), following this tutorial:
I'm having problems where my client will load (and display in the emulator), but will disconnect once the hotel view is displayed. I'm able to see the hotel view for about 2 seconds.


I'm running my server on IIS7 (Windows Server 2008 R2)


Does anybody know how to fix this? Nothing is showing in my logs. I've checked all my configurations too, and all appear to be OK. My firewall has been temporarily disabled for testing purposes.
The user is shown in the emulator as being connected, and then disconnected - so the emulator is receiving the connection, but is disconnecting.


Emulator config.ini:
Code:
[COLOR=#141414]## uberEmulator System Configuration File[/COLOR]
[COLOR=#141414]## Must be edited for the server to work[/COLOR]
[COLOR=#141414]
[/COLOR]
[COLOR=#141414]## MySQL Configuration[/COLOR]
[COLOR=#141414]db.hostname=localhost[/COLOR]
[COLOR=#141414]db.port=3306[/COLOR]
[COLOR=#141414]db.username=root[/COLOR]
[COLOR=#141414]db.password={Password was here}[/COLOR]
[COLOR=#141414]db.name=hotel[/COLOR]
[COLOR=#141414]
[/COLOR]
[COLOR=#141414]## MySQL pooling setup (controls amount of connections)[/COLOR]
[COLOR=#141414]db.pool.minsize=10[/COLOR]
[COLOR=#141414]db.pool.maxsize=500[/COLOR]
[COLOR=#141414]
[/COLOR]
[COLOR=#141414]## Game TCP/IP Configuration[/COLOR]
[COLOR=#141414]game.tcp.bindip=127.0.0.1[/COLOR]
[COLOR=#141414]game.tcp.port=30000[/COLOR]
[COLOR=#141414]game.tcp.conlimit=11000[/COLOR]
[COLOR=#141414]game.tcp.conperip=100[/COLOR]
[COLOR=#141414]game.tcp.enablenagles=true[/COLOR]
[COLOR=#141414]
[/COLOR]
[COLOR=#141414]## MUS TCP/IP Configuration[/COLOR]
[COLOR=#141414]mus.tcp.bindip=127.0.0.1[/COLOR]
[COLOR=#141414]mus.tcp.port=3001[/COLOR]
[COLOR=#141414]mus.tcp.allowedaddr=127.0.0.1[/COLOR]
[COLOR=#141414]
[/COLOR]
[COLOR=#141414]## Client configuration[/COLOR]
[COLOR=#141414]client.ping.enabled=1[/COLOR]
[COLOR=#141414]client.ping.interval=20000[/COLOR]
[COLOR=#141414]client.maxrequests=300[/COLOR]




CMS config.php:
Code:
[COLOR=#141414]<?php[/COLOR]
[COLOR=#141414]if(!defined('IN_INDEX')) { die('Sorry, you cannot access this file.'); }[/COLOR]
[COLOR=#141414]#Please fill this all out.[/COLOR]
[COLOR=#141414]
[/COLOR]
[COLOR=#141414]#NOTE: To set up TheHabbos.ORG's API go to wwwroot/mysite/thehabbos_api for IIS, OR, htdocs/thehabbos_api for XAMPP and others.[/COLOR]
[COLOR=#141414]
[/COLOR]
[COLOR=#141414]/*[/COLOR]
[COLOR=#141414]*[/COLOR]
[COLOR=#141414]*    MySQL management[/COLOR]
[COLOR=#141414]*[/COLOR]
[COLOR=#141414]*/[/COLOR]
[COLOR=#141414]
[/COLOR]
[COLOR=#141414]$_CONFIG['mysql']['connection_type'] = 'pconnect'; //Type of connection: It must be connect, or pconnect: if you want a persistent connection.[/COLOR]
[COLOR=#141414]
[/COLOR]
[COLOR=#141414]$_CONFIG['mysql']['hostname'] = 'localhost'; //MySQL host[/COLOR]
[COLOR=#141414]
[/COLOR]
[COLOR=#141414]$_CONFIG['mysql']['username'] = 'root'; //MySQL username[/COLOR]
[COLOR=#141414]
[/COLOR]
[COLOR=#141414]$_CONFIG['mysql']['password'] = '{Database password was here}'; //MySQL password[/COLOR]
[COLOR=#141414]
[/COLOR]
[COLOR=#141414]$_CONFIG['mysql']['database'] = 'hotel'; //MySQL database[/COLOR]
[COLOR=#141414]
[/COLOR]
[COLOR=#141414]$_CONFIG['mysql']['port'] = '3306'; //MySQL's port[/COLOR]
[COLOR=#141414]
[/COLOR]
[COLOR=#141414]/*[/COLOR]
[COLOR=#141414]*[/COLOR]
[COLOR=#141414]*    Hotel management  - All URLs do not end with an "/"[/COLOR]
[COLOR=#141414]*[/COLOR]
[COLOR=#141414]*/[/COLOR]
[COLOR=#141414]
[/COLOR]
[COLOR=#141414]$_CONFIG['hotel']['server_ip'] = '127.0.0.1'; //IP of VPS/DEDI/etc[/COLOR]
[COLOR=#141414]
[/COLOR]
[COLOR=#141414]$_CONFIG['hotel']['url'] = 'http://127.0.0.1'; //Does not end with a "/"[/COLOR]
[COLOR=#141414]
[/COLOR]
[COLOR=#141414]$_CONFIG['hotel']['name'] = '{Hotel Name was here}'; // Hotel's name[/COLOR]
[COLOR=#141414]
[/COLOR]
[COLOR=#141414]$_CONFIG['hotel']['desc'] = 'Where The Fun Begins!'; //Hotel's description[/COLOR]
[COLOR=#141414]
[/COLOR]
[COLOR=#141414]$_CONFIG['hotel']['email'] = 'Support@hotmail.com'; //Where the help queries from users are emailed to [USER=1333384151]pri[/USER]v skin[/COLOR]
[COLOR=#141414]
[/COLOR]
[COLOR=#141414]$_CONFIG['hotel']['in_maint'] = False; //False if hotel is NOT in maintenance. True if hotel IS in maintenance[/COLOR]
[COLOR=#141414]
[/COLOR]
[COLOR=#141414]$_CONFIG['hotel']['motto'] = 'I am a new player.'; //Default motto users will register with.[/COLOR]
[COLOR=#141414]
[/COLOR]
[COLOR=#141414]$_CONFIG['hotel']['credits'] = 30000; //Default number of credits users will register with.[/COLOR]
[COLOR=#141414]
[/COLOR]
[COLOR=#141414]$_CONFIG['hotel']['pixels'] = 15000; //Default number of pixels users will register with.[/COLOR]
[COLOR=#141414]
[/COLOR]
[COLOR=#141414]$_CONFIG['hotel']['figure'] = 'hr-125-31.ch-215-62.hd-209-8.lg-275-63'; //Default figure users will register with.[/COLOR]
[COLOR=#141414]
[/COLOR]
[COLOR=#141414]$_CONFIG['hotel']['web_build'] = '63_1dc60c6d6ea6e089c6893ab4e0541ee0/1532'; //Web_Build[/COLOR]
[COLOR=#141414]
[/COLOR]
[COLOR=#141414]$_CONFIG['hotel']['external_vars'] = 'http://127.0.0.1/game/external_variables.txt'; //URL to your external[/COLOR]
[COLOR=#141414]
[/COLOR]
[COLOR=#141414]$_CONFIG['hotel']['external_texts'] = 'http://127.0.0.1/game/external_flash_texts.txt'; //URL to your external texts[/COLOR]
[COLOR=#141414]
[/COLOR]
[COLOR=#141414]$_CONFIG['hotel']['product_data'] = 'http://127.0.0.1/game/productdata.txt'; //URL to your productdata[/COLOR]
[COLOR=#141414]
[/COLOR]
[COLOR=#141414]$_CONFIG['hotel']['furni_data'] = 'http://127.0.0.1/game/furnidata.txt'; //URL to your furnidata[/COLOR]
[COLOR=#141414]
[/COLOR]
[COLOR=#141414]$_CONFIG['hotel']['swf_folder'] = 'http://127.0.0.1/game'; //URL to your SWF folder(does not end with a '/')[/COLOR]
[COLOR=#141414]/*[/COLOR]
[COLOR=#141414]*[/COLOR]
[COLOR=#141414]*    Templating management - Pick one of our default styles or make yours by following our examples![/COLOR]
[COLOR=#141414]*[/COLOR]
[COLOR=#141414]*/[/COLOR]
[COLOR=#141414]
[/COLOR]
[COLOR=#141414]#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.[/COLOR]
[COLOR=#141414]
[/COLOR]
[COLOR=#141414]$_CONFIG['template']['style'] = 'HabboExtreme';[/COLOR]
[COLOR=#141414]
[/COLOR]
[COLOR=#141414]/*[/COLOR]
[COLOR=#141414]*[/COLOR]
[COLOR=#141414]*    Other topsites.. thing[/COLOR]
[COLOR=#141414]*[/COLOR]
[COLOR=#141414]*/[/COLOR]
[COLOR=#141414]
[/COLOR]
[COLOR=#141414]$_CONFIG['thehabbos']['username'] = 'Habbam';[/COLOR]
[COLOR=#141414]$_CONFIG['retro_top']['user'] = 'Habbam';[/COLOR]
[COLOR=#141414]
[/COLOR]
[COLOR=#141414]/*[/COLOR]
[COLOR=#141414]*[/COLOR]
[COLOR=#141414]*    Recaptcha management - Fill the information below if you have one, else leave it like that and don't worry, be happy.[/COLOR]
[COLOR=#141414]*[/COLOR]
[COLOR=#141414]*/[/COLOR]
[COLOR=#141414]
[/COLOR]
[COLOR=#141414]$_CONFIG['recaptcha']['priv_key'] = '6LcZ58USAAAAABSV5px9XZlzvIPaBOGA6rQP2G43';[/COLOR]
[COLOR=#141414]$_CONFIG['recaptcha']['pub_key'] = '6LcZ58USAAAAAAQ6kquItHl4JuTBWs-5cSKzh6DD';[/COLOR]
[COLOR=#141414]
[/COLOR]
[COLOR=#141414]
[/COLOR]
[COLOR=#141414]/*[/COLOR]
[COLOR=#141414]*[/COLOR]
[COLOR=#141414]*    Social Networking stuff[/COLOR]
[COLOR=#141414]*[/COLOR]
[COLOR=#141414]*/[/COLOR]
[COLOR=#141414]
[/COLOR]
[COLOR=#141414]$_CONFIG['social']['twitter'] = ''; //Hotel's Twitter account[/COLOR]
[COLOR=#141414]
[/COLOR]
[COLOR=#141414]$_CONFIG['social']['facebook'] = 'habbamcom'; //Hotel's Facebook account[/COLOR]
[COLOR=#141414]
[/COLOR]
[COLOR=#141414]
[/COLOR]
[COLOR=#141414]?>[/COLOR]


Client.php
Code:
[COLOR=#141414]<!DOCTYPE html>[/COLOR]
[COLOR=#141414]<html lang="en">[/COLOR]
[COLOR=#141414]    <head>[/COLOR]
[COLOR=#141414]        <meta http-equiv="content-type" content="text/html; charset=utf-8">[/COLOR]
[COLOR=#141414]        <title>{hotelName} - Client</title>[/COLOR]

[COLOR=#141414]        <link rel="stylesheet" href="{url}/app/tpl/skins/{skin}/styles/client.css" type="text/css">[/COLOR]

[COLOR=#141414]        <script type="text/javascript" src="{url}/app/tpl/skins/{skin}/js/swfobject.js"></script>[/COLOR]
[COLOR=#141414]        <script type="text/javascript">[/COLOR]
[COLOR=#141414]            var BaseUrl = "http://localhost/game";[/COLOR]
[COLOR=#141414]            var flashvars =[/COLOR]
[COLOR=#141414]            {[/COLOR]
[COLOR=#141414]                "client.starting" : "Please wait, {hotelname} loading",[/COLOR]
[COLOR=#141414]                "hotelview.banner.url" : "http://127.0.0.1/game/rs4.php",[/COLOR]
[COLOR=#141414]                "client.allow.cross.domain" : "1",[/COLOR]
[COLOR=#141414]                "client.notify.cross.domain" : "0",[/COLOR]
[COLOR=#141414]                "connection.info.host" : "127.0.0.1",[/COLOR]
[COLOR=#141414]                "connection.info.port" : "30000",[/COLOR]
[COLOR=#141414]                "site.url" : "http://127.0.0.1",[/COLOR]
[COLOR=#141414]                "url.prefix" : "http://127.0.0.1",[/COLOR]
[COLOR=#141414]                "client.reload.url" : "http://127.0.0.1/client",[/COLOR]
[COLOR=#141414]                "client.fatal.error.url" : "http://127.0.0.1/me?fe=true",[/COLOR]
[COLOR=#141414]                "client.connection.failed.url" : "http://127.0.0.1/me",[/COLOR]
[COLOR=#141414]                "external.variables.txt" : "http://127.0.0.1/game/external_variables.txt",[/COLOR]
[COLOR=#141414]                "external.texts.txt" : "http://127.0.0.1/game/external_flash_texts.txt",[/COLOR]
[COLOR=#141414]                "productdata.load.url" : "httpo://127.0.0.1/game/productdata.txt",[/COLOR]
[COLOR=#141414]                "furnidata.load.url" : "http://127.0.0.1/game/furnidata_xml.xml",[/COLOR]
[COLOR=#141414]                "use.sso.ticket" : "1",[/COLOR]
[COLOR=#141414]                "sso.ticket" : "{sso}",[/COLOR]
[COLOR=#141414]                "processlog.enabled" : "0",[/COLOR]
[COLOR=#141414]                "flash.client.url" : BaseUrl,[/COLOR]
[COLOR=#141414]                "flash.client.origin" : "popup"[/COLOR]
[COLOR=#141414]            };[/COLOR]
[COLOR=#141414]            var params =[/COLOR]
[COLOR=#141414]            {[/COLOR]
[COLOR=#141414]                "base" : BaseUrl + "/",[/COLOR]
[COLOR=#141414]                "allowScriptAccess" : "always",[/COLOR]
[COLOR=#141414]                "menu" : "false"           [/COLOR]
[COLOR=#141414]            };[/COLOR]
[COLOR=#141414]            swfobject.embedSWF(BaseUrl + "/Habbo.swf", "client", "100%", "100%", "10.0.0", "http://127.0.0.1//expressInstall.swf", flashvars, params, null);[/COLOR]
[COLOR=#141414]        </script>[/COLOR]
[COLOR=#141414]    </head>[/COLOR]
[COLOR=#141414]
[/COLOR]
[COLOR=#141414]    <body>[/COLOR]
[COLOR=#141414]
[/COLOR]
[COLOR=#141414]        <div id="client"></div>[/COLOR]
[COLOR=#141414]
[/COLOR]
[COLOR=#141414]    </body>[/COLOR]
[COLOR=#141414]</html>[/COLOR]


My external variables file is:
As per the tutorial, I've changed the Habbo.swf file, and I've also checked my external_variables.txt file - which seems to be OK. The emulator isn't returning any errors.


As seen in my client.php file, I've added fe=true to the fatal error URL, which appears when the client disconnects, meaning there's a fatal error somewhere. I've also tried changing localhost to 127.0.0.1, as suggested by other threads.


Here's a screenshot of my emulator:
gQb6vpz - PlusEMU - Client disconnects on hotel view - RaGEZONE Forums



Any help is greatly appreciated!
 

Attachments

You must be registered for see attachments list
Back
Top