Stuck at 76% from outside of the server PC

Status
Not open for further replies.

Zlimon

Member
Aug 3, 2015
76
5
Hello,
I am having a stuck at 76% client loading problem. However, I can connect to the client and play the game normally on the server PC I am both playing the game on, and hosting. I am using XAMPP with PlusEmu + SWF's downloaded from Sledmore.

The problem is other people can't connect to the client, both on external networks and internal networks.

I can upload server files here if necessary.

This is the server PC:
D2Etdtl.png

And this is another pc on the same network being stuck in this loading screen:
5pHIaed.png
 

Joe

Well-Known Member
Jun 10, 2012
4,090
1,918
I'm pretty sure it has something to do with running it from your home PC. This is why a lot of people used to use Hamachi, so people could actually access their retros. All I know about this stuff is port forwarding, since other people can view the website then it's got something to do with allowing connections into the emulator from outside the original PC. Maybe it's got something to do with your emu config or maybe even client.php config, can you post those?
 

gtabh

New Member
Sep 9, 2012
12
3
Some providers don't allow port forwarding, even though you have enabled it in your router settings.
I have had the same problem because we're using the internet we get from our company.
Can you access it from other computers on the same network?
 

Zlimon

Member
Aug 3, 2015
76
5
I'm pretty sure it has something to do with running it from your home PC. This is why a lot of people used to use Hamachi, so people could actually access their retros. All I know about this stuff is port forwarding, since other people can view the website then it's got something to do with allowing connections into the emulator from outside the original PC. Maybe it's got something to do with your emu config or maybe even client.php config, can you post those?

client.php:
Code:
<!DOCTYPE html>
<html lang="en">
    <head>
        <link rel="shortcut icon" href="{url}/app/tpl/skins/{skin}/images/favicon.ico" type="image/vnd.microsoft.icon"/>
        <meta http-equiv="content-type" content="text/html; charset=utf-8">
        <title>{hotelName} Hotel</title>
     
        <link rel="stylesheet" href="{url}/app/tpl/skins/Custom-Habbo/styles/client.css" type="text/css">
     
        <script type="text/javascript" src="{url}/app/tpl/skins/Custom-Habbo/js/swfobject.js"></script>
        <script type="text/javascript">
            var BaseUrl = "{url}/swfs/gordon/PRODUCTION-201604132204-637539863/";
            var flashvars =
            {
                "client.allow.cross.domain" : "1",
                "client.notify.cross.domain" : "0",          
                "connection.info.host" : "127.0.0.1",
                "connection.info.port" : "30000",
                "site.url" : "{url}",
                "url.prefix" : "{url}",
                "client.reload.url" : "{url}/disconnected",
                "client.fatal.error.url" : "{url}/disconnected",
                "client.connection.failed.url" : "{url}/disconnected",
                "external.variables.txt" : "{url}/swfs/gamedata/external_variables.txt",
                "external.texts.txt" : "{url}/swfs/gamedata/external_flash_texts.txt",
                "external.override.texts.txt" : "{url}/swfs/gamedata/override/external_flash_override_texts.txt",
                "external.override.variables.txt" : "{url}/swfs/gamedata/override/external_override_variables.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",
                "use.sso.ticket" : "1",
                "sso.ticket" : "{sso}",
                "client.starting" : "Please wait! {hotelName} is starting up.",          
                "processlog.enabled" : "0",
                "flash.client.url" : BaseUrl,
                "client.starting.revolving" : "Halloen du!/Velkommen til Habski Hotel!/Hent gjerne noe å drikke mens du venter./",
                "flash.client.origin" : "popup"      
            };
            var params =
            {
                "base" : BaseUrl + "/",
                "allowScriptAccess" : "always",
                "menu" : "false"            
            };
            swfobject.embedSWF(BaseUrl + "/Habbo.swf", "client", "100%", "100%", "10.0.0", "{url}/swfs/gordon/PRODUCTION-201604132204-637539863/expressInstall.swf", flashvars, params, null);
        </script>
    </head>
 
    <body>
 
        <div id="client"></div>
