Author Topic: I need help adding a CPS2 translated game here !  (Read 2081 times)

Offline Ashura-X

  • Member
  • ***
  • Posts: 127
  • Karma: +0/-0
I need help adding a CPS2 translated game here !
« on: November 27, 2014, 02:25:57 pm »
Hi friends :D

Got a driver to add on mame but it is very old (2006) once a time when Phoenix romsets used to add nasty XOR tables!
Well I?ve compiled it but when running the game give me a black screen :/

On debug window I see lot of CPU errors too... any idea??

Code: [Select]
ROM_START( sfz2abr )
ROM_REGION( CODE_SIZE, "maincpu", 0 )      /* 68000 code */
ROM_LOAD16_WORD_SWAP( "szabr.03", 0x000000, 0x80000, CRC(0e8e719b) SHA1(ef013adf386925c68f3d38159adfe447c8f259de) )
ROM_LOAD16_WORD_SWAP( "szabr.04", 0x080000, 0x80000, CRC(bc7271a0) SHA1(601a0e21926a1d9aebebf41e6dc08523b6773338) )
ROM_LOAD16_WORD_SWAP( "szabr.05", 0x100000, 0x80000, CRC(e19eee58) SHA1(f0a2f8606136450c375d9b43f182e4cee2ec1208) )
ROM_LOAD16_WORD_SWAP( "szaa.06",  0x180000, 0x80000, CRC(cfc0e7a8) SHA1(31ed58451c7a6ac88a8fccab369167694698f044) )
ROM_LOAD16_WORD_SWAP( "szaa.07",  0x200000, 0x80000, CRC(5feb8b20) SHA1(13c79c9b72c3abf0a0b75d507d91ece71e460c06) )
ROM_LOAD16_WORD_SWAP( "szaa.08",  0x280000, 0x80000, CRC(6eb6d412) SHA1(c858fec9c1dfea70dfcca629c1c24306f8ae6d81) )

// ROM_REGION16_BE( CODE_SIZE, "user1", 0 )
// ROM_LOAD16_WORD_SWAP( "szaax.03", 0x000000, 0x80000, CRC(a75f58bf) SHA1(82c940661992fb2537efba27f55897df3c80ac7a) )
// ROM_LOAD16_WORD_SWAP( "szaax.04", 0x080000, 0x80000, CRC(d02351ab) SHA1(5b53e4c50b854205a02e48aa7a670ec690d63c13) )

ROM_REGION( 0x1400000, "gfx", 0 )
ROMX_LOAD( "sz2br.13m", 0x0000000, 0x400000, CRC(a3b979fe) SHA1(236378162562aea3e522a182bbf395b020452893) , ROM_GROUPWORD | ROM_SKIP(6) )
ROMX_LOAD( "sz2br.15m", 0x0000002, 0x400000, CRC(ab0e6693) SHA1(6f00bdf5064fb1cb2e152c2731d26a11cd8bf376) , ROM_GROUPWORD | ROM_SKIP(6) )
ROMX_LOAD( "sz2br.17m", 0x0000004, 0x400000, CRC(ce0913ba) SHA1(684c402c7ca1e50018ef439331b5bd002f573db8) , ROM_GROUPWORD | ROM_SKIP(6) )
ROMX_LOAD( "sz2br.19m", 0x0000006, 0x400000, CRC(3c8cffe6) SHA1(26d4ed4a20a4e84b8c87c7120b181371e428ad58) , ROM_GROUPWORD | ROM_SKIP(6) )
ROMX_LOAD( "sz2.14m",   0x1000000, 0x100000, CRC(0560c6aa) SHA1(f2bed3a8efef18052b51a7f0f6a888a18db813a1) , ROM_GROUPWORD | ROM_SKIP(6) )
ROMX_LOAD( "sz2.16m",   0x1000002, 0x100000, CRC(ae940f87) SHA1(39ee26333abbe302ba76dced0196a2e6b3b1d02a) , ROM_GROUPWORD | ROM_SKIP(6) )
ROMX_LOAD( "sz2.18m",   0x1000004, 0x100000, CRC(4bc3c8bc) SHA1(6256963c515bf56f39b6e559afefd653ead56c54) , ROM_GROUPWORD | ROM_SKIP(6) )
ROMX_LOAD( "sz2.20m",   0x1000006, 0x100000, CRC(39e674c0) SHA1(8e771a2d8c2accad0463bccd21d7b23af0c895a1) , ROM_GROUPWORD | ROM_SKIP(6) )

