IVBeatz / genplus-gx

Automatically exported from code.google.com/p/genplus-gx
Other
0 stars 0 forks source link

Sonic CD sometime freezes when loading next level #230

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Sonic CD freezes while loading levels. all versions ive tried, and ive tried 
the japanese and usa rom with the v1 bios.

Original issue reported on code.google.com by cheatfreak47 on 4 Jul 2012 at 6:34

GoogleCodeExporter commented 9 years ago
its inconsistant, but play for about 15 minites, and its sure to happen

Original comment by cheatfreak47 on 4 Jul 2012 at 6:49

GoogleCodeExporter commented 9 years ago
I am not sure to understand: you mean you can play (and therefore load) several 
levels without problem then it freezes when loading a specific level ? Or does 
the level varies ? If you leave the title screen running 15 minutes, does level 
1 still load fine when hitting start ?

Anyway, a savestate before the freeze occurs and a screenshot would be useful, 
you can upload them here.

Original comment by ekeeke31@gmail.com on 4 Jul 2012 at 8:15

GoogleCodeExporter commented 9 years ago

Original comment by ekeeke31@gmail.com on 4 Jul 2012 at 8:17

GoogleCodeExporter commented 9 years ago
i mean load several levels and it'll likely freeze while loading. It seems 
random, but the emulator isnt compromised or anything, the game just stays on 
the loading screen. My USB drive light (indicates read/write activity) doesnt 
blink, so i assume the emulator isnt reading anything. however, the issue 
happens on both my SD and USB, both the US and JAP versions of the roms. I'm 
using the USA v1 bios and the JAP v1 bios.

Original comment by cheatfreak47 on 4 Jul 2012 at 5:13

GoogleCodeExporter commented 9 years ago
ok ill get on the save state then

Original comment by cheatfreak47 on 4 Jul 2012 at 5:33

GoogleCodeExporter commented 9 years ago
ok i zipped my sonic cd save data. including the screenshot from before it 
happened.
i can safely say this state will Always reproduce the problem

Original comment by cheatfreak47 on 4 Jul 2012 at 5:46

Attachments:

GoogleCodeExporter commented 9 years ago
all you have to do is finish the level and it happens.

Original comment by cheatfreak47 on 4 Jul 2012 at 5:48

GoogleCodeExporter commented 9 years ago
The ISO is Sonic CD (U)
and the Bios used was the USA v1 bios (most commonly used bios)

both work perfectly in Kega Fusion on my pc. so i doubt its an issue with the 
bios or rom

Original comment by cheatfreak47 on 4 Jul 2012 at 5:51

GoogleCodeExporter commented 9 years ago
Alright thanks, I reproduced it. I will try to find what the problem is when I 
have some more time for debugging, it's probably a synchronization issue (one 
CPU waiting for something that never happen or happened to soon).

Original comment by ekeeke31@gmail.com on 4 Jul 2012 at 8:06

GoogleCodeExporter commented 9 years ago
Also happens with the 2.0 US BIOS. It just doesn't load Collision Chaos after 
Palmtree Panic.

However, if you reset afterwards, the Continue option will let you start at 
Collision Chaos without any problems.

Original comment by superballena on 5 Jul 2012 at 6:05

GoogleCodeExporter commented 9 years ago
I've managed to load Collision Chaos after beating Palmtree Panic in the 920 
prototype.

Again, 2.0 US BIOS.

Original comment by superballena on 5 Jul 2012 at 6:57

GoogleCodeExporter commented 9 years ago
Since the issue is apparently random or only triggered by some unknown and 
specific condition, I don't think this has any signification actually. 

I have been able to play Collision Chaos many time with both BIOS, only got 
freezing issue (black screen after the score display) with above savestate.

Original comment by ekeeke31@gmail.com on 5 Jul 2012 at 7:03

GoogleCodeExporter commented 9 years ago

Original comment by ekeeke31@gmail.com on 5 Jul 2012 at 11:46

GoogleCodeExporter commented 9 years ago
Happens here too with my USA BIN/CUE copy of the game.

Original comment by cluster.phucking on 7 Jul 2012 at 3:06

GoogleCodeExporter commented 9 years ago
I think this one might be related to simulated audio tracks as well (same as 
Issue239).

For the record, from analyzing what the game does after loading the above save 
state, it appears the BIOS is keeping sending invalid CD PLAY commands:

CDD command: 03 00 0b 0c 01 04 01 01

Structure is: CC CC 0M 0M 0S 0S 0F 0F with CC being command id, MM, SS, FF 
being resp. minutes, seconds & frame of the index to be played, coded in BSD 
format.

0x0b 0x0c is definitively an invalid "minute field", the maximum being 60 
minutes (0x06 0x00) for a Sega CD game. I am not sure if it is done on purpose 
or happened because i was returning out of spec TOC data when the bios 
initially requested it (generally done during game init). Anyway, I am now 
doing differently, by default I always simulate 99 tracks, with 98 audio tracks 
of 2s following the data track (.iso file), so it remains within Sega CD spec, 
even with games with very huge data track. I only use original "hard-coded" TOC 
info for games that actually need it (Snatcher in particular seems quite 
sensitive to this).

I might post a test dol soon so you can confirm my theory.

Original comment by ekeeke31@gmail.com on 8 Jul 2012 at 3:12

GoogleCodeExporter commented 9 years ago
When I play Sonic CD (All Versions) it freezes after completing the 3rd Act of 
the 1st Zone you are in. I believe it has to do with the mini anime cutscene 
with having no audio to support it? I'm just guessing cause the screen just 
turns and stays black just like this report of the freezing incident!

Original comment by Dragzill...@yahoo.com on 9 Jul 2012 at 6:58

GoogleCodeExporter commented 9 years ago
It's apparently fixed by handling more correct TOC returned from CDD, just like 
Issue239.
At least, I did not experiment any more freeze up to the 3rd stage and not at 
the end of bonus stages either (was freezing as well before).
Here is a test dol with fixed CDD emulation.

Original comment by ekeeke31@gmail.com on 9 Jul 2012 at 9:00

Attachments:

GoogleCodeExporter commented 9 years ago
Btw, do NOT use savestates from version 1.7.0 with this dol to test your games 
as the savestate would include the invalid TOC infos (they are stored in RAM by 
the BIOS on startup)

Original comment by ekeeke31@gmail.com on 9 Jul 2012 at 9:11

GoogleCodeExporter commented 9 years ago

Original comment by ekeeke31@gmail.com on 9 Jul 2012 at 9:19

Attachments:

GoogleCodeExporter commented 9 years ago

Original comment by ekeeke31@gmail.com on 9 Jul 2012 at 11:37

Attachments:

GoogleCodeExporter commented 9 years ago
Issue 261 has been merged into this issue.

Original comment by ekeeke31@gmail.com on 26 Jul 2012 at 7:16

GoogleCodeExporter commented 9 years ago
Just tried this dol and confirm that at least for me, this problem is fixed.

Original comment by boldandw...@gmail.com on 26 Jul 2012 at 7:31

GoogleCodeExporter commented 9 years ago
Issue 266 has been merged into this issue.

Original comment by ekeeke31@gmail.com on 5 Aug 2012 at 6:22