Author Topic: problem with some hacks  (Read 26870 times)

Offline Nsk

  • Newbies
  • *
  • Posts: 31
  • Karma: +0/-0
Re: problem with some hacks
« Reply #15 on: October 18, 2006, 12:01:28 PM »
big thanks I will try this !!  :smilie:

Edit: Ok it's just what I did before and I know it works. Nice astuce to make a second machine driver :)
It's really strange to have to do things like that to make this game working...

do you think that MAME is now to accurate to allow this hacks working? or is there something broken in the driver?
« Last Edit: October 18, 2006, 01:25:30 PM by Nsk »

Offline James33

  • Expert
  • *****
  • Posts: 532
  • Karma: +3/-0
  • The Mame Man
    • Emulation Zone
Re: problem with some hacks
« Reply #16 on: October 19, 2006, 01:48:27 AM »
I think they are  bad hacks .  I have a hack called kof96evo and it works Also have others that work fine .
IQ Forum Member

Offline Nsk

  • Newbies
  • *
  • Posts: 31
  • Karma: +0/-0
Re: problem with some hacks
« Reply #17 on: October 19, 2006, 08:04:21 AM »
kof96rfs and kof96rss are very good but I think they have been made for emulation, they probably don't work in real hardware...
I have many hacks of many neogeo games too, but I see that most kof96 hacks doesn't work on MAME and all return the same error. so it's really surprising.

Offline James33

  • Expert
  • *****
  • Posts: 532
  • Karma: +3/-0
  • The Mame Man
    • Emulation Zone
Re: problem with some hacks
« Reply #18 on: October 19, 2006, 09:20:44 AM »
No doubt a patch or fix is needed .
IQ Forum Member

Offline Nsk

  • Newbies
  • *
  • Posts: 31
  • Karma: +0/-0
Re: problem with some hacks
« Reply #19 on: October 19, 2006, 11:42:13 AM »
I find something strange:
with the unibios this is the error so in 008CE8:

and in mem:

We can see in 008CE8: 4e71

and it's fun because many protection's patchs in MAME use this value  :rolleyes:

I think it can't be a coinsidence but I don't know what does it mean  :confused:
« Last Edit: October 19, 2006, 11:45:12 AM by Nsk »

Offline James33

  • Expert
  • *****
  • Posts: 532
  • Karma: +3/-0
  • The Mame Man
    • Emulation Zone
Re: problem with some hacks
« Reply #20 on: October 19, 2006, 10:35:38 PM »
Maybe patching out that address might solve the problem ?
IQ Forum Member

Offline iq_132

  • Administrator
  • *****
  • Posts: 3723
  • Karma: +411/-0
  • Definitely not Dink!
    • NeoSource
Re: problem with some hacks
« Reply #21 on: October 20, 2006, 04:28:29 AM »
I find something strange:
with the unibios this is the error so in 008CE8:

and in mem:

We can see in 008CE8: 4e71

and it's fun because many protection's patchs in MAME use this value  :rolleyes:

I think it can't be a coinsidence but I don't know what does it mean  :confused:


4E71 is "No Op" / NoP / Do nothing

If you want to remove something in 68xxx processor code, use that patch.

4E75 is "Return to Sub" / rts / stop the current function (kind of)



Just for shits and giggles, try this patch with that game.

mem16[0x8CE8 / 2] = 0x422D;
mem16[0x8CEA / 2] = 0x27EC;
mem16[0x8CEC / 2] = 0x422D;
« Last Edit: October 20, 2006, 04:32:09 AM by iq_132 »


Offline Nsk

  • Newbies
  • *
  • Posts: 31
  • Karma: +0/-0
Re: problem with some hacks
« Reply #22 on: October 20, 2006, 06:26:22 AM »
 :confused: I try but nothing better
I think I see what you want to do but it does'nt work  :redface:
I expect you will find something  :smilie:
So thanks to try to help me  :smilie:

Offline iq_132

  • Administrator
  • *****
  • Posts: 3723
  • Karma: +411/-0
  • Definitely not Dink!
    • NeoSource
Re: problem with some hacks
« Reply #23 on: October 20, 2006, 08:52:09 AM »
I've only tested this with kof96evosp and kof96rfs, but it should work for kof96rss and kof96rp.

Code: [Select]
DRIVER_INIT( kof96evosp )
{
// Change CLR.W to CLR.B. Is this a bug in the 68k
// emulation of MAME or that of every other emulator?
memory_region(REGION_CPU1)[0x8CE4] = 0x2d;

init_neogeo(machine);
}

As for kf2k2spls and kof2k3evo, I've been unable to find teh romz, so I haven't looked at them.
« Last Edit: October 20, 2006, 08:57:42 AM by iq_132 »


Offline James33

  • Expert
  • *****
  • Posts: 532
  • Karma: +3/-0
  • The Mame Man
    • Emulation Zone
Re: problem with some hacks
« Reply #24 on: October 20, 2006, 09:58:37 AM »
I've only tested this with kof96evosp and kof96rfs, but it should work for kof96rss and kof96rp.

Code: [Select]
DRIVER_INIT( kof96evosp )
{
// Change CLR.W to CLR.B. Is this a bug in the 68k
// emulation of MAME or that of every other emulator?
memory_region(REGION_CPU1)[0x8CE4] = 0x2d;

init_neogeo(machine);
}

As for kf2k2spls and kof2k3evo, I've been unable to find teh romz, so I haven't looked at them.

That patch might be able to sort all of those hacks :)
IQ Forum Member