ROM_REGION( QSOUND_SIZE, "audiocpu", 0 ) /* 64k for the audio CPU (+banks) */
ROM_LOAD( "sz2.01a",   0x00000, 0x08000, CRC(1bc323cf) SHA1(83fbd6e9b327700dc9f1c59700b7385bc3705749) )
ROM_CONTINUE(         0x10000, 0x18000 )
ROM_LOAD( "sz2.02a",   0x28000, 0x20000, CRC(ba6a5013) SHA1(7814f3e56b69529b9860dd61c3b1e8d700244b03) )

ROM_REGION( 0x400000, "qsound", 0 ) /* QSound samples */
ROM_LOAD16_WORD_SWAP( "sz2.11m",   0x000000, 0x200000, CRC(aa47a601) SHA1(a4d1ee89c84a3b9db06469bb66e85293b5aa9ac9) )
ROM_LOAD16_WORD_SWAP( "sz2.12m",   0x200000, 0x200000, CRC(2237bc53) SHA1(96d5693047e4cf1ed10a8ee1905cea267a278e92) )
ROM_END

Code: [Select]
GAME( 1996, sfz2abr,  sfa2,     dead_cps2, cps2_2p6b, cps_state, cps2,    ROT0,   "Capcom", "Street Fighter Zero 2 Alpha (Brasil 061225)", GAME_SUPPORTS_SAVE ) // portuguese-brazilian hack fix
« Last Edit: November 27, 2014, 03:33:57 pm by Ashura-X »

Offline BisonSAS

  • Expert
  • *****
  • Posts: 209
  • Karma: +27/-0
  • [NGBRT]
    • NeoGeo BR Team
Re: I need help adding a CPS2 translated game here !
« Reply #1 on: January 04, 2015, 07:46:49 am »
Seria necessario alterar o arquivo src\mame\machine\cps2crpt.c

Em game_keys keys_table[] adicione a linha:

Code: [Select]
{ "sfz2abr",   { 0xf172c0d0,0x040621a6 }, 0x100000 },    // 0C80 8E73 9110  cmpi.l  #$8E739110,D0
De acordo com a ultima versao do MAME:

Code: [Select]
ROM_START( sfz2abr )
ROM_REGION( CODE_SIZE, "maincpu", 0 )      /* 68000 code */
ROM_LOAD16_WORD_SWAP( "szabr.03", 0x000000, 0x80000, CRC(0e8e719b) SHA1(ef013adf386925c68f3d38159adfe447c8f259de) )
ROM_LOAD16_WORD_SWAP( "szabr.04", 0x080000, 0x80000, CRC(bc7271a0) SHA1(601a0e21926a1d9aebebf41e6dc08523b6773338) )
ROM_LOAD16_WORD_SWAP( "szabr.05", 0x100000, 0x80000, CRC(e19eee58) SHA1(f0a2f8606136450c375d9b43f182e4cee2ec1208) )
ROM_LOAD16_WORD_SWAP( "szaa.06",  0x180000, 0x80000, CRC(cfc0e7a8) SHA1(31ed58451c7a6ac88a8fccab369167694698f044) )
ROM_LOAD16_WORD_SWAP( "szaa.07",  0x200000, 0x80000, CRC(5feb8b20) SHA1(13c79c9b72c3abf0a0b75d507d91ece71e460c06) )
ROM_LOAD16_WORD_SWAP( "szaa.08",  0x280000, 0x80000, CRC(6eb6d412) SHA1(c858fec9c1dfea70dfcca629c1c24306f8ae6d81) )

ROM_REGION( 0x1400000, "gfx", 0 )
ROMX_LOAD( "sz2br.13m", 0x0000000, 0x400000, CRC(a3b979fe) SHA1(236378162562aea3e522a182bbf395b020452893) , ROM_GROUPWORD | ROM_SKIP(6) )
ROMX_LOAD( "sz2br.15m", 0x0000002, 0x400000, CRC(ab0e6693) SHA1(6f00bdf5064fb1cb2e152c2731d26a11cd8bf376) , ROM_GROUPWORD | ROM_SKIP(6) )
ROMX_LOAD( "sz2br.17m", 0x0000004, 0x400000, CRC(ce0913ba) SHA1(684c402c7ca1e50018ef439331b5bd002f573db8) , ROM_GROUPWORD | ROM_SKIP(6) )
ROMX_LOAD( "sz2br.19m", 0x0000006, 0x400000, CRC(3c8cffe6) SHA1(26d4ed4a20a4e84b8c87c7120b181371e428ad58) , ROM_GROUPWORD | ROM_SKIP(6) )
ROMX_LOAD( "sza.14m",   0x1000000, 0x100000, CRC(0560c6aa) SHA1(f2bed3a8efef18052b51a7f0f6a888a18db813a1) , ROM_GROUPWORD | ROM_SKIP(6) )
ROMX_LOAD( "sza.16m",   0x1000002, 0x100000, CRC(ae940f87) SHA1(39ee26333abbe302ba76dced0196a2e6b3b1d02a) , ROM_GROUPWORD | ROM_SKIP(6) )
ROMX_LOAD( "sza.18m",   0x1000004, 0x100000, CRC(4bc3c8bc) SHA1(6256963c515bf56f39b6e559afefd653ead56c54) , ROM_GROUPWORD | ROM_SKIP(6) )
ROMX_LOAD( "sza.20m",   0x1000006, 0x100000, CRC(39e674c0) SHA1(8e771a2d8c2accad0463bccd21d7b23af0c895a1) , ROM_GROUPWORD | ROM_SKIP(6) )

ROM_REGION( QSOUND_SIZE, "audiocpu", 0 ) /* 64k for the audio CPU (+banks) */
ROM_LOAD( "sza.01",   0x00000, 0x08000, CRC(1bc323cf) SHA1(83fbd6e9b327700dc9f1c59700b7385bc3705749) )
ROM_CONTINUE(         0x10000, 0x18000 )
ROM_LOAD( "sza.02",   0x28000, 0x20000, CRC(ba6a5013) SHA1(7814f3e56b69529b9860dd61c3b1e8d700244b03) )

ROM_REGION( 0x400000, "qsound", 0 ) /* QSound samples */
ROM_LOAD16_WORD_SWAP( "sza.11m",   0x000000, 0x200000, CRC(aa47a601) SHA1(a4d1ee89c84a3b9db06469bb66e85293b5aa9ac9) )
ROM_LOAD16_WORD_SWAP( "sza.12m",   0x200000, 0x200000, CRC(2237bc53) SHA1(96d5693047e4cf1ed10a8ee1905cea267a278e92) )
ROM_END

Code: [Select]
GAME( 1996, sfz2abr,    sfz2al,   cps2, cps2_2p6b, cps_state, cps2,     ROT0,   "Capcom", "Street Fighter Zero 2 Alpha (Brasil 061225)", GAME_SUPPORTS_SAVE )

 :cool:
« Last Edit: January 04, 2015, 07:49:23 am by BisonSAS »

Offline Ashura-X

  • Member
  • ***
  • Posts: 127
  • Karma: +0/-0
Re: I need help adding a CPS2 translated game here !
« Reply #2 on: January 26, 2015, 07:23:54 am »
Funcionou ! Obrigado !!


Ok amigo Bison :)
Vou testar la e te falo!

Obrigado!

Seria necessario alterar o arquivo src\mame\machine\cps2crpt.c

Em game_keys keys_table[] adicione a linha:

Code: [Select]
{ "sfz2abr",   { 0xf172c0d0,0x040621a6 }, 0x100000 },    // 0C80 8E73 9110  cmpi.l  #$8E739110,D0
De acordo com a ultima versao do MAME:

Code: [Select]
ROM_START( sfz2abr )
ROM_REGION( CODE_SIZE, "maincpu", 0 )      /* 68000 code */
ROM_LOAD16_WORD_SWAP( "szabr.03", 0x000000, 0x80000, CRC(0e8e719b) SHA1(ef013adf386925c68f3d38159adfe447c8f259de) )
ROM_LOAD16_WORD_SWAP( "szabr.04", 0x080000, 0x80000, CRC(bc7271a0) SHA1(601a0e21926a1d9aebebf41e6dc08523b6773338) )
ROM_LOAD16_WORD_SWAP( "szabr.05", 0x100000, 0x80000, CRC(e19eee58) SHA1(f0a2f8606136450c375d9b43f182e4cee2ec1208) )
ROM_LOAD16_WORD_SWAP( "szaa.06",  0x180000, 0x80000, CRC(cfc0e7a8) SHA1(31ed58451c7a6ac88a8fccab369167694698f044) )
ROM_LOAD16_WORD_SWAP( "szaa.07",  0x200000, 0x80000, CRC(5feb8b20) SHA1(13c79c9b72c3abf0a0b75d507d91ece71e460c06) )
ROM_LOAD16_WORD_SWAP( "szaa.08",  0x280000, 0x80000, CRC(6eb6d412) SHA1(c858fec9c1dfea70dfcca629c1c24306f8ae6d81) )

ROM_REGION( 0x1400000, "gfx", 0 )
ROMX_LOAD( "sz2br.13m", 0x0000000, 0x400000, CRC(a3b979fe) SHA1(236378162562aea3e522a182bbf395b020452893) , ROM_GROUPWORD | ROM_SKIP(6) )
ROMX_LOAD( "sz2br.15m", 0x0000002, 0x400000, CRC(ab0e6693) SHA1(6f00bdf5064fb1cb2e152c2731d26a11cd8bf376) , ROM_GROUPWORD | ROM_SKIP(6) )
ROMX_LOAD( "sz2br.17m", 0x0000004, 0x400000, CRC(ce0913ba) SHA1(684c402c7ca1e50018ef439331b5bd002f573db8) , ROM_GROUPWORD | ROM_SKIP(6) )
ROMX_LOAD( "sz2br.19m", 0x0000006, 0x400000, CRC(3c8cffe6) SHA1(26d4ed4a20a4e84b8c87c7120b181371e428ad58) , ROM_GROUPWORD | ROM_SKIP(6) )
ROMX_LOAD( "sza.14m",   0x1000000, 0x100000, CRC(0560c6aa) SHA1(f2bed3a8efef18052b51a7f0f6a888a18db813a1) , ROM_GROUPWORD | ROM_SKIP(6) )
ROMX_LOAD( "sza.16m",   0x1000002, 0x100000, CRC(ae940f87) SHA1(39ee26333abbe302ba76dced0196a2e6b3b1d02a) , ROM_GROUPWORD | ROM_SKIP(6) )
ROMX_LOAD( "sza.18m",   0x1000004, 0x100000, CRC(4bc3c8bc) SHA1(6256963c515bf56f39b6e559afefd653ead56c54) , ROM_GROUPWORD | ROM_SKIP(6) )
ROMX_LOAD( "sza.20m",   0x1000006, 0x100000, CRC(39e674c0) SHA1(8e771a2d8c2accad0463bccd21d7b23af0c895a1) , ROM_GROUPWORD | ROM_SKIP(6) )

ROM_REGION( QSOUND_SIZE, "audiocpu", 0 ) /* 64k for the audio CPU (+banks) */
ROM_LOAD( "sza.01",   0x00000, 0x08000, CRC(1bc323cf) SHA1(83fbd6e9b327700dc9f1c59700b7385bc3705749) )
ROM_CONTINUE(         0x10000, 0x18000 )
ROM_LOAD( "sza.02",   0x28000, 0x20000, CRC(ba6a5013) SHA1(7814f3e56b69529b9860dd61c3b1e8d700244b03) )

ROM_REGION( 0x400000, "qsound", 0 ) /* QSound samples */
ROM_LOAD16_WORD_SWAP( "sza.11m",   0x000000, 0x200000, CRC(aa47a601) SHA1(a4d1ee89c84a3b9db06469bb66e85293b5aa9ac9) )
ROM_LOAD16_WORD_SWAP( "sza.12m",   0x200000, 0x200000, CRC(2237bc53) SHA1(96d5693047e4cf1ed10a8ee1905cea267a278e92) )
ROM_END

Code: [Select]
GAME( 1996, sfz2abr,    sfz2al,   cps2, cps2_2p6b, cps_state, cps2,     ROT0,   "Capcom", "Street Fighter Zero 2 Alpha (Brasil 061225)", GAME_SUPPORTS_SAVE )

 :cool:
« Last Edit: January 27, 2015, 06:59:25 am by Ashura-X »

Offline BisonSAS

  • Expert
  • *****
  • Posts: 209
  • Karma: +27/-0
  • [NGBRT]
    • NeoGeo BR Team
Re: I need help adding a CPS2 translated game here !
« Reply #3 on: January 27, 2015, 08:50:29 pm »
Show! :biggrin:
De nada. :wink:

 :cool:

Offline JR.VOY

  • Newbies
  • *
  • Posts: 1
  • Karma: +0/-1
Re: I need help adding a CPS2 translated game here !
« Reply #4 on: October 03, 2017, 06:10:19 am »
I came to this answer as well.