[HELP]R63b client error[HELP]

jappe

Member
Sep 16, 2011
65
3
Hi, when i start my client it loads fine. And at 85 procent it just stops,
External_variables


banner.php
Code:
<?php

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

    header("Expires: Tue, 03 Jul 2001 06:00:00 GMT");
    header("Last-Modified: " . gmdate("D, d M Y H:i:s") . " GMT");
    header("Cache-Control: no-store, no-cache, must-revalidate, max-age=0");
    header("Cache-Control: post-check=0, pre-check=0", false);
    header("Pragma: no-cache");

$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*", implode("",$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);
}

//if($_GET)
//{
    $token = trim($_GET["token"]);
    //if(strlen($token) >= 10)
    //{   
/**

        // Stuff to connect to mus and get banner data.. (prime and generator)
        $fp = fsockopen("25.178.234.51", 30001, $errno, $errstr, 1);
        if (!is_resource($fp))
        {
            exit("LE FAIL...");
        }
       
        $packet = 'setToken'.chr(1).$token;

        fwrite($fp, $packet);
        fflush($fp);
       
        stream_set_timeout($fp, 1);
        $data = fgets($fp, 512);
fclose($fp);

***/


$conexion = mysql_connect("localhost","root","hej123");
mysql_select_db("rp2", $conexion);
$result = mysql_fetch_assoc(mysql_query("SELECT bannerdata FROM server_status;",$conexion));
$data = $result['bannerdata'];

//$data="1342451846182550614618898458778670684120590689881624754130339:1135845477726102894817523431022206527949967456094879262187953";
        list($prime, $generator) = explode(':', $data);
       

        $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);
?>

Thankful for help!
Have a good weekend! :)
 

jappe

Member
Sep 16, 2011
65
3
Could you post your emulator config and your cms config, I want to check the ports their asking for
config.php (CMS)
Code:
<?php

$_CONFIG['default']['db']['hostname'] = "localhost";
$_CONFIG['default']['db']['username'] = "root";
$_CONFIG['default']['db']['password'] = "hej123";
$_CONFIG['default']['db']['dataname'] = "rp2";

$_CONFIG['default']['hotel']['name'] = "Bauze";
$_CONFIG['default']['hotel']['path'] = "http://".$_SERVER["SERVER_NAME"];

configuration.ini (Emulator)
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=hej123
db.name=rp2

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

## Game TCP/IP Configuration
game.tcp.bindip=127.0.0.1
game.tcp.port=30001
game.tcp.conlimit=11000
game.tcp.conperip=100
game.tcp.enablenagles=False

## MUS TCP/IP Configuration
mus.tcp.bindip=127.0.0.1
mus.tcp.port=30002
mus.tcp.allowedaddr=127.0.0.1

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

#IRC
irc.enabled=false
irc.server=irc.website-service.org
irc.port=6667
irc.user=USER CSharpBot 8 * :I'm a C# irc bot
irc.nick=[VG]Mordi
irc.channel=#habbovg_servermod
irc.password=rofl123

groups.enabled=true
auth.ssodisabled=false


#Says wether the users should receive pixels each X seconds, how much and when (When in seconds)
game.pixel.enabled=true
game.pixel.amount=100
game.pixel.time=600

#Says wether the users should receive pixels each X seconds, how much and when (When in seconds)
game.credits.enabled=true
game.credits.amount=1000
game.credits.time=600

game.login.credits.receiveamount=0
game.login.pixel.receiveamount=0

#Threading Main Loops.
#Esta opcion separa del MainGameLoop cada tarea a ejecutar en un proceso distinto.
SeparatedTasksInMainLoops.enabled=true


#Threading GameClientManager Loops.
#Esta opcion separa del GameClientManager.OnCycle las tareas de forma lógica para aumentar rendimiento.
SeparatedTasksInGameClientManager.enabled=false

#Baneo por spam
#Esta opción banea a los usuarios tras sucesivos intentos de flood.
spambans.enabled=false
spambans.limit=20

game.chatlog=1

rooms.loadbots=true
rooms.hospital=1
rooms.jail=3

## Timer Settings
timers.taxi.min=1
timers.taxi.max=30
timers.taxi.min.vip=1
timers.taxi.max.vip=30
timers.taxi.cost=5
timers.taxi.cost.vip=2
timers.taxi.vipitem=401

