Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

code doesn't run #3

Open
jnharton opened this issue Aug 25, 2015 · 3 comments
Open

code doesn't run #3

jnharton opened this issue Aug 25, 2015 · 3 comments

Comments

@jnharton
Copy link

On initially downloading this the code does not seem to run at all. It appears that one possible issue is a minor typo in 'index.html'.

It looks like this:

<td class="regname">D</td><td class=reg" rel="d"></td>

There should be a " before reg.


Additionally the presentation of an non-existent '.gb' filename seems to cause the emulator some trouble. In addition to not working at all, it seems to cause all three tabs to show up in a vertical column (with the latter two not getting a header) rather than showing only the selected tab in the designated position. It appears to be a specific problem resulting from a wrong hardcoded value at page load. If you change the input field later to a non-existent file then it simply doesn't load that and retains the previous rom.

jsgb-issue_screenshot

@pmcanseco
Copy link

I have managed to get it to work. The issues are as follows:

  1. It's hard-coded to run ttt.gb from the tests folder upon loading the page. Solution, rename your rom to ttt.gb and put it in the tests folder.
  2. You need a webhost. The way it's coded, it won't be able to load the rom if you just run the file by double-clicking it. Use Apache, nginx, or a web host like Dreamhost or DigitalOcean to place the files there and then go to http://your-server.com/index.html . Then if you hit run it will load the ttt.gb file from the tests folder and (glitchy :P) emulation will proceed :)

screenshot

@lucascaton
Copy link

Thanks @pmcanseco, it worked for me! 😄

@inceabdullah
Copy link

inceabdullah commented Dec 4, 2019

synch error for req.open('GET', fileURL, false);


jsg

edit: i just download tetris.gb on the tests folder then just it worked 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants