Author Topic: NeoRAGEx decrypted-roms drivers for FB Alpha.... help needed!  (Read 16375 times)

Offline mai

  • Newbies
  • *
  • Posts: 26
  • Karma: +0/-0
Re: NeoRAGEx decrypted-roms drivers for FB Alpha.... help needed!
« Reply #15 on: April 30, 2006, 10:54:07 AM »
still having problems with some old dumps, such as aof3 (similar to official MAME-set, except c1-c6 roms):
Code: [Select]
{ "096-c1.bin",   0x400000, 0xf6c74731, 3 | BRF_GRA }, //  3 Sprite data
{ "096-c2.bin",   0x400000, 0xf587f149, 3 | BRF_GRA }, //  4
{ "096-c3.bin",   0x400000, 0x7749f5e6, 3 | BRF_GRA }, //  5
{ "096-c4.bin",   0x400000, 0xcbd58369, 3 | BRF_GRA }, //  6
{ "096-c5.bin",   0x400000, 0x1718bdcd, 3 | BRF_GRA }, //  7
{ "096-c6.bin",   0x400000, 0x4fca967f, 3 | BRF_GRA }, //  8
background is ok, but sprites look like a mess...

in older MAME source said:
Code: [Select]
ROM_LOAD16_BYTE( "096-c1.bin", 0x0400000, 0x200000, 0xf6c74731 ) /* Plane 0,1 */
ROM_CONTINUE(        0x0000000, 0x200000 )
ROM_LOAD16_BYTE( "096-c2.bin", 0x0400001, 0x200000, 0xf587f149 ) /* Plane 2,3 */
ROM_CONTINUE(        0x0000001, 0x200000 )
ROM_LOAD16_BYTE( "096-c3.bin", 0x0c00000, 0x200000, 0x7749f5e6 ) /* Plane 0,1 */
ROM_CONTINUE(        0x0800000, 0x200000 )
ROM_LOAD16_BYTE( "096-c4.bin", 0x0c00001, 0x200000, 0xcbd58369 ) /* Plane 2,3 */
ROM_CONTINUE(        0x0800001, 0x200000 )
ROM_LOAD16_BYTE( "096-c5.bin", 0x1400000, 0x200000, 0x1718bdcd ) /* Plane 0,1 */
ROM_CONTINUE(        0x1000000, 0x200000 )
ROM_LOAD16_BYTE( "096-c6.bin", 0x1400001, 0x200000, 0x4fca967f ) /* Plane 2,3 */
ROM_CONTINUE(        0x1000001, 0x200000 )
is there any FBA analog of MAME ROM_CONTINUE()? or some extra code needed?

thanks for your attention and patience ;)

Offline iq_132

  • Administrator
  • *****
  • Posts: 3724
  • Karma: +411/-0
  • Definitely not Dink!
    • NeoSource
Re: NeoRAGEx decrypted-roms drivers for FB Alpha.... help needed!
« Reply #16 on: April 30, 2006, 08:48:23 PM »
Try HARDWARE_SNK_SWAPC  It may work.


Offline mai

  • Newbies
  • *
  • Posts: 26
  • Karma: +0/-0
Re: NeoRAGEx decrypted-roms drivers for FB Alpha.... help needed!
« Reply #17 on: May 01, 2006, 12:37:24 AM »
I've already tried, not working... thanks anyway...