timers.logout.wait=30

bots.hospital.minhealth=80

gates.black.cost=5
 

jappe

Member
Sep 16, 2011
65
3
Sorry I meant client.php my bad :D Sorry

In this case, as it is a RP client does it call "Play.php"
Code:
<?php
include("global.php");

checklogin();

$ticket = generateRandomString();
mysql_query("DELETE FROM `user_tickets` WHERE `userid` = '".$_SESSION['user']['id']."';");
mysql_query("INSERT INTO `user_tickets` (`userid`, `sessionticket`, `ipaddress`) VALUES ('".$_SESSION['user']['id']."', '".$ticket."', '".$ip."');");
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
        "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en" xmlns:og="http://opengraphprotocol.org/schema/" xmlns:fb="http://www.facebook.com/2008/fbml">
<head>
    <meta http-equiv="content-type" content="text/html; charset=utf-8" />
    <title><?php echo $_PAGE['title']; ?> ~ Client</title>

<script type="text/javascript">
var andSoItBegins = (new Date()).getTime();
</script>
<link rel="shortcut icon" href="http://realityrp2.com/assets/web-gallery/v2/favicon.ico" type="image/vnd.microsoft.icon" />
<meta name="csrf-token" content="577e64702c"/>
<link rel="stylesheet" href="http://realityrp2.com/assets/web-gallery/static/styles/common.css" type="text/css" />
<script src="http://realityrp2.com/assets/web-gallery/static/js/libs2.js" type="text/javascript"></script>
<script src="http://realityrp2.com/assets/web-gallery/static/js/visual.js" type="text/javascript"></script>
<script src="http://realityrp2.com/assets/web-gallery/static/js/libs.js" type="text/javascript"></script>
<script src="http://realityrp2.com/assets/web-gallery/static/js/common.js" type="text/javascript"></script>

<script type="text/javascript">
var ad_keywords = "gender%3Am,age%3A19";
var ad_key_value = "kvage=19;kvgender=m;kvtags=";
</script>
<script type="text/javascript">
document.habboLoggedIn = true;
var habboName = "3535";
var habboId = 45227472;
var facebookUser = false;
var habboReqPath = "";
var habboStaticFilePath = "http://images.habbo.com/habboweb/63_1dc60c6d6ea6e089c6893ab4e0541ee0/1974/web-gallery";
var habboImagerUrl = "http://www.habbo.com/habbo-imaging/";
var habboPartner = "";
var habboDefaultClientPopupUrl = "http://www.habbo.com/client";
window.name = "97d9118628124c0319060d544524a011a050b9f4";
if (typeof HabboClient != "undefined") {
    HabboClient.windowName = "97d9118628124c0319060d544524a011a050b9f4";
    HabboClient.maximizeWindow = true;
}


</script>

<meta name="SKYPE_TOOLBAR" content="SKYPE_TOOLBAR_PARSER_COMPATIBLE" />

<meta property="fb:app_id" content="183096284873" />

<meta property="og:site_name" content="Habbo Hotel" />
<meta property="og:title" content="Habbo Hotel - " />
<meta property="og:url" content="http://www.habbo.com" />
<meta property="og:image" content="http://www.habbo.com/v2/images/facebook/app_habbo_hotel_image.gif" />
<meta property="og:locale" content="en_US" />

<noscript>
    <meta http-equiv="refresh" content="0;url=/client/nojs" />
</noscript>
<meta http-equiv="Pragma" content="no-cache, no-store" />
<meta http-equiv="Expires" content="-1" />
<meta http-equiv="Cache-Control" content="no-cache, no-store" />



