PlusEMU Client Problem

Zymf

 
Aug 19, 2012
868
166
I'm using silverware (PlusEMU) and can't seem to get the client to work.
It loads up as supposed to then stays black and then disconnects after around 1 minute
Code:
<!DOCTYPE html>
<!-- Can I help you lol? -->

<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" : "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"
                "hotelview.banner.url" : "http://basehabbo.pw/swfs/rs4.php",
            };
            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>
Code:
<?php

/*
 *****************
 * @author capos *
 *****************
*/

$width = 100;
$height = 114;

function buildimg($bytes, $width, $height)
{
    $img=imagecreatetruecolor($width, $height);imagealphablending($img, false);imagesavealpha($img, true);$x=0;$y=0;
    $colors=unpack("N*", $bytes);
    foreach($colors as $color)
    {
        imagesetpixel($img, $x, $y, (0x7f-($color>>25)<<24)|($color&0xffffff));
        if(++$x==$width)
        {$x=0;$y++;}
    }
    header('Content-Type: image/png');
    imagepng($img);
}

$pixels = file_get_contents('./banner.txt'); // the banner pixels

if($_GET)
{
    $token = trim($_GET["token"]);
    if(strlen($token) >= 10)
    {   
        // Stuff to connect to mus and get banner data.. (prime and generator)
        /*$fp = fsockopen("127.0.0.1", 30000, $errno, $errstr, 1);
        if (!is_resource($fp))
        {
            exit("LE FAIL...");
        }
       
        $packet = '0'.chr(1).$token;

        fwrite($fp, $packet); 
        fflush($fp);
       
        stream_set_timeout($fp, 1);
        $data = fgets($fp, 512);
        list($prime, $generator) = explode(':', $data);
        fclose($fp);*/
       
        $prime = '114670925920269957593299136150366957983142588366300079186349531';
        $generator = '1589935137502239924254699078669119674538324391752663931735947';

        $insert = chr(strlen($prime)).$prime.chr(strlen($generator)).$generator;
        $Length = strlen($token);$Length2 = strlen($insert);
        $p = 0;$bitsnum = "";
        for($i=0;$i<$Length2;$i++)
        {
            $bits = base_convert(ord($insert[$i]) ^ ord($token[$p]),10,2);
            $need = 8 - strlen($bits);
            for($o=0;$o<$need;$o++)$bits = "0".$bits;
            $bitsnum .= $bits;
            if (++$p == $Length) $p = 0;
        }
        $insertpos = 0;$Length = strlen($bitsnum);
        for ($y = 39; $y < 69; $y++)
        {
            $a = 0;
            for ($r = 4; $r < 84; $r++)
            {
                $pos = (($y + $a) * $width + $r) * 4;
                $b = 1;
                while ($b < 4)
                {
                    if($insertpos < $Length)
                    {
                        $binaryData = base_convert(ord($pixels[$pos + $b]),10,2);
                        $need = 8 - strlen($binaryData);
                        for($o=0;$o<$need;$o++) $binaryData = "0".$binaryData;
                        $binaryData[7] = $bitsnum[$insertpos];
                        $pixels[$pos + $b] = chr(base_convert($binaryData,2,10));
                        $insertpos++;$b++;
                        continue;
                    }
                    break 3;
                }
                if ($r % 2 == 0) $a++;
            }
        }
       
    }
}
buildimg($pixels, $width, $height);
?>
People I've asked believe it's something to do with me not adding the rs4/banner to my client but whenever I do my progress drops even more - once I add: "hotelview.banner.url" : "{url}/swfs/rs4.php", my client does not even load but stays black
 

Evilsmoothie

Mad kung-fu artist
Feb 11, 2013
446
57
Because you've added it wrong.
"flash.client.url" : BaseUrl,
"flash.client.origin" : "popup"
"hotelview.banner.url" : " ",
That's wrong. It's supposed to be
"flash.client.url" : BaseUrl,
"flash.client.origin" : "popup",
"hotelview.banner.url" : " "
Edit; in your case, that's how it's supposed to be. With the , after "popup" and not the , after "hotelview.banner.url" : " "
 

