leonardoliveira & Idc's clean decrypted roms

PCB problems and fixes
Forum rules
ArcadeOtaku forum introduction & rules
User avatar
Bonky
Posts: 13
Joined: March 27th, 2015, 3:50 pm
Location: France

Re: leonardoliveira & Idc's clean decrypted roms

Post by Bonky » May 27th, 2016, 12:12 am

Wow ^^
Thanks for your effort, so rapidly :awe:

I Test them this week on hardware :)

User avatar
leonardoliveira
Posts: 656
Joined: August 30th, 2012, 5:53 am
Location: Brazil
Initials: leo

Re: leonardoliveira & Idc's clean decrypted roms

Post by leonardoliveira » May 30th, 2016, 5:03 am

New games I just added:

ssf2tbj - Super Street Fighter II: The Tournament Battle (Japan 931005) / Thanks Shou :awe:

ssf2tbjr1 - Super Street Fighter II: The Tournament Battle (Japan 930911)
Image

User avatar
leonardoliveira
Posts: 656
Joined: August 30th, 2012, 5:53 am
Location: Brazil
Initials: leo

Re: leonardoliveira & Idc's clean decrypted roms

Post by leonardoliveira » May 31st, 2016, 8:05 pm

Updated:

qndream - Quiz Nanairo dreams: Nijiirochou no kiseki (JAPAN 960826) - Decryption errors :oops:


Edit, also updated at the site:

smbomb SUPER MUSCLE BOMBER (JAPAN 940831) - Decryption errors, too... :oops:
Image

User avatar
Shou
Posts: 518
Joined: August 25th, 2009, 4:45 am
Location: Central Tokyo, Japan, Asia, Earth, Solar System, Milky Way
Initials: SHO

Re: leonardoliveira & Idc's clean decrypted roms

Post by Shou » June 2nd, 2016, 12:02 am

Rockman 2 960708 JP fix appears to have quite a few issues:
- the game boots but has severe AI problems even with difficulty on the highest setting (enemies are just dumb and do very little)
- in the Save Roll mode, the game sometimes says you saved Roll after you only have beat 2 stages
- in the Save Roll mode, the game will crash before the Yellow Devil/Rock Monster fight and goes to some kind of debug emulator screen

User avatar
leonardoliveira
Posts: 656
Joined: August 30th, 2012, 5:53 am
Location: Brazil
Initials: leo

Re: leonardoliveira & Idc's clean decrypted roms

Post by leonardoliveira » June 7th, 2016, 7:18 am

New games I just added to the site:

dstlkur1dl - Darkstalkers: The Night Warriors (USA 940705)
vampjdl - Vampire: The Night Warriors (JAPAN 940705)
vampjr1dl - Vampire: The Night Warriors (JAPAN 940630)

Keep in mind that Vampire (940630) have a "odd behavior" regarding the kick harness and the pin 25 of the jamma header. Some people like to wire one of the kick inputs together with the pin 25 of the jamma connector for compatibility with the NEO GEO. if the harness is wired that way, the kick button which is connected to the pin 25 will not function properly. Version 940705 had that issue solved.

Rockman 2 960708 issues solved and file updated at the site. Megaman 2 games also required the same repair which was done. :awe: :awe: :awe:
Image

User avatar
xodaraP
Posts: 29
Joined: September 12th, 2015, 4:18 pm
Location: Cairns, Queensland, Australia
eBay: xodarap21

Re: leonardoliveira & Idc's clean decrypted roms

Post by xodaraP » June 7th, 2016, 1:57 pm

I think this is the version of Darkstalkers I have here, nice I can get it going again :D

Thanks guys for your work on this

User avatar
leonardoliveira
Posts: 656
Joined: August 30th, 2012, 5:53 am
Location: Brazil
Initials: leo

Re: leonardoliveira & Idc's clean decrypted roms

Post by leonardoliveira » June 13th, 2016, 11:28 pm

A big shout for Shoutime for pointing problems with Choko and Quiz Nanairo Dreams: Nijiirochou no kiseki.

The sets were updated at the site. :awe:
Image

User avatar
xodaraP
Posts: 29
Joined: September 12th, 2015, 4:18 pm
Location: Cairns, Queensland, Australia
eBay: xodarap21

Re: leonardoliveira & Idc's clean decrypted roms

Post by xodaraP » June 15th, 2016, 11:22 am

