Client loads just black.

Cjozwiak93

New Member
Jul 21, 2016
10
1
Hello all!
I followed the DevBest video on youtube to a T or.. atleast I'm giving myself that illusion. Everything looks identical.
Please help?
External Vars:
Code:
productdata.load.url=http://localhost/game/gamedata/productdata.txt
external.texts.txt=http://localhost/game/gamedata/external_flash_texts.txt
external.override.variables.txt=http://localhost/game/gamedata/override/external_override_variables.txt
flash.client.url=//localhost/game/gordon/PRODUCTION-201701242205-837386173/
furnidata.load.url=http://localhost/game/gamedata/furnidata.xml
external.variables.txt=http://localhost/game/gamedata/external_variables.txt
external.override.texts.txt=http://localhost/game/gamedata/override/external_flash_override_texts.txt
external.figurepartlist.txt=http://localhost/game/gamedata/figuredata.xml

External Vars override:
Code:
flash.client.url=http://localhost/GAME/gordon/PRODUCTION-201701242205-837386173/
external.texts.txt=http://localhost/GAME/gamedata/external_flash_texts.txt
external.override.texts.txt=http://localhost/GAME/gamedata/override/external_flash_override_texts.txt
external.override.variables.txt=http://localhost/GAME/gamedata/override/external_override_variables.txt
productdata.load.url=http://localhost/GAME/gamedata/productdata.txt
furnidata.load.url=http://localhost/GAME/gamedata/furnidata.xml
 

Cjozwiak93

New Member
Jul 21, 2016
10
1
No, No loading at all. Just black screen like flash isn't asking to be enabled at all. As if it's having problems finding the .swf file. I've switched flash to be enabled anywhere without asking and it still won't work.
 

Joe

Well-Known Member
Jun 10, 2012
4,172
1,955
No, No loading at all. Just black screen like flash isn't asking to be enabled at all. As if it's having problems finding the .swf file. I've switched flash to be enabled anywhere without asking and it still won't work.
You have manually enabled flash in the settings of your browser? For it to automatically ask you you need a callback.

Make sure it's enabled, refresh the page and let me know what happens.
 
Last edited:

Cjozwiak93

New Member
Jul 21, 2016
10
1
Code:
<?php
   staffCheck();
   Game::sso('client');
   Game::homeRoom();
   ?>