but when I've put this code in (just an experiment)...
some progress appears (you may see differences from original code above):
Code: [Select]
{ "096-c1.bin",   0x200000, 0xf6c74731, 3 | BRF_GRA }, //  3 Sprite data
{ "096-c1.bin",   0x200000, 0x00000000, 3 | BRF_GRA }, //  3 Sprite data
{ "096-c2.bin",   0x200000, 0xf587f149, 3 | BRF_GRA }, //  4
{ "096-c2.bin",   0x200000, 0x00000000, 3 | BRF_GRA }, //  4
{ "096-c3.bin",   0x200000, 0x7749f5e6, 3 | BRF_GRA }, //  5
{ "096-c3.bin",   0x200000, 0x00000000, 3 | BRF_GRA }, //  5
{ "096-c4.bin",   0x200000, 0xcbd58369, 3 | BRF_GRA }, //  6
{ "096-c4.bin",   0x200000, 0x00000000, 3 | BRF_GRA }, //  6
{ "096-c5.bin",   0x200000, 0x1718bdcd, 3 | BRF_GRA }, //  7
{ "096-c5.bin",   0x200000, 0x00000000, 3 | BRF_GRA }, //  7
{ "096-c6.bin",   0x200000, 0x4fca967f, 3 | BRF_GRA }, //  8
{ "096-c6.bin",   0x200000, 0x00000000, 3 | BRF_GRA }, //  8
now sprites looks very strange (suppose something wrong with transparent masks and some gfx glitches still remains), however it don't look like a mess no longer, I can see figures and animation...

but I don't clearly understand, what I've done and what I should do with these c1-c6 roms...
« Last Edit: May 01, 2006, 12:39:57 AM by mai »

Offline Badablek

  • Jr. Member
  • **
  • Posts: 63
  • Karma: +0/-0
  • Member
Re: NeoRAGEx decrypted-roms drivers for FB Alpha.... help needed!
« Reply #18 on: May 01, 2006, 05:23:07 AM »
Hi,

if you check an old Nebula dat, you see that C1 through C6 need to be byteswapped (not C7/C8)

Code: [Select]
System: NEO
RomName: aof3
Game: Art of Fighting 3: The Path of the Warrior

[Program]
096-p1.bin,0,100000,9edb420d,0
096-p2.bin,100000,200000,4d5a2602,0

[Text]
096-s1.bin,0,20000,cc7fd344,0

[Z80]
096-m1.bin,0,20000,cb07b659,0

[Samples]
096-v1.bin,0,200000,e2c32074,0
096-v2.bin,200000,200000,a290eee7,0
096-v3.bin,400000,200000,199d12ea,0

[Graphics]
096-c1.bin,400000,400000,f6c74731,1
096-c2.bin,400001,400000,f587f149,1
096-c3.bin,C00000,400000,7749f5e6,1
096-c4.bin,C00001,400000,cbd58369,1
096-c5.bin,1400000,400000,1718bdcd,1
096-c6.bin,1400001,400000,4fca967f,1
096-c7.bin,1800000,200000,51bd8ab2,0
096-c8.bin,1800001,200000,9a34f99c,0

[System]
CartridgeID: 96
GfxCrypt: 0
GfxKey: 0
ButLayout: 9
Fix: 1

Now, how to do that on FBA, that is a good question  :p

Offline iq_132

  • Administrator
  • *****
  • Posts: 3724
  • Karma: +411/-0
  • Definitely not Dink!
    • NeoSource
Re: NeoRAGEx decrypted-roms drivers for FB Alpha.... help needed!
« Reply #19 on: May 01, 2006, 05:59:35 PM »
Now, how to do that on FBA, that is a good question  :p

Magic :D

Code: [Select]
void aof3_nrx_cx_fix()
{
for (int i = 0; i < 0x1800000; i+=0x800000) {
for (int j = 0; j < 0x400000; j++) {
int n = NeoSpriteROM[i + j + 0x400000];
NeoSpriteROM[i + j + 0x400000] = NeoSpriteROM[i + j];
NeoSpriteROM[i + j] = n;
}
}
}

int aof3nrxInit()
{
pNeoInitCallback = aof3_nrx_cx_fix;
return NeoInit();
}
« Last Edit: May 02, 2006, 05:53:47 PM by iq_132 »


Offline mai

  • Newbies
  • *
  • Posts: 26
  • Karma: +0/-0
Re: NeoRAGEx decrypted-roms drivers for FB Alpha.... help needed!
« Reply #20 on: May 02, 2006, 01:09:56 AM »
thanks IQ, you're great! :wink: