News: 11 March 2016 - Forum Rules

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

sluffy

  • Hero Member
  • *****
  • Posts: 642
    • View Profile
Re: Snes emulators (Canoe, Snes9x) -- game problems and fixes
« Reply #760 on: March 23, 2018, 01:50:31 pm »
Thanks: 1st speculation is American Tail again.

Working on Pirates of Dark Water. Then probably Dark Law retrial. Nosferatu + Eye of the Beholder != Uniracers problem. So meh.

reyvgm

  • Hero Member
  • *****
  • Posts: 1290
    • View Profile
Re: Snes emulators (Canoe, Snes9x) -- game problems and fixes
« Reply #761 on: March 23, 2018, 02:10:53 pm »
Question:

There's a game that doesn't load on the SNESC, but there is a ROM that has been hacked (unknown for what purposes, maybe for copiers?), and that one does run on the SNESC.

If you were to take a look at the vanilla ROM and the hack, would it be possible for you to figure out what was done to it and maybe make a patch to let the vanilla ROM work on the SNESC?

FormerTree

  • Jr. Member
  • **
  • Posts: 24
    • View Profile
Re: Snes emulators (Canoe, Snes9x) -- game problems and fixes
« Reply #762 on: March 23, 2018, 02:33:49 pm »
Waited long time to get Uniracers (USA, clean, 0000 pid) off my board.
https://www.sendspace.com/file/rz8g6y
https://www.sendspace.com/file/s2k1e3

Don't know which will work. Guessing #1.

2P should show 4 racers at start (two top/bottom). Once goes out-of-bounds, then you should only see 2. Should behave like a normal racing game.

2A (CRC 0xD8BEF0E4):
- 1P works fine
- 2P, VS, and Demo Recordings do not. If the two players are on the same screen, the both unicycles are invisible in the bottom half. If the two players are NOT on the same screen, the lower half has two floating unicycles and some garbage graphics.

Screenshots:
Both unicycles on same screen
Both unicycles on different screens

2B (CRC 0xCF3252CE):
- 1P works fine
- 2P, VS, and Demo Recordings do not. If the two players are on the same screen, then both unicycles are invisible in the bottom half. if the two players are NOT on the same screen, the lower half has one floating unicycle.

Screenshots:
Both unicycles on same screen
Both unicycles on different screens

sluffy

  • Hero Member
  • *****
  • Posts: 642
    • View Profile
Re: Snes emulators (Canoe, Snes9x) -- game problems and fixes
« Reply #763 on: March 23, 2018, 03:01:33 pm »
@reyvgm
Worth a try comparing two.


Pirates of Dark Water (USA, 0000, clean pid) --- level clear screen
https://www.sendspace.com/file/hxfzxe

Shrink down 32x32 ==> 16x16 sprites.


Uniracers = uh oh. If Canoe blocks / glitches access to oam during drawing, 2p is kinda toast atm. Unknown buggy behavior. Savestates weren't used?


===1
Someone gave me ips of BS F-Zero Grand Prix 2 (J) [h1c]. Assuming it's that one.
« Last Edit: March 23, 2018, 03:35:46 pm by sluffy »

FormerTree

  • Jr. Member
  • **
  • Posts: 24
    • View Profile
Re: Snes emulators (Canoe, Snes9x) -- game problems and fixes
« Reply #764 on: March 23, 2018, 03:38:10 pm »
Uniracers = uh oh. If Canoe blocks / glitches access to oam during drawing, 2p is kinda toast atm. Unknown buggy behavior. Savestates weren't used?

No save states. In each test, booted game -> 1P -> select character and courses -> play -> reboot -> 2P -> etc. -> reboot -> VS -> etc. -> reboot -> wait for demo.

sluffy

  • Hero Member
  • *****
  • Posts: 642
    • View Profile
Re: Snes emulators (Canoe, Snes9x) -- game problems and fixes
« Reply #765 on: March 23, 2018, 03:47:25 pm »
Have to try moving oam around and kludge it.


BS F-Zero Grand Prix 2 (Japan, 0000 pid, clean)
https://www.sendspace.com/file/qpyr25

h1c = hacked up header + name edit
above = cleaned up header only

reyvgm

  • Hero Member
  • *****
  • Posts: 1290
    • View Profile
Re: Snes emulators (Canoe, Snes9x) -- game problems and fixes
« Reply #766 on: March 23, 2018, 03:47:31 pm »


===1
Someone gave me ips of BS F-Zero Grand Prix 2 (J) [h1c]. Assuming it's that one.

Errrm... I guess that's the one?

I didn't know there was a patch for it, I thought it was hardcoded into the ROM.

March 23, 2018, 03:48:05 pm - (Auto Merged - Double Posts are not allowed before 7 days.)
Have to try moving oam around and kludge it.


BS F-Zero Grand Prix 2 (Japan, 0000 pid, clean)
https://www.sendspace.com/file/qpyr25

h1c = hacked up header + name edit
above = cleaned up header only

Oh, so the header was the issue? Thanks!

Who the heck gave you that ips before I even asked about it?? A mind reader?

March 23, 2018, 04:02:15 pm - (Auto Merged - Double Posts are not allowed before 7 days.)
Shrink down 32x32 ==> 16x16 sprites.

I don't know what that means specifically on the technical side, but couldn't that be done for those hi-res games that have menus that go off screen? Reduce their bitmaps/text to half the size? From what it looks like, the menus are doubled in size (due to the hi-res) and instead of 'downscaling' them to fit the screen, they go off screen. From what I remember, everything that's normal res (backgrounds, images) are fine, but the hi-res text is the one that goes out of bounds.
« Last Edit: March 23, 2018, 04:02:15 pm by reyvgm »

sluffy

  • Hero Member
  • *****
  • Posts: 642
    • View Profile
Re: Snes emulators (Canoe, Snes9x) -- game problems and fixes
« Reply #767 on: March 23, 2018, 05:31:02 pm »
I think it's case-by-case. Something like Human GP2 logo or Yu Yu Hakusho logo, maybe yes can be redrawn down 1/2 lossless. If it's 8x16 font game, can't do it without 4x16 vwf + possible text blur.


Uniracers (0000 pid, usa, clean) --- try using canoe's bug against itself (2P)
https://www.sendspace.com/file/3jyrhe

FormerTree

  • Jr. Member
  • **
  • Posts: 24
    • View Profile
Re: Snes emulators (Canoe, Snes9x) -- game problems and fixes
« Reply #768 on: March 23, 2018, 06:11:34 pm »
Uniracers (0000 pid, usa, clean) --- try using canoe's bug against itself (2P)
https://www.sendspace.com/file/3jyrhe

Thanks again for trying. I'll keep testing patches if you keep making them.

uni3.ips -> US ROM w/ patch CRC 0x94bfb8c6

No fixes for 2P, broke 1P. Click links for screenshots:
1P: Flying unicycle when not on same screen
2P, same screen: No unicycles on bottom
2P, different screen: Flying unicycle on bottom

sluffy

  • Hero Member
  • *****
  • Posts: 642
    • View Profile
Re: Snes emulators (Canoe, Snes9x) -- game problems and fixes
« Reply #769 on: March 23, 2018, 07:00:02 pm »
Appreciated. Next trick:
https://www.sendspace.com/file/klqy93
https://www.sendspace.com/file/pn18kk


If these fail, going to launch the nuclear attack. Because Canoe refuses to update its sprite cache outside vblank, going to draw so many invisible racers that Canoe won't get to draw the bad ones. Like Dream Basketball on real hardware.

FormerTree

  • Jr. Member
  • **
  • Posts: 24
    • View Profile
Re: Snes emulators (Canoe, Snes9x) -- game problems and fixes
« Reply #770 on: March 23, 2018, 07:25:55 pm »
Appreciated. Next trick:
https://www.sendspace.com/file/klqy93
https://www.sendspace.com/file/pn18kk

4A: (CRC 0xD054CEB9)
1p: Works fine
2p: No unicycles on bottom screen when together, flying unicycle on bottom screen when apart.
VS: No unicycles on bottom screen when together, flying unicycle on bottom screen when apart

4B: (CRC 0x83F288C7)
1p: Works fine
2p: No unicycles on bottom screen when together, flying unicycle on bottom screen when apart.
VS: No unicycles on bottom screen when together, flying unicycle on bottom screen when apart

Launch the nuclear attack.

reyvgm

  • Hero Member
  • *****
  • Posts: 1290
    • View Profile
Re: Snes emulators (Canoe, Snes9x) -- game problems and fixes
« Reply #771 on: March 23, 2018, 07:50:52 pm »
Thanks again for trying. I'll keep testing patches if you keep making them.


https://docs.google.com/spreadsheets/d/1kyriwV4CSEPuhWWXaxw_YRTgbu4Dh5SE-bf2XwJOdX0/

Any game in orange is stuff Sluffy needs, or patches that need to be tested.

March 24, 2018, 12:09:22 am - (Auto Merged - Double Posts are not allowed before 7 days.)
AtomicShroom tested Top Gear and the tunnel glitch appears to be fixed. I mean, I never actually saw the glitched tunnel (my TV died before I could test the game), so I was going by the report in the community doc. Regardless, the tunnel appears to be fine (unless there's another glitched tunnel further one).

Now someone needs to get a video of the 3rd glitch.
« Last Edit: March 24, 2018, 12:09:22 am by reyvgm »

sluffy

  • Hero Member
  • *****
  • Posts: 642
    • View Profile
Re: Snes emulators (Canoe, Snes9x) -- game problems and fixes
« Reply #772 on: March 24, 2018, 11:52:41 am »
Uniracers (0000 pid, clean, usa) -- rebuilt sprite engine
https://www.sendspace.com/file/nuxva9


Could try Top Gear 1 with vanilla tunnels. If glitches, done. I'll check for 3rd glitch anyway in emus for possible ideas.
« Last Edit: March 24, 2018, 02:49:06 pm by sluffy »

lich

  • Jr. Member
  • **
  • Posts: 66
    • View Profile
Re: Snes emulators (Canoe, Snes9x) -- game problems and fixes
« Reply #773 on: March 24, 2018, 12:27:23 pm »
Uniracers (0000 pid, clean, usa) -- rebuilt sprite engine
https://www.sendspace.com/file/nuxva9


Nosferatu (0000 pid, clean, usa) -- even # oam writes
https://www.sendspace.com/file/55st77


Could try Top Gear 1 with vanilla tunnels. If glitches, done. I'll check for 3rd glitch anyway in emus for possible ideas.


Nuclear attack almost worked. Gonna rec a video, give me a couple of mins

Update:

Vid: https://streamable.com/nqcss

This was difficult, recording and trying to jump and spin at the same time. The main issue seems solved, but the two players movement also shows in top right corner. You can see one or two wheels there all the time. It's most noticable when you go full speed, jump and do a spin.

Sluffy you have now made this nuclear attack test: http://www.icanw.org/wp-content/uploads/2012/11/test-620x310.jpg

Sluffy, please drop the big momma once and for all: http://masspeaceaction.org/home/wp-content/uploads/2015/10/Nuclear-Weapons-Poster_page1_image1.jpg
« Last Edit: March 24, 2018, 12:38:34 pm by lich »

arkiokin

  • Full Member
  • ***
  • Posts: 102
    • View Profile
Re: Snes emulators (Canoe, Snes9x) -- game problems and fixes
« Reply #774 on: March 24, 2018, 01:12:00 pm »

Nuclear attack almost worked. Gonna rec a video, give me a couple of mins

Update:

Vid: https://streamable.com/nqcss

This was difficult, recording and trying to jump and spin at the same time. The main issue seems solved, but the two players movement also shows in top right corner. You can see one or two wheels there all the time. It's most noticable when you go full speed, jump and do a spin.



Hello, I aso tested the patch, and tested on several type of races : I didn't noticed this issue at any moment. After your vid, I made more tests and again didn't noticed that effect. On my SNESC it works perfectly well (on 1P or 2 P or VS) and I'm a player who had played a lot this game, I'm very familiar with this game. Thanks a lot Sluffy, it's incredible this game can run on canoe so good !!

lich

  • Jr. Member
  • **
  • Posts: 66
    • View Profile
Re: Snes emulators (Canoe, Snes9x) -- game problems and fixes
« Reply #775 on: March 24, 2018, 01:54:20 pm »
Hello, I aso tested the patch, and tested on several type of races : I didn't noticed this issue at any moment. After your vid, I made more tests and again didn't noticed that effect. On my SNESC it works perfectly well (on 1P or 2 P or VS) and I'm a player who had played a lot this game, I'm very familiar with this game. Thanks a lot Sluffy, it's incredible this game can run on canoe so good !!

Well looks like the nuclear bombing worked out after all. Maybe it's because I'm playing it with custom borders, sometimes this can intervene with the game resulting in glitches, very weird since it's a no-intro rom I'm using. Gonna try without custom borders.

sluffy

  • Hero Member
  • *****
  • Posts: 642
    • View Profile
Re: Snes emulators (Canoe, Snes9x) -- game problems and fixes
« Reply #776 on: March 24, 2018, 01:56:20 pm »
It's weird random thing. Maybe leftover from ... idk. Here's super cleaner patch. It will track down bad racers and force them invisible. Originally I drew 124 invisible racers but that blew up emus. This should cover any strange crap this game throws at Canoe.


Uniracers (0000 pid, clean, usa) --- extra redone sprite engine
https://www.sendspace.com/file/4il5b7


Thanks for report that earlier patch is okay. This should 101%+ fix it then. This game almost shouldn't work correctly on Canoe with roadblocks it puts everywhere. :)

lich

  • Jr. Member
  • **
  • Posts: 66
    • View Profile
Re: Snes emulators (Canoe, Snes9x) -- game problems and fixes
« Reply #777 on: March 24, 2018, 02:25:45 pm »
It's weird random thing. Maybe leftover from ... idk. Here's super cleaner patch. It will track down bad racers and force them invisible. Originally I drew 124 invisible racers but that blew up emus. This should cover any strange crap this game throws at Canoe.


Uniracers (0000 pid, clean, usa) --- extra redone sprite engine
https://www.sendspace.com/file/4il5b7


Thanks for report that earlier patch is okay. This should 101%+ fix it then. This game almost shouldn't work correctly on Canoe with roadblocks it puts everywhere. :)

Sluffy you're a god. Just tested the new patch with and without borders, all issues are gone! Guess we can mark this as fixed. I only played first and second track 2 player mode, worked like a charm. Hopefully more testers can test other modes/maps/characters. Well done Sluffy, well done!

sluffy

  • Hero Member
  • *****
  • Posts: 642
    • View Profile
Re: Snes emulators (Canoe, Snes9x) -- game problems and fixes
« Reply #778 on: March 24, 2018, 02:49:32 pm »
Took down Nosferatu. Noticed some strange things happening. Reworking.

reyvgm

  • Hero Member
  • *****
  • Posts: 1290
    • View Profile
Re: Snes emulators (Canoe, Snes9x) -- game problems and fixes
« Reply #779 on: March 24, 2018, 02:50:31 pm »
Congratulations on fixing Uniracers. I don't really care about the game, but I know others do. So taking the time to fix this difficult issue is very much appreciated.

Now, for Top Gear. AtomicShroom has verified that the tunnel glitch (glitch 2) is indeed fixed by your last patch. So, your last patched fixed the flickering horizon line, and it also fixed the tunnel glitch as a consequence :P
Here's what the tunnel looked before https://abload.de/img/topgearglitchf3rjk.png
And here's how it looks with the patch: https://abload.de/img/topgearroo8e.png

As for glitch 3, that's still there. AtomicShroom made a video of the 4th track, and while I don't specifically see what I remember seeing, I do see an issue that is probably what I was reporting. Notice how sometimes when the road elevates and the horizon goes down, parts of the trees or light poles on the sides (or other objects) seem to clip through the track when they shouldn't even be visible since the elevated track is supposed to be covering them from view?

Here's a video from Robin. Notice the trees on the left side (at 3:57 specifically).
https://youtu.be/6LpODWYyMGE?t=236

Video from AtomicShroom.  Notice how the left light poles clip through the road too when they should be covered (at 0:10 specifically).
https://youtu.be/eGcSfCmL7S0?t=10

I can be a bit hard to tell since they are going so fast, but hopefully you get a sense of what's happening.

*edit*
Screenshot of the issue by AtomicShroom


He also said that this specific issue happens in ZSNES and SNES9X (version 1.41-1).

« Last Edit: March 24, 2018, 03:23:58 pm by reyvgm »