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

Errors on client

Discussion in 'Habbo Help & Support' started by Central, Feb 16, 2017.

  1. Central

    Central Imagination is more important than knowledge.

    Hey!

    I'm currently setting up a hotel, and I have the client working (ish), when you get onto the hotel view, it loads everything then disconnects.

    external_variables.txt: [ Want to see this link? Register ! ]

    client.php
    Code:
    <?php
        staffCheck();
        Game::sso();   
        Game::homeRoom();   
        
    ?>
    <html>
    </body>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
        <title><?= $config['hotelName'] ?> - Game</title>
        <script src="/templates/brain/client/js/jquery-latest.js" type="text/javascript"></script>
        <script src="/templates/brain/client/js/jquery-ui.js" type="text/javascript"></script>
        <script src="/templates/brain/client/js/flashclient.js"></script>
        <script src="/templates/brain/client/js/flash_detect_min.js"></script>
        <script src="/templates/brain/client/js/client.js" type="text/javascript"></script>
    </head>
    <body>
        <center>
            <div id="client-ui">
                <div id="client" style='position:absolute; left:0; right:0; top:0; bottom:0; overflow:hidden; height:100%; width:100%;'></div>
            </div>
            <script>
                var Client = new SWFObject("<?= $hotel['swfFolderSwf'] ?>", "client", "100%", "100%", "10.0.0");
                Client.addVariable("client.allow.cross.domain", "0");
                Client.addVariable("client.notify.cross.domain", "1");
                Client.addVariable("connection.info.host", "<?= $hotel['emuHost'] ?>");
                Client.addVariable("connection.info.port", "<?= $hotel['emuPort'] ?>");
                Client.addVariable("site.url", "<?= $config['hotelUrl'] ?>");
                Client.addVariable("url.prefix", "<?= $config['hotelUrl'] ?>");
                Client.addVariable("client.reload.url", "<?= $config['hotelUrl'] ?>/me");
                Client.addVariable("client.fatal.error.url", "<?= $config['hotelUrl'] ?>/me");
                Client.addVariable("client.connection.failed.url", "<?= $config['hotelUrl'] ?>/me");
                Client.addVariable("external.override.texts.txt", "<?= $hotel['external_Texts_Override'] ?>");
                Client.addVariable("external.override.variables.txt", "<?= $hotel['external_Variables_Override'] ?>");     
                Client.addVariable("external.variables.txt", "<?= $hotel['external_Variables'] ?>");
                Client.addVariable("external.texts.txt", "<?= $hotel['external_Texts'] ?>");
                Client.addVariable("external.figurepartlist.txt", "<?= $hotel['figuredata'] ?>");
                Client.addVariable("flash.dynamic.avatar.download.configuration", "<?= $hotel['figuremap'] ?>");
                Client.addVariable("productdata.load.url", "<?= $hotel['productdata'] ?>");
                Client.addVariable("furnidata.load.url", "<?= $hotel['furnidata'] ?>");
                Client.addVariable("use.sso.ticket", "1");
                Client.addVariable("sso.ticket", "<?= User::userData('auth_ticket') ?>");
                Client.addVariable("processlog.enabled", "0");
                Client.addVariable("client.starting", "<?= $config['hotelName'] ?> is loading...");
                Client.addVariable("flash.client.url", "<?= $hotel['swfFolder'] ?>/");
                Client.addVariable("flash.client.origin", "popup");
                Client.addVariable("nux.lobbies.enabled", "false");
                Client.addVariable("country_code", "en");
                Client.addParam('base', '<?= $hotel['swfFolder'] ?>/');
                Client.addParam('allowScriptAccess', 'always');
                Client.addParam('menu', false);
                Client.addParam('wmode', "opaque");
                Client.write('client');
                
                FlashExternalInterface.signoutUrl = "<?= $config['hotelUrl'] ?>/logout";
            </script>
        </center>
    </body>
    </html>
    </center>
    </div>
    </head>
    
    Console
    [​IMG]
    Just brings up a load of crap on the console which doesn't tell you what exactly is causing the problem.
     
  2. Zaka

    Zaka Programmer

    Try to catch the POST data.
     
  3. Central

    Central Imagination is more important than knowledge.

    How do I do that?
     
  4. Zaka

    Zaka Programmer

    Change the fatal disconnect link and then use var_dump($_POST)
     
  5. BIOS

    BIOS \r%20

    How would that help? There's no POST data, regardless you don't "catch" it either.

    @Central What does your client file look like when you view the source?
     
  6. Zaka

    Zaka Programmer

    It is, I use it all the time
     
  7. sensaze

    sensaze Member

    Have you got the web.config in your root? Do you also have Helicon installed? Too many redirects means the page is in a redirect loop.
     
  8. Central

    Central Imagination is more important than knowledge.

    I have just restarted and now I have this:

    I try to load the client and it just stays on 76%, but says 1 user online on the emulator

    I ain't on the laptop as my niece is sleeping where it lies and it's more of a desktop, if you like to you can view the source directly at my URL: [ Want to see this link? Register ! ]
     
  9. sensaze

    sensaze Member

    post your brain-config.php in the /system folder
     
  10. Velaski

    Velaski winner

    Open up the emulator logs..
     
  11. Central

    Central Imagination is more important than knowledge.

    Code:
    Error in packet [39] BODY: [0][0][0]:
    System.NullReferenceException: Object reference not set to an instance of an object.
       at Plus.Communication.Packets.Outgoing.Groups.UpdateFavouriteGroupComposer..ctor(Int32 Id, Group Group, Int32 VirtualId) in C:\Users\tomki\Desktop\PlusEMU\Communication\Packets\Outgoing\Groups\UpdateFavouriteGroupComposer.cs:line 15
       at Plus.Communication.Packets.Incoming.Groups.RemoveGroupFavouriteEvent.Parse(GameClient Session, ClientPacket Packet) in C:\Users\tomki\Desktop\PlusEMU\Communication\Packets\Incoming\Groups\RemoveGroupFavouriteEvent.cs:line 21
       at Plus.Communication.Packets.PacketManager.TryExecutePacket(GameClient Session, ClientPacket Packet) in C:\Users\tomki\Desktop\PlusEMU\Communication\Packets\PacketManager.cs:line 153
       at Plus.HabboHotel.GameClients.GameClient.parser_onNewPacket(ClientPacket Message) in C:\Users\tomki\Desktop\PlusEMU\HabboHotel\GameClients\GameClient.cs:line 73
    
    
    Error in packet [39] BODY: [0][0][0]:
    System.NullReferenceException: Object reference not set to an instance of an object.
       at Plus.Communication.Packets.Outgoing.Groups.UpdateFavouriteGroupComposer..ctor(Int32 Id, Group Group, Int32 VirtualId) in C:\Users\tomki\Desktop\PlusEMU\Communication\Packets\Outgoing\Groups\UpdateFavouriteGroupComposer.cs:line 15
       at Plus.Communication.Packets.Incoming.Groups.RemoveGroupFavouriteEvent.Parse(GameClient Session, ClientPacket Packet) in C:\Users\tomki\Desktop\PlusEMU\Communication\Packets\Incoming\Groups\RemoveGroupFavouriteEvent.cs:line 21
       at Plus.Communication.Packets.PacketManager.TryExecutePacket(GameClient Session, ClientPacket Packet) in C:\Users\tomki\Desktop\PlusEMU\Communication\Packets\PacketManager.cs:line 153
       at Plus.HabboHotel.GameClients.GameClient.parser_onNewPacket(ClientPacket Message) in C:\Users\tomki\Desktop\PlusEMU\HabboHotel\GameClients\GameClient.cs:line 73
    
    
    I came across MySQL Errors but I fixed that, but this comes up in the packet errors.
    --- Double Post Merged, Feb 18, 2017, Original Post Date: Feb 18, 2017 ---
    brain-config.php
    Code:
    <?php
        if(!defined('BRAIN_CMS'))
        {
            die('Sorry but you cannot access this file!');
        }
        
        /* Database Setting */
        $db['host'] = 'localhost'; //Mysql's Host
        $db['port'] = '3306'; //Mysql's port
        $db['user'] = "root"; //Mysql's user
        $db['pass'] = 'mysql password'; //Mysql's password
        $db['db'] = "database name"; //Mysql's database
        
        /* Emu Settings */
        $config['hotelEmu'] = 'plusemu'; // plusemu // arcturus
    
        /* Client Setting */
        $hotel['emuHost'] = "vps ip"; //IP of VPS//IP of Proxy
        $hotel['emuPort'] = "30000";  //Port of VPS//Port of Proxy
        $hotel['staffCheckClient'] = true; //Enable the staff pin in the client (true) or disable it (false)
        $hotel['staffCheckClientMinimumRank'] = 3; //Minium staff rank to get the staff pin in the client
        $hotel['homeRoom'] = '0'; //Set the start room when you get in the hotel
        $hotel['external_Variables'] = "http://playbliss.co.uk/swf/gamedata/external_variables.txt";
        $hotel['external_Variables_Override'] = "http://playbliss.co.uk/swf/gamedata/override/external_override_variables.txt";
        $hotel['external_Texts'] = "http://playbliss.co.uk/swf/gamedata/external_flash_texts.txt";
        $hotel['external_Texts_Override'] = "http://playbliss.co.uk/swf/gamedata/override/external_flash_override_texts.txt";
        $hotel['productdata'] = "http://playbliss.co.uk/swf/gamedata/productdata.txt";
        $hotel['furnidata'] = "http://playbliss.co.uk/swf/gamedata/furnidata.xml";
        $hotel['figuremap'] = "http://playbliss.co.uk/swf/gamedata/figuremap.xml";
        $hotel['figuredata'] = "http://playbliss.co.uk/swf/gamedata/figuredata.xml";
        $hotel['swfFolder'] = "http://playbliss.co.uk/swf/gordon/PRODUCTION-201601012205-226667486";
        $hotel['swfFolderSwf'] = "http://playbliss.co.uk/swf/gordon/PRODUCTION-201601012205-226667486/Habbo.swf";
        
        /* Website Setting */
        $config['hotelUrl'] = "http://playbliss.co.uk";//Address of your hotel. Does not end with a "/"
        $config['skin'] = "brain"; //Skin/template of your website
        $config['lang'] = "en"; //Language of your website /en/nl/es
        $config['hotelName'] = "Bliss"; //Name of your hotel
        $config['favicon'] = "http://playbliss.co.uk/system/theme/brain/style/images/favicon/favicon.ico";
        $config['staffCheckHk'] = false; //Enable the staff pin in the housekeeping (true) or disable it (false)
        $config['staffCheckHkMinimumRank'] = 3; //Minium staff rank to get the staff pin in the housekeeping
        $config['maintenance'] = false; //Enable the maintenance of your website (true) or disable it (false)
        $config['maintenancekMinimumRankLogin'] = 3; //Minium staff rank to login when the website is in maintenance
        $config['groupBadgeURL'] = "http://playbliss.co.uk/swf/habbo-imaging/badge.php?badge=";
        $config['badgeURL'] = "http://playbliss.co.uk/swf/c_images/album1584/";
        
        /* Facebook Login Settings
            You need a Facebook app for this to work go to
            https://developers.facebook.com/apps/ */
        
        $config['facebookLogin'] = false; //Enable the Facebook login (true) or disable it (false)
        $config['facebookAPPID'] = '334162590sdaf292528';
        $config['facebookAPPSecret'] = 'ce2504ff5adsfa3ff7a6a2fa6d984cd8836';
        
        /* Email Settings */
        $email['mailServerHost'] = 'smtp.gmail.com';
        $email['mailServerPort'] = 587;
        $email['SMTPSecure'] = 'TLS';
        $email['mailUsername'] = '[email protected]';
        $email['mailPassword'] = '*****';
        $email['mailLogo'] = 'http://playbliss.co.uk/templates/brain/style/images/logo/logo.png';
        $email['mailTemplate'] = '/system/app/plugins/PHPmailer/temp/resetpassword.html';
        
        /* Social settings */
        $config['facebook'] = 'https://www.facebook.com/Habbo/';
        $config['facebookEnable'] = false;
        $config['twitter'] = 'https://twitter.com/Habbo';
        $config['twitterEnable'] = false;
        
        /* Register Setting */
        $config['startMotto'] = "Welcome to Bliss!"; //Regsiter start motto
        $config['credits']    = "10000";
        $config['duckets']    = "20000";
        $config['diamonds']    = "10";
        $config['diamondsRef']    = "10";
        $config['registerEnable'] = true;
        
        /* Google recaptcha Site Key 
           Go to this website to create a recaptcha Site Key: https://www.google.com/recaptcha/intro/index.html    */
        $config['recaptchaSiteKey'] = "6LdzewwUAAAAABkJ3vsdfCDca9qmLGDaWAHqMRtFEs2";
        $config['recaptchaSiteKeyEnable'] = false;
        
        /* Buy VIP Settings */
        $config['vipCost'] = "25";
        $config['vipRankToGet'] = "3";
        $config['vipBadge'] = "vip";
    ?>
    client.php

    Code:
    <?php
        staffCheck();
        Game::sso();   
        Game::homeRoom();   
        
    ?>
    <html>
    </body>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
        <title><?= $config['hotelName'] ?> - Game</title>
        <script src="/templates/brain/client/js/jquery-latest.js" type="text/javascript"></script>
        <script src="/templates/brain/client/js/jquery-ui.js" type="text/javascript"></script>
        <script src="/templates/brain/client/js/flashclient.js"></script>
        <script src="/templates/brain/client/js/flash_detect_min.js"></script>
        <script src="/templates/brain/client/js/client.js" type="text/javascript"></script>
    </head>
    <body>
        <center>
            <div id="client-ui">
                <div id="client" style='position:absolute; left:0; right:0; top:0; bottom:0; overflow:hidden; height:100%; width:100%;'></div>
            </div>
            <script>
                var Client = new SWFObject("<?= $hotel['swfFolderSwf'] ?>", "client", "100%", "100%", "10.0.0");
                Client.addVariable("client.allow.cross.domain", "0");
                Client.addVariable("client.notify.cross.domain", "1");
                Client.addVariable("connection.info.host", "<?= $hotel['emuHost'] ?>");
                Client.addVariable("connection.info.port", "<?= $hotel['emuPort'] ?>");
                Client.addVariable("site.url", "<?= $config['hotelUrl'] ?>");
                Client.addVariable("url.prefix", "<?= $config['hotelUrl'] ?>");
                Client.addVariable("client.reload.url", "<?= $config['hotelUrl'] ?>/me");
                Client.addVariable("client.fatal.error.url", "<?= $config['hotelUrl'] ?>/me");
                Client.addVariable("client.connection.failed.url", "<?= $config['hotelUrl'] ?>/me");
                Client.addVariable("external.override.texts.txt", "<?= $hotel['external_Texts_Override'] ?>");
                Client.addVariable("external.override.variables.txt", "<?= $hotel['external_Variables_Override'] ?>");     
                Client.addVariable("external.variables.txt", "<?= $hotel['external_Variables'] ?>");
                Client.addVariable("external.texts.txt", "<?= $hotel['external_Texts'] ?>");
                Client.addVariable("external.figurepartlist.txt", "<?= $hotel['figuredata'] ?>");
                Client.addVariable("flash.dynamic.avatar.download.configuration", "<?= $hotel['figuremap'] ?>");
                Client.addVariable("productdata.load.url", "<?= $hotel['productdata'] ?>");
                Client.addVariable("furnidata.load.url", "<?= $hotel['furnidata'] ?>");
                Client.addVariable("use.sso.ticket", "1");
                Client.addVariable("sso.ticket", "<?= User::userData('auth_ticket') ?>");
                Client.addVariable("processlog.enabled", "0");
                Client.addVariable("client.starting", "<?= $config['hotelName'] ?> is loading...");
                Client.addVariable("flash.client.url", "<?= $hotel['swfFolder'] ?>/");
                Client.addVariable("flash.client.origin", "popup");
                Client.addVariable("nux.lobbies.enabled", "true");
                Client.addVariable("country_code", "NL");
                Client.addParam('base', '<?= $hotel['swfFolder'] ?>/');
                Client.addParam('allowScriptAccess', 'always');
                Client.addParam('menu', false);
                Client.addParam('wmode', "opaque");
                Client.write('client');
                
                FlashExternalInterface.signoutUrl = "<?= $config['hotelUrl'] ?>/logout";
            </script>
        </center>
    </body>
    </html>
    </center>
    </div>
    
    </head>
    
    
    
    
    
    
    
     
  12. sensaze

    sensaze Member

    I'm pretty sure in the brain-config.php folder the /PRODUCTION-***/ link needs to have a slash on the end "/"
     
  13. Central

    Central Imagination is more important than knowledge.

    It didn't make a difference at all
     
  14. sensaze

    sensaze Member

    You're getting errors in packets, there's something wrong with your emulator files.
     

Share This Page

Loading...