Author Topic: Crouching Tiger Hidden Dragon 2003 (Hack) - I'm doing this for 0.102.  (Read 5841 times)

Offline KingHanco

  • Sr. Member
  • ****
  • Posts: 401
  • Karma: +0/-4
  • "Special " Member
Code: [Select]
Add this near the middle of NEOGEO.C (src/drivers/) before the init section.

ROM_START( cthd2003 )
ROM_REGION( 0x500000, REGION_CPU1, 0 )
ROM_LOAD16_WORD_SWAP( "5003-p1.bin", 0x000000, 0x100000, CRC(bb7602c1) )
ROM_LOAD16_WORD_SWAP( "5003-p2.bin", 0x100000, 0x400000, CRC(adc1c22b) )

NEO_SFIX_128K( "5003-s1.bin", CRC(5ba29aab) )

NEO_BIOS_SOUND_128K( "5003-m1.bin", CRC(1a8c274b) )

ROM_REGION( 0x1000000, REGION_SOUND1, 0)
ROM_LOAD( "262-v1.bin", 0x000000, 0x400000, CRC(bb7602c1) )
ROM_LOAD( "262-v2.bin", 0x400000, 0x400000, CRC(003f1843) )
ROM_LOAD( "262-v3.bin", 0x800000, 0x400000, CRC(2ae38dbe) )
ROM_LOAD( "262-v4.bin", 0xc00000, 0x400000, CRC(26ec4dd9) )

NO_DELTAT_REGION

ROM_REGION( 0x4000000, REGION_GFX3, 0 )
ROM_LOAD16_BYTE( "5003-c1.bin", 0x0000000, 0x800000, CRC(68f54b67) )
ROM_LOAD16_BYTE( "5003-c2.bin", 0x0000001, 0x800000, CRC(2f8849d5) )
ROM_LOAD16_BYTE( "5003c3.bin", 0x1000000, 0x800000, CRC(ac4aff71) )
ROM_LOAD16_BYTE( "5003-c4.bin", 0x1000001, 0x800000, CRC(afef5d66) )
ROM_LOAD16_BYTE( "5003-c5.bin", 0x2000000, 0x800000, CRC(c7c1ae50) )
ROM_LOAD16_BYTE( "5003-c6.bin", 0x2000001, 0x800000, CRC(613197f9) )
ROM_LOAD16_BYTE( "5003-c7.bin", 0x3000000, 0x800000, CRC(64ddfe0f) )
ROM_LOAD16_BYTE( "5003-c8.bin", 0x3000001, 0x800000, CRC(917a1439) )
ROM_END


Code: [Select]
Add this at the bottom of NEOGEO.C (src/drivers/)

GAMEB( 2003, cthd2003, kof2001, neogeo, neogeo, neogeo,  neogeo,   ROT0, "www.phenixsoft.com", "Crouching Tiger Hidden Dragon 2003 (Hack)", 0 )


Code: [Select]
Add this at the bottom of DRIVER.C (src/)

DRIVER( cthd2003 ) /* (c) 2003 www.phenixsoft.com */

I haven't test the game yet to see that I done it right. Clone of kof2001. I'm testing it after the make.

I have the Generator on hold. I don't how to save it. Just incase I did miss something.

Hmmm... I think that I made a mistake. Now I need to make again. Here is what I change because it sharing the roms. The 4 roles are removed.

Code: [Select]
ROM_START( cthd2003 )
ROM_REGION( 0x500000, REGION_CPU1, 0 )
ROM_LOAD16_WORD_SWAP( "5003-p1.bin", 0x000000, 0x100000, CRC(bb7602c1) )
ROM_LOAD16_WORD_SWAP( "5003-p2.bin", 0x100000, 0x400000, CRC(adc1c22b) )

NEO_SFIX_128K( "5003-s1.bin", CRC(5ba29aab) )

NEO_BIOS_SOUND_128K( "5003-m1.bin", CRC(1a8c274b) )

ROM_REGION( 0x1000000, REGION_SOUND1, 0)

NO_DELTAT_REGION

ROM_REGION( 0x4000000, REGION_GFX3, 0 )
ROM_LOAD16_BYTE( "5003-c1.bin", 0x0000000, 0x800000, CRC(68f54b67) )
ROM_LOAD16_BYTE( "5003-c2.bin", 0x0000001, 0x800000, CRC(2f8849d5) )
ROM_LOAD16_BYTE( "5003-c3.bin", 0x1000000, 0x800000, CRC(ac4aff71) )
ROM_LOAD16_BYTE( "5003-c4.bin", 0x1000001, 0x800000, CRC(afef5d66) )
ROM_LOAD16_BYTE( "5003-c5.bin", 0x2000000, 0x800000, CRC(c7c1ae50) )
ROM_LOAD16_BYTE( "5003-c6.bin", 0x2000001, 0x800000, CRC(613197f9) )
ROM_LOAD16_BYTE( "5003-c7.bin", 0x3000000, 0x800000, CRC(64ddfe0f) )
ROM_LOAD16_BYTE( "5003-c8.bin", 0x3000001, 0x800000, CRC(917a1439) )
ROM_END

It should be fixs now.
« Last Edit: November 19, 2005, 05:09:16 AM by KingHanco »

Offline James33

  • Expert
  • *****
  • Posts: 532
  • Karma: +3/-0
  • The Mame Man
    • Emulation Zone
Re: Crouching Tiger Hidden Dragon 2003 (Hack) - I'm doing this for 0.102.
« Reply #1 on: November 19, 2005, 08:40:58 AM »
Why are you postting this ?   And why did you remove the sound roms ?
« Last Edit: November 19, 2005, 08:42:00 AM by James33 »
IQ Forum Member

Offline Ashura-X

  • Member
  • ***
  • Posts: 136
  • Karma: +0/-0
Re: Crouching Tiger Hidden Dragon 2003 (Hack) - I'm doing this for 0.102.
« Reply #2 on: November 19, 2005, 03:59:52 PM »
Because he is crazy !!!!!!!!!!!!!! ;)

Offline KingHanco

  • Sr. Member
  • ****
  • Posts: 401
  • Karma: +0/-4
  • "Special " Member
Re: Crouching Tiger Hidden Dragon 2003 (Hack) - I'm doing this for 0.102.
« Reply #3 on: November 19, 2005, 07:37:50 PM »
Why are you postting this ?   And why did you remove the sound roms ?

Because the cmpro said it already sharing the sounds roms with the kof2001. It gotting confused. So I removed the sounds roms from the clone. I will put it back in right now.

Another thing is why the Generator don't make the patch coding with this driver? The graphics are bad on it without the patch coding. Anyway there are so many things wrong with it.

Maybe I not doing the Generator right. I very confused. :confused:

Offline iq_132

  • Administrator
  • *****
  • Posts: 3619
  • Karma: +385/-0
  • Bare Knuckle!
    • NeoSource
Re: Crouching Tiger Hidden Dragon 2003 (Hack) - I'm doing this for 0.102.
« Reply #4 on: November 19, 2005, 11:15:28 PM »
Another thing is why the Generator don't make the patch coding with this driver? The graphics are bad on it without the patch coding. Anyway there are so many things wrong with it.
Because the generator doesn't do per-game fixes. ;)  You have to add that by yourself.

As for the sound roms, just make cthd2003 a clone of kof2001.


Offline KingHanco

  • Sr. Member
  • ****
  • Posts: 401
  • Karma: +0/-4
  • "Special " Member
Re: Crouching Tiger Hidden Dragon 2003 (Hack) - I'm doing this for 0.102.
« Reply #5 on: November 19, 2005, 11:30:18 PM »
Because the generator doesn't do per-game fixes. ;)  You have to add that by yourself.

As for the sound roms, just make cthd2003 a clone of kof2001.

1. That sucks.

2. Well that the way that I have it.

Anyway I found the extrasrc_095.zip that have the cthd2003 driver in it. I glad that I found that. :)

Offline James33

  • Expert
  • *****
  • Posts: 532
  • Karma: +3/-0
  • The Mame Man
    • Emulation Zone
Re: Crouching Tiger Hidden Dragon 2003 (Hack) - I'm doing this for 0.102.
« Reply #6 on: November 19, 2005, 11:58:17 PM »
I think the current Mame Plus has that driver anyway .
IQ Forum Member

Offline KingHanco

  • Sr. Member
  • ****
  • Posts: 401
  • Karma: +0/-4
  • "Special " Member
