News: 11 March 2016 - Forum Rules
Current Moderators - DarkSol, KingMike, MathOnNapkins, Azkadellia, Danke

Author Topic: Snes emulators (Canoe, Snes9x) -- game problems and fixes  (Read 300626 times)

pimpinelephant

  • Full Member
  • ***
  • Posts: 182
    • View Profile
Re: Snes emulators (Canoe, Snes9x) -- game problems and fixes
« Reply #2780 on: June 04, 2018, 11:39:20 pm »
This patch changes the ocean color to black (https://imgur.com/XqtiuvN), this is how it looks the same screen with previous patch act2_1a.ips (https://imgur.com/I5v020g).

Noooo!!!!!!! :laugh:

I think I already know what the issue is, let me try again.

Thanks for all of the testing SupaSAIAN, I promise I will get to Ganbare... eventually! :laugh:

SupaSAIAN

  • Sr. Member
  • ****
  • Posts: 289
    • View Profile
Re: Snes emulators (Canoe, Snes9x) -- game problems and fixes
« Reply #2781 on: June 04, 2018, 11:47:51 pm »
Noooo!!!!!!! :laugh:

I think I already know what the issue is, let me try again.

Thanks for all of the testing SupaSAIAN, I promise I will get to Ganbare... eventually! :laugh:

Don't worry about Ganbare, it's funny to test all kind of patches and see what unexpected things happends.  :laugh:

pimpinelephant

  • Full Member
  • ***
  • Posts: 182
    • View Profile
Re: Snes emulators (Canoe, Snes9x) -- game problems and fixes
« Reply #2782 on: June 06, 2018, 10:14:13 am »
ActRaiser 2 (USA)
0000
act2_2a
https://www.sendspace.com/file/xjdxeh

Things to look for:
- Top/bottom lines on world map.
- If everything else is working correctly as well.

If this works, I'll explain why in my next comment.
Hoping it works! :)

reyvgm

  • Hero Member
  • *****
  • Posts: 1162
    • View Profile
Re: Snes emulators (Canoe, Snes9x) -- game problems and fixes
« Reply #2783 on: June 06, 2018, 11:28:15 am »
Wait a second, don't you have a SNESC? You can fix and test yourself :P

Or do you just want people to double check?

SupaSAIAN

  • Sr. Member
  • ****
  • Posts: 289
    • View Profile
Re: Snes emulators (Canoe, Snes9x) -- game problems and fixes
« Reply #2784 on: June 06, 2018, 11:31:54 am »
ActRaiser 2 (USA)
0000
act2_2a
https://www.sendspace.com/file/xjdxeh

Things to look for:
- Top/bottom lines on world map.
- If everything else is working correctly as well.

If this works, I'll explain why in my next comment.
Hoping it works! :)

For me the game now works fine, no blue lines at top or bottom, no black ocean or no zooming slowdowns. :thumbsup:
Maybe some one more familiariced with this game than me can test it better, i have recorded a video to show:
https://www.youtube.com/watch?v=SEEppoNUom8

pimpinelephant

  • Full Member
  • ***
  • Posts: 182
    • View Profile
Re: Snes emulators (Canoe, Snes9x) -- game problems and fixes
« Reply #2785 on: June 06, 2018, 12:23:50 pm »
Wait a second, don't you have a SNESC? You can fix and test yourself :P

Or do you just want people to double check?

Oh no! They're onto me! :laugh:

Yeah, I really should do the testing myself, but... well... I'm lazy! :P
But yeah, I do some testing myself, but it really starts to become tiring going back/forth from the TV to the PC.
Especially with the amount of attempts I try for each fix.

I've realized that certain PC emulators are very close to Canoe.
So the majority of my testing actually happens right on the PC.

But yeah, you're right. :laugh:
I really should test these things myself, so I apologize for forcing that upon you guys. :P


For me the game now works fine, no blue lines at top or bottom, no black ocean or no zooming slowdowns. :thumbsup:
Maybe some one more familiariced with this game than me can test it better, i have recorded a video to show:
https://www.youtube.com/watch?v=SEEppoNUom8

Woohoo! :woot!:
ActRaiser 2 is officially 100% fixed! :crazy:

Thank you SupaSAIAN!


Explanation:

The POWER of HDMA!

While changing the backdrop color, I realized something.
The ocean tiles are, well, gone. They are never displayed.
This was one of Sluffy's fixes.
It made the ocean color a single uniform color (backdrop), instead of ever-so-slightly different when the ocean tiles stop and becomes the backdrop color.
This was also required since Canoe completely and utterly fails to properly emulate $211A's fill-outside-space-with-tile $00.

I tried turning the backdrop color black during the world map view, but since ocean tiles aren't included in VRAM, it just displayed the black backdrop for the ocean.
So backdrop editing is a no-go.

BUT! There was still one option left to go.
HDMA! Damn, this thing is amazing!
HDMA = Allows editing of PPU registers on each SCANLINE! That's right, each scanline!
This is how ActRaiser 2 accomplishes a mode 7 layer in mode 1 ($2105).
Anyways, luckily for us, ActRaiser 2 only uses 7 of the 8 available DMA channels during the world map view.
That leaves us one left over for us to use.

Created an HDMA routine that forces brightness to 0, or black, ($2100 bits 2-0) for the first scanline as well as the 224th scanline.
All other scanlines display full brightness.
BUT! We need to specify to enable this HDMA only during the world map view.
Simple solution, create a comparison check to verify which screen we are looking at.

Compare the current value of $212C (enables/disables main screen layers) to the value it contains when displaying the world map.
If true, enable channel 8 HDMA. If false, disable channel 8 HDMA.

And viola! No more backdrop color seeping through the top and bottom scanlines when on the world map view!
« Last Edit: June 06, 2018, 12:32:16 pm by pimpinelephant »

SupaSAIAN

  • Sr. Member
  • ****
  • Posts: 289
    • View Profile
Re: Snes emulators (Canoe, Snes9x) -- game problems and fixes
« Reply #2786 on: June 06, 2018, 02:38:56 pm »


Woohoo! :woot!:
ActRaiser 2 is officially 100% fixed! :crazy:

Thank you SupaSAIAN!


Explanation:

The POWER of HDMA!

While changing the backdrop color, I realized something.
The ocean tiles are, well, gone. They are never displayed.
This was one of Sluffy's fixes.
It made the ocean color a single uniform color (backdrop), instead of ever-so-slightly different when the ocean tiles stop and becomes the backdrop color.
This was also required since Canoe completely and utterly fails to properly emulate $211A's fill-outside-space-with-tile $00.

I tried turning the backdrop color black during the world map view, but since ocean tiles aren't included in VRAM, it just displayed the black backdrop for the ocean.
So backdrop editing is a no-go.

BUT! There was still one option left to go.
HDMA! Damn, this thing is amazing!
HDMA = Allows editing of PPU registers on each SCANLINE! That's right, each scanline!
This is how ActRaiser 2 accomplishes a mode 7 layer in mode 1 ($2105).
Anyways, luckily for us, ActRaiser 2 only uses 7 of the 8 available DMA channels during the world map view.
That leaves us one left over for us to use.

Created an HDMA routine that forces brightness to 0, or black, ($2100 bits 2-0) for the first scanline as well as the 224th scanline.
All other scanlines display full brightness.
BUT! We need to specify to enable this HDMA only during the world map view.
Simple solution, create a comparison check to verify which screen we are looking at.

Compare the current value of $212C (enables/disables main screen layers) to the value it contains when displaying the world map.
If true, enable channel 8 HDMA. If false, disable channel 8 HDMA.

And viola! No more backdrop color seeping through the top and bottom scanlines when on the world map view!

Awsome, I can confirm it also works with this Spanish translation: http://www.romhacking.net/translations/3404/:thumbsup:

matt!

  • Full Member
  • ***
  • Posts: 139
  • JUS4QIX
    • View Profile
Re: Snes emulators (Canoe, Snes9x) -- game problems and fixes
« Reply #2787 on: June 06, 2018, 03:00:25 pm »
Nice work pimpinelephant! Really enjoying your explanations, also.

Domino089

  • Jr. Member
  • **
  • Posts: 45
    • View Profile
Re: Snes emulators (Canoe, Snes9x) -- game problems and fixes
« Reply #2788 on: June 06, 2018, 05:44:01 pm »
F1 Pole Position (USA) - sound fix
https://www.sendspace.com/file/jqu7vd

This patch fixes the black screen issue as well when leaving the intro running?

reyvgm

  • Hero Member
  • *****
  • Posts: 1162
    • View Profile
Re: Snes emulators (Canoe, Snes9x) -- game problems and fixes
« Reply #2789 on: June 06, 2018, 05:47:03 pm »

But yeah, you're right. :laugh:
I really should test these things myself, so I apologize for forcing that upon you guys. :P


No don't apologize, after all, you're the one doing the real work :)

I can't believe you were able to figure it out when sluffy couldn't. Gives me hope of you fixing every other game left hohohohoho ;)

June 06, 2018, 05:55:12 pm - (Auto Merged - Double Posts are not allowed before 7 days.)
Super Formation Soccer 95 della Serie A
Super Formation Soccer 95 della Serie A (UCC Xaqua Version)
Super Formation Soccer 96 - World Club Edition

F1 Pole Position (USA) - sound fix
https://www.sendspace.com/file/jqu7vd

F1 Pole Position 2 (Europe) - Region Patch plus sound fix
https://www.sendspace.com/file/wj3e1n

