Problema L'hotel non parte :(

Habbollo

Utente Medio
Autore del topic
28 Luglio 2010
126
0
Miglior risposta
0
Configurazione cms.
Inc.config:
<?php
/*=======================================================================
| UberCMS - Advanced Website and Content Management System for uberEmu
| #######################################################################
| Copyright (c) 2010, Roy 'Meth0d'
|
Perfavore, Entra oppure Registrati per vedere i Link!

| #######################################################################
| This program is free software: you can redistribute it and/or modify
| it under the terms of the GNU General Public License as published by
| the Free Software Foundation, either version 3 of the License, or
| (at your option) any later version.
| #######################################################################
| This program is distributed in the hope that it will be useful,
| but WITHOUT ANY WARRANTY; without even the implied warranty of
| MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
| GNU General Public License for more details.
\======================================================================*/

$config['Site']['www'] = "http://hibbos.zapto.org";
$config['Site']['hash_secret'] = "xCg532%@%gdvf^5DGaa6&*rFTfg^FD4\$OIFThrR_gh(ugf*/";

$config['MySQL']['hostname'] = "localhost";
$config['MySQL']['username'] = "root";
$config['MySQL']['password'] = "cia***";
$config['MySQL']['database'] = "Uber_DB";

$config['MUS']['enabled'] = false;
$config['MUS']['ip'] = "79.43.87.**";
$config['MUS']['port'] = "21";

?>

Class.DB.Mysql
<?php
/*=======================================================================
| UberCMS - Advanced Website and Content Management System for uberEmu
| #######################################################################
| Copyright (c) 2010, Roy 'Meth0d'
|
Perfavore, Entra oppure Registrati per vedere i Link!

| #######################################################################
| This program is free software: you can redistribute it and/or modify
| it under the terms of the GNU General Public License as published by
| the Free Software Foundation, either version 3 of the License, or
| (at your option) any later version.
| #######################################################################
| This program is distributed in the hope that it will be useful,
| but WITHOUT ANY WARRANTY; without even the implied warranty of
| MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
| GNU General Public License for more details.
\======================================================================*/

class MySQL
{
private $connected = false;
private $hostname = "localhost";
private $username = "root";
private $password = "cia***";
private $database = "Uber_DB";
private $link;

public function MySQL($host, $user, $pass, $db)
{
$this->connected = false;
$this->hostname = $host;
$this->username = $user;
$this->password = $pass;
$this->database = $db;
}

public function IsConnected()
{
if ($this->connected)
{
return true;
}

return false;
}

public function Connect()
{
$this->link = mysql_connect($this->hostname, $this->username, $this->password) or $this->error(mysql_error());
mysql_select_db($this->database, $this->link) or $this->error(mysql_error());

$this->connected = true;
}

public function Disconnect()
{
if($this->connected)
{
@mYsQL_close($this->link) or $this->error("could not close conn");
$this->connected = false;
}
}

public function DoQuery($query)
{
$resultset = @mYsQL_query($query, $this->link) or $this->error(mysql_error());
return $resultset;
}

public function Evaluate($resultset)
{
return @mYsQL_result($resultset, 0);
}

public function Error($errorString)
{
global $core;

$core->systemError('Database Error', $errorString);
}

public function __destruct()
{
$this->disconnect();
}
}

?>

Ora passiamo alla configurazione del server che uso Xabbo Emu di Keep-Out.

## 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=cia***
db.name=Uber_DB

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

## Game TCP/IP Configuration
game.tcp.bindip=79.43.87.26
game.tcp.port=90
game.tcp.conlimit=5000

## MUS TCP/IP Configuration
mus.tcp.bindip=79.43.87.26
mus.tcp.port=30001
mus.tcp.allowedaddr=79.43.87.26

## Client configuration
client.ping.enabled=1
client.ping.interval=30000

E il server parte benissimo e mi dice e pronto alle connessioni.

Ora passiamo alla page-client.
<body id="client" class="flashclient">

<script type="text/javascript">
var habboDefaultClientPopupUrl = "%www%/client";
</script>

<noscript>
<meta http-equiv="refresh" content="0;url=%www%/client/nojs" />
</noscript>

<script type="text/javascript">
FlashExternalInterface.loginLogEnabled = true;

FlashExternalInterface.logLoginStep("web.view.star t");