Offline Nsk

  • Newbies
  • *
  • Posts: 31
  • Karma: +0/-0
Re: problem with some hacks
« Reply #25 on: October 20, 2006, 11:04:54 AM »
Exellent, I will try now!

Edit: I try this and it works great!!
Many thanks for all !!
« Last Edit: October 20, 2006, 01:50:08 PM by Nsk »

Offline iq_132

  • Administrator
  • *****
  • Posts: 3723
  • Karma: +411/-0
  • Definitely not Dink!
    • NeoSource
Re: problem with some hacks
« Reply #26 on: October 20, 2006, 06:57:45 PM »
Here's a fix for kf2k2spls, it doesn't make it show "Super Plus," but I think that's the wrong S1 for that Px rom set (as I can't see "Super" using MAME's tile viewer [F4].

Code: [Select]
DRIVER_INIT( kf2k2spls )
{
// Stop from running into another sub.
UINT16 *mem16 = (UINT16*)memory_region( REGION_CPU1 );
mem16[0xddafc / 2] = 0x4e75;

neogeo_fix_bank_type = 0;
init_neogeo(machine);
}

Also, here's a patch to allow kf2k3evo to boot, but it crashes before the round.  I still need to look into that. ^^
Code: [Select]
UINT16 *mem16 = (UINT16*)memory_region( REGION_CPU1 );
mem16[0x44364 / 2] = 0x4e71;
« Last Edit: October 20, 2006, 07:45:08 PM by iq_132 »


Offline Nsk

  • Newbies
  • *
  • Posts: 31
  • Karma: +0/-0
Re: problem with some hacks
« Reply #27 on: October 20, 2006, 08:50:42 PM »
One more: Thanks  :eek:
You are really fast!
(one day if you can explain me how do you find that so rapidly... :rolleyes:)

PS: all works great, s1945p too  :smilie:

Offline Nsk

  • Newbies
  • *
  • Posts: 31
  • Karma: +0/-0
Re: problem with some hacks
« Reply #28 on: October 21, 2006, 11:35:02 PM »
looking what you did for others previous games I found the pach for this one alone  :cool:  :biggrin:

Code: [Select]
ROM_START( kf98combo )
ROM_REGION( 0x500000, REGION_CPU1, 0 )
ROM_LOAD16_WORD_SWAP( "242-p1co.bin", 0x000000, 0x100000, CRC(64A0754D) )
ROM_LOAD16_WORD_SWAP( "242-p2co.bin", 0x100000, 0x400000, CRC(3B9C1DB4) )

NEO_SFIX_128K( "242-s1co.bin", CRC(6017CF97) )

NEO_BIOS_SOUND_256K( "242-m1a.bin", CRC(4ef7016b) )

ROM_REGION( 0x1000000, REGION_SOUND1, 0 )
ROM_LOAD( "242-v1.bin", 0x000000, 0x400000, CRC(b9ea8051) )
ROM_LOAD( "242-v2.bin", 0x400000, 0x400000, CRC(cc11106e) )
ROM_LOAD( "242-v3.bin", 0x800000, 0x400000, CRC(044ea4e1) )
ROM_LOAD( "242-v4.bin", 0xc00000, 0x400000, CRC(7985ea30) )

NO_DELTAT_REGION

ROM_REGION( 0x4000000, REGION_GFX3, 0 )
ROM_LOAD16_BYTE( "242-c1co.bin", 0x0000000, 0x800000, CRC(EFC547B0) ) /* Plane 0,1 */
ROM_LOAD16_BYTE( "242-c2co.bin", 0x0000001, 0x800000, CRC(395ED6AF) ) /* Plane 2,3 */
ROM_LOAD16_BYTE( "242-c3co.bin", 0x1000000, 0x800000, CRC(882E5246) ) /* Plane 0,1 */
ROM_LOAD16_BYTE( "242-c4co.bin", 0x1000001, 0x800000, CRC(4F3F2123) ) /* Plane 2,3 */
ROM_LOAD16_BYTE( "242-c5.bin", 0x2000000, 0x800000, CRC(9d10bed3) ) /* Plane 0,1 */
ROM_LOAD16_BYTE( "242-c6.bin", 0x2000001, 0x800000, CRC(da07b6a2) ) /* Plane 2,3 */
ROM_LOAD16_BYTE( "242-c7.bin", 0x3000000, 0x800000, CRC(f6d7a38a) ) /* Plane 0,1 */
ROM_LOAD16_BYTE( "242-c8.bin", 0x3000001, 0x800000, CRC(c823e045) ) /* Plane 2,3 */
ROM_END

DRIVER_INIT( kf98combo )
{
// thanks to Aubrel for this one :)
// Another one who works without this with every other emulator
init_neogeo(machine);
memory_region(REGION_CPU1)[0x28729] = 0xb2;
}

GAMEB( 1998, kf98combo, kof98,   neogeo, neogeo, neogeo,  kf98combo, ROT0, "hack", "The King of Fighters '98 Combo (2006, Ivex hack)", 0 )

Offline iq_132

  • Administrator
  • *****
  • Posts: 3723
  • Karma: +411/-0
  • Definitely not Dink!
    • NeoSource
Re: problem with some hacks
« Reply #29 on: October 22, 2006, 12:52:36 AM »
Nice work :)  Some of these patches are not too hard to find, the UNI-BIOS certainly helps to tell you where to start.  i would also suggest compiling a debug mame, this allows you to use the 68k debugger which can help you figure out exactly the problem.