Hilfe: Was mache ich falsch? PlusEmu + BrainCMS (Client: Extern geht nicht, vom Server direkt schon)

  • Hallo,

    ich habe ein Problem mit der Brain-CMS.

    Wenn ich den Client von mir daheim aufrufe oder mittels Handyhotspot. Kommt der CLeint bis ca. 78% und dann bricht er ab. Wenn ich es direkt auf dem Server mache, dann verbindet er sich. Ich vermute Emulator.

    Was mache ich falsch?

    pasted-from-clipboard.png

    pasted-from-clipboard.png

    pasted-from-clipboard.png

    pasted-from-clipboard.png


    Brain-config

    <?php

    if(!defined('BRAIN_CMS'))

    {

    die('Sorry but you cannot access this file!');

    }

    /* Database Setting */

    $db['host'] = 'localhost'; //Mysql's Host

    $db['port'] = '3306'; //Mysql's port

    $db['user'] = "dbuser"; //Mysql's user

    $db['pass'] = 'dbpass'; //Mysql's password

    $db['db'] = "dbdbname"; //Mysql's database

    /* Emu Settings */

    $config['hotelEmu'] = 'plusemu'; // plusemu // arcturus

    /* Client Setting */

    $hotel['emuHost'] = "<domain>"; //IP of VPS//IP of Proxy

    $hotel['emuPort'] = "30000"; //Port of VPS//Port of Proxy

    $hotel['staffCheckClient'] = false; //Enable the staff pin in the client (true) or disable it (false)

    $hotel['staffCheckClientMinimumRank'] = 3; //Minium staff rank to get the staff pin in the client

    $hotel['homeRoom'] = '0'; //Set the start room when you get in the hotel

    $hotel['external_Variables'] = "http://<domain>/swf/gamedata/external_variables.txt";

    $hotel['external_Variables_Override'] = "http://<domain>/swf/gamedata/override/external_override_variables.txt";

    $hotel['external_Texts'] = "http://<domain>/swf/gamedata/external_flash_texts.txt";

    $hotel['external_Texts_Override'] = "http://<domain>/swf/gamedata/override/external_flash_override_texts.txt";

    $hotel['productdata'] = "http://<domain>/swf/gamedata/productdata.txt";

    $hotel['furnidata'] = "http://<domain>/swf/gamedata/furnidata.xml";

    $hotel['figuremap'] = "http://<domain>/swf/gamedata/figuremap.xml";

    $hotel['figuredata'] = "http://<domain>/swf/gamedata/figuredata.xml";

    $hotel['swfFolder'] = "http://<domain>/swf/gordon/PRODUCTION-201701242205-837386173";

    $hotel['swfFolderSwf'] = "http://<domain>/swf/gordon/PRODUCTION-201701242205-837386173/habbo2.swf";

    $hotel['onlineCounter'] = true; // Enable the user count in the client.

    $hotel['diamonds.enabled'] = true; // Enable diamonds in the hotel.

    /* Website Setting */

    $config['hotelUrl'] = "http://<domain>";//Address of your hotel. Does not end with a "/"

    $config['skin'] = "brain"; //Skin/template of your website

    $config['lang'] = "en"; //Language of your website en/nl/es

    $config['hotelName'] = "Demo1"; //Name of your hotel

    $config['favicon'] = "http://<domain>/templates/brain/style/images/favicon/favicon.ico";

    $config['staffCheckHk'] = false; //Enable the staff pin in the housekeeping (true) or disable it (false)

    $config['staffCheckHkMinimumRank'] = 3; //Minium staff rank to get the staff pin in the housekeeping

    $config['maintenance'] = false; //Enable the maintenance of your website (true) or disable it (false)

    $config['maintenancekMinimumRankLogin'] = 3; //Minium staff rank to login when the website is in maintenance

    $config['groupBadgeURL'] = "http://<domain>/swf/habbo-imaging/badge.php?badge=";

    $config['badgeURL'] = "http://<domain>/swf/c_images/album1584/";

    $config['userLikeEnable'] = true; // Enable user likes

    $config['newsCommandEnable'] = true; //Enable news commands

    $config['newsCommandFilter'] = true; //Enable wordfilter on news commands (the filter use the db tabels wordfilter and wordfilter_characters)

    $config['alertReferrer'] = true;

    $config['alert'] = 'BrainCMS Beta'; //Alert message. If you don't want a alert, you fill in 'nomessage' or you do leave it blank.

    $config['brainversion'] = '1.8.0'; // Please do not change.

    /* Facebook Login Settings

    You need a Facebook app for this to work go to

    https://developers.facebook.com/apps/ */

    $config['facebookLogin'] = false; //Enable the Facebook login (true) or disable it (false)

    $config['facebookAPPID'] = '334162590sdaf292528';

    $config['facebookAPPSecret'] = 'ce2504ff5adsfa3ff7a6a2fa6d984cd8836';

    /* Email Settings */

    $email['mailServerHost'] = 'smtp.gmail.com';

    $email['mailServerPort'] = 587;

    $email['SMTPSecure'] = 'TLS';

    $email['mailUsername'] = 'gmail@gmail.com';

    $email['mailPassword'] = '*****';

    $email['mailLogo'] = 'http://<domain>/templates/brain/style/images/logo/logo.png';

    $email['mailTemplate'] = '/system/app/plugins/PHPmailer/temp/resetpassword.html';

    /* Social settings */

    $config['facebook'] = 'https://www.facebook.com/Habbo/';

    $config['facebookEnable'] = false;

    $config['twitter'] = 'https://twitter.com/Habbo';

    $config['twitterEnable'] = false;

    /* Register Setting */

    $config['startMotto'] = "Welkom in Brain!"; //Regsiter start motto

    $config['credits'] = "10000";

    $config['duckets'] = "20000";

    $config['diamonds'] = "10";

    $config['diamondsRef'] = "10";

    $config['registerEnable'] = true;

    /* Google recaptcha Site Key

    Go to this website to create a recaptcha Site Key: https://www.google.com/recaptcha/intro/index.html */

    $config['recaptchaSiteKey'] = "6LdzewwUAAAAABkJ3vsdfCDca9qmLGDaWAHqMRtFEs2";

    $config['recaptchaSiteKeyEnable'] = false;

    /* Buy VIP Settings */

    $config['vipCost'] = "25";

    $config['vipRankToGet'] = "3";

    $config['vipBadge'] = "vip";

    switch($config['hotelEmu'])

    {

    case "arcturus":

    $emuUse['user_wardrobe'] = 'users_wardrobe ';

    $emuUse['ip_last'] = 'ip_current';

    $emuUse['respect'] = 'respects_received';

    $emuUse['user_stats'] = 'users_settings';

    $emuUse['user_stats_user_id'] = 'user_id';

    $emuUse['OnlineTime'] = 'online_time';

    break;

    case "plusemu":

    $emuUse['user_wardrobe'] = 'user_wardrobe ';

    $emuUse['ip_last'] = 'ip_last';

    $emuUse['respect'] = 'Respect';

    $emuUse['user_stats'] = 'user_stats';

    $emuUse['user_stats_user_id'] = 'id';

    $emuUse['OnlineTime'] = 'OnlineTime';

    break;

    default:

    //Nothing

    break;

    }

    ?>


    Brain CMS Client Config


    Emulator PlusEmu

    ## PlusEMU System Configuration File

    ## Must be edited for the server to work

    ## MySQL Configuration

    db.hostname=127.0.0.1

    db.port=3306

    db.username=dbbenutzer

    db.password=dbbenutzer

    db.name=dbdbname

    ## MySQL pooling setup (controls amount of connections)

    db.pool.minsize=10

    db.pool.maxsize=250

    ## Game TCP/IP Configuration

    game.tcp.bindip=<IP-V4 vom Server>

    game.tcp.port=30000

    game.tcp.conlimit=100000

    game.tcp.conperip=5

    game.tcp.enablenagles=true

    ## RCON TCP/IP Configuration

    rcon.tcp.bindip=<IP-V4 vom Server>

    rcon.tcp.port=30001

    rcon.tcp.allowedaddr=<IP-V4 vom Server>

    ## Client configuration

    client.ping.enabled=1

    client.ping.interval=20000

    client.maxrequests=300

  • <domain> steht in der Datei meine Domain drin z.b: habbo.de, wenn ich diese hätte ;)

    <ipv4> steht in der Datei die IPv4 vom Server (z.B.: 8.8.8.8), welche man per ipconfig rausbekommt oder über https://www.iplocation.net/ findet :P

    Und nein bei mir steht nicht der Google DNS drin ;)

    Firewall, Externals und alle 127.0.0.1 / localhost geändert in deine IPv4?

    8q4ZhSZ.png

    OD0sbfs.png


    Ich und Kindisch? Kommt Teddys, wir gehen!

  • In Brain Config: $hotel['emuHost'] = "<domain>"; Da kommt die Server IP hin und nicht die Domain.

    Und in den external_variables, ganz unten, hast du falsch verlinkt.

    Code
    productdata.load.url=http://<ipv4 oder domain>/swf/gamedata/productdata/595de281707e45dbab45d698fb6e951941569571
    external.texts.txt=http://<ipv4 oder domain>/swf/gamedata/external_flash_texts/595de281707e45dbab45d698fb6e951941569571
    external.override.variables.txt=http://<ipv4 oder domain>/swf/gamedata/override/external_override_variables/595de281707e45dbab45d698fb6e951941569571
    flash.client.url=//<ipv4 oder domain>/swf/gordon/PRODUCTION-201701242205-837386173/
    furnidata.load.url=http://<ipv4 oder domain>/swf/gamedata/furnidata_xml/595de281707e45dbab45d698fb6e951941569571
    external.variables.txt=http://<ipv4 oder domain>/swf/gamedata/external_variables/595de281707e45dbab45d698fb6e951941569571
    external.override.texts.txt=http://<ipv4 oder domain>/swf/gamedata/override/external_flash_override_texts/595de281707e45dbab45d698fb6e951941569571
    external.figurepartlist.txt=http://<ipv4 oder domain>/swf/gamedata/figuredata/595de281707e45dbab45d698fb6e951941569571


    Ersetz es mit diesen:

    Code
    productdata.load.url=http://<domain>/swf/gamedata/productdata.txt
    external.texts.txt=http://<domain>/swf/gamedata/external_flash_texts.txt
    external.override.variables.txt=http://<domain>/swf/gamedata/override/external_override_variables.txt
    flash.client.url=http://<domain>/swf/gordon/PRODUCTION-201701242205-837386173/
    furnidata.load.url=http://<domain>/swf/gamedata/furnidata.xml
    external.variables.txt=http://<domain>/swf/gamedata/external_variables.txt
    external.override.texts.txt=http://<domain>/swf/gamedata/override/external_flash_override_texts.txt
    external.figurepartlist.txt=http://<domain>/swf/gamedata/figuredata.xml

    2 Mal editiert, zuletzt von higoka (31. Oktober 2017 um 13:54)

Jetzt mitmachen!

Sie haben noch kein Benutzerkonto auf unserer Seite? Registrieren Sie sich kostenlos und nehmen Sie an unserer Community teil!