if (top == self) {
FlashHabboClient.cacheCheck();
}
var flashvars = {
"client.allow.cross.domain" : "1",
"client.notify.cross.domain" : "0",
"connection.info.host" : "79.43.87.***",
"connection.info.port" : "90",
"site.url" : "%www%",
"url.prefix" : "%www%",
"client.reload.url" : "%www%/account/reauthenticate?page=/flash_client",
"client.fatal.error.url" : "%www%/flash_client_error",
"client.connection.failed.url" : "%www%/client_connection_failed",
"external.hash" : "",
"external.variables.txt" : "http://www.xabbo.netsons.org/admin/swf/gamedata/lulz.txt",
"external.texts.txt" : "http://www.xabbo.netsons.org/admin/swf/gamedata/120211.txt",
"productdata.load.url" : "http://www.xabbo.netsons.org/admin/swf/gamedata/productdata.txt",
"furnidata.load.url" : "http://www.xabbo.netsons.org/admin/swf/gamedata/furnidata.txt",

"use.sso.ticket" : "1",
<?php

if ($forwardType > 0)
{
echo ' "forward.type" : "' . $forwardType . '",' . LB;
echo ' "forward.id" : "' . $forwardId . '",' . LB;
}

?>
"sso.ticket" : "%sso_ticket%",
"processlog.enabled" : "0",
"account_id" : "0",
"client.starting" : "Attendi l'Hotel sta caricando!",
"flash.client.url" : "http://www.xabbo.netsons.org/admin/swf/gordon/RELEASE63-30422-30421-201012031025_ae9f99b7038dab3670d4b6ab7c9bf83b/",
"user.hash" : "",
"facebook.user" : "0",
"has.identity" : "0",
"flash.client.origin" : "popup"
};
var params = {
"base" : "http://www.xabbo.netsons.org/admin/swf/gordon/RELEASE63-30422-30421-201012031025_ae9f99b7038dab3670d4b6ab7c9bf83b/",
"allowScriptAccess" : "always",
"menu" : "false"
};

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

FlashExternalInterface.signoutUrl = "%www%/account/logout";


var clientUrl = "http://www.xabbo.netsons.org/admin/swf/gordon/RELEASE63-30422-30421-201012031025_ae9f99b7038dab3670d4b6ab7c9bf83b/r64.swf";
swfobject.embedSWF(clientUrl, "flash-container", "100%", "100%", "10.0.0", "http://images.alexgroup27.com.ve/habboweb/%web_build%/web-gallery/flash/expressInstall.swf", flashvars, params);
</script>


<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">Por favor instale o Adobe Flash Player.</h2>
<div class="box-content">
<p>Você pode instalar e baixar o Adobe Flash Player aqui: <a href="http://get.adobe.com/flashplayer/">Instale o flash player</a>. Mais instruções para a instalação podem ser encontrados aqui: <a href="http://www.adobe.com/products/flashplayer/productinfo/instructions/">Mais informações</a></p>
<p><a href="http://www.adobe.com/go/getflashplayer"><img src="http://images.habbo.com/habboweb/%web_build%/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>Se você não for redirecionado automaticamente, por favor <a href="/client/nojs">clique aqui</a></p>
</div>
</noscript>
</div>
</div>
<div id="content" class="client-content"></div>
</div>
<div style="display: none">
<div id="habboCountUpdateTarget">
%hotel_status%
</div>
<script language="JavaScript" type="text/javascript">
setTimeout(function() {
HabboCounter.init(600);
}, 20000);
</script>
</div>
<script type="text/javascript">
RightClick.init("flash-wrapper", "flash-container");
</script>

</body>
</html>

E quando entro non entra *_*
2m6mr1e.jpg
 
Riferimento: L'hotel non parte :emoji_slight_frown:

Se ti resta la schermata con l'hotel vuol dire configurazione sbagliata ma mi sembra che siano giuste le configurazioni.
Molto strano forse hai messo ip sbagliato altro non ti so dire ma mi informerò.
 
Riferimento: L'hotel non parte :emoji_slight_frown:

In inc config la porta è la 20 nel page client è la 20 nell'emu sono la 20 e la 21. Spero di esserti stato utile.
 
Riferimento: L'hotel non parte :emoji_slight_frown:

@Dorje Puoi spiegarti meglio allora, nel inc.config devo mettere 20. Poi nel config server devo mettere così
## 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=cia***
db.name=Uber_DB

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

## Game TCP/IP Configuration
game.tcp.bindip=79.43.87.***
game.tcp.port=21
game.tcp.conlimit=5000

## MUS TCP/IP Configuration
mus.tcp.bindip=79.43.87.***
mus.tcp.port=20
mus.tcp.allowedaddr=79.43.87.***

## Client configuration
client.ping.enabled=1
client.ping.interval=30000

e nella page client 20?
 
Riferimento: L'hotel non parte :emoji_slight_frown:

Prima la 20 e poi la 21 nell'emu, e nel client la 20 .
 
Riferimento: L'hotel non parte :emoji_slight_frown:

Niente non và lo stexo!
 
Riferimento: L'hotel non parte :emoji_slight_frown:

metti la porta 2001 nela inc.config, e nel page client la porta 30000.

nella configurazione del server inserisci cosi

PHP:
Perfavore, Entra oppure Registrati per vedere i codici!

:bye:
 
Riferimento: L'hotel non parte :emoji_slight_frown:

Cambia il page-client. Non mi sembra di aver visto niente di strano nelle configurazioni.