Homebrew Snes9xGX Mod [Preview + WiiUPro + ScreenShot button]

niuus

Well-Known Member
Member
Joined
Mar 4, 2016
Messages
2,023
Trophies
1
XP
4,456
Country
Venezuela
Yeah, Chrono Trigger has been my primary litmus test. I'm hoping that the remaining skips are due to lag, and might be related to the fast-forward issue (basically, the MSU isn't handling lag *at all* which means if you fast forward repeatedly it gets way out of sync because it drops samples every time you start and stop FF, so for videos you'll really notice because the audio will finish way before the video does).
Yeah, it makes sense. I haven't noticed too much of this since i don't tend to use FF on MSU videos, but only on normal gameplay dialogs, etc.

Beyond that, it's back to the audio core, and I still have absolutely no idea what I'm doing there. OV2 and bearoso have said they'd look into the desync, so when that gets figured out I'll try to backport it here.
Great to know, and thanks again! Hopefully the snapshot and skips problems will be completely defeated once desync and other issues are sorted out.
 

qwertymodo

Well-Known Member
Member
Joined
Feb 1, 2010
Messages
827
Trophies
0
Age
34
Website
qwertymodo.com
XP
520
Country
United States
Figured out the snapshot problem! The bug is that creating a snapshot changes the current directory in the filebrowser object (probably to the snapshot directory), so when you try to load the next MSU-1 related file, it looks for it in the wrong directory. Unfortunately, because the original author didn't bother to implement the S9xGetFilename function, I'm not really sure how to get the right path. So, if anybody else is more familiar with the Gx-specific code, here is the line you need to fix:

https://github.com/qwertymodo/snes9xgx/blob/msu1/source/snes9x/msu1.cpp#L245

All you need to do is replace "browser.dir" with the folder containing the currently loaded ROM file.

Edit: Ok, I got it. This feels like such a dirty hack, but honestly, that describes so many things about this port, one more isn't going to hurt anybody. Snapshots are officially fixed.

https://github.com/qwertymodo/snes9xgx/commit/d11f8b067c7bd0eb3b22f4f78e9b04e6022c538e
 
Last edited by qwertymodo,
  • Like
Reactions: Badablek and niuus

niuus

Well-Known Member
Member
Joined
Mar 4, 2016
Messages
2,023
Trophies
1
XP
4,456
Country
Venezuela
Figured out the snapshot problem! The bug is that creating a snapshot changes the current directory in the filebrowser object (probably to the snapshot directory), so when you try to load the next MSU-1 related file, it looks for it in the wrong directory. Unfortunately, because the original author didn't bother to implement the S9xGetFilename function, I'm not really sure how to get the right path. So, if anybody else is more familiar with the Gx-specific code, here is the line you need to fix:

https://github.com/qwertymodo/snes9xgx/blob/msu1/source/snes9x/msu1.cpp#L245

All you need to do is replace "browser.dir" with the folder containing the currently loaded ROM file.

Edit: Ok, I got it. This feels like such a dirty hack, but honestly, that describes so many things about this port, one more isn't going to hurt anybody. Snapshots are officially fixed.

https://github.com/qwertymodo/snes9xgx/commit/d11f8b067c7bd0eb3b22f4f78e9b04e6022c538e
Holy guacamole, dude. You're on fire. I'll definitely be testing this in the morning, report soon.
 

qwertymodo

Well-Known Member
Member
Joined
Feb 1, 2010
Messages
827
Trophies
0
Age
34
Website
qwertymodo.com
XP
520
Country
United States
Check the other commit immediately before it (syncing msu-1 code to upstream), OV2's fix for fast-forward desync is in there, but there's still an issue specifically with fast forward during videos. It stays synced now, but if you ff during a video, it won't ever return to full speed, it drops to like 30fps until the video is over, stuttering horribly the whole time. Only happens during videos, and it immediately returns to normal once the video is done, so not a huge deal, but still investigating.

Sent from my m8wl using Tapatalk
 

niuus

Well-Known Member
Member
Joined
Mar 4, 2016
Messages
2,023
Trophies
1
XP
4,456
Country
Venezuela
Check the other commit immediately before it (syncing msu-1 code to upstream), OV2's fix for fast-forward desync is in there, but there's still an issue specifically with fast forward during videos. It stays synced now, but if you ff during a video, it won't ever return to full speed, it drops to like 30fps until the video is over, stuttering horribly the whole time. Only happens during videos, and it immediately returns to normal once the video is done, so not a huge deal, but still investigating.

Sent from my m8wl using Tapatalk
Oh! I didn't saw that commit, since i went straight to the one you pointed. Compiling again for tests...
 

niuus

Well-Known Member
Member
Joined
Mar 4, 2016
Messages
2,023
Trophies
1
XP
4,456
Country
Venezuela
Check the other commit immediately before it (syncing msu-1 code to upstream), OV2's fix for fast-forward desync is in there, but there's still an issue specifically with fast forward during videos. It stays synced now, but if you ff during a video, it won't ever return to full speed, it drops to like 30fps until the video is over, stuttering horribly the whole time. Only happens during videos, and it immediately returns to normal once the video is done, so not a huge deal, but still investigating.

Sent from my m8wl using Tapatalk
@qwertymodo Okey so, it went like this. I synced these 4 commits:
Sync MSU-1 code with upstream (1)
Add .bps patch support
Sync MSU-1 code with upstream (2)
Fix MSU-1 file loading after saving/loading snapshots

From what i understand, and correct me if i'm wrong, the 1st sync integrates:
MSU-1 pop/skip fixes
Fix MSU-1 audio memory leak
The 2nd sync, contains:
msu1: fix desync with turbo mode
msu1: drop samples equal to dsp dropped samples
msu1: generate even if muted

I couldn't reproduce the FF bug in videos, it went along fine when i used it while a video was playing. Tested in: A Link to the Past Redux, Super Road Blaster, Sonic CD.

Saving and loading a snapshot works pretty much fine in MSU-1 games. Great!

While IPS auto patching works, BPS auto patching is not. Tested with your Super Mario Kart MSU-1 patch.

The funky 'left/right warping' MSU-1 audio track issue is still present. For the moment, tested and noticed this in: Turtles in Time MSU-1, Rock n'Roll Racing MSU-1.

Another weird bug i just noticed: Load Rock n'Roll Racing MSU-1, Fast-Forward after you get past the title screen and into the demo game that auto-starts. Reset the game. FF again up until that same point, now the game will hang at the title screen, but the music will keep playing. *Might* happen to other MSU enabled games too while Fast-Forwarding (this doesn't happen to the game without it), but this was the one that i discovered some minutes ago.

Anyone have a fix for the random crashing when loading the games from an HDD?
Hey man, i haven't had issues at all while loading from USB. Maybe your HDD is going idle while you are playing?
 
Last edited by niuus,

ploggy

WAKA! WAKA!
Member
Joined
Aug 29, 2007
Messages
4,818
Trophies
2
XP
7,841
Country
United Kingdom
Is there anyone here who's willing to compile Snes9xGX?
Fix94 has released a patch that will allow Gamepad Controls (WiiU Gamepad) in vWii mode (through WiiVC) So basically Snes9xGX with Gamepad Controls! :P

Problem is Snes9xGX (and other Wii Homebrew) has to be recompiled with said patch to work :) So is there anyone who can take a crack at it?

https://github.com/FIX94/libwiidrc this is what needs to be added to Snes9x..
 
Last edited by ploggy,
  • Like
Reactions: rogerioronin

niuus

Well-Known Member
Member
Joined
Mar 4, 2016
Messages
2,023
Trophies
1
XP
4,456
Country
Venezuela
Is there anyone here who's willing to compile Snes9xGX?
Fix94 has released a patch that will allow Gamepad Controls (WiiU Gamepad) in vWii mode (through WiiVC) So basically Snes9xGX with Gamepad Controls! :P

