Menu
Forums
All threads
Latest threads
New posts
Trending threads
New posts
Search forums
Trending
What's new
New posts
New profile posts
Latest activity
Members
Current visitors
New profile posts
Search profile posts
Upgrades
Log in
Register
What's new
Search
Search
Search titles only
By:
All threads
Latest threads
New posts
Trending threads
New posts
Search forums
Menu
Log in
Register
Navigation
Install the app
Install
More options
Contact us
Close Menu
Forums
Server Development
Habbo Retros
Habbo Q&A
PlusEMU Client Problem
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
<blockquote data-quote="Zymf" data-source="post: 286060" data-attributes="member: 20865"><p>I'm using silverware (PlusEMU) and can't seem to get the client to work.</p><p>It loads up as supposed to then stays black and then disconnects after around 1 minute</p><p>[SPOILER]</p><p>[CODE]</p><p><!DOCTYPE html></p><p><!-- Can I help you lol? --></p><p></p><p><html lang="en"></p><p> <head></p><p> <meta http-equiv="content-type" content="text/html; charset=utf-8"></p><p> <title>{hotelName} - Client</title></p><p> </p><p> <link rel="stylesheet" href="{url}/app/tpl/skins/Habbo/styles/client.css" type="text/css"></p><p> </p><p> <script type="text/javascript" src="{url}/app/tpl/skins/Habbo/js/swfobject.js"></script></p><p> <script type="text/javascript"></p><p> var BaseUrl = "{swf_folder}";</p><p> var flashvars =</p><p> {</p><p> "client.starting" : "Please wait, {hotelName} is loading", </p><p> "client.allow.cross.domain" : "1", </p><p> "client.notify.cross.domain" : "0", </p><p> "connection.info.host" : "{server_ip}", </p><p> "connection.info.port" : "{server_port}", </p><p> "site.url" : "{url}", </p><p> "url.prefix" : "{url}", </p><p> "client.reload.url" : "{url}/client", </p><p> "client.fatal.error.url" : "{url}/me", </p><p> "client.connection.failed.url" : "{url}/me", </p><p> "external.variables.txt" : "{external_vars}", </p><p> "external.texts.txt" : "{external_texts}", </p><p> "productdata.load.url" : "{product_data}", </p><p> "furnidata.load.url" : "{furni_data}", </p><p> "use.sso.ticket" : "1", </p><p> "sso.ticket" : "{sso}", </p><p> "processlog.enabled" : "0", </p><p> "flash.client.url" : BaseUrl, </p><p> "flash.client.origin" : "popup"</p><p> "hotelview.banner.url" : "http://basehabbo.pw/swfs/rs4.php",</p><p> };</p><p> var params =</p><p> {</p><p> "base" : BaseUrl + "/",</p><p> "allowScriptAccess" : "always",</p><p> "menu" : "false" </p><p> };</p><p> swfobject.embedSWF(BaseUrl + "/Habbo.swf", "client", "100%", "100%", "10.0.0", "{swf_folder}/expressInstall.swf", flashvars, params, null);</p><p> </script></p><p> </head></p><p> </p><p> <body></p><p> </p><p> <div id="client"></div></p><p> </p><p> </body></p><p></html>[/CODE]</p><p>[CODE]</p><p><?php</p><p></p><p>/*</p><p> *****************</p><p> * @author capos *</p><p> *****************</p><p>*/</p><p></p><p>$width = 100;</p><p>$height = 114;</p><p></p><p>function buildimg($bytes, $width, $height)</p><p>{</p><p> $img=imagecreatetruecolor($width, $height);imagealphablending($img, false);imagesavealpha($img, true);$x=0;$y=0;</p><p> $colors=unpack("N*", $bytes);</p><p> foreach($colors as $color)</p><p> {</p><p> imagesetpixel($img, $x, $y, (0x7f-($color>>25)<<24)|($color&0xffffff));</p><p> if(++$x==$width)</p><p> {$x=0;$y++;}</p><p> }</p><p> header('Content-Type: image/png');</p><p> imagepng($img);</p><p>}</p><p></p><p>$pixels = file_get_contents('./banner.txt'); // the banner pixels</p><p></p><p>if($_GET)</p><p>{</p><p> $token = trim($_GET["token"]);</p><p> if(strlen($token) >= 10)</p><p> { </p><p> // Stuff to connect to mus and get banner data.. (prime and generator)</p><p> /*$fp = fsockopen("127.0.0.1", 30000, $errno, $errstr, 1);</p><p> if (!is_resource($fp))</p><p> {</p><p> exit("LE FAIL...");</p><p> }</p><p> </p><p> $packet = '0'.chr(1).$token;</p><p></p><p> fwrite($fp, $packet); </p><p> fflush($fp);</p><p> </p><p> stream_set_timeout($fp, 1);</p><p> $data = fgets($fp, 512);</p><p> list($prime, $generator) = explode(':', $data);</p><p> fclose($fp);*/</p><p> </p><p> $prime = '114670925920269957593299136150366957983142588366300079186349531';</p><p> $generator = '1589935137502239924254699078669119674538324391752663931735947';</p><p></p><p> $insert = chr(strlen($prime)).$prime.chr(strlen($generator)).$generator;</p><p> $Length = strlen($token);$Length2 = strlen($insert);</p><p> $p = 0;$bitsnum = "";</p><p> for($i=0;$i<$Length2;$i++)</p><p> {</p><p> $bits = base_convert(ord($insert[$i]) ^ ord($token[$p]),10,2);</p><p> $need = 8 - strlen($bits);</p><p> for($o=0;$o<$need;$o++)$bits = "0".$bits;</p><p> $bitsnum .= $bits;</p><p> if (++$p == $Length) $p = 0;</p><p> }</p><p> $insertpos = 0;$Length = strlen($bitsnum);</p><p> for ($y = 39; $y < 69; $y++)</p><p> {</p><p> $a = 0;</p><p> for ($r = 4; $r < 84; $r++)</p><p> {</p><p> $pos = (($y + $a) * $width + $r) * 4;</p><p> $b = 1;</p><p> while ($b < 4)</p><p> {</p><p> if($insertpos < $Length)</p><p> {</p><p> $binaryData = base_convert(ord($pixels[$pos + $b]),10,2);</p><p> $need = 8 - strlen($binaryData);</p><p> for($o=0;$o<$need;$o++) $binaryData = "0".$binaryData;</p><p> $binaryData[7] = $bitsnum[$insertpos];</p><p> $pixels[$pos + $b] = chr(base_convert($binaryData,2,10));</p><p> $insertpos++;$b++;</p><p> continue;</p><p> }</p><p> break 3;</p><p> }</p><p> if ($r % 2 == 0) $a++;</p><p> }</p><p> }</p><p> </p><p> }</p><p>}</p><p>buildimg($pixels, $width, $height);</p><p>?>[/CODE]</p><p>[/SPOILER]</p><p>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</p></blockquote><p></p>
[QUOTE="Zymf, post: 286060, member: 20865"] 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 [SPOILER] [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] [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); ?>[/CODE] [/SPOILER] 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 [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
Server Development
Habbo Retros
Habbo Q&A
PlusEMU Client Problem
Top