Author Topic: King of Fighters 10th Anniversary Edition  (Read 83370 times)

Offline James33

  • Expert
  • *****
  • Posts: 532
  • Karma: +3/-0
  • The Mame Man
    • Emulation Zone
Re: King of Fighters 10th Anniversary Edition
« Reply #60 on: December 04, 2005, 02:48:53 AM »
There is no way I would use your build you keep changeing the roms around  That driver looks very old as well way too many patches in it ( The driver you posted on page 4 ) ,
« Last Edit: December 04, 2005, 02:54:22 AM by James33 »
IQ Forum Member

Offline James33

  • Expert
  • *****
  • Posts: 532
  • Karma: +3/-0
  • The Mame Man
    • Emulation Zone
Re: King of Fighters 10th Anniversary Edition
« Reply #61 on: December 04, 2005, 02:55:04 AM »
That driver does not need neo_pcm2_swap

Anyway I think i will no longer reply to your posts you seem to be beyond help you keep makeing the same mistakes over and over .
« Last Edit: December 04, 2005, 02:57:42 AM by James33 »
IQ Forum Member

Offline KingHanco

  • Sr. Member
  • ****
  • Posts: 401
  • Karma: +0/-4
  • "Special " Member
Re: King of Fighters 10th Anniversary Edition
« Reply #62 on: December 04, 2005, 03:16:50 AM »
It works before changing the roms names and infos with it.

So I need to removed the neo_pcm2_swap(0); then. If that what your saying James33.

Removed done.
« Last Edit: December 04, 2005, 04:28:56 AM by KingHanco »

Offline James33

  • Expert
  • *****
  • Posts: 532
  • Karma: +3/-0
  • The Mame Man
    • Emulation Zone
Re: King of Fighters 10th Anniversary Edition
« Reply #63 on: December 04, 2005, 03:29:15 AM »


So I need to removed the neo_pcm2_swap(0); then. If that what your saying iq_132.

Removed done.
Thats what I said :P


Hey IQ we need an attack system so we can frag other members :D
« Last Edit: December 04, 2005, 03:57:41 AM by James33 »
IQ Forum Member

Offline KingHanco

  • Sr. Member
  • ****
  • Posts: 401
  • Karma: +0/-4
  • "Special " Member
Re: King of Fighters 10th Anniversary Edition
« Reply #64 on: December 04, 2005, 05:20:38 PM »
Trying this one out to see it fixs the sounds. I found this one.

Code: [Select]
ROM_START( kof10th )
ROM_REGION( 0x800000, REGION_CPU1, 0 )
ROM_LOAD16_WORD_SWAP( "kf10-p1.bin", 0x000000, 0x800000, CRC(b1fd0c43) SHA1(5f842a8a27be2d957fd4140d6431ae47154997bb) )

ROM_REGION( 0x20000, REGION_GFX1, 0 )
ROM_FILL(                                0x000000, 0x20000, 0 )
ROM_REGION( 0x20000, REGION_GFX2, 0 )
ROM_LOAD( "sfix.sfx",  0x000000, 0x20000, CRC(354029fc) SHA1(4ae4bf23b4c2acff875775d4cbff5583893ce2a1) )

NEO_BIOS_SOUND_128K( "kf10-m1.bin", CRC(f6fab859) SHA1(0184aa1394b9f9946d610278b53b846020dd88dc) )

ROM_REGION( 0x1000000, REGION_SOUND1, ROMREGION_SOUNDONLY )
ROM_LOAD( "kf10-v1.bin", 0x000000, 0x800000, CRC(0fc9a58d) SHA1(9d79ef00e2c2abd9f29af5521c2fbe5798bf336f) )
ROM_LOAD( "kf10-v2.bin", 0x800000, 0x800000, CRC(b8c475a4) SHA1(10caf9c69927a223445d2c4b147864c02ce520a8) )

NO_DELTAT_REGION

ROM_REGION( 0x4000000, REGION_GFX3, 0 )