I assume the way it's verified is someone plays the game through in it's entirety without bugs.... the reason they're there in the first place? leo and idc probably don't have the time to 100% each game they decrypt...

User avatar
leonardoliveira
Posts: 656
Joined: August 30th, 2012, 5:53 am
Location: Brazil
Initials: leo

Re: leonardoliveira & Idc's clean decrypted roms

Post by leonardoliveira » June 15th, 2016, 4:56 pm

xodaraP wrote:I assume the way it's verified is someone plays the game through in it's entirety without bugs.... the reason they're there in the first place? leo and idc probably don't have the time to 100% each game they decrypt...
Decryption is done by hand by manually analyzing code in IDA. Sometimes I am sleepy or tired and I deem data as code or code as data by mistake or miss a offset by a word or two. I'm human, not a machine and "IDA" means "Interactive Dis-Assembler" which implies it requires my input to know what/where to analyze. :awe:

So because the errors are of a totally random nature and cannot be easily traced back without a crash reference to begin with, I rely on user input to repair problems.

The very same reason why Razoola's fixes had a crash/exception handler program of it's own and it told users to report any problems to him so he could fix the mistakes on decryption. 8-)

The only difference here is that I actually enable Capcom's exception handler (using a flag toggle in the game) and use reports from it, Razoola uses his own, which he made and put on the phoenix menu code.
TV2016061323294800.jpg
TV2016061323294800.jpg (6.36 KiB) Viewed 3555 times
TV2016061323382400.jpg
TV2016061323382400.jpg (49.69 KiB) Viewed 3555 times
TV2016061323382900.jpg
TV2016061323382900.jpg (40.83 KiB) Viewed 3555 times
This particular bug was caused by a wrong word at offset 0x00059BA4 which was loading the long value 0x0012EA47 instead of 0x00128646 at the register A0.
That was causing a word read at a odd address which was causing a address error exception, resetting the game when Gallon/J.Talbain move Beast Cannon was used in the dive direction (as shown on the crash picture).
MC68000 have no A0 pin so it can't read words or longs at odd addresses, for that it has a special instruction and two dedicated pins to indicate odd/even access at byte level. That's why it has a "address error" exception.


Offset 0 1 2 3 4 5 6 7 8 9 A B C D E F

00059B80 68 16 00 12 68 B6 00 12 74 72 00 12 75 12 00 12 h...h¶..tr..u...
00059B90 75 B2 00 12 76 52 00 12 84 66 00 12 85 06 00 12 u²..vR..„f..…...
00059BA0 85 A6 00 12 86 46 10 2E 00 05 32 3B 00 12 4E BB …¦..†F....2;..N»
00059BB0 10 0E 4E B9 00 00 52 F6 4E F9 00 00 55 B6 00 06 ..N¹..RöNù..U¶..
00059BC0 00 C8 00 F2 3D 6C 00 0C 00 0C 61 00 00 F0 66 00 .È.ò=l....a..ðf.
(blue is code/supposedly encrypted)

I actually hit "c" on the value "EA47" (EA47 is the value for that address under the encryption algorithm) and IDA interpreted it as a valid instruction, botching the tail of a address table. Decrypt a game is basically the act of discerning what should be considered encrypted and not encrypted. I misjudged that word as it being a encrypted word and it wasn't.

Hope that post is informative. :)

And FYI, the fixed ROM was uploaded to the avalaunch site.
Image

User avatar
leonardoliveira
Posts: 656
Joined: August 30th, 2012, 5:53 am
Location: Brazil
Initials: leo

Re: leonardoliveira & Idc's clean decrypted roms

Post by leonardoliveira » June 16th, 2016, 7:03 am

New games added to the Avalaunch site:

Dungeons and Dragons: Shadow Over Mystara (JAPAN 960619)
Dungeons and Dragons: Shadow Over Mystara (USA 960619)

Only a year late as they have been rotting on my harddrive (forgotten) for that long, might as well put them up.
Image

User avatar
leonardoliveira
Posts: 656
Joined: August 30th, 2012, 5:53 am
Location: Brazil
Initials: leo

Re: leonardoliveira & Idc's clean decrypted roms

Post by leonardoliveira » June 17th, 2016, 1:34 am

Released:
Dungeons and Dragons: Shadow Over Mystara (Brazil 960223)

Revised:
Dungeons and Dragons: Shadow Over Mystara (EURO 960619)

A couple of wrong bytes and a few mangled instructions after I am fairly confident this is final. :awe:
Image

User avatar
leonardoliveira
Posts: 656
Joined: August 30th, 2012, 5:53 am
Location: Brazil
Initials: leo

Re: leonardoliveira & Idc's clean decrypted roms

Post by leonardoliveira » June 17th, 2016, 4:38 am

Hyper Street Fighter 2 (JAPAN 031222) :awe: :awe: :awe: :awe:

P.S.: The 040202 set had the filenames inside the zip renamed to match MAME naming scheme. Because the file names I used were from 031222 set. File contents are absolutely the same as before.
Image

VectorGlow
Posts: 497
Joined: November 8th, 2008, 11:40 pm
Location: Wales, UK
eBay: realflight

Re: leonardoliveira & Idc's clean decrypted roms

Post by VectorGlow » June 17th, 2016, 11:27 am

Wonderful work, you're on a roll. :D
Arcade game board repairer

User avatar
Asayuki
Posts: 431
Joined: August 29th, 2015, 10:16 pm
Location: Remuria, Germany

Re: leonardoliveira & Idc's clean decrypted roms

Post by Asayuki » June 17th, 2016, 12:25 pm

Don't forget to eat properly and to sleep, Leonard! :D
My 15kHz cabinet Peplos will never power up, with any item, and I am quite proud of that.

User avatar
leonardoliveira
Posts: 656
Joined: August 30th, 2012, 5:53 am
Location: Brazil
Initials: leo

Re: leonardoliveira & Idc's clean decrypted roms

Post by leonardoliveira » June 17th, 2016, 2:37 pm

Has anyone noticed that Hyper Street Fighter 2 AI is dumber on MAME than it is on the real board? :lol:
Image

User avatar
leonardoliveira
Posts: 656
Joined: August 30th, 2012, 5:53 am
Location: Brazil
Initials: leo

Re: leonardoliveira & Idc's clean decrypted roms

Post by leonardoliveira » June 23rd, 2016, 3:22 am

New games at the Avalaunch site ! :awe:

Vampire Hunter: Darkstalkers Revenge JAPAN 950307 and 950316.
Image

fluxcore
Posts: 40
Joined: January 13th, 2014, 9:18 am
Location: New Zealand

Re: leonardoliveira & Idc's clean decrypted roms

Post by fluxcore » June 23rd, 2016, 7:13 pm

Awesome work Leo :)

User avatar
WilalvesBR
Posts: 36
Joined: December 14th, 2011, 1:42 pm
Location: Brazil
eBay: WilalvesBR
Initials: WIL

Re: leonardoliveira & Idc's clean decrypted roms

Post by WilalvesBR » August 3rd, 2016, 4:40 pm

leonardoliveira wrote:Released:
Dungeons and Dragons: Shadow Over Mystara (Brazil 960223)
Nice to see another brazilian version preserved! Thank you very much!!

Will we also have Darkstalkers: The Night Warriors (EURO 940705 or ASIA 940705) preserved since USA and JAPAN versions of the same game were already done?

Image

User avatar
xodaraP
Posts: 29
Joined: September 12th, 2015, 4:18 pm
Location: Cairns, Queensland, Australia
eBay: xodarap21

Re: leonardoliveira & Idc's clean decrypted roms

Post by xodaraP » August 4th, 2016, 12:47 pm

You can use a different region code to get your game going again even if the region your board is from isn't decrypted.... I just used the Japan Marvel Super Heroes vs Street Fighter ROM set to revive a grey Asia region board that had suicided :)

User avatar
leonardoliveira
Posts: 656
Joined: August 30th, 2012, 5:53 am
Location: Brazil
Initials: leo

Re: leonardoliveira & Idc's clean decrypted roms

Post by leonardoliveira » August 4th, 2016, 6:19 pm

xodaraP wrote:You can use a different region code to get your game going again even if the region your board is from isn't decrypted.... I just used the Japan Marvel Super Heroes vs Street Fighter ROM set to revive a grey Asia region board that had suicided :)
He really meant preserve the original code. It's one of my objectives preserve all variations. Even now with the possible reprogramming of keys in the horizon people still feel it's safer to preserve the games battery less. So I'll keep working those on.

Regarding regional variations, some games like the VS series have the exact same program code across all regions so it's easy to region change mod them.

The D&D games are a different case because each regional variation had a completely different program code.
Image

Post Reply