AstroRP SWFs

Jan 7, 2016
194
15
Hello again, having an issue with my AstroRP ("Yes I've looked on devbest, Google, edited everything, changed client ECT ECT but I don't think I have the right ones as is auto redirects me(he has multiple sets) so it loads and the hotel notices but it does not fully load( as it goes to 100% and stays black) and it's for r63b
 

Xuxu

Member
Nov 21, 2016
295
59
Hello again, having an issue with my AstroRP ("Yes I've looked on devbest, Google, edited everything, changed client ECT ECT but I don't think I have the right ones as is auto redirects me(he has multiple sets) so it loads and the hotel notices but it does not fully load( as it goes to 100% and stays black) and it's for r63b
thats weird, does your emu receive the connection or have any errors? see if google console has any errors that may help. its either your swfs or client.php im sure. could you post your client.php if possible? i remember sometimes my client gave me a redirect to /me when i used certain client.phps but when i used a working one it fixed.
 
Last edited:
Jan 7, 2016
194
15
My emu receive a connection but no errors, 100% loads and I've had the same problem, when I'm home I'll send via
 
Code:
<!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>DuskRP - Client</title>

<script type="text/javascript">
var andSoItBegins = (new Date()).getTime();
</script>
<link rel="shortcut icon" href="{url}/fluxweb/v2/images/favicon.ico" type="image/vnd.microsoft.icon" />
<meta name="csrf-token" content="a68e16da32"/>
<!--<script type="text/javascript" src="{url}/fluxweb/js/snow.js"></script>-->
<link rel="stylesheet" href="{url}/fluxweb/static/styles/common.css" type="text/css" />


<link href='http://fonts.googleapis.com/css?family=Ubuntu:400,700,400italic,700italic|Ubuntu+Medium' rel='stylesheet' type='text/css'>



<style>

body {
  font-family: 'Ubuntu', sans-serif;
  width:960px;
  overflow: hidden;
  width: 100%;
  height: 100%;
}

p{
  color:#525252;
  font-size:12px;
}

.skillbar {
    position:relative;
    display:block;
    margin-bottom:15px;
    width:70%;
    background:#eee;
    height:30px;
    border-radius:3px;
    overflow:hidden;
    -moz-border-radius:3px;
    -webkit-border-radius:3px;
    -webkit-transition:0.4s linear;
    -moz-transition:0.4s linear;
    -ms-transition:0.4s linear;
    -o-transition:0.4s linear;
    transition:0.4s linear;
    -webkit-transition-property:width, background-color;
    -moz-transition-property:width, background-color;
    -ms-transition-property:width, background-color;
    -o-transition-property:width, background-color;
    transition-property:width, background-color;
}

.skillbar-title {
    position:absolute;
    top:0;
    left:0;
    width:80px;
    font-weight:bold;
    font-size:13px;
    color:#ffffff;
    background:#6adcfa;
    -webkit-border-top-left-radius:3px;
    -webkit-border-bottom-left-radius:4px;
    -moz-border-radius-topleft:3px;
    -moz-border-radius-bottomleft:3px;
    border-top-left-radius:3px;
    border-bottom-left-radius:3px;
}

.skillbar-title span {
    display:block;
    background:rgba(0, 0, 0, 0.1);
    padding:0 20px;
    height:30px;
    line-height:30px;
    -webkit-border-top-left-radius:3px;
    -webkit-border-bottom-left-radius:3px;
    -moz-border-radius-topleft:3px;
    -moz-border-radius-bottomleft:3px;
    border-top-left-radius:3px;
    border-bottom-left-radius:3px;
}

.client-overlay {
    z-index: 99999;
    position: absolute;
    top: 5px;
    left: 5px;
    overflow: auto;
    min-width: 250px;
    pointer-events:none;
}

#client {
    z-index: -1;
    pointer-events: auto;
}

.skillbar-bar {
    height:30px;
    width:0px;
    background:#6adcfa;
    border-radius:3px;
    -moz-border-radius:3px;
    -webkit-border-radius:3px;
}

.skill-bar-percent {
    position:absolute;
    right:10px;
    top:0;
    font-size:11px;
    height:35px;
    line-height:35px;
    color:#ffffff;
    color:rgba(0, 0, 0, 0.4);
}
.skill-bar-percent{
    color: black;
}
</style>

<script type="text/javascript">
document.habboLoggedIn = true;
var habboName = "{username}";
var habboId = "{userid}";
var facebookUser = false;
var habboReqPath = "";
var habboStaticFilePath = "{url}/web-gallery";
var habboImagerUrl = "{url}/habbo-imaging/";
var habboPartner = "";
var habboDefaultClientPopupUrl = "{url}/client";
window.name = "13574bb849eaa68aba57af6b14a5477d5cbffc9c";
if (typeof HabboClient != "undefined") {
    HabboClient.windowName = "13574bb849eaa68aba57af6b14a5477d5cbffc9c";
    HabboClient.maximizeWindow = true;
}


</script>


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

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

<link rel="stylesheet" href="{url}/fluxweb/static/styles/habboflashclient.css" type="text/css" />
<script src="{url}/fluxweb/static/js/habboflashclient.js" type="text/javascript"></script>

<script type="text/javascript">
var BaseUrl = "{url}/swfs/gordon/PRODUCTION-201510261212-858675875";
var flashvars = {
"client.allow.cross.domain" : "0",
"client.notify.cross.domain" : "1",
"connection.info.host" : "{server_ip}",
"connection.info.port" : "4000",
"site.url" : "{url}",
"url.prefix" : "{url}",
"client.reload.url" : "{url}/client",
"client.fatal.error.url" : "{url}/client",
"client.connection.failed.url" : "{url}/client",
"logout.url" : "{url}/me",
"logout.disconnect.url" : "{url}/client",
"external.variables.txt" : "{URL}/swfs/gamedata/external_variables.txt",
"external.texts.txt" : "{url}/swfs/gamedata/external_flash_texts.txt",
"external.figurepartlist.txt" : "{url}/swfs/gamedata/figuredata.xml",
"productdata.load.url" : "{url}/swfs/gamedata/productdata.txt",
"furnidata.load.url" : "{url}/swfs/gamedata/furnidata.xml",
"sso.ticket" : "{sso}",
"processlog.enabled" : "1",
"account_id" : "2",
"client.starting.revolving" : "Cleaning the streets.../Filling Garbage cans.../Spawning Hobo\'s../Turning on city lights.../Restocking Ammunation.../Rigging the Slot Machines...",
"flash.client.url" : "{url}/swfs/gordon/PRODUCTION-201510261212-858675875/",
"user.hash" : "df2cd7104536553afde9f7d66133d578eccb4606",
"has.identity" : "1",
"flash.client.origin" : "popup",
"nux.lobbies.enabled" : "false",
"country_code" : ""
};
var params =
{
"base" : BaseUrl + "/",
"allowScriptAccess" : "always",
"menu" : "false"
};
swfobject.embedSWF("{url}/swfs/gordon/PRODUCTION-201510261212-858675875/Habflux.swf", "client", "100%", "100%", "10.0.0", "{URL}/swfs/gordon/expressInstall.swf", flashvars, params, null);
</script>
</head>

<body>
<?php

    $k = mysql_fetch_assoc(mysql_query("SELECT * FROM rp_stats WHERE id = '" . $_SESSION['user']['id'] . "'"));
   
?>  
<div class="client-overlay">
<td style="padding-right: 30px; padding-top:5px;"><div class="skillbar clearfix " id="curhealth" data-percent="<?php echo (($k['curhealth'] >= 100) ? '100' : $k['curhealth']); ?>%">
        <div class="skillbar-title" style="background: #fa6e6e;"><span>Health</span></div>
        <div id="health" class="skillbar-bar" style="background: rgb(250, 110, 110);"></div>
        <div class="skill-bar-percent" id="curhealth-stat"><?php echo $k['curhealth']; ?>/<?php echo $k['maxhealth']; ?></div>
    </div></td> <!-- End Health Bar -->


    <td style="padding-right: 30px; padding-top:5px;"><div class="skillbar clearfix " id="energy" data-percent="<?php echo (($k['energy'] >= 100) ? '100' : $k['energy']); ?>%">
        <div class="skillbar-title" style="background: #88cd2a;"><span>Energy</span></div>
        <div class="skillbar-bar" style="background: rgb(136, 205, 42);"></div>
        <div class="skill-bar-percent" id="energy-stat"><?php echo $k['energy']; ?>/100</div>
    </div></td> <!-- End Energy Bar -->

    <td style="padding-right: 30px; padding-top:5px;"><div class="skillbar clearfix " id="hunger" data-percent="<?php echo (($k['hunger'] >= 100) ? '100' : $k['hunger']); ?>%">
        <div class="skillbar-title" style="background: #f7a53b;"><span>Hunger</span></div>
        <div class="skillbar-bar" style="background: rgb(247, 165, 59);"></div>
        <div class="skill-bar-percent" id="hunger-stat"><?php echo $k['hunger']; ?>/100</div>
    </div></td> <!-- End Hunger Bar -->

    <td style="padding-right: 30px; padding-top:5px;"><div class="skillbar clearfix " id="hygiene" data-percent="<?php echo (($k['hygiene'] >= 100) ? '100' : $k['hygiene']); ?>%">
        <div class="skillbar-title" style="background: #6adcfa;"><span>Hygiene</span></div>
        <div class="skillbar-bar" style="background: rgb(106, 220, 250);"></div>
        <div class="skill-bar-percent" id="hygiene-stat"><?php echo $k['hygiene']; ?>/100</div>
    </div></td> <!-- End Hygiene Bar -->
    </div></div>


<div id="client" class="flashclient" style="width:100%;min-height:100%;height:100%;"></div>

<div id="client-ui" style="position: absolute; top: 0; z-index: -5;">
    <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 red">
        <h2 class="newtitle">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>
    If you're on an iPad, iPhone or an Android device, you can get <a href="#">SkyRP for iOS</a> on the App Store or <a href="#" target="_blank">AnxRP for Android</a> on Google Play.</p>
                <p><a href="http://www.adobe.com/go/getflashplayer"><img src="http://playdusk.com/fluxweb/v2/images/get_flash_player.gif" alt="Get Adobe Flash player" /></a></p>
        </div>
    </div>
            </div>


</script>

<!-- JS -->
<script src="https://code.jquery.com/jquery.js"></script>

<script type="text/javascript">

function updateBars()
{
    jQuery('.skillbar').each(function(){
        jQuery(this).find('.skillbar-bar').animate({
            width:jQuery(this).attr('data-percent')
        },6000);
    });
}

jQuery(document).ready(function(){
    updateBars();
});

jQuery("#health").animate({
    width: "70%"
}, 10000 );

setInterval( function() {
    $.get("{url}/userstats", function(data, status){
       
        var userstats = jQuery.parseJSON( data );
       
        jQuery( '#curhealth' ).attr( 'data-percent', ( ( userstats.curhealth / userstats.maxhealth ) * 100 ) + '%' );
       
        jQuery( '#curhealth-stat' ).text( userstats.curhealth + "/" + userstats.maxhealth );
       
        jQuery( '#energy' ).attr( 'data-percent', userstats.energy + '%' );
        jQuery( '#energy-stat' ).text( userstats.energy + "/100" );
       
        jQuery( '#hunger' ).attr( 'data-percent', userstats.hunger + '%' );
        jQuery( '#hunger-stat' ).text( userstats.hunger + "/100" );
       
        jQuery( '#hygiene' ).attr( 'data-percent', userstats.hygiene + '%' );
        jQuery( '#hygiene-stat' ).text( userstats.hygiene + "/100" );
       
        updateBars();
    });
}, 10000 );


</script>
</body>
</html>
 

Xuxu

Member
Nov 21, 2016
295
59
did you edit the server ip? and isnt the port suppose to be 30000? or are you using a proxy? is PRODUCTION-201510261212-858675875 the production youre on? make sure all your files has the correct production. i also notice in the client.php your habbo.swf is called Habflux.swf? is that correct?
 
Jan 7, 2016
194
15
Changed port due to emulator running on same machine / VPS to 4000 and no I'm not using a proxy and yes the production part is the production I'm on and
Code:
<?php
if(!defined('IN_INDEX')) { die('Sorry, you cannot access this file.'); }

$_CONFIG['mysql']['connection_type'] = 'pconnect'; //Type of connection: It must be connect, or pconnect: if you want a persistent connection.
$_CONFIG['mysql']['hostname'] = 'localhost'; //MySQL host
$_CONFIG['mysql']['username'] = 'root'; //MySQL username
$_CONFIG['mysql']['password'] = 'mypassishere'; //MySQL password
$_CONFIG['mysql']['database'] = 'my database is here'; //MySQL database
$_CONFIG['mysql']['port'] = '3306'; //MySQL's port

/*
*
*    Hotel management  - All URLs do not end with an "/"
*
*/

$_CONFIG['hotel']['url'] = 'mylinkishere'; //Does not end with a "/"

$_CONFIG['hotel']['name'] = 'DuskRP';
$_CONFIG['hotel']['server_ip'] = 'myipishere';

$_CONFIG['hotel']['cdnurl'] = 'mycdnlinksihere';

$_CONFIG['hotel']['name'] = 'DuskRP';
$_CONFIG['hotel']['facebook'] = '';
$_CONFIG['hotel']['in_maint'] = false;
$_CONFIG['hotel']['motto'] = 'Civilian';
$_CONFIG['hotel']['credits'] = 10;
$_CONFIG['hotel']['pixels'] = 0;
$_CONFIG['hotel']['look'] = 'hd-180-1.ch-210-66.lg-270-82.sh-290-91.hr-100';
$_CONFIG['template']['style'] = 'Theme';
 
$_CONFIG['hotel']['online_text'] = 'Civilian(s) Online!';

?>
Unless FluxRP CMS is a broken config.php file and this is the issue but I'm pretty sure that shouldn't be.
 

Users who are viewing this thread

Top