Zymf

 
Aug 19, 2012
868
166
Because you've added it wrong.

That's wrong. It's supposed to be

Edit; in your case, that's how it's supposed to be. With the , after "popup" and not the , after "hotelview.banner.url" : " "
Oh yeah... Thanks.
Client is still black though :l
 

Evilsmoothie

Mad kung-fu artist
Feb 11, 2013
446
57
Your client is still wrong, mate. "hotelview.banner.url" : " ", is wrong. It's not supposed to have the comma at the end of it.
 

Zymf

 
Aug 19, 2012
868
166
Seems fine. Could you show me the config of the client? (The info in the revcms config :p)
The emulator config?
Code:
## uberEmulator System Configuration File
## Must be edited for the server to work

## MySQL Configuration
db.hostname=localhost
db.port=3306
db.username=root
db.password=@{A{WER}AWE{R}{}{}{}{}{
db.name=plus

## MySQL pooling setup (controls amount of connections)
db.pool.minsize=10
db.pool.maxsize=500

## Game TCP/IP Configuration
game.tcp.bindip=poo
game.tcp.port=30000
game.tcp.conlimit=11000
game.tcp.conperip=100
game.tcp.enablenagles=true

## MUS TCP/IP Configuration
mus.tcp.bindip=poo
mus.tcp.port=30001
mus.tcp.allowedaddr=localhost;127.0.0.1;23.92.93.9;23.92.93.9;

## Client configuration
client.ping.enabled=1
client.ping.interval=20000
client.maxrequests=300

food.url=http://localhost/game/gamecenter/gamecenter_basejump/
food.ip=127.0.0.1
food.port=3005
 

Zymf

 
Aug 19, 2012
868
166
No. The revcms config for the client. Like links to vars, texts, furnidata etc. app/managament/config.php
Oh, thought I already pasted the config.


Code:
<?php
if(!defined('IN_INDEX')) { die('Sorry, you cannot access this file.'); }
$_CONFIG['mysql']['connection_type'] = 'pconnect';
$_CONFIG['mysql']['hostname'] = 'localhost';
$_CONFIG['mysql']['username'] = 'root';
$_CONFIG['mysql']['password'] = '####';
$_CONFIG['mysql']['database'] = 'plus';
$_CONFIG['mysql']['port'] = '3306';
$_CONFIG['hotel']['server_ip'] = '192.95.35.248';
$_CONFIG['hotel']['server_port'] = '30009';
$_CONFIG['hotel']['url'] = 'http://basehabbo.pw';
$_CONFIG['hotel']['name'] = 'BaseHabbo';
$_CONFIG['hotel']['facebook'] = 'basehabbo';
$_CONFIG['hotel']['in_maint'] = false;
$_CONFIG['hotel']['motto'] = 'BaseHabbo Newbie';
$_CONFIG['hotel']['credits'] = 7500;
$_CONFIG['hotel']['pixels'] = 2500;
$_CONFIG['hotel']['look'] = 'hd-180-1.ch-210-66.lg-270-82.sh-290-91.hr-100';
$_CONFIG['hotel']['external_vars'] = 'http://basehabbo.pw/swfs/external_variables.txt'; //URL to your external vars
$_CONFIG['hotel']['external_texts'] = 'http://basehabbo.pw/swfs/external_flash_texts.txt'; //URL to your external texts
$_CONFIG['hotel']['product_data'] = 'http://basehabbo.pw/swfs/productdata.txt'; //URL to your productdata
$_CONFIG['hotel']['furni_data'] = 'http://basehabbo.pw/swfs/furnidata.txt'; //URL to your furnidata
$_CONFIG['hotel']['swf_folder'] = 'http://basehabbo.pw/swfs'; //URL to your SWF folder(does not end with a '/')
$_CONFIG['template']['style'] = 'Habbo';

?>
 

Users who are viewing this thread

Top