<link rel="stylesheet" href="http://realityrp2.com/assets/web-gallery/styles/habboflashclient.css" type="text/css" />
<script src="http://realityrp2.com/assets/web-gallery/static/js/habboflashclient.js" type="text/javascript"></script>
<script type="text/javascript">
    FlashExternalInterface.loginLogEnabled = true;
   
    FlashExternalInterface.logLoginStep("web.view.start");
   
    if (top == self) {
        FlashHabboClient.cacheCheck();
    }
    var flashvars = {
            "client.allow.cross.domain" : "0",
            "client.notify.cross.domain" : "1",
            "connection.info.host" : "127.0.0.1",
            "connection.info.port" : "30001",
            "site.url" : "<?php echo $_CONFIG['hotel']['path']; ?>",
            "url.prefix" : "<?php echo $_CONFIG['hotel']['path']; ?>",
            "client.reload.url" : "<?php echo $_CONFIG['hotel']['path']; ?>/play.php",
            "client.fatal.error.url" : "<?php echo $_CONFIG['hotel']['path']; ?>/play.php",
            "client.connection.failed.url" : "<?php echo $_CONFIG['hotel']['path']; ?>/play.php",
            "external.variables.txt" : "<?php echo $_CONFIG['hotel']['path']; ?>/swf/external_variables.php",
            "external.texts.txt" : "<?php echo $_CONFIG['hotel']['path']; ?>/swf/external_flash_texts.php",
            "safechat.list.txt" : "<?php echo $_CONFIG['hotel']['path']; ?>/swf/safechat.php",
            "external.override.texts.txt" : "<?php echo $_CONFIG['hotel']['path']; ?>/swf/external_flash_override_texts.php",
            "external.override.variables.txt" : "http://www.habbo.com/gamedata/override/external_override_variables/10192454da39a3ee5e6b4b0d3255bfef95601890afd80709",
            "productdata.load.url" : "<?php echo $_CONFIG['hotel']['path']; ?>/swf/productdata.php",
            "furnidata.load.url" : "<?php echo $_CONFIG['hotel']['path']; ?>/swf/furnidata.php",
            "sso.ticket" : "<?php echo $ticket; ?>",
            "processlog.enabled" : "1",
            "account_id" : "45227472",
            "client.starting" : "Please wait! <?php echo $_CONFIG['hotel']['name']; ?> is starting up.",
            "flash.client.url" : "<?php echo $_CONFIG['hotel']['path']; ?>/swf/",
            "user.hash" : "<?php echo $ticket; ?>",
            "has.identity" : "1",
            "flash.client.origin" : "popup"
    };
    var params = {
        "base" : "<?php echo $_CONFIG['hotel']['path']; ?>/swf/",
        "allowScriptAccess" : "always",
        "menu" : "false"               
    };

        if (!(HabbletLoader.needsFlashKbWorkaround())) {
            params["wmode"] = "opaque";
        }

    FlashExternalInterface.signoutUrl = "<?php echo $_CONFIG['hotel']['path']; ?>/logout.php";

    var clientUrl = "<?php echo $_CONFIG['hotel']['path']; ?>/swf/Habbo.swf";
    swfobject.embedSWF(clientUrl, "flash-container", "100%", "100%", "10.1.0", "http://images.habbo.com/habboweb/63_1dc60c6d6ea6e089c6893ab4e0541ee0/1974/web-gallery/flash/expressInstall.swf", flashvars, params, null, FlashExternalInterface.embedSwfCallback);

    window.onbeforeunload = unloading;
    function unloading() {
        var clientObject;
        if (navigator.appName.indexOf("Microsoft") != -1) {
            clientObject = window["flash-container"];
        } else {
            clientObject = document["flash-container"];
        }
        try {
            clientObject.unloading();
        } catch (e) {}
    }
    window.onresize = function() {
        HabboClient.storeWindowSize();
    }.debounce(0.5);
</script>

<meta name="description" content="Check into the world's largest virtual hotel for FREE! Meet and make friends, play games, chat with others, create your avatar, design rooms and more..." />
<meta name="keywords" content="habbo hotel, virtual, world, social network, free, community, avatar, chat, online, teen, roleplaying, join, social, groups, forums, safe, play, games, online, friends, teens, rares, rare furni, collecting, create, collect, connect, furni, furniture, pets, room design, sharing, expression, badges, hangout, music, celebrity, celebrity visits, celebrities, mmo, mmorpg, massively multiplayer" />

<meta name="build" content="63-BUILD-FOR-PATCH-1458a - 20.12.2012 10:08 - com" />
</head>

<body id="client" class="flashclient">
<div id="overlay"></div>
<img src="http://images.habbo.com/habboweb/63_1dc60c6d6ea6e089c6893ab4e0541ee0/1974/web-gallery/v2/images/page_loader.gif" style="position:absolute; margin: -1500px;" />