Thanks for the images. I changed the description to those Super Formation Soccer games. I really don't know what happened. I tested those games with different IDs and I remember getting off-screen menus. There's no way I could have tested 3 different games and made the same mistake on all 3.

As for the F1 Pole Position patches. F1 Pole 1: does the patch also fix the black screens? F1 Pole 2: I don't see any reports of the game having sound issues before? What were the issues exactly?
« Last Edit: June 06, 2018, 05:55:12 pm by reyvgm »

SupaSAIAN

  • Sr. Member
  • ****
  • Posts: 289
    • View Profile
Re: Snes emulators (Canoe, Snes9x) -- game problems and fixes
« Reply #2790 on: June 07, 2018, 01:11:04 am »
This patch fixes the black screen issue as well when leaving the intro running?

I'm not sure, but it also seems fixed: https://www.youtube.com/watch?v=ThOUoGF-LJs.

Bosco82

  • Full Member
  • ***
  • Posts: 234
    • View Profile
Re: Snes emulators (Canoe, Snes9x) -- game problems and fixes
« Reply #2791 on: June 07, 2018, 02:55:03 am »
F1 Pole Position - the sound fix also fixes the black screen crash

reyvgm

  • Hero Member
  • *****
  • Posts: 1162
    • View Profile
Re: Snes emulators (Canoe, Snes9x) -- game problems and fixes
« Reply #2792 on: June 07, 2018, 09:19:56 am »
pimpinelephant can you post the Top Racer patch you made that fixes the issues, but that does not include the thing about reducing the rom size? Peronsally I want to leave games with their default official size and just apply the fixes.

pimpinelephant

  • Full Member
  • ***
  • Posts: 182
    • View Profile
Re: Snes emulators (Canoe, Snes9x) -- game problems and fixes
« Reply #2793 on: June 07, 2018, 11:18:42 am »
pimpinelephant can you post the Top Racer patch you made that fixes the issues, but that does not include the thing about reducing the rom size? Peronsally I want to leave games with their default official size and just apply the fixes.

Oh, the 3b patches are the correct sized ROMs.
Official = 512 KB
Sluffy = 1 MB

I'm extremely confident that Sluffy only did that to quickly test it and planned to move it back into original 512 KB, before he had to quit all of this.
Especially since the internal ROM size was still listed as 512 KB with Sluffy's patch.

I just moved the tiny bit of code from the added-on 512 KB space into the original 512 KB space.

reyvgm

  • Hero Member
  • *****
  • Posts: 1162
    • View Profile
Re: Snes emulators (Canoe, Snes9x) -- game problems and fixes
« Reply #2794 on: June 07, 2018, 01:27:19 pm »
Ah got it, didn't know sluffy had increased the size.

So the top racer patch has the same fixes as the top gear patch?  Because as far as I can remember, he only worked on the Top Gear one and never really updated the Top Racer one with those fixes.

pimpinelephant

  • Full Member
  • ***
  • Posts: 182
    • View Profile
Re: Snes emulators (Canoe, Snes9x) -- game problems and fixes
« Reply #2795 on: June 07, 2018, 02:18:43 pm »
Ah got it, didn't know sluffy had increased the size.

So the top racer patch has the same fixes as the top gear patch?  Because as far as I can remember, he only worked on the Top Gear one and never really updated the Top Racer one with those fixes.

Yeah, he was only able to finish work on Top Gear.

I just applied the same changes onto Top Racer.
They are extremely similar games with only slight differences between the ROMs.

So I just had to slightly edit the fixes to properly point to the correct spot on the Top Racer ROM.

reyvgm

  • Hero Member
  • *****
  • Posts: 1162
    • View Profile
Re: Snes emulators (Canoe, Snes9x) -- game problems and fixes
« Reply #2796 on: June 07, 2018, 03:44:34 pm »
Alrighty, thanks!

matt!

  • Full Member
  • ***
  • Posts: 139
  • JUS4QIX
    • View Profile
Re: Snes emulators (Canoe, Snes9x) -- game problems and fixes
« Reply #2797 on: June 07, 2018, 06:25:50 pm »
I do hope sluffy is ok. Sending good vibrations his way.
« Last Edit: June 08, 2018, 04:09:38 am by matt! »

Bosco82

  • Full Member
  • ***
  • Posts: 234
    • View Profile
Re: Snes emulators (Canoe, Snes9x) -- game problems and fixes
« Reply #2798 on: June 08, 2018, 01:09:14 am »
MLBPA Baseball has the same freezing issue as the japanese version Fighting Baseball

teahouser

  • Jr. Member
  • **
  • Posts: 54
    • View Profile
Re: Snes emulators (Canoe, Snes9x) -- game problems and fixes
« Reply #2799 on: June 08, 2018, 06:32:45 am »
The Great Battle IV (AG Translation) The top line of the screens status display flickers.