<style type="text/css">
.menu-spacefm {
    position:fixed;
    bottom:48px;
    right:180px;
    z-index:1005!important;
    color:#FFF;
    cursor:pointer;
    background-color: #10100d;
    width: 100px;
    height: 28px;
    border-radius: 5px 5px 0px 0px;
    border: 2px solid #201e19;border-bottom: 0px;
}.menu-spacefm-second {
    position:fixed;
    bottom:48px;
    right:15px;
    z-index:1005!important;
    color:#FFF;
    background-color: #10100d;
    width: 260px;
    height: auto;
    border-radius: 5px 5px 0px 0px;
    border: 2px solid #201e19;
    display: none;
    border-bottom: 0px;
}
.menu-spacefm-third {
    position:fixed;
    bottom:142px;
    right:15px;
    z-index:1005!important;
    color:#FFF;
    background-color: #2E2E2C;
    width: 260px;
    height: auto;
    border-radius: 5px 5px 5px 5px;
    border: 2px solid #201e19;
    display: none;
}
.content {
    padding-top: 5px;
    padding-left: 4px;
    background-color: #2E2E2C;
    text-align: left;
}
.arrow-up {
    width: 0;
    height: 0;
    border-left: 7px solid transparent;
    border-right: 7px solid transparent;
    border-bottom: 7px solid #fff;
    display: inline-block;
    background-color: #2E2E2C;
}
.arrow-down {
    width: 0;
    height: 0;
    border-left: 7px solid transparent;
    border-right: 7px solid transparent;
    border-top: 7px solid #fff;
    display: inline-block;
    background-color: #2E2E2C;
}
.img {
    background: url({url}/app/tpl/skins/martin/styling/images/logo.gif);
    background-repeat: no-repeat;
    width: 153px;
    height: 34px;
    cursor: pointer;
}
#spacefmclose {cursor: pointer;background-color: #2E2E2C;}
#shoutlijn {background: #2E2E2C;}