<div id="overlay"></div>
<div id="client-ui" >
    <div id="flash-wrapper">
    <div id="flash-container">
        <div id="content" style="width: 400px; margin: 20px auto 0 auto; display: none">
<div class="cbb clearfix">
    <h2 class="title">Please update your Flash Player to the latest version.</h2>
    <div class="box-content">
            <p>You can install and download Adobe Flash Player here: <a href="http://get.adobe.com/flashplayer/">Install flash player</a>. More instructions for installation can be found here: <a href="http://www.adobe.com/products/flashplayer/productinfo/instructions/">More information</a></p>
            <p><a href="http://www.adobe.com/go/getflashplayer"><img src="http://images.habbo.com/habboweb/63_1dc60c6d6ea6e089c6893ab4e0541ee0/1974/web-gallery/v2/images/client/get_flash_player.gif" alt="Get Adobe Flash player" /></a></p>
    </div>
</div>
        </div>
        <script type="text/javascript">
            $('content').show();
        </script>
        <noscript>
            <div style="width: 400px; margin: 20px auto 0 auto; text-align: center">
                <p>If you are not automatically redirected, please <a href="/client/nojs">click here</a></p>
            </div>
        </noscript>
    </div>
    </div>
    <div id="content" class="client-content"></div>           
    <iframe id="game-content" class="hidden" src="about:blank"></iframe>
</div>
    <script type="text/javascript">
        RightClick.init("flash-wrapper", "flash-container");
        if (window.opener && window.opener != window && window.opener.location.href == "/") {
            window.opener.location.replace("/me");
        }
        $(document.body).addClassName("js");
          HabboClient.startPingListener();
        Pinger.start(true);
        HabboClient.resizeToFitScreenIfNeeded();
    </script>
<div id="fb-root"></div>
<script type="text/javascript">
    window.fbAsyncInit = function() {
        Cookie.erase("fbsr_183096284873");
        FB.init({appId: '183096284873', status: true, cookie: true, xfbml: true});
        $(document).fire("fbevents:scriptLoaded");

    };
    window.assistedLogin = function(FBobject, optresponse) {
       
        Cookie.erase("fbsr_183096284873");
        FBobject.init({appId: '183096284873', status: true, cookie: true, xfbml: true});

        permissions = 'user_birthday,email';
        defaultAction = function(response) {

            if (response.authResponse) {
                fbConnectUrl = "/facebook?connect=true";
                Cookie.erase("fbhb_val_183096284873");
                Cookie.set("fbhb_val_183096284873", response.authResponse.accessToken);
                Cookie.erase("fbhb_expr_183096284873");
                Cookie.set("fbhb_expr_183096284873", response.authResponse.expiresIn);
                window.location.replace(fbConnectUrl);
            }
        };

        if (typeof optresponse == 'undefined')
            FBobject.login(defaultAction, {scope:permissions});
        else
            FBobject.login(optresponse, {scope:permissions});

    };

    (function() {
        var e = document.createElement('script');
        e.async = true;
        e.src = 'https://connect.facebook.net/en_US/all.js';
        document.getElementById('fb-root').appendChild(e);
    }());
</script>



        <iframe name="logframe" src="/bc/logframe?" width="0" height="0" frameborder="0" scrolling="no" marginwidth="0" marginheight="0" style="position: absolute; top:0; left:0"></iframe>


<iframe name="conversion-tracking" src="/conversion_tracking_frame" width="0" height="0" frameborder="0" scrolling="no" marginwidth="0" marginheight="0" style="position: absolute; top:0; left:0"></iframe>