<html>
   </body>
   <head>
      <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
      <title><?= $config['hotelName'] ?> - Hotel</title>
      <script src="/templates/brain/client/js/jquery-latest.js" type="text/javascript"></script>
      <script src="/templates/brain/client/js/jquery-ui.js" type="text/javascript"></script>
      <script src="/templates/brain/client/js/flashclient.js"></script>
      <script src="/templates/brain/client/js/flash_detect_min.js"></script>
      <script src="/templates/brain/client/js/browse.js"></script>
      <script src="/templates/brain/client/js/client.js" type="text/javascript"></script>
      <link rel="stylesheet" href="/templates/brain/client/css/client.css" type="text/css">
      <link rel="stylesheet" href="/templates/brain/client/css/no-flash.css" type="text/css">
   </head>
   <body>
      <?php
         if($hotel['onlineCounter'] == true)
         {
             ?>
      <script type="text/javascript">
         $(document).ready(function(e) {
             $.ajaxSetup({
                 cache:true
             });
             setInterval(function() {
                 $('#onlinecount').load('/onlinecountclient');
             }, 8000);
             $( "#onlinecount").click(function() {
                 $('#onlinecount').load('/onlinecountclient');
             });
         });
      </script>
      <div class="clientOnlineBox">
         <div class="clientOnlineBoxTxt" id="onlinecount"><small><b><?= Game::usersOnline() ?></b> <?= $config['hotelName'] ?>'s online</small></div>
         <img src="/templates/brain/client/images/onlineiconclient.png" style="width:29px;height:28px;ht; */position: absolute;margin-left: 130px;margin-top: -19px;">
      </div>
      <?php
         }
         ?>
      <center>
         <div id="client-ui">
         <div class="client" id="client"></div>
         <div class="hb-container" id="area-container">
            <h1 class="text" id="client-title"></h1>
            <div id="no-flash" style="display: none;">
               <div id="info-allow"></div>
               <div id="info-allow-button" style="display: none; text-align: center;">
                  <a href="https://get.adobe.com/nl/flashplayer/" target="_blank" id="allow-flash-button-extern" class="client-reload__button" style="display: none;"><?=$lang['nbutton']?></a>
                  <button id="allow-flash-button-more" class="client-reload__button" style="display: none; background-color: #f44336;border-color: #d66d66;color: #fff;"><?=$lang['nbuttonerror']?></button>
               </div>
               <p id="info-flash">
                  <?=$lang['ninfoflash']?>
                  <br /><br />
                 <?=$lang['ninfoflashtray']?><br /><br />
                  <b style="font-weight: bold;"><?=$lang['ninfoflashpc']?></b>
               </p>
               <div id="info-flash-extra">
                  <ul>
                     <li>Download <a href="https://get.adobe.com/nl/flashplayer/">Adobe Flash Player</a> <?=$lang['nfree']?></li>
                  </ul>
                  <br />
                  <b style="font-weight: bold;"><?=$lang['nenableflash']?></b>
                  <ul>
                     <li><?=$lang['nenableflashsee']?> <a target="_blank" href="https://helpx.adobe.com/nl/flash-player/kb/enabling-flash-player-chrome.html">Google Chrome</a>
                        <?=$lang['nenableflashinfo']?>
                     </li>
                     <li><?=$lang['nenableflashsee']?> <a target="_blank" href="https://helpx.adobe.com/nl/flash-player/kb/install-flash-player-windows.html">Internet Explorer</a>
                        <?=$lang['nenableflashinfo']?>
                     </li>
                     <li><?=$lang['nenableflashsee']?> <a target="_blank" href="https://helpx.adobe.com/flash-player/kb/flash-player-issues-windows-10-edge.html">Microsoft Edge</a>
                        <?=$lang['nenableflashinfo']?>
                     </li>
                     <li><?=$lang['nenableflashsee']?> <a target="_blank" href="https://helpx.adobe.com/nl/flash-player/kb/enabling-flash-player-firefox.html">Firefox</a>
                        <?=$lang['nenableflashinfo']?>
                     </li>
                     <li><?=$lang['nenableflashsee']?> <a target="_blank" href="https://helpx.adobe.com/nl/flash-player/kb/enabling-flash-player-safari.html">Apple Safari</a>
                        <?=$lang['nenableflashinfo']?>
                     </li>
                  </ul>
               </div>
            </div>
         </div>
         <script>
            var Client = new SWFObject("<?= $hotel['swfFolderSwf'] ?>", "client", "100%", "100%", "10.0.0");
            Client.addVariable("client.allow.cross.domain", "0");
            Client.addVariable("client.notify.cross.domain", "1");
            Client.addVariable("connection.info.host", "<?= $hotel['emuHost'] ?>");
            Client.addVariable("connection.info.port", "<?= $hotel['emuPort'] ?>");
            Client.addVariable("site.url", "<?= $config['hotelUrl'] ?>");
            Client.addVariable("url.prefix", "<?= $config['hotelUrl'] ?>");
            Client.addVariable("client.reload.url", "<?= $config['hotelUrl'] ?>/me");
            Client.addVariable("client.fatal.error.url", "<?= $config['hotelUrl'] ?>/me");
            Client.addVariable("client.connection.failed.url", "<?= $config['hotelUrl'] ?>/me");
            Client.addVariable("external.override.texts.txt", "<?= $hotel['external_Texts_Override'] ?>");
            Client.addVariable("external.override.variables.txt", "<?= $hotel['external_Variables_Override'] ?>");
            Client.addVariable("external.variables.txt", "<?= $hotel['external_Variables'] ?>");
            Client.addVariable("external.texts.txt", "<?= $hotel['external_Texts'] ?>");
            Client.addVariable("external.figurepartlist.txt", "<?= $hotel['figuredata'] ?>");
            Client.addVariable("flash.dynamic.avatar.download.configuration", "<?= $hotel['figuremap'] ?>");
            Client.addVariable("productdata.load.url", "<?= $hotel['productdata'] ?>");
            Client.addVariable("furnidata.load.url", "<?= $hotel['furnidata'] ?>");
            Client.addVariable("use.sso.ticket", "1");
            Client.addVariable("sso.ticket", "<?= User::userData('auth_ticket') ?>");
            Client.addVariable("processlog.enabled", "0");
            Client.addVariable("client.starting", "<?= $config['hotelName'] ?> is loading...");
            Client.addVariable("flash.client.url", "<?= $hotel['swfFolder'] ?>/");
            Client.addVariable("flash.client.origin", "popup");
            Client.addVariable("ads.domain", "");
            Client.addVariable("diamonds.enabled", '<?= $hotel['diamonds.enabled'] ?>');
            Client.addParam('base', '<?= $hotel['swfFolder'] ?>/');
            Client.addParam('allowScriptAccess', 'always');
            Client.addParam('wmode', "opaque");
            Client.write('client');
            FlashExternalInterface.signoutUrl = "<?= $config['hotelUrl'] ?>/logout";
            
            $(document).ready(function() {
            if (!FlashDetect.installed) {
            $("#disconnected, #hide-message,#client-support, #no-flash").show();
            $("#client").hide();
            if (bowser.chrome) {
                $("#client-reload, #hide-message, #client-support, #info-flash, #info-flash-extra").hide();
                $("#client-title").html('<?=$lang['ntitlechrome']?>');
                $("#info-allow").html('<?=$lang['ntxtchrome']?>');
                $("#info-allow-button, #allow-flash-button-extern").show();
            } else if (bowser.msedge) {
                $("#client-reload, #hide-message, #client-support, #info-flash, #info-flash-extra").hide();
                $("#client-title").html('<?=$lang['ntitleedge']?>');
                $("#info-allow").html('<?=$lang['ntxtedge']?>');
                $("#info-allow-button, #allow-flash-button-extern").show();
            }
            $("#disconnected").show().css('z-index', 0);
            $("#flash-wrapper").remove();
            $(".roomenterad-habblet-container").hide();
            connection = false;
            }
            });
            $('#allow-flash-button-extern').click(function(event){
            if(bowser.chrome){
            $("#info-allow").html('<?=$lang['ntxtchromeerror']?>');
            event.stopPropagation();
            }
            if(bowser.msedge){
            $("#info-allow").html('<?=$lang['ntxtedgeerror']?>');
            event.stopPropagation();
            }
            $("#allow-flash-button-extern").hide();
            $("#allow-flash-button-more").show();
            });
            $('#allow-flash-button-more').click(function(){
            if(bowser.chrome){
            location.href="https://get.adobe.com/nl/flashplayer/";
            }
            });
         </script>
      </center>
   </body>
</html>
 

Cjozwiak93

New Member
Jul 21, 2016
10
1
The developer console is telling me there's a syntax error on line 111:156. Does that mean 111 - 156 there's a missing )?

Line 111:
Code:
Client.addVariable("client.starting", "<?= $config['hotelName'] ?> is loading...");
Not seeing where the missing ) is O_O'
 

Users who are viewing this thread

Top