nesbox / emulator

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

Nesbox embedding issue #68

Open theunidentified1 opened 7 years ago

theunidentified1 commented 7 years ago

I'm trying to use Nesbox in a school project to show emulation, but can't get it to work. Any ideas? Every time that I attempt to run the webpage it just gives me the linked image:

image

the code used is as follows: image

theunidentified1 commented 7 years ago

I also forgot to mention that I have flash installed.

nesbox commented 7 years ago

What do you see in browser's console? any errors

gundamkid commented 7 years ago

Where is your file bin/NesBox.swf?

theunidentified1 commented 7 years ago

my file is located as follows: project/bin/NesBox.swf

theunidentified1 commented 7 years ago

image

gundamkid commented 7 years ago

It looks like the jquery and swfobject link cannot work. Can you try to add full link like this

<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.9.0/jquery.min.js"></script>

theunidentified1 commented 7 years ago

now once I load it, it says "Right-click to run flash player", but doesn' load the emulator: image

gundamkid commented 7 years ago

You can move your js link to above your javascript. I think the URLs are correct.

theunidentified1 commented 7 years ago

image I placed it above the script type tag in header and now I have a loading screen stuck at 100%. image

gundamkid commented 7 years ago

The ROM cannot loaded.

  1. You should check your Super Mario World .sfc. Is it loaded from correct location?
  2. I remember the emulator cannot work with .sfc. Can you try to convert to .smc?

Check it from my site: Game gia lap

theunidentified1 commented 7 years ago

How do you convert roms?

gundamkid commented 7 years ago

The easiest way is rename. Just rename mario.sfc to mario.smc and try it.

theunidentified1 commented 7 years ago

It still locks at 100% image

theunidentified1 commented 7 years ago

Any other ideas? I know it cant be the rom - it works on the nesbox site...

nesbox commented 7 years ago

pls provide browser's console output

theunidentified1 commented 7 years ago

There aren't any errors

theunidentified1 commented 7 years ago

Maybe this is the missing piece: flash/expressInstall.swf I don't have this file or any flash files for that matter

theunidentified1 commented 7 years ago

*I have none that are located in /flash folder, none were provided.

theunidentified1 commented 7 years ago

hello............

nesbox commented 7 years ago

don't know what to say, try to upload it to your server and provide url and I'll try to investigate...

theunidentified1 commented 7 years ago

Im not using a server, im simply using it in a file directory

theunidentified1 commented 7 years ago

Is there any way to use it offline?

theunidentified1 commented 7 years ago

Is there any way to use this emulator offline?

nesbox commented 7 years ago

unfortunately, don't know, haven't tested it offline yet will do when have some time

theunidentified1 commented 7 years ago

wait - the flash/expressInstall.swf folder isn't included in the package, what is it?

theunidentified1 commented 7 years ago

what's the flash/expressinstall.swf directory?

nesbox commented 7 years ago

pls be patient, I'll answer when will have time...

theunidentified1 commented 7 years ago

ok, sorry for being persistent.

nesbox commented 7 years ago

so, I made a test and seems it wont work as local page if you want you can install tiny local webserver: