emulator icon indicating copy to clipboard operation
emulator copied to clipboard

black screen after loading game

Open jayb967 opened this issue 8 years ago • 6 comments

I keep getting a black screen after trying to manually upload or code to open my NBA.gen game. game works just fine on emulator website. Is there something I'm missing other than uploading the .swf files onto a folder? Thanks! This is what my js file looks like with swf inside a folder named flash: ` var resizeOwnEmulator = function(width, height) { var emulator = $('#emulator'); emulator.css('width', width); emulator.css('height', height); }

  $(function()
  {
      function embed()
      {
          var emulator = $('#emulator');
          if(emulator)
          {
              var flashvars =
              {
                  system : 'sega',
                  url : 'roms/NBA_Jam.gen'
              };
              var params = {};
              var attributes = {};

              params.allowscriptaccess = 'sameDomain';
              params.allowFullScreen = 'true';
              params.allowFullScreenInteractive = 'true';

              swfobject.embedSWF('flash/Nesbox.swf', 'emulator', '640', '480', '11.2.0', 'flash/expressInstall.swf', flashvars, params, attributes);
          }
      }

      embed();
  });

`

jayb967 avatar Feb 24 '17 05:02 jayb967

What errors do you see in the browsers console? Usually the problem is in invalid file paths, pls check them.

nesbox avatar Feb 24 '17 05:02 nesbox

I have no errors, I am getting status code 200s for both Nesbox.swf and sega.gen. I only see emulator loading 100%/gray background after sega.gen load. If I empty out the flashvars variable and manually find game, I get a black screen?

jayb967 avatar Feb 24 '17 06:02 jayb967

Could you pls provide url, I'll try to investigate

nesbox avatar Feb 24 '17 06:02 nesbox

https://www.reloadla.com/

I have a hidden egg code for it to show up, anywhere on page type: up, up, down, down, r, l, a, enter

thanks!

jayb967 avatar Feb 24 '17 06:02 jayb967

I tried, but without result. Do you have an easiest way to show me page with the emulator?

nesbox avatar Feb 24 '17 06:02 nesbox

I ended up figuring it out, it was a crossdomain.xml issue, thanks for the help though!

jayb967 avatar Feb 25 '17 00:02 jayb967