nesbox / emulator

Emulator of NES, Super Nintendo, Sega Mega Drive, GameBoy video consoles
http://nesbox.com/emulator/
MIT License
598 stars 245 forks source link

black screen after loading game #62

Open jayb967 opened 7 years ago

jayb967 commented 7 years ago

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();
  });

`

nesbox commented 7 years ago

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

jayb967 commented 7 years ago

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?

nesbox commented 7 years ago

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

jayb967 commented 7 years ago

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!

nesbox commented 7 years ago

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

jayb967 commented 7 years ago

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