/*/ dit hoeft niet op spacehotel.co /*/
*{background: #000;}
</style>




     
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.1/jquery.min.js"></script>
<script type="text/javascript">
/*/ Created by Sam aka Xieters /*/
$(document).ready(function() {$("#menu_closed").click(function(){$(this).fadeOut("fast");$("#menu_opened").fadeIn("fast"); });
$("#click").click(function(){$("#menu_opened").fadeOut("fast");$("#open_spacefm").fadeOut("fast");$("#menu_closed").fadeIn("fast");});
$("#spacefmlogo").click(function(){$("#open_spacefm").fadeIn("fast");});
$("#spacefmclose").click(function(){$("#open_spacefm").fadeOut("fast");});});
</script>
    </body>
</html>

CMS config
Code:
<?php
if(!defined('IN_INDEX')) { die('Sorry, you cannot access this file.'); }
#Please fill this all out.

#NOTE: To set up TheHabbos.ORG's API go to wwwroot/mysite/thehabbos_api for IIS, OR, htdocs/thehabbos_api for XAMPP and others.

/*
*
*    MySQL management
*
*/

$_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'] = 'mysql484'; //MySQL password

$_CONFIG['mysql']['database'] = 'habski'; //MySQL database

$_CONFIG['mysql']['port'] = '3306'; //MySQL's port

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

$_CONFIG['hotel']['server_ip'] = '84.210.72.152'; //IP of VPS/DEDI/etc

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

$_CONFIG['hotel']['name'] = 'Habski'; // Hotel's name

$_CONFIG['hotel']['desc'] = 'Velkommen til Habski Hotel'; //Hotel's description

$_CONFIG['hotel']['email'] = '[email protected]'; //Where the help queries from users are emailed to.@Priv skin

$_CONFIG['hotel']['in_maint'] = false; //False if hotel is NOT in maintenance. True if hotel IS in maintenance

$_CONFIG['hotel']['motto'] = 'Jeg er ny på ' . $_CONFIG['hotel']['name']; //Default motto users will register with.

$_CONFIG['hotel']['credits'] = 50000; //Default number of credits users will register with.

$_CONFIG['hotel']['pixels'] = 10000; //Default number of pixels users will register with.

$_CONFIG['hotel']['figure'] = 'hd-180-2.hr-828-31.ea-3196-62.ch-255-1415.lg-3333-110.sh-305-62'; //Default figure users will register with.

$_CONFIG['hotel']['web_build'] = '63_1dc60c6d6ea6e089c6893ab4e0541ee0/527'; //Web_Build

$_CONFIG['hotel']['external_vars'] = 'http://84.210.72.152/swfs/gamedata/external_variables.txt'; //URL to your external vars

$_CONFIG['hotel']['external_texts'] = 'http://84.210.72.152/swfs/gamedata/external_flash_texts.txt'; //URL to your external texts

$_CONFIG['hotel']['product_data'] = 'http://84.210.72.152/swfs/gamedata/productdata.txt'; //URL to your productdata

$_CONFIG['hotel']['furni_data'] = 'http://84.210.72.152/swfs/gamedata/furnidata.xml'; //URL to your furnidata

$_CONFIG['hotel']['swf_folder'] = 'http://84.210.72.152/swfs'; //URL to your SWF folder(does not end with a '/')

/*
*
*    Templating management - Pick one of our default styles or make yours by following our examples!
*
*/

#RevCMS has 2 default styles, 'Mango' by dannyy94 and 'Priv' by joopie - Others styles are to come, such as RastaLulz's ProCMS style and Nominal's PhoenixCMS 4.0 style.

$_CONFIG['template']['style'] = 'Mango';

/*
*
*    Other topsites.. thing
*
*/

$_CONFIG['thehabbos']['username'] = 'Kryptos';
$_CONFIG['retro_top']['user'] = 'Kryptos';

/*
*
*    Recaptcha management - Fill the information below if you have one, else leave it like that and don't worry, be happy.
*
*/

$_CONFIG['recaptcha']['priv_key'] = '6LcZ58USAAAAABSV5px9XZlzvIPaBOGA6rQP2G43';
$_CONFIG['recaptcha']['pub_key'] = '6LcZ58USAAAAAAQ6kquItHl4JuTBWs-5cSKzh6DD';


/*
*
*    Social Networking stuff
*
*/

$_CONFIG['social']['twitter'] = 'TwitterAccount'; //Hotel's Twitter account

$_CONFIG['social']['facebook'] = 'FacebookAccount'; //Hotel's Facebook account

?>

EMU config
Code:
## uberEmulator System Configuration File
## Must be edited for the server to work

## MySQL Configuration
db.hostname=127.0.0.1
db.port=3306
db.username=root
db.password=mysql484
db.name=habski

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

## Game TCP/IP Configuration
game.tcp.bindip=127.0.0.1
game.tcp.port=30000
game.tcp.conlimit=100000
game.tcp.conperip=2
game.tcp.enablenagles=true

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

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

Joe

Well-Known Member
Jun 10, 2012
4,090
1,918
"connection.info.host" : "127.0.0.1",
I'm pretty sure this is why. It's set to your local machine only. When you port forward you have to allow people from the IP address to connect, try changing 127.0.0.1 to your IP address or even local IP address 192.168.X.X

Same in the emulator config settings, although it should work fine over connecting to the database (I think). I haven't done this is a long time I'd just buy a cheap server, it's easier, faster and always online.
 

Zlimon

Member
Aug 3, 2015
76
5
Some providers don't allow port forwarding, even though you have enabled it in your router settings.
I have had the same problem because we're using the internet we get from our company.
Can you access it from other computers on the same network?
I am able to connect to the website from computers both on my network and outside my network, but I can only join the client from the same pc I am hosting the server on... I can not join the client on a computer on the same network either
 

Joe

Well-Known Member
Jun 10, 2012
4,090
1,918
I am able to connect to the website from computers both on my network and outside my network, but I can only join the client from the same pc I am hosting the server on... I can not join the client on a computer on the same network either
Yes because the client/emulator will only allow a connection from 127.0.0.1 (your computer where the emulator is open). Maybe I'm wrong, all I remember is after port forwarding I had to enter my IP address instead.
 

Zlimon

Member
Aug 3, 2015
76
5
Yes because the client/emulator will only allow a connection from 127.0.0.1 (your computer where the emulator is open). Maybe I'm wrong, all I remember is after port forwarding I had to enter my IP address instead.
I edited the client.php, to my local ip (192.168.1.104) and now I am stuck on the 76% loading screen on the server pc as well...
 

Joe

Well-Known Member
Jun 10, 2012
4,090
1,918
I'm talking 7 years ago, try entering your actual IP address since you've got it entered to 127.0.0.1 in your emulator config too maybe that's why. All I'm suggesting is you play around with it.

UPDATED: Looking at your screenshots that's not actually how you port forward, is it? Try Googling around, it was a lot different back then, you had to login to your router to open the ports.
 

Zlimon

Member
Aug 3, 2015
76
5
I'm talking 7 years ago, try entering your actual IP address since you've got it entered to 127.0.0.1 in your emulator config too maybe that's why. All I'm suggesting is you play around with it.

UPDATED: Looking at your screenshots that's not actually how you port forward, is it? Try Googling around, it was a lot different back then, you had to login to your router to open the ports.
I am pretty sure this is the correct way as anyone can access the website... I have logged in to open the ports as well
 
The problems is, now i cant connect to the client on the same pc either, even when i reverted the ip to 127.0.0.1...
 

Zlimon

Member
Aug 3, 2015
76
5
Just revert all changes, if that didn't work then I have no idea. I'm used to working from a VPS.
Hehe funny thing... I changed all the ip's to 127.0.0.1 and the client is still stuck at 76%... Maybe its the swf's thats something wrong with? Strange thing that it worked yesterday for me, but wont today

Just a checklist of where i edit my ip's:
config.php (cms)
config.ini (emu)
client.php
external_variables.txt
external_override_variables.txt

Something i have forgotten?
 
After doing a complete check of every ip and ports i managed to fix the issue. I think in the beginning it was because i had 127.0.0.1 in the client.php

Otherwise, Thank you all for your help :)
 
  • Like
Reactions: Joe
Status
Not open for further replies.

Users who are viewing this thread

Top