Client Help - Going Public
Hello!
Currently, everything is working fine on my retro, and I can go on it, but no one else can.
I have portforwarded the ports 80, 3306, 3000, and 3001 (EMU runs on 3000 and 3001) and I have port checked them and they are working fine. (I have all set as TCP)
NOW HERE ARE MY CONFIGURATIONS:
I have the emu configuration.ini set as this:
Code:
## OTHER STUFF UP HERE ##
## Game TCP/IP Configurationgame.tcp.bindip=*myip*
game.tcp.port=3000
game.tcp.conlimit=11000
game.tcp.conperip=100
game.tcp.enablenagles=False
## MUS TCP/IP Configuration
mus.tcp.bindip=*myip*
mus.tcp.port=3001
mus.tcp.allowedaddr=*myip*
## OTHER STUFF DOWN HERE ##
That stuff should be all fine for going public, and I don't have those set as localhost, they currently work as my ACTUAL IP address.
Where the problems come in are in my client.
I currently have this set as config.php:
Code:
## OTHER STUFF UP HERE ##
$_CONFIG['hotel']['external_vars'] = 'http://localhost/swfs/external_variables.txt'; //External Vars [Don't edit]
$_CONFIG['hotel']['external_texts'] = 'http://localhost/swfs/external_flash_texts.txt'; //External Flash Texts [Don't edit]
$_CONFIG['hotel']['product_data'] = 'http://localhost/swfs/productdata.txt'; //Product Data [Don't edit]
$_CONFIG['hotel']['furni_data'] = 'http://localhost/swfs/furnidata.txt'; //Furni Data [Don't edit]
$_CONFIG['hotel']['swf_folder'] = 'http://localhost/swfs'; //SWF Folder [Don't edit]
## OTHER STUFF DOWN HERE ##
AND THIS SET FOR client.php
Code:
## OTHER STUFF UP HERE ##
var flashvars = { "client.allow.cross.domain" : "0",
"client.notify.cross.domain" : "1",
"connection.info.host" : "*myrealipaddress*",
"connection.info.port" : "3000",
"site.url" : "{url}/",
"url.prefix" : "{url}/",
"client.reload.url" : "{url}/client",
"client.fatal.error.url" : "{url}/disconnected",
"client.connection.failed.url" : "{url}/disconnected",
"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",
"account_id" : "1",
"client.starting" : "Please wait! {hotelName} is starting up",
"flash.client.url" : "http://localhost/swfs/",
"user.hash" : "31385693ae558a03d28fc720be6b41cb1ccfec02",
"has.identity" : "0",
"flash.client.origin" : "popup",
"token" : "{sso}"
};
var params = {
"base" : "http://localhost/swfs/",
"allowScriptAccess" : "always",
"menu" : "false"
};
if (!(HabbletLoader.needsFlashKbWorkaround())) {
params["wmode"] = "opaque";
}
var clientUrl = "http://localhost/swfs/habbo.swf";
## OTHER STUFF DOWN HERE ##
Everything is working good on my local machine, but in order to go public, I need to get my SWF's available for everyone which means the URL as my ACTUAL IP address- NOT localhost, but when I change it to my real IP address, it times out and won't connect to my emulator. What is wrong?
Re: Client Help - Going Public
Can you explain what actually happens when you try to go in the client, does it load? Does it give an error? Does it stay on hotelview? Or is the habbo.swf not loading?
Re: Client Help - Going Public
On your vars and your config, change localhost to your ip or domain :)
Re: Client Help - Going Public
Quote:
Originally Posted by
Bozzie
On your vars and your config, change localhost to your ip or domain :)
http://www.stellarnet.us/images/TFC_glasses_small.jpg
Quote:
"Everything is working good on my local machine, but in order to go public, I need to get my SWF's available for everyone which means the URL as my ACTUAL IP address- NOT localhost, but when I change it to my real IP address, it times out and won't connect to my emulator. What is wrong?"
Re: Client Help - Going Public
Yes, it loads, it loads the swf and everything in the client, but then it times out and doesn't connect to the emulator.
ps, it doesn't even load hotel view
Re: Client Help - Going Public
Shouldn't the emu ports be 30000 and 30001...
Re: Client Help - Going Public
That doesn't matter, they connect via localhost..
Re: Client Help - Going Public
I'm on ports 30000 and 30001 and works like a charm...
Re: Client Help - Going Public
Quote:
Originally Posted by
chadderbox
Yes, it loads, it loads the swf and everything in the client, but then it times out and doesn't connect to the emulator.
ps, it doesn't even load hotel view
Can you press F12 when the client loads and view the network tab, maybe it will give some errors that you'll have to fix. (when localhost is changed to your ip of course) :D
Re: Client Help - Going Public
Okay so no errors come up. It loads the SWF and texts/variables fine. It just won't connect to the emulator this way.
This is the only thing that happens in the emulator, then my browser times out:
http://i.cubeupload.com/hK2Egq.png
Re: Client Help - Going Public
Quote:
Originally Posted by
chadderbox
Okay so no errors come up. It loads the SWF and texts/variables fine. It just won't connect to the emulator this way.
This is the only thing that happens in the emulator, then my browser times out:
http://i.cubeupload.com/hK2Egq.png
So it actually is connecting, it's should be a swf problem then. Have you updated the content of your external_variables to your IP address?
Re: Client Help - Going Public
Try this:
changing banner.php to banner.png
Re: Client Help - Going Public
@BassHotel yes I have. I am also using one of the latest SWF's but I'll try to get some other ones.
@vikingboy This was already done on original swf package.
Re: Client Help - Going Public
Quote:
Originally Posted by
chadderbox
@BassHotel yes I have. I am also using one of the latest SWF's but I'll try to get some other ones.
@vikingboy This was already done on original swf package.
Maybe I'm going to ask a stupid question now, but have you also opened the necessary ports in your firewall?
Re: Client Help - Going Public
Yes, haha, I'm not a noob when it comes to that. I'm actually a network config'er'er lol. And yes, they're all stated to be open.
Re: Client Help - Going Public
What happens when the users or you enter the hotel?
Does it stay black?
Do they go to a hotel view but nothing else shows?
Do they go past the hotel view, and the only thing on the navigation bar is "Rooms, Me and Shop" (and shop doesnt work) but the background is still black?
Elaborate
Re: Client Help - Going Public
Quote:
Originally Posted by
vikingboy
Try this:
changing banner.php to banner.png
That fixes the adblocker problem
Re: Client Help - Going Public
@vikingboy
When I enter client (when all swfs are set to localhost) everything loads fine. But when I change it from localhost, to my IP, I can't get in and neither can anyone else. The client loads (the loading bar) and it gets to 100%, and then it just stays black until it times out.
I've already said this many times :/
Re: Client Help - Going Public
Quote:
Originally Posted by
Kudzo
Shouldn't the emu ports be 30000 and 30001...
No? They're just default ports that uberemu uses.