Git Product home page Git Product logo

gba.js.org's Introduction

gba.js.org's People

Contributors

ayvacs avatar martinivanco avatar maxicode2 avatar rjd1922 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

gba.js.org's Issues

I can't seem to save

Describe the bug: A clear and concise description of what the bug is, what you expected to happen, and steps to reproduce the behavior.
Whenever i save i then export my saves, but whenever i import said saves they don't work

Screenshots: If applicable, add screenshots to help explain your problem.

Device information: Information about the device you used to find the bug, including the OS and browser version.

Additional context: Add any other context about the problem here.
a user on reddit had the same issue https://www.reddit.com/r/emulator/comments/viwe6y/am_i_just_dumb_online_gba_emulator_saves/

AWSD

Maybe adding Awsd keys instead of arrow keys so it can work for people using mobile with a keyboard? Ive tried this on mobile with a keyboard and the only thing that doesn’t work is the arrow keys and adding awsd keys as the arrow keys should fix this problem and make this playable for players with a mobile keyboard and it souldn’t change much for pc players. Tysvm for your time <3

Some games won't load saves

I completed The Legend of Zelda: A Link to the Past in Microsoft Edge on desktop, then clicked "Export All Saves" and imported the saves into Google Chrome. Now, some games will not display "Loaded save." in the bottom left. Of the games I tested, Metroid Zero Mission, Kirby & The Amazing Mirror, and Kirby: Nightmare in Dream Land will not load saves. This applies in both Chrome and Edge on Windows 11 desktop and Google Chrome on Android 14.

load save

Hey so i exported a save for a game and i tried loading it in but idk how do you think you could tell me the proper way or if it even works?

404: Not Found

I am hosting the source code on cPanel, and the home page loads up perfectly however when I press on a game, I get "404: Not Found The resource requested could not be found on this server!" error. I was hoping that I could get some assistance with this, I tried to watch a YouTube video where they talked about .htaccess files and I tried to implement that into my code but that didn't work either.

As it's pretty obvious, I don't know what I'm doing so pardon the silly question.

The site I'm trying to do this on is https://testsitelol.org

Minish cap uses PAL version

The minish cap built in ROM uses the PAL version of the game, which has several bugs that are not in the US or Japanese versions

Saving and loading doesn't work

When I attempt to save a game it doesn't work.
I save in-game then I select "export all saves" I then attempt to load the save, or even just reopen the game without loading, make sure to hit play, but then I just get a white screen.
What's going on?

DMCA Takedown Notice on jsemu2

Just an FYI that the jsemu2 repo has been taken down for...

"marketing or otherwise making available products and/or services that infringe 
on ESA Members’ copyrights and trademarks"

e.g.
• https://jsemu2.github.io/gba/launcher.html#advancewars
• https://jsemu2.github.io/gba/launcher.html#advancewars2
• https://jsemu2.github.io/gba/launcher.html#bomberman_max2blue
• https://jsemu2.github.io/gba/launcher.html#bomberman_tournament

full report here

And I noticed that your repo similarly uses licensed games to demo gba.js

It might be worth swapping these out with some open source games.

Saving games

how do i save a game to play it later if my tab closes. i am confused with the export files

GB/GBC support

I would like if you could make it so you can also run GB/GBC games, and add your own the the homepage. (ex. Kirby's Dreamland, Oracle Of Ages)

just a Question of interest

Regarding the Audio FIFO
In the push8 function;
why would you push the sample 4 times into the fifo? :)
wouldnt one want to fill the rest of the 32bit with leading zeroes (if the fifo is read in 32bit chunks)?
From my understanding, the audioplayer would play/repeat the sample 4 times which should probably end in some weird sound.

What am i not getting here?

I would really appreciate an answer

function i'm reffering to:
GameBoyAdvanceFIFO.prototype.push8 = function (sample) {
sample = sample | 0;
this.push(sample | 0);
this.push(sample | 0);
this.push(sample | 0);
this.push(sample | 0);
}

Network features needed

Will it add network API in the near future? So that players can link together through websocket or webRTC via the server. Many gba games would be more fun if it could played in multiplayr mode.

Internal representation of -1 inconsistent with other emulators

I wrote a small program using tonc that just displays the string resulting from sprintf(str, "should print \"-1\": %d\n", -1);. The resulting GBA file faithfully prints should print "-1": -1 on mGBA on mac, PizzaBoy on Android, and SkyEmu in browser; but for gba.js.org, it prints should print "-1": -4294967297.

-4294967297 is 0x100000001 in hex; I would expect 0xffffffff instead. If I change the format string from %d to %x, all emulators print 0xffffffff. To me this indicates that the affected code is in sprintf, but the bug is in the emulator as an identical sprintf version is compiled into the same .gba file that results in different behavior per emulator.

Screenshots:

SkyEmu (web.skyemu.app):
Screen Shot 2023-08-18 at 4 00 46 PM

GBA.JS.ORG:
Screen Shot 2023-08-18 at 4 00 01 PM

main.c:

#include <string.h>
#include <tonc.h>

void update_console() {
	tte_erase_screen();
	tte_write("#{P:1,1}");
	char str[48];
	sprintf(str, "should print \"-1\": %d\n", -1);
	tte_write(str);
}

int main() {
	REG_DISPCNT= DCNT_OBJ | DCNT_OBJ_1D;
	REG_DISPCNT = REG_DISPCNT | DCNT_MODE0 | DCNT_BG0 | DCNT_BG1;
	REG_BGCNT[1]= BG_CBB(1) | BG_SBB(31) | BG_4BPP | BG_REG_32x32;

	tte_init_se(1, (BG_CBB(1))|BG_SBB(31), 0, CLR_YELLOW, 14, NULL, NULL);

	/* Main Loop */
	while(1) {
		vid_vsync();
		update_console();
	}

	return 0;
}

Attached .zip file includes sources and built .gba file. Depends on a working devkitPro toolchain to build from source.

gba-test.zip

Make a guide on how to add roms

I have a few roms of my own that I would like to run that aren't on the current list. I don't know if you would accept them and add them on to this project, so I wanted a guide so I can add it to my own fork.

Keybinding for on-screen buttons

The emulator works very well on computer. But I seems can't do the keybinding for on-screen buttons of the emulator. And the on-screen buttons don't work by default. Did I miss anything? Thanks.

Save Files

With the save outputs that the online emulator creates, is there a way to change these to be compatible with another emulator like delta for example so that they can be moved from one to the other and vice versa?

I can open the games

Describe the bug: A clear and concise description of what the bug is, what you expected to happen, and steps to reproduce the behavior.
the games won't open and say Your file couldn’t be accessedIt may have been moved, edited, or deleted. ERR_FILE_NOT_FOUND

Screenshots: If applicable, add screenshots to help explain your problem.
Screenshot 2024-04-08 9 48 01 AM

Device information: Information about the device you used to find the bug, including the OS and browser version.

Additional context: Add any other context about the problem here.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.