emulator icon indicating copy to clipboard operation
emulator copied to clipboard

Nesbox embedding issue

Open theunidentified1 opened this issue 8 years ago • 29 comments

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 avatar Apr 09 '17 21:04 theunidentified1

I also forgot to mention that I have flash installed.

theunidentified1 avatar Apr 09 '17 21:04 theunidentified1

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

nesbox avatar Apr 10 '17 07:04 nesbox

Where is your file bin/NesBox.swf?

gundamkid avatar Apr 10 '17 07:04 gundamkid

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

theunidentified1 avatar Apr 10 '17 12:04 theunidentified1

image

theunidentified1 avatar Apr 10 '17 12:04 theunidentified1

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>

gundamkid avatar Apr 11 '17 02:04 gundamkid

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

theunidentified1 avatar Apr 11 '17 08:04 theunidentified1

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

gundamkid avatar Apr 11 '17 08:04 gundamkid

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

theunidentified1 avatar Apr 11 '17 09:04 theunidentified1

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

gundamkid avatar Apr 11 '17 09:04 gundamkid

How do you convert roms?

theunidentified1 avatar Apr 11 '17 11:04 theunidentified1

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

gundamkid avatar Apr 11 '17 11:04 gundamkid

It still locks at 100% image

theunidentified1 avatar Apr 11 '17 12:04 theunidentified1

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

theunidentified1 avatar Apr 16 '17 15:04 theunidentified1

pls provide browser's console output

nesbox avatar Apr 16 '17 15:04 nesbox

There aren't any errors

theunidentified1 avatar Apr 16 '17 15:04 theunidentified1

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

theunidentified1 avatar Apr 16 '17 15:04 theunidentified1

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

theunidentified1 avatar Apr 16 '17 15:04 theunidentified1

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

theunidentified1 avatar Apr 17 '17 11:04 theunidentified1

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

nesbox avatar Apr 17 '17 11:04 nesbox

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

theunidentified1 avatar Apr 17 '17 16:04 theunidentified1

Is there any way to use it offline?

theunidentified1 avatar Apr 17 '17 16:04 theunidentified1

Is there any way to use this emulator offline?

theunidentified1 avatar Apr 18 '17 20:04 theunidentified1

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

nesbox avatar Apr 18 '17 20:04 nesbox

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

theunidentified1 avatar Apr 18 '17 20:04 theunidentified1

what's the flash/expressinstall.swf directory?

theunidentified1 avatar Apr 18 '17 21:04 theunidentified1

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

nesbox avatar Apr 18 '17 21:04 nesbox

ok, sorry for being persistent.

theunidentified1 avatar Apr 18 '17 21:04 theunidentified1

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

  • go to https://nodejs.org and install node.js
  • open command line and type npm -g install static-server
  • go to folder with your index.html page is located from the command line
  • type command static-server
  • open in browser http://localhost:9080/

nesbox avatar Apr 19 '17 19:04 nesbox