linuxserver / docker-emulatorjs

Web based retro emulation frontend with rom scanning and automated art ingestion.
GNU General Public License v3.0
509 stars 51 forks source link

[BUG] Game Boy Save State Load Not Working #58

Closed Weatwagon closed 8 months ago

Weatwagon commented 8 months ago

Is there an existing issue for this?

Current Behavior

When loading game save state progress bar will show loading and get to 100% but the game state does not change.

Expected Behavior

The expected behavior is the game state should change to the loaded save state.

Steps To Reproduce

Run GB classic and choose a game, create a save state, then try to load save state. Save state does not load

Environment

- OS: RaspberryPi 4 Docker
- How docker service was installed: portainer app template

CPU architecture

arm64

Docker creation

portainer app template json:

{
            "categories": [
                "Games"
            ],
            "description": "In browser web based emulation portable to nearly any device for many retro consoles. A mix of emulators is used between Libretro and EmulatorJS.",
            "env": [
                {
                    "default": "1000",
                    "label": "PUID",
                    "name": "PUID"
                },
                {
                    "default": "1000",
                    "label": "PGID",
                    "name": "PGID"
                }
            ],
            "image": "lscr.io/linuxserver/emulatorjs:latest",
            "logo": "https://raw.githubusercontent.com/EmulatorJS/EmulatorJS/main/docs/Logo-light.png",
            "name": "EmulatorJS",
            "platform": "linux",
            "ports": [
                "3003:3000/tcp",
                "3008:80/tcp",
                "4001:4001/tcp"
            ],
            "restart_policy": "unless-stopped",
            "title": "EmulatorJS",
            "type": 1,
            "volumes": [
                {
                    "bind": "/portainer/Files/AppData/Config/emulatorjs",
                    "container": "/config"
                },
                {
                    "bind": "/portainer/Downloads/Roms",
                    "container": "/data"
                }
            ],
            "note": "<b>Template created by Pi-Hosted Series</b><br><b>Check our Github page: <a href=\"https://github.com/pi-hosted/pi-hosted\" target=\"_blank\">https://github.com/pi-hosted/pi-hosted</a></b><br><br><b>Official Webpage: </b><a href=\"https://hub.docker.com/r/linuxserver/emulatorjs\" target=\"_blank\">https://hub.docker.com/r/linuxserver/emulatorjs</a><br><b>Official Docker Documentation: </b><a href=\"https://github.com/EmulatorJS/EmulatorJS\" target=\"_blank\">https://github.com/EmulatorJS/EmulatorJS</a><br><br><br>"
        },

### Container logs

```bash
Docker logs don't show anything useful but the web console does show 
[ERROR] [State]: Failed to load state from "/home/web_user/retroarch/userdata/states/Fighting%20Simulator%202%20in%201%20-%20Flying%20Warriors%20(USA,%20Europe).state".
github-actions[bot] commented 8 months ago

Thanks for opening your first issue here! Be sure to follow the relevant issue templates, or risk having this issue marked as invalid.

j0nnymoe commented 8 months ago

Can you try another browser? Save states are saved to your browser cache.

Weatwagon commented 8 months ago

I have tried two different PCs on edge and iOS Safari. Other consoles save states work fine. I'm just having this issue with game boy classic.

theclergyman commented 8 months ago

This is a known issue with the Gearboy core. As workaround you can change the core to emulator": "libretro-gambatte" in the gb config file. See https://github.com/linuxserver/docker-emulatorjs/issues/31

Weatwagon commented 8 months ago

I apologize I missed that one. Is there any drawbacks to using this different core?

theclergyman commented 8 months ago

No. I'm using gambatte for quite some time because of this and didn't had any issues.

Weatwagon commented 8 months ago

Closing, duplicate issue. Changing to libretro-gambatte fixed issue.