<script type="text/javascript">
    var ssa_json = {
            'applicationUserId': '45227472',
        'applicationKey': '2abb40ad',
        'onCampaignsReady': supersaverAdsOnCampaignsReady,
        'onCampaignOpen': supersaverAdsOnCampaignOpen,
        'onCampaignClose': supersaverAdsOnCampaignClose,
        'onCampaignCompleted': supersaverAdsOnCampaignCompleted,
        'pagination': false,
            'customCss': 'http://images.habbo.com/habboweb/63_1dc60c6d6ea6e089c6893ab4e0541ee0/1974/web-gallery/styles/supersonicads.css'
    };

    function supersaverAdsLog(message) {
        if ("console" in window && "log" in console) {
            console.log(message);
        }
    }

    function supersaverAdsCamapaignEngage() {
        supersaverAdsLog("supersaverAdsCamapaignEngage");
        SSA_CORE.BrandConnect.engage();

        var topBar = document.getElementById("ssaInterstitialTopBar");
        var innerHTML = topBar.innerHTML;
        topBar.innerHTML = "";

        var topBarInnerContainerLeft = document.createElement("div");
        topBarInnerContainerLeft.className = "ssaInterstitialTopBarInnerContainerLeft";

        var topBarInnerContainerRight = document.createElement("div");
        topBarInnerContainerRight.className = "ssaInterstitialTopBarInnerContainerRight";

        var closeButton = document.createElement("div");
        closeButton.className = "ssaTopBarCloseButton";
        closeButton.setAttribute("onClick", "SSA_CORE.close('ssaBrandConnect')");
        closeButton.innerHTML = "";

        var textDiv = document.createElement("span");
        textDiv.className = "ssaTopBarTextSpan";
        textDiv.innerHTML = innerHTML;

        topBarInnerContainerLeft.appendChild(closeButton);
        topBarInnerContainerLeft.appendChild(textDiv);

        topBar.appendChild(topBarInnerContainerRight);
        topBar.appendChild(topBarInnerContainerLeft);

        var bottomBar = document.getElementById("ssaInterstitialBottomBar");
        var bottomInnerContainerLeft = document.createElement("div");
        bottomInnerContainerLeft.className = "ssaBottomBarInnerLeft";
        var bottomInnerContainerRight = document.createElement("div");
        bottomInnerContainerRight.className = "ssaBottomBarInnerRight";

        bottomBar.appendChild(bottomInnerContainerRight);
        bottomBar.appendChild(bottomInnerContainerLeft);
    }

    function supersaverAdsOnCampaignsReady(offers) {
        if (typeof offers !== 'undefined' && offers.length) {
            supersaverAdsLog("supersaverAdsOnCampaignsReady offers: " + offers.length);
            for (var i = 0; i < offers.length; i++) {
                supersaverAdsLog(offers[i]);
            }
            FlashExternalInterface.clientElement.supersaverAdsOnCampaignsReady(offers.length.toString());
        } else {
            supersaverAdsLog("supersaverAdsOnCampaignsReady no offers!");
            FlashExternalInterface.clientElement.supersaverAdsOnCampaignsReady("0");
        }
    }

    function supersaverAdsOnCampaignOpen(offer) {
        supersaverAdsLog("supersaverAdsOnCampaignOpen");
        supersaverAdsLog(offer);
        FlashExternalInterface.clientElement.supersaverAdsOnCampaignOpen();
    }

    function supersaverAdsOnCampaignClose(offer) {
        supersaverAdsLog("supersaverAdsOnCampaignClose");
        supersaverAdsLog(offer);
        FlashExternalInterface.clientElement.supersaverAdsOnCampaignClose();
    }

    function supersaverAdsOnCampaignCompleted(offer) {
        supersaverAdsLog("supersaverAdsOnCampaignCompleted");
        supersaverAdsLog(offer);
        FlashExternalInterface.clientElement.supersaverAdsOnCampaignCompleted();
    }

    function supersaverAdsLoadCampaigns() {
        // We need the client to have wmode=opaque or wmode=transparent for video offers
        if (HabbletLoader.needsFlashKbWorkaround()) {
            return;
        }
        supersaverAdsLog("loading supersaver script");
        var g = document.createElement('script');
        var s = document.getElementsByTagName('script')[0];
        g.async = true;
        g.src = '//jsd.supersonicads.com/inlineDelivery/delivery.compressed.gz.js';
        s.parentNode.insertBefore(g,s);
    }
</script>



<script type="text/javascript">
  var _gaq = _gaq || [];
  _gaq.push(['_setAccount', 'UA-448325-2']);
  _gaq.push(['_trackPageview']);
  (function() {
    var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
    ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
    var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
  })();
</script>
<script type="text/javascript">
    HabboView.run();
</script>

</body>
</html>
 

Users who are viewing this thread

Top