[PLEASE HELP] Silverlight EMU and RevCMS, Client not loading

LukeGrice00

New Member
Dec 17, 2014
5
1
Hi, I am using RevCMS and Silverlight EMU.

When I open the client it loads (screenshot) and then goes black.
You must be registered for see images attach


The EMU is showing the following error
You must be registered for see images attach


Please can someone help me?
 

LukeGrice00

New Member
Dec 17, 2014
5
1
Post your client.php
Code:
<!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" : "Pleese Wait {username} {hotelname} Is Loading.",
                            "hotelview.banner.url" : "http://localhost/game/rs4.php?1",
                "client.allow.cross.domain" : "1",
                "client.notify.cross.domain" : "1",
                "connection.info.host" : "127.0.0.1",
                "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" : "http://localhost/game/external_variables.txt",
            "external.texts.txt" : "http://localhost/game/external_flash_texts.txt",
            "productdata.load.url" : "http://localhost/game/productdata.txt",
            "furnidata.load.url" : "http://localhost/game/furnidata.txt",
                "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>
<!--Start of Zopim Live Chat Script-->
<script type="text/javascript">
window.$zopim||(function(d,s){var z=$zopim=function(c){z._.push(c)},$=z.s=
d.createElement(s),e=d.getElementsByTagName(s)[0];z.set=function(o){z.set.
_.push(o)};z._=[];z.set._=[];$.async=!0;$.setAttribute('charset','utf-8');
$.src='//v2.zopim.com/?1a50oRHglpuyQDGzKPYknAUGuGRAX3uN';z.t=+new Date;$.
type='text/javascript';e.parentNode.insertBefore($,e)})(document,'script');
</script>
<!--End of Zopim Live Chat Script-->
 
UPDATE:

This just happened, it gets to 87% before disconnecting and returning to an error page

You must be registered for see images attach
 

LukeGrice00

New Member
Dec 17, 2014
5
1
PHP:
"hotelview.banner.url" : "http://localhost/game/rs4.php?1",
Is correct?
Yes, it shows this code in the document
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);
?>
 

Users who are viewing this thread

Top