[BCStorm] Client page issue

Results 1 to 6 of 6
  1. #1
    Apprentice Nickuser is offline
    MemberRank
    Jul 2013 Join Date
    14Posts

    [BCStorm] Client page issue

    Hello, I've followed all the steps from [TUT] How to make a r63b Retro! to create my own hotel and I believe everything was fine until the client page problem comes up.


    First, I want to know if I need to create a new folder to "htdocs" (C:\xampp\htdocs\swfs) like this or I can simply put the swfs content directly to "htdocs"? Is this the problem I have?



    Here is my config.php code (from folder C:\xampp\htdocs\app\management):
    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'] = '********'; //MySQL password   
    
    
    $_CONFIG['mysql']['database'] = 'r63b'; //MySQL database   
    
    
    $_CONFIG['mysql']['port'] = '3306'; //MySQL's port
    
    
    /* 
    
    
    * 
    
    
    *    Hotel management  - All URLs do not end with an "/" 
    
    
    * 
    
    
    */   
    $_CONFIG['hotel']['server_ip'] = 'ServerIP'; //IP of VPS/DEDI/etc   
    
    
    $_CONFIG['hotel']['url'] = 'http://localhost'; //Does not end with a "/" 
    
    
    $_CONFIG['hotel']['name'] = 'iHabbo'; // Hotel's name    
    
    
    $_CONFIG['hotel']['desc'] = 'Bem-vindo ao seu PESADELO puta'; //Hotel's description 
    
    
    $_CONFIG['hotel']['email'] = 'help@myhotel.net'; //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'] = 'I <3 ' . $_CONFIG['hotel']['name']; //Default motto users will register with.
    
    
    $_CONFIG['hotel']['credits'] = 5000; //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-1.ch-210-66.lg-270-82.sh-290-91.hr-100'; //Default figure users will register with.
    
    
    $_CONFIG['hotel']['web_build'] = '63_1dc60c6d6ea6e089c6893ab4e0541ee0/1532'; //Web_Build
    
    
    $_CONFIG['hotel']['external_vars'] = 'http://localhost/swfs/external_variables.txt'; //URL to your external vars
    
    
    $_CONFIG['hotel']['external_texts'] = 'http://localhost/swfs/external_flash_texts.txt'; //URL to your external texts
    
    
    $_CONFIG['hotel']['product_data'] = 'http://localhost/swfs/productdata.txt'; //URL to your productdata
    
    
    $_CONFIG['hotel']['furni_data'] = 'http://localhost/swfs/furnidata.txt'; //URL to your furnidata
    
    
    $_CONFIG['hotel']['swf_folder'] = 'http://localhost/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'] = 'Habbo'; 
    
    
    /*
    *
    *    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
    
    
    ?>



    And the emulator configuration code (from C:\Users\User\Desktop\BcStorm\bin\Debug\Settings):
    Code:
     ## 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=********
    db.name=r63b
    
    
    ## MySQL pooling setup (controls amount of connections)
    db.pool.minsize=1
    db.pool.maxsize=50
    
    
    ## Game TCP/IP Configuration
    game.tcp.bindip=localhost
    game.tcp.port=30000
    game.tcp.conlimit=11000
    game.tcp.conperip=100
    game.tcp.enablenagles=False
    
    
    ## MUS TCP/IP Configuration
    mus.tcp.bindip=localhost
    mus.tcp.port=30001
    mus.tcp.allowedaddr=localhost;127.0.0.1
    
    
    ## Stream Message; Si lo dejas sin texto no aparecerá
    hotel.stream.message=Welcome on Habtime
    
    
    ## License
    internal.license=
    
    
    ## Hotel Link; To StreamImages
    guilds.link=http://localhost/habbo-imaging/badge/
    stream.link=http://localhost/habbo-imaging/head?look=
    
    
    ## Client configuration
    client.ping.enabled=1
    client.ping.interval=200000
    client.maxrequests=500
    client.maxpossiblefriends=700
    client.maxitemsininventary=3400
    
    
    #IRC
    irc.enabled=false
    irc.server=127.0.0.1
    irc.port=6667
    irc.user=USER CSharpBot 8 * :I'm a C# irc bot
    irc.nick=[VG]Mordi
    irc.channel=#habbovg_servermod
    irc.password=#
    
    
    #Groep instellingen
    group.enabled=true
    auth.ssodisabled=false
    
    
    #pixel instellingen
    game.pixel.enabled=true
    game.pixel.amount=100
    game.pixel.time=600
    
    
    #credits instellingen
    game.credits.enabled=true
    game.credits.amount=1000
    game.credits.time=600
    
    
    game.login.credits.receiveamount=100
    game.login.pixel.receiveamount=100
    
    
    #Threading Main Loops.
    SeparatedTasksInMainLoops.enabled=true
    
    
    
    
    SeparatedTasksInGameClientManager.enabled=true
    
    
    # Ban flood protection
    spambans.enabled=false
    spambans.limit=5





    After I register my account, I gor redirected to the main page with a bug where I don't see my avatar and can't access the HK (it should be a tab next to community tab right?)...






    I try to connect to hotel by clicking "Enter the hotel" it redirects me to http://localhost/api.php







    I click proceed and the client page (http://localhost/client) loads. After that, a black screen comes out and nothing happens







    I end up getting disconnected after a while:






    I'm not sure what this last message means... Can anyone help me out? Thanks in advance.



    This is the code of C:\xampp\htdocs\app\tpl "class.html.php"
    Code:
    <?php 
    
    
    namespace Revolution;
    if(!defined('IN_INDEX')) { die('Sorry, you cannot access this file.'); }
    class html implements iHTML
    {
    
    
        private $html;
    
    
        final public function get($file)
        {
            global $template, $_CONFIG;
            
            if($file != null && ctype_alnum($file))
            {
                if(file_exists('app/tpl/skins/'.$_CONFIG['template']['style'].'/' . $file . '.php'))
                {
                    ob_start();
                    include('app/tpl/skins/'.$_CONFIG['template']['style'].'/' . $file . '.php');
                    $this->html .= ob_get_contents();
                    ob_end_clean();
                       
                        $this->setHTML();
                }
                else
                {
                    $this->get('404');
                }
            }
            else
            {
                header('Location: '.$_CONFIG['hotel']['url'].'/index');
                exit;
            }
    
    
        }
        
        final public function getHK($file)
        {
            global $template, $_CONFIG;
            
            if($file != null)
            {
                if(file_exists('../app/tpl/skins/'.$_CONFIG['template']['style'].'/hk/' . $file . '.php'))
                {
                    ob_start();
                    require_once('../app/tpl/skins/'.$_CONFIG['template']['style'].'/hk/' . $file . '.php');
                    $this->html .= ob_get_contents();
                    ob_end_clean();
                
                    $this->setHTML();
                }
                else
                {
                    $this->getHK('404');
                }
            }
            else
            {
                $this->getHK('dash');
            }
        }
            
        final public function setHTML()
        {
            global $template;
            $template->tpl .= $this->html;
            unset($this->html);
        }
    
    
    
    
    }
    ?>
    The message that I get after I get disconnected is:
    Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 261904 bytes) in C:\xampp\htdocs\app\tpl\class.html.php on line 27

    Can anyone give me a hand?
    Last edited by vLife; 06-08-13 at 09:15 PM.


  2. #2
    Apprentice MrShingaloo is offline
    MemberRank
    Aug 2013 Join Date
    5Posts

    Re: [BCStorm] Client page issue

    Exact same problem.

  3. #3
    Proficient Member KeineChance is offline
    MemberRank
    Aug 2012 Join Date
    174Posts

    Re: [BCStorm] Client page issue

    I don't know if it works, but test it!

    Import this in your Database:

    SET@@global.sql_mode ='';

  4. #4
    Apprentice Nickuser is offline
    MemberRank
    Jul 2013 Join Date
    14Posts

    Re: [BCStorm] Client page issue

    How do I import that code sequence to the database?

  5. #5
    Apprentice MrShingaloo is offline
    MemberRank
    Aug 2013 Join Date
    5Posts

    Re: [BCStorm] Client page issue

    As in run a sql query, under the "sql" tab in phpmyadmin? Tried and same error.

    Also i found this,
    Don't credit me for this fix, I know it works at least in php.ini. I just found the help and passing it forward..
    Taken from other answers on the above issue:
    either add ini_set('memory_limit', '-1'); to the file or change the memory_limit in the php.ini.
    I changed the memory limit in php.ini so it looks like this

    PHP Code:
    ;;;;;;;;;;;;;;;;;;;; Resource Limits ;
    ;;;;;;;;;;;;;;;;;;;


    Maximum execution time of each scriptin seconds
    http://php.net/max-execution-time
    NoteThis directive is hardcoded to 0 for the CLI SAPI
    max_execution_time 
    1000


    Maximum amount of time each script may spend parsing request dataIt's a good
    ; idea to limit this time on productions servers in order to eliminate unexpectedly
    ; long running scripts.
    ; Note: This directive is hardcoded to -1 for the CLI SAPI
    ; Default Value: -1 (Unlimited)
    ; Development Value: 60 (60 seconds)
    ; Production Value: 60 (60 seconds)
    ; http://php.net/max-input-time
    max_input_time = 60


    ; Maximum input variable nesting level
    ; http://php.net/max-input-nesting-level
    ;max_input_nesting_level = 64


    ; Maximum amount of memory a script may consume (128MB)
    ; http://php.net/memory-limit
    memory_limit = 128M


    ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
    ; Error handling and logging ;
    ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; 
    Same error but for some reason its changed to line 23.

    Fixed, see next post.
    Last edited by MrShingaloo; 09-08-13 at 06:19 AM.

  6. #6
    Apprentice MrShingaloo is offline
    MemberRank
    Aug 2013 Join Date
    5Posts

    Re: [BCStorm] Client page issue

    Ah found the problem, probably the most obvious thing. You need to change the "ServerIP" in the management/config.php To localhost if your running locally, mine was set to another ip.
    Code:
    $_CONFIG['hotel']['server_ip'] = 'ServerIP<<< Change this to "localhost"'; //IP of VPS/DEDI/etc 
    Worked for me, Now im just getting the black screen for the client error.



Advertisement