ROM_LOAD16_BYTE( "kf10-c1a.bin", 0x0000000, 0x400000, CRC(3bbc0364) SHA1(e8aa7ff82f151ce1db56f259377b64cceef85af0) ) /* Plane 0,1 */
ROM_LOAD16_BYTE( "kf10-c2a.bin", 0x0000001, 0x400000, CRC(91230075) SHA1(d9098e05a7ba6008661147b6bf8bc2f494b8b72b) ) /* Plane 2,3 */
ROM_LOAD16_BYTE( "kf10-c1b.bin", 0x0800000, 0x400000, CRC(b5abfc28) SHA1(eabf60992bb3485c95330065294071ec155bfe7c) ) /* Plane 0,1 */
ROM_LOAD16_BYTE( "kf10-c2b.bin", 0x0800001, 0x400000, CRC(6cc4c6e1) SHA1(be824a944e745ee18efdc45c81fd496a4d624b9c) ) /* Plane 2,3 */
ROM_LOAD16_BYTE( "kf10-c3a.bin", 0x1000000, 0x400000, CRC(5b3d4a16) SHA1(93ac1cd7739100f8c32732644f81f2a19837b131) ) /* Plane 0,1 */
ROM_LOAD16_BYTE( "kf10-c4a.bin", 0x1000001, 0x400000, CRC(c6f3419b) SHA1(340c17a73aeb7bf8a6209f8459e6f00000075b50) ) /* Plane 2,3 */
ROM_LOAD16_BYTE( "kf10-c3b.bin", 0x1800000, 0x400000, CRC(9d2bba19) SHA1(5ebbd0af3f83a60e33c8ccb743e3d5f5a96f1273) ) /* Plane 0,1 */
ROM_LOAD16_BYTE( "kf10-c4b.bin", 0x1800001, 0x400000, CRC(5a4050cb) SHA1(8fd2291f349efa1ed5cd37ad4e273b60fe831a77) ) /* Plane 2,3 */
ROM_LOAD16_BYTE( "kf10-c5a.bin", 0x2000000, 0x400000, CRC(a289d1e1) SHA1(50c7d7ebde6e118a01036cc3e40827fcd9f0d3fd) ) /* Plane 0,1 */
ROM_LOAD16_BYTE( "kf10-c6a.bin", 0x2000001, 0x400000, CRC(e6494b5d) SHA1(18e064b9867ae0b0794065f8dbefd486620419db) ) /* Plane 2,3 */
ROM_LOAD16_BYTE( "kf10-c5b.bin", 0x2800000, 0x400000, CRC(404fff02) SHA1(56d1b32c87ea4885e49264e8b21846e465a20e1f) ) /* Plane 0,1 */
ROM_LOAD16_BYTE( "kf10-c6b.bin", 0x2800001, 0x400000, CRC(f2ccfc9e) SHA1(69db7fac7023785ab94ea711a72dbc2826cfe1a3) ) /* Plane 2,3 */
ROM_LOAD16_BYTE( "kf10-c7a.bin", 0x3000000, 0x400000, CRC(be79c5a8) SHA1(ded3c5eb3571647f50533eb682c2675372ace3fb) ) /* Plane 0,1 */
ROM_LOAD16_BYTE( "kf10-c8a.bin", 0x3000001, 0x400000, CRC(a5952ca4) SHA1(76dbb3cb45ce5a4beffa1ed29491204fc6617e42) ) /* Plane 2,3 */
ROM_LOAD16_BYTE( "kf10-c7b.bin", 0x3800000, 0x400000, CRC(3fdb3542) SHA1(7d2050752a2064cd6729f483a0da93808e2c6033) ) /* Plane 0,1 */
ROM_LOAD16_BYTE( "kf10-c8b.bin", 0x3800001, 0x400000, CRC(661b7a52) SHA1(0ae2ad2389134892f156337332b77adade3ddad1) ) /* Plane 2,3 */
ROM_END

DRIVER_INIT( kof10th )
{
int i,j;
UINT16 *prom = (UINT16*)memory_region(REGION_CPU1);
UINT16 *buf  = (UINT16*)malloc(0x800000);
UINT16 *srom = (UINT16*)memory_region(REGION_GFX1);

if (buf)
{
  memcpy(buf+0x000000/2, prom+0x700000/2, 0x100000);
memcpy(buf+0x100000/2, prom+0x000000/2, 0x600000);
memcpy(prom+0x000000/2, buf+0x000000/2, 0x800000);

memcpy(buf,prom,0x800000);
for(i=0;i<0x800000/2;i++)
{
  j=BITSWAP24(i,23,22,21,20,19,18,17,16,15,14,13,12,11,10,1,8,7,6,0,4,3,2,9,5);
prom[j]=buf[i];
}
free(buf);
}

for(i=0;i<0x40;i++){
prom[0xe0000/2+i]=((prom[0x531680/2+i]^(0xc11d-0xc0c8))^prom[0x531600/2+i]);
}
for(i=0;i<0x270;i++){
prom[0xe1000/2+i]=((prom[0x531970/2+i]^(0xc11d-0xc0d9))^prom[0x531700/2+i]);
}

/* Extra patches */
prom[0x00124/2] = 0x000d; // Run code that gives XOR for RAM moves and forces SoftDIPs
prom[0x00126/2] = 0xf7a8; // (how to play off and always teamplay). Also forces USA region.

prom[0xdf986/2] = 0x168c; // fix a bsr offset (was in 0xe0000 range)
prom[0xdf998/2] = 0x1668; // fix a bsr offset (was in 0xe0000 range)
prom[0xe1154/2] = 0x125c; // fix a jmp offset (was in 0xe0000 range)

prom[0xdd880/2] = 0x4e75; // fix level drawing  (from 0xf0000 range)
prom[0xdd89e/2] = 0x4e75; // fix level anim      (from 0xf0000 range)
prom[0xdd8bc/2] = 0x4e75; // fix continue screen (from 0xf0000 range)

/* Extract S1 from P rom */
// get 8x8 tiles from P rom
// bank 1, game does this on the fly!
for (i=0;i<0x10000/2;i++){
srom[i+0x00000/2]=BITSWAP16(prom[i+0x600000/2]^0xf3f3,7,6,0,4,3,2,1,5,15,14,8,12,11,10,9,13);
srom[i+0x10000/2]=BITSWAP16(prom[i+0x6d0000/2]^0xf3f3,7,6,0,4,3,2,1,5,15,14,8,12,11,10,9,13);
  }
for (i=0;i<0x4000/2;i++){
srom[i+0x02000/2]=BITSWAP16(prom[i+0x6c2000/2]^0xf3f3,7,6,0,4,3,2,1,5,15,14,8,12,11,10,9,13);
srom[i+0x12000/2]=BITSWAP16(prom[i+0x612000/2]^0xf3f3,7,6,0,4,3,2,1,5,15,14,8,12,11,10,9,13);
}

memory_install_read16_handler(0, ADDRESS_SPACE_PROGRAM, 0x2fe000,0x2fffef, 0, 0, MRA16_RAM);
memory_install_write16_handler(0, ADDRESS_SPACE_PROGRAM, 0x2fe000,0x2fffef, 0, 0, MWA16_RAM);

init_neogeo();
}
« Last Edit: December 04, 2005, 08:08:30 PM by KingHanco »

Offline iq_132

  • Administrator
  • *****
  • Posts: 3728
  • Karma: +411/-0
  • Definitely not Dink!
    • NeoSource
Re: King of Fighters 10th Anniversary Edition
« Reply #65 on: December 05, 2005, 12:04:21 AM »
New version of my code.  There are few differences, but it does fix the CRC check on UNI-BIOS.
I still haven't figured out how to make it write the S on the fly though :(


Offline KingHanco

  • Sr. Member
  • ****
  • Posts: 401
  • Karma: +0/-4
  • "Special " Member
Re: King of Fighters 10th Anniversary Edition
« Reply #66 on: December 05, 2005, 12:43:43 AM »
Ok.

I going through checking on each game drivers at a time on a fresh neogeo.c and drivers.c.

I'm starting with the kog which I think that I broking it and this next. After that I do all the easy last that I already gotting working by using the drivers that you guys made. Hopey I get all strightning out.  :biggrin:

Offline James33

  • Expert
  • *****
  • Posts: 532
  • Karma: +3/-0
  • The Mame Man
    • Emulation Zone
Re: King of Fighters 10th Anniversary Edition
« Reply #67 on: December 05, 2005, 12:51:32 AM »
Ok.

I going through checking on each game drivers at a time on a fresh neogeo.c and drivers.c.

I'm starting with the kog which I think that I broking it and this next. After that I do all the easy last that I already gotting working by using the drivers that you guys made. Hopey I get all strightning out.  :biggrin:

I fixed that for you . Why do you ignore this .
IQ Forum Member

Offline KingHanco

  • Sr. Member
  • ****
  • Posts: 401
  • Karma: +0/-4
  • "Special " Member
Re: King of Fighters 10th Anniversary Edition
« Reply #68 on: December 05, 2005, 01:43:53 AM »
I fixed that for you . Why do you ignore this .

Just to make sure that there isn't anything attach to it that causes the errors and even though it doesn't seem to be anything that I did wrong. But still I want to make sure there nothing trying to attach it by other drivers.

But the fixs made it working great now. I use the one that you send me the link though email.Thanks.

I not trying to get the credits at all. Your credits like everyone else did the drivers. I did nothing to get the credits. I just put the drivers in my build.  :biggrin:

Btw: I just now gotting the other email.
« Last Edit: December 05, 2005, 02:09:42 AM by KingHanco »

Offline iq_132

  • Administrator
  • *****
  • Posts: 3728
  • Karma: +411/-0
  • Definitely not Dink!
    • NeoSource
Re: King of Fighters 10th Anniversary Edition
« Reply #69 on: December 23, 2005, 02:35:54 AM »
Here's an update, some glitches should be fixed (resets, etc).
Enjoy.


Offline James33

  • Expert
  • *****
  • Posts: 532
  • Karma: +3/-0
  • The Mame Man
    • Emulation Zone
Re: King of Fighters 10th Anniversary Edition
« Reply #70 on: December 23, 2005, 07:20:56 AM »
Here's an update, some glitches should be fixed (resets, etc).
Enjoy.
Since its now in the offical mame would this fix still be needed  ?
IQ Forum Member

Offline iq_132

  • Administrator
  • *****
  • Posts: 3728
  • Karma: +411/-0
  • Definitely not Dink!
    • NeoSource
Re: King of Fighters 10th Anniversary Edition
« Reply #71 on: December 23, 2005, 10:47:38 AM »
Since the code in MAME is using an old version of my code (a port of Bdiamond's FBA code :)), yes, I would say that this is better.
It has a fixed crc in unibios, the p1 swapping is fixed, it won't cause resets, it should be pretty much bug-free.
Also, with the Neo-geo logo, it will always be corrupt if it is shown. 


Offline James33

  • Expert
  • *****
  • Posts: 532
  • Karma: +3/-0
  • The Mame Man
    • Emulation Zone
Re: King of Fighters 10th Anniversary Edition
« Reply #72 on: December 23, 2005, 09:49:55 PM »
Since the code in MAME is using an old version of my code (a port of Bdiamond's FBA code :)), yes, I would say that this is better.
It has a fixed crc in unibios, the p1 swapping is fixed, it won't cause resets, it should be pretty much bug-free.
Also, with the Neo-geo logo, it will always be corrupt if it is shown. 

Yes I will use it .. So far it looks like haze has no idea how these bootlegs work
« Last Edit: December 23, 2005, 09:51:28 PM by James33 »
IQ Forum Member

Offline Haze

  • MAME Devs
  • *****
  • Posts: 184
  • Karma: +47/-0
Re: King of Fighters 10th Anniversary Edition
« Reply #73 on: December 24, 2005, 08:49:51 AM »
Yes, the code was taken from the various builds I could find and here.

Most of it isn't even tested because I don't have the sets, interest, nor time to test it, nor do we have the slightest clue which are genuine bootleg sets with the amount of hacking that goes on...   I assumed being posted here the code was already tested.

Offline neo04

  • Jr. Member
  • **
  • Posts: 90
  • Karma: +1/-0
Re: King of Fighters 10th Anniversary Edition
« Reply #74 on: December 24, 2005, 10:29:10 AM »
heh.. haze is here :) thx for all ur hard work