Mesen - Emulator

Discuss emulation of the Nintendo Entertainment System and Famicom.

Moderator: Moderators

User avatar
Yave Yu
Posts: 94
Joined: Sun Jan 19, 2014 6:15 pm

Re: Mesen - Emulator

Post by Yave Yu »

Wow, nice!
bklD
Posts: 41
Joined: Fri Sep 01, 2017 8:56 am

Re: Mesen - Emulator

Post by bklD »

Sour wrote: Sat Dec 28, 2024 8:04 pm
Sour wrote: Thu Dec 26, 2024 1:42 am except for that one Shougi game using the ST018 ARM CPU which is still not supported.
ST018 support was just added (along with a debugger to match, etc.), so that's the last coprocessor finally done. Though looking at fullsnes again, I just realized I never added support for the sufami turbo, so I'll have to look into this, too.
so everything is implemented and compatibility has reached 100%? congratulations! :D :beer:
UnrealDeveloper
Posts: 3
Joined: Sat Jul 27, 2024 11:30 pm

Re: Mesen - Emulator

Post by UnrealDeveloper »

@sour I just found a palette bug in Mesen's emulation of a Game Gear "Prince of Persia". Mesen shows wrong colors for both background and sprites. Using bios.gg somehow produces even worse result. I didn't notice any palette problems with other Game Gear games. Kega Fusion shows correct colors in "Prince of Persia".

Also. there is a less critical issue, that Mesen by default cuts too much screen (using overscan). There is a nice select preset function that can be used to choose "Full frame (excluding first column)" but I wonder if it's possible that Mesen will try to select a correct preset depending on a game. Kega Fusion somehow chooses a correct overscan depending on a game, I'm not sure however, if it uses a game db or some indication in a rom.

Thanks for the great Game Gear emulation!
Attachments
Mesen Prince of Persia without BIOS.png
Mesen Prince of Persia without BIOS.png (6.11 KiB) Viewed 1511 times
Mesen Prince of Persia with BIOS.png
Mesen Prince of Persia with BIOS.png (5.89 KiB) Viewed 1511 times
Kega Prince of Persia.png
Kega Prince of Persia.png (17.27 KiB) Viewed 1511 times
jxkFp3th
Posts: 2
Joined: Mon Jan 06, 2025 7:39 pm

Re: Mesen - Emulator

Post by jxkFp3th »

hey i use "unifont-16.0.01.otf", 24pt render to 8x12 pixel, generate all 55509 chars,
make osd label to support all CJK language.
but i can't pull request.
maybe u can merge it.
https://github.com/kokutoukiritsugu/Mesen2/commit/3e30f8ebd87b608563937d32bf4650273a5727bc
Snipaste_2025-01-07_10-53-27.png
Snipaste_2025-01-07_10-51-47.png
Snipaste_2025-01-07_10-51-47.png (6.5 KiB) Viewed 1420 times
wchisme_2000
Posts: 3
Joined: Thu Jan 09, 2025 3:17 pm

Re: Mesen - Emulator

Post by wchisme_2000 »

jxkFp3th wrote: Mon Jan 06, 2025 7:55 pm hey i use "unifont-16.0.01.otf", 24pt render to 8x12 pixel, generate all 55509 chars,
make osd label to support all CJK language.
but i can't pull request.
maybe u can merge it.
https://github.com/kokutoukiritsugu/Mesen2/commit/3e30f8ebd87b608563937d32bf4650273a5727bc

Snipaste_2025-01-07_10-53-27.png

Snipaste_2025-01-07_10-51-47.png
I tried to replace this font library, and VS2022 did not display any errors during debugging and can run normally. However, the program compiled into AOT does not respond when running. Debugging the generated EXE file using VS prompts stack overflow. More code may need to be modified
Zuluuk
Posts: 1
Joined: Thu Jan 09, 2025 3:50 pm

Re: Mesen - Emulator

Post by Zuluuk »

Hi, I am posting this here hopefully someone can help. I am using the mesen to play nes zaper. I have a sinden lightgun. The accuracy is very good however I want to put the game in full screen. If I don't use the full screen exclusive then the menu bar which is hidden will show up if the gun is move anywhere near the top.

If i use fullscreen exclusive then if I shoot anywhere off screen such as not in the area where the graphic is displaying the full screen is exited the game looses focus. Location similar to the attached image.
Attachments
da828748-4c9d-402a-b17e-478029940075.jpg
Last edited by Zuluuk on Thu Jan 09, 2025 4:02 pm, edited 1 time in total.
Sour
Posts: 923
Joined: Sun Feb 07, 2016 6:16 pm

Re: Mesen - Emulator

Post by Sour »

bklD wrote: Sun Jan 05, 2025 10:42 am so everything is implemented and compatibility has reached 100%? congratulations! :D :beer:
It's hard to make any claims about perfect compatibility - I certainly haven't tested all the games myself. I know one of the RTCs that a game uses isn't implemented yet, too. Other than that, everything "should" be working properly, but it hasn't necessarily been thoroughly re-tested after my recent changes. Someone on the snesdev discord did spend a lot of their time retesting a lot of games and reporting a few regressions that have all been fixed, though, so it should in a fairly good state.

UnrealDeveloper wrote: Mon Jan 06, 2025 2:49 am I just found a palette bug in Mesen's emulation of a Game Gear "Prince of Persia"
Thanks for the report! I haven't looked into it a whole lot yet, but as far as I'm understanding, the Game Gear version of "prince of persia" uses the Game Gear in "SMS mode", which is not something the core supports at the moment. There are at least a couple of other games that do this too, iirc. I'll have a proper look when I have the time.

jxkFp3th wrote: Mon Jan 06, 2025 7:55 pm but i can't pull request.
maybe u can merge it.
Sorry, PRs are closed because I generally do not want to deal with reviewing/merging changes/features at the moment, for a variety of reasons. The ability to display all CJK characters might be useful for some people, but I'd rather not commit a 4mb source code file for this at the moment. The current Japanese font was already bigger than I would have liked, and this is 8x bigger than that. Maybe it's something worth considering at some point in the future, but it's not a priority at the moment, and I think a different approach would have to be found, rather than embedding very large fonts into the code. (and the licenses on the fonts are also a potential concern, etc.)

Zuluuk wrote: Thu Jan 09, 2025 3:59 pm If i use fullscreen exclusive then if I shoot anywhere off screen such as not in the area where the graphic is displaying the full screen is exited the game looses focus.
I think this is probably a bug - I'm not sure it was intended to behave that way. I'll take a look when I have the time, thanks!
jxkFp3th
Posts: 2
Joined: Mon Jan 06, 2025 7:39 pm

Re: Mesen - Emulator

Post by jxkFp3th »

Lynx
Posts: 1
Joined: Sun Apr 14, 2024 4:38 am

Re: Mesen - Emulator

Post by Lynx »

Any chance HD Mode 7 for SNES emulation will ever be added?
sards3
Posts: 2
Joined: Fri Jan 17, 2025 12:40 am

Re: Mesen - Emulator

Post by sards3 »

Is this the right place for an emulation bug report? The Game Boy game "Batman: The Video Game" seems not to work (it freezes shortly after boot). Thanks for all your great work on Mesen!
BenderScruffy
Posts: 15
Joined: Sat May 11, 2024 11:29 pm

Re: Mesen - Emulator

Post by BenderScruffy »

Robopon - Sun Version (USA) (SGB Enhanced) (GB Compatible).gbc
fails to load

Graphical glitch in homebrew demo: MENTAL RESPIRATOR
"Gin&Tonic drink" effect is not correct

Daiku no Gen-san - Robot Teikoku no Yabou (Japan).gb (Gensan 2)
speech during gameplay is way to soft to hear

Zerd no Densetsu (Japan).gb
crashes out straight away

Vila Caldan Color (PD) [C].gbc
characters are all black

Stunt Race 3D Demo (PD).gb
graphic glitches during gameplay
Sour
Posts: 923
Joined: Sun Feb 07, 2016 6:16 pm

Re: Mesen - Emulator

Post by Sour »

Lynx wrote: Sun Jan 12, 2025 2:33 am Any chance HD Mode 7 for SNES emulation will ever be added?
I don't have any immediate plans for this right now, but maybe at some point in the future.

sards3 wrote: Fri Jan 17, 2025 12:44 am The Game Boy game "Batman: The Video Game" seems not to work (it freezes shortly after boot)
Thanks for the report! This should be fixed now.

BenderScruffy wrote: Sat Jan 18, 2025 6:06 pm
Thanks for the reports!
-Robopon: This uses a mapper/cartridge type that isn't supported yet, so this is normal.
-Mental respirator: The effect should be fixed now
-Daiku no Gen-san: I think you've reported this one already in the past, it's already on my list of things to look into, but I haven't yet.
-Zerd no Densetsu: This game crashes in GBC mode, this is normal (matches what happens on an actual GBC). If you play it in GB mode, it runs correctly.
-Vila Caldar Color: This demo(?) doesn't initialize the palette at all, not sure what it does on hardware, but it should now get random colors in Mesen if you have the power on ram option set to use random ram (which is the default) - this matches what SameBoy does.
-Stunt Race 3D Demo: This seems to have the same issues in SameBoy, so my guess is that it's broken on hardware, too?
BenderScruffy
Posts: 15
Joined: Sat May 11, 2024 11:29 pm

Re: Mesen - Emulator

Post by BenderScruffy »

Stunt Race 3D Demo (PD).gb
graphic glitches during gameplay

yes you are correct
it is broken on hardware aswell
i just tried it on my gameboy
wchisme_2000
Posts: 3
Joined: Thu Jan 09, 2025 3:17 pm

Re: Mesen - Emulator

Post by wchisme_2000 »

Hi, there is an SFC ROM:Tengai Makyou Zero (Japan)
cannot run, please check it, thx
sards3
Posts: 2
Joined: Fri Jan 17, 2025 12:40 am

Re: Mesen - Emulator

Post by sards3 »

Another game bug report: Sylvan Tale (Game Gear) has glitched graphics in the intro (after pressing start).
Post Reply