Re: Crouching Tiger Hidden Dragon 2003 (Hack) - I'm doing this for 0.102.
« Reply #7 on: November 20, 2005, 12:00:33 AM »
I think the current Mame Plus has that driver anyway .

I got to download their source then and check those drivers out.  :biggrin:

Oh ok. I fixs the problem on cthd2003.

Right ROM_LOAD( "262-v1.bin", 0x000000, 0x400000, CRC(83d49ecf) ) - Wrong ROM_LOAD( "262-v1.bin", 0x000000, 0x400000, CRC(bb7602c1) )

How can I check the SHA1 out? What zip programs that show the SHA1?
« Last Edit: November 20, 2005, 12:16:52 AM by KingHanco »

Offline iq_132

  • Administrator
  • *****
  • Posts: 3619
  • Karma: +385/-0
  • Bare Knuckle!
    • NeoSource
Re: Crouching Tiger Hidden Dragon 2003 (Hack) - I'm doing this for 0.102.
« Reply #8 on: November 20, 2005, 01:10:38 AM »
http://www.slavasoft.com/hashcalc/

Just unzip the file you want to check...


Offline KingHanco

  • Sr. Member
  • ****
  • Posts: 401
  • Karma: +0/-4
  • "Special " Member
Re: Crouching Tiger Hidden Dragon 2003 (Hack) - I'm doing this for 0.102.
« Reply #9 on: November 20, 2005, 01:44:41 AM »
http://www.slavasoft.com/hashcalc/

Just unzip the file you want to check...

Thanks alot and that is very helpful there. Now I need help on the last 2 things.

Code: [Select]
* This goes after the last definition of static WRITE16_HANDLER

static WRITE16_HANDLER ( cthd2003_bankswitch_w )
{
int bankaddress;
static int cthd2003_banks[8] =
{
1,0,1,0,1,0,3,2,
};

if (offset == 0)
{
bankaddress = 0x100000 + cthd2003_banks[data&7]*0x100000;
neogeo_set_cpu1_second_bank(bankaddress);
}
}

Code: [Select]
* This goes within the function static void neogeo_custom_memory(void):

if (!strcmp(Machine->gamedrv->name,"cthd2003"))
{
/* patches thanks to razoola */
int i;
data16_t *mem16 = (data16_t *)memory_region(REGION_CPU1);

/* special ROM banking handler */
install_mem_write16_handler(0, 0x2ffff0, 0x2fffff, cthd2003_bankswitch_w);

// theres still a problem on the character select screen but it seems to be related to cpu core timing issues,
// overclocking the 68k prevents it.

// fix garbage on s1 layer over everything
mem16[0xf415a/2] = 0x4ef9;
mem16[0xf415c/2] = 0x000f;
mem16[0xf415e/2] = 0x4cf2;
// Fix corruption in attract mode before title screen
for (i=0x1ae290/2;i < 0x1ae8d0/2; i=i+1)
{
mem16[i] = 0x0000;
}

// Fix for title page
  for (i=0x1f8ef0/2;i < 0x1fa1f0/2; i=i+2)
  {
mem16[i] -= 0x7000;
mem16[i+1] -= 0x0010;
  }

// Fix for green dots on title page
for (i=0xac500/2;i < 0xac520/2; i=i+1)
{
mem16[i] = 0xFFFF;
}
  // Fix for blanks as screen change level end clear
mem16[0x991d0/2] = 0xdd03;
mem16[0x99306/2] = 0xdd03;
mem16[0x99354/2] = 0xdd03;
  mem16[0x9943e/2] = 0xdd03;
}

I don't know where to put those at in the neogeo.c to fixs the bad graphics. Btw: I couldn't get the Mame Plus! 0.102 source because their website is down.  :biggrin:
« Last Edit: November 20, 2005, 03:04:10 AM by KingHanco »

Offline KingHanco

  • Sr. Member
  • ****
  • Posts: 401
  • Karma: +0/-4
  • "Special " Member
Re: Crouching Tiger Hidden Dragon 2003 (Hack) - I'm doing this for 0.102.
« Reply #10 on: November 20, 2005, 04:03:41 AM »
Those things go in src\machine\neogeo.c - not in src\drivers\neogeo.c

Yes I just now know where at by looking at MAMEdOX 1.0 source.
« Last Edit: November 20, 2005, 03:15:22 PM by KingHanco »