Problem is Snes9xGX (and other Wii Homebrew) has to be recompiled with said patch to work :) So is there anyone who can take a crack at it?

https://github.com/FIX94/libwiidrc this is what needs to be added to Snes9x..
Can't promise anything, but i'll give it a try when i can.
 
  • Like
Reactions: ploggy

niuus

Well-Known Member
Member
Joined
Mar 4, 2016
Messages
2,023
Trophies
1
XP
4,456
Country
Venezuela
Looking for some people with:
- 3rd party Wii Classic Controller.
- 3rd party Wii Classic Controller Pro.
- Original Wii Classic Controller Pro.
- NES Classic Controller.
- SNES Classic Controller.
- 3rd party Wii U Pro Classic Controller.
- 3rd party Wiimote.
- 3rd party Wii Motion Plus attachment. (does this exist?)
- Original Wii Motion Plus attachment.
- Original Wii Remote Plus
- Nyko Wand+, PDP controllers, etc.

To test a special Snes9x GX build that i will post here, to check compatibility with the aforementioned controllers, and confirm that everything works fine. I would like the feedback to add every controller working to a new organized PDF manual plus a new update that i am working on.
 
Last edited by niuus,
  • Like
Reactions: ploggy

ploggy

WAKA! WAKA!
Member
Joined
Aug 29, 2007
Messages
4,818
Trophies
2
XP
7,841
Country
United Kingdom
Looking for some people with:
- 3rd party Wii Classic Controller.
- 3rd party Wii Classic Controller Pro.
- Original Wii Classic Controller Pro.
- NES Classic Controller.
- SNES Classic Controller.
- 3rd party Wii U Pro Classic Controller.
- 3rd party Wiimote.
- 3rd party Wii Motion Plus attachment. (does this exist?)
- Original Wii Motion Plus attachment.
- Original Wii Remote Plus
- Nyko Wand+, PDP controllers, etc.

To test a special Snes9x GX build that i will post here, to check compatibility with the aforementioned controllers, and confirm that everything works fine. I would like the feedback to add every controller working to a new organized PDF manual plus a new update that i am working on.
Would it be possible for you to add these changes to other GX Emulators too (NES/GBA) ??
 

niuus

Well-Known Member
Member
Joined
Mar 4, 2016
Messages
2,023
Trophies
1
XP
4,456
Country
Venezuela
Would it be possible for you to add these changes to other GX Emulators too (NES/GBA) ??
Specially those, yeah, since the Wii is my favorite all-round quick emulation machine. I tried with WiiMednafen but the code must be updated in order to use anything post-devkitpro 25... it's a real pain.
 
Last edited by niuus,

Edu64

Well-Known Member
Member
Joined
Jan 25, 2015
Messages
124
Trophies
0
Age
39
XP
1,289
Country
Cote d'Ivoire
Hello, a suggestion if you compile a new version of snes9x gx is to add an already existing option in the emulator "VBA gx mod", it is the image filter, in that emulator there is the option to select "sharp" or "soft" filter.
It would be convenient to have a sharper image depending on the source (480p or 480i)
Thank you!
 

niuus

Well-Known Member
Member
Joined
Mar 4, 2016
Messages
2,023
Trophies
1
XP
4,456
Country
Venezuela
Hello, a suggestion if you compile a new version of snes9x gx is to add an already existing option in the emulator "VBA gx mod", it is the image filter, in that emulator there is the option to select "sharp" or "soft" filter.
It would be convenient to have a sharper image depending on the source (480p or 480i)
Thank you!
I'll look into it. One of the things i have always wanted is to replace the HQ2X with a simpler 2xSAI/Super Eagle. I don't even know why the former was chosen from the start, since it is pretty heavy on the CPU.
 

Edu64

Well-Known Member
Member
Joined
Jan 25, 2015
Messages
124
Trophies
0
Age
39
XP
1,289
Country
Cote d'Ivoire
I'll look into it. One of the things i have always wanted is to replace the HQ2X with a simpler 2xSAI/Super Eagle. I don't even know why the former was chosen from the start, since it is pretty heavy on the CPU.

Great! These new options would greatly help the emulator.
I will be waiting for some update, thank you! :)
 

painless

Well-Known Member
Member
Joined
Dec 25, 2009
Messages
170
Trophies
0
XP
182
Country
United States
I downloaded these two files thinking this was for the Wii (since it's in the Wii Emulation thread) and to my surprise, this is for the WiiU!!! Yikes!!!!
 

niuus

Well-Known Member
Member
Joined
Mar 4, 2016
Messages
2,023
Trophies
1
XP
4,456
Country
Venezuela
I downloaded these two files thinking this was for the Wii (since it's in the Wii Emulation thread) and to my surprise, this is for the WiiU!!! Yikes!!!!
It is for the Wii only. Obviously you could use it on the Wii U too, but *inside* vWii.
 

Site & Scene News

Popular threads in this forum

General chit-chat
Help Users
  • K3Nv2 @ K3Nv2:
    $12 large any style pizza deal
  • K3Nv2 @ K3Nv2:
    Each bite is a $1 well spent
  • SylverReZ @ SylverReZ:
    @ZeroT21, Agreed. I hate oven pizza, only from pizza place.
    +1
  • K3Nv2 @ K3Nv2:
    Nah I can still go for totinos
  • RedColoredStars @ RedColoredStars:
    i like totinos party pizzas. lol.
  • RedColoredStars @ RedColoredStars:
    the cracker-like crust is great on those
  • RedColoredStars @ RedColoredStars:
    My neighbor and I are going to make this next month....
  • SylverReZ @ SylverReZ:
    Tiger crust is great.
  • K3Nv2 @ K3Nv2:
    I'm beefing with a neighbor currently each time I ask him for help with something he makes bs excuses then ignores my calls text but seems to randomly speak when I'm done with the project after doing things to help him
  • RedColoredStars @ RedColoredStars:
    DiGiorno Crispy Pan Pizza tasted pretty dang close to Pizza hut pan pizza, but Im not sure if theyve been discontinued or not. Havent seen them locally for a couple of months now.
  • RedColoredStars @ RedColoredStars:
    The croissant crust is still available though, but not quite as good imo.
  • RedColoredStars @ RedColoredStars:
    @SylverReZ Never heard of tiger crust. What is it?
  • SylverReZ @ SylverReZ:
    @RedColoredStars, Its known as tiger bread, also known as dutch crust.
  • Maximumbeans @ Maximumbeans:
    It's fuggin gooooood
    +1
  • RedColoredStars @ RedColoredStars:
    I mean. Whats different about it?
  • RedColoredStars @ RedColoredStars:
    Never even seen a tiger crust pizza in any stores around here. Walmart, Cub, or otherwise.
  • RedColoredStars @ RedColoredStars:
    Must be a regional thing.
  • RedColoredStars @ RedColoredStars:
    Gonna smoke this bowl then go get kitties ashes. <3
  • RedColoredStars @ RedColoredStars:
    Last thing I told her is how much I love her, and that Im not leaving her there forever and I promise to come back and take her back home with me.
  • Bunjolio @ Bunjolio:
    halllo
  • Black_Manta_8bit @ Black_Manta_8bit:
    hello, anyone is able to create cheat patches for cemu? i have a simple request if anyone can help
  • SylverReZ @ SylverReZ:
    @RedColoredStars, Rest in piece. Hope she rests well, she'll always love you too. :sad:
    SylverReZ @ SylverReZ: @RedColoredStars, Rest in piece. Hope she rests well, she'll always love you too. :sad: