Author Topic: Pb with Tenchi wo Kurau 2 - Sekiheki no Tatakai (CPS changer japan 921031)  (Read 7337 times)

Offline JacKc

  • FBNeo Dev
  • ******
  • Posts: 1677
  • Karma: +56/-0
  • Hasta la vista, Baby !
Hi,

Started my first FBA compilation and find the ROM for Tenchi wo Kurau 2 - Sekiheki no Tatakai (CPS changer japan 921031) and wanted to add it on driver cps1 but the results are some graphical glitches :redface:

I've notice for this ROM this advertising : tk207 on cps changer correspond to tk206 on the arcade game.

Here's my driver :

Code: [Select]
static struct BurnRomInfo WofjchRomDesc[] = {
{ "tk2j23ch.bin",  0x080000, 0x4e0b8dee, BRF_ESS | BRF_PRG | CPS1_68K_PROGRAM_NO_BYTESWAP },
{ "tk2j22ch.bin",  0x080000, 0xd0937a8d, BRF_ESS | BRF_PRG | CPS1_68K_PROGRAM_NO_BYTESWAP },

{ "tk2_gfx1.rom",  0x080000, 0x0d9cb9bf, BRF_GRA | CPS1_TILES },
{ "tk2_gfx3.rom",  0x080000, 0x45227027, BRF_GRA | CPS1_TILES },
{ "tk2_gfx2.rom",  0x080000, 0xc5ca2460, BRF_GRA | CPS1_TILES },
{ "tk2_gfx4.rom",  0x080000, 0xe349551c, BRF_GRA | CPS1_TILES },
{ "tk205.bin",     0x080000, 0xe4a44d53, BRF_GRA | CPS1_TILES },
{ "tk206ch.bin",   0x080000, 0xcc9006c9, BRF_GRA | CPS1_TILES },
{ "tk207.bin",     0x080000, 0x58066ba8, BRF_GRA | CPS1_TILES },
{ "tk208.bin",     0x080000, 0xd4a19a02, BRF_GRA | CPS1_TILES },

{ "tk2_qa.rom",    0x020000, 0xc9183a0d, BRF_PRG | CPS1_Z80_PROGRAM },

{ "tk2_q1.rom",    0x080000, 0x611268cf, BRF_SND | CPS1_QSOUND_SAMPLES },
{ "tk2_q2.rom",    0x080000, 0x20f55ca9, BRF_SND | CPS1_QSOUND_SAMPLES },
{ "tk2_q3.rom",    0x080000, 0xbfcf6f52, BRF_SND | CPS1_QSOUND_SAMPLES },
{ "tk2_q4.rom",    0x080000, 0x36642e88, BRF_SND | CPS1_QSOUND_SAMPLES },

A_BOARD_QSOUND_PLDS

{ "tk263b.1a",     0x000117, 0xc4b0349b, BRF_OPT }, // b-board PLDs
{ "iob1.12d",      0x000117, 0x3abc0700, BRF_OPT },
{ "bprg1.11d",     0x000117, 0x31793da7, BRF_OPT },

{ "ioc1.ic7",      0x000117, 0x0d182081, BRF_OPT }, // c-board PLDs
};

STD_ROM_PICK(Wofjch)
STD_ROM_FN(Wofjch)

struct BurnDriver BurnDrvCpsWofjch = {
"wofjch", "wof", NULL, "1992",
"Tenchi wo Kurau II - Sekiheki no Tatakai (921031 Japan CPS Changer)\0", NULL, "Capcom", "CPS1 / QSound",
L"\u8EE2\u5730\u3092\u55B0\u3089\u3046II - \u8D64\u58C1\u306E\u6226\u3044 (Tenchi wo Kurau 2 921031 Japan)\0Tenchi wo Kurau II - Sekiheki no Tatakai (921031 Japan)\0", NULL, NULL, NULL,
BDF_GAME_WORKING | BDF_CLONE, 3, HARDWARE_CAPCOM_CPS1_QSOUND, GBF_SCRFIGHT, 0,
NULL, WofjchRomInfo, WofjchRomName, WofInputInfo, WofDIPInfo,
TwelveMhzInit, DrvExit, Cps1Frame, CpsRedraw, CpsAreaScan,
0, NULL, NULL, NULL, &CpsRecalcPal, 384, 224, 4, 3

{ "wofjch"  , CPS_B_21_DEF, mapper_TK263B, 0, wof_decode          },

a problem with the mapper?


Offline Barry Harris

  • dontbeabarry
  • *
  • Posts: 1785
  • Karma: +0/-65535
  • I'm Barry Harris and I like to f*** people over
Re: Pb with Tenchi wo Kurau 2 - Sekiheki no Tatakai (CPS changer japan 921031)
« Reply #1 on: February 04, 2009, 10:02:36 AM »
Quote
a problem with the mapper?

Yup - use the one that sfzch uses. :)
Account of Barry Harris; the traitor.
Send me an e-mail at barry@fbalpha.com letting me know how big of a piece of sh** I am.

Offline JacKc

  • FBNeo Dev
  • ******
  • Posts: 1677
  • Karma: +56/-0
  • Hasta la vista, Baby !
Re: Pb with Tenchi wo Kurau 2 - Sekiheki no Tatakai (CPS changer japan 921031)
« Reply #2 on: February 04, 2009, 10:07:18 AM »
OK...I test it now and edit my post if it works fine.

EDIT : sorry not able to modify the driver for this game works correctly :S (sorry i'm a newbie in FBA drivers !!!)

Anyone is able to modify this driver? (it will be easier for me to understand what's wrong in the current driver if i see a good driver)
« Last Edit: February 04, 2009, 10:42:03 AM by JacKc »


Offline Barry Harris

  • dontbeabarry
  • *
  • Posts: 1785
  • Karma: +0/-65535
  • I'm Barry Harris and I like to f*** people over
Re: Pb with Tenchi wo Kurau 2 - Sekiheki no Tatakai (CPS changer japan 921031)
« Reply #3 on: February 04, 2009, 11:21:21 AM »
iq added it to FBA so I'll let him decide if he posts his driver or not. It is very simple to add though if you follow the Street Fighter Zero CPS Changer init.

Essentially, remove the coin inputs (since it's a console game), use the config detail below,  and create an init function to set the Cps variable to 3 (CPS Changer).

Code: [Select]
{ "wofch"   , CPS_B_21_DEF, mapper_sfzch , 0, wof_decode          },
Account of Barry Harris; the traitor.
Send me an e-mail at barry@fbalpha.com letting me know how big of a piece of sh** I am.

Offline iq_132

  • Administrator
  • *****
  • Posts: 3725
  • Karma: +411/-0
  • Definitely not Dink!
    • NeoSource
Re: Pb with Tenchi wo Kurau 2 - Sekiheki no Tatakai (CPS changer japan 921031)
« Reply #4 on: February 04, 2009, 01:56:38 PM »
This is what I have:

Code: [Select]
static struct BurnInputInfo WofchInputList[] =
{
  {"P1 Start"         , BIT_DIGITAL  , CpsInp018+4, "p1 start"  },
  {"P1 Up"            , BIT_DIGITAL  , CpsInp001+3, "p1 up"     },
  {"P1 Down"          , BIT_DIGITAL  , CpsInp001+2, "p1 down"   },
  {"P1 Left"          , BIT_DIGITAL  , CpsInp001+1, "p1 left"   },
  {"P1 Right"         , BIT_DIGITAL  , CpsInp001+0, "p1 right"  },
  {"P1 Attack"        , BIT_DIGITAL  , CpsInp001+4, "p1 fire 1" },
  {"P1 Jump"          , BIT_DIGITAL  , CpsInp001+5, "p1 fire 2" },

  {"P2 Start"         , BIT_DIGITAL  , CpsInp018+5, "p2 start"  },
  {"P2 Up"            , BIT_DIGITAL  , CpsInp000+3, "p2 up"     },
  {"P2 Down"          , BIT_DIGITAL  , CpsInp000+2, "p2 down"   },
  {"P2 Left"          , BIT_DIGITAL  , CpsInp000+1, "p2 left"   },
  {"P2 Right"         , BIT_DIGITAL  , CpsInp000+0, "p2 right"  },
  {"P2 Attack"        , BIT_DIGITAL  , CpsInp000+4, "p2 fire 1" },
  {"P2 Jump"          , BIT_DIGITAL  , CpsInp000+5, "p2 fire 2" },

  {"P3 Start"         , BIT_DIGITAL  , CpsInpc001+7, "p3 start" },
  {"P3 Up"            , BIT_DIGITAL  , CpsInpc001+3, "p3 up"    },
  {"P3 Down"          , BIT_DIGITAL  , CpsInpc001+2, "p3 down"  },
  {"P3 Left"          , BIT_DIGITAL  , CpsInpc001+1, "p3 left"  },
  {"P3 Right"         , BIT_DIGITAL  , CpsInpc001+0, "p3 right" },
  {"P3 Attack"        , BIT_DIGITAL  , CpsInpc001+4, "p3 fire 1"},
  {"P3 Jump"          , BIT_DIGITAL  , CpsInpc001+5, "p3 fire 2"},

  {"Reset"            , BIT_DIGITAL  , &CpsReset,   "reset"     },
};

STDINPUTINFO(Wofch);

// Tenchi wo Kurau II - Sekiheki no Tatakai (Changer)

static struct BurnRomInfo WofchRomDesc[] = {
{ "tk2(ch).23",    0x080000, 0x4e0b8dee, BRF_ESS | BRF_PRG | CPS1_68K_PROGRAM_NO_BYTESWAP },
{ "tk2(ch).22",    0x080000, 0xd0937a8d, BRF_ESS | BRF_PRG | CPS1_68K_PROGRAM_NO_BYTESWAP },

{ "tk2_gfx1.rom",  0x080000, 0x0d9cb9bf, BRF_GRA | CPS1_TILES },
{ "tk2_gfx3.rom",  0x080000, 0x45227027, BRF_GRA | CPS1_TILES },
{ "tk2_gfx2.rom",  0x080000, 0xc5ca2460, BRF_GRA | CPS1_TILES },
{ "tk2_gfx4.rom",  0x080000, 0xe349551c, BRF_GRA | CPS1_TILES },
{ "tk205.bin",     0x080000, 0xe4a44d53, BRF_GRA | CPS1_TILES },
{ "tk206.bin",     0x080000, 0x58066ba8, BRF_GRA | CPS1_TILES },
{ "tk2(ch).06",    0x080000, 0xcc9006c9, BRF_GRA | CPS1_TILES },
{ "tk208.bin",     0x080000, 0xd4a19a02, BRF_GRA | CPS1_TILES },

{ "tk2_qa.rom",    0x020000, 0xc9183a0d, BRF_PRG | CPS1_Z80_PROGRAM },

{ "tk2_q1.rom",    0x080000, 0x611268cf, BRF_SND | CPS1_QSOUND_SAMPLES },
{ "tk2_q2.rom",    0x080000, 0x20f55ca9, BRF_SND | CPS1_QSOUND_SAMPLES },
{ "tk2_q3.rom",    0x080000, 0xbfcf6f52, BRF_SND | CPS1_QSOUND_SAMPLES },
{ "tk2_q4.rom",    0x080000, 0x36642e88, BRF_SND | CPS1_QSOUND_SAMPLES },
};

STD_ROM_PICK(Wofch)
STD_ROM_FN(Wofch)

static int WofchInit()
{
int nRet = 0;

Cps1Qs = 1;

nRet = DrvInit();

Cps = 3;

return nRet;
}

struct BurnDriver BurnDrvCpsWofch = {
"wofch", "wof", NULL, "1992",
"Tenchi wo Kurau II - Sekiheki no Tatakai (921031 CPS Changer)\0", NULL, "Capcom", "CPS Changer",
L"\u8EE2\u5730\u3092\u55B0\u3089\u3046II - \u8D64\u58C1\u306E\u6226\u3044 (Tenchi wo Kurau 2 921031 CPS Changer)\0Tenchi wo Kurau II - Sekiheki no Tatakai (921031 CPS Changer)\0", NULL, NULL, NULL,
BDF_GAME_WORKING | BDF_CLONE, 3, HARDWARE_CAPCOM_CPSCHANGER, GBF_SCRFIGHT, 0,
NULL, WofchRomInfo, WofchRomName, WofchInputInfo, NULL,
WofchInit, DrvExit, Cps1Frame, CpsRedraw, CpsAreaScan,
JBF_GAME_WORKING, DrvJukeboxInit, DrvJukeboxExit, DrvJukeboxFrame, &CpsRecalcPal, 384, 224, 4, 3
};

Code: [Select]
{ "wofch"   , CPS_B_21_DEF, mapper_sfzch,  0, wof_decode          },


Offline JacKc

  • FBNeo Dev
  • ******
  • Posts: 1677
  • Karma: +56/-0
  • Hasta la vista, Baby !
Re: Pb with Tenchi wo Kurau 2 - Sekiheki no Tatakai (CPS changer japan 921031)
« Reply #5 on: February 04, 2009, 02:40:22 PM »
Great...It works fine ! Thanks iq_132 :biggrin: