Author Topic: The King of Fighters 2004 Special Edition (Hack)  (Read 33787 times)

Offline James33

  • Expert
  • *****
  • Posts: 532
  • Karma: +3/-0
  • The Mame Man
    • Emulation Zone
The King of Fighters 2004 Special Edition (Hack)
« on: January 13, 2005, 11:05:44 PM »
I know its wrong But not sure whats needed to fix it

Code: [Select]

ROM_START( kof2k4se )
ROM_REGION( 0x500000, REGION_CPU1, 0 )
ROM_LOAD16_WORD_SWAP( "sp2k4-p1.bin", 0x000000, 0x400000, CRC(e6c50566) SHA1(cc6a3489a3bfeb4dcc65b6ddae0030f7e66fbabe) )
ROM_LOAD16_WORD_SWAP( "sp2k4-p2.bin", 0x400000, 0x080000, CRC(21a84084) SHA1(973e8a0bffa0e1f055803f663f81a8e03701802d) )
ROM_LOAD16_WORD_SWAP( "sp2k4-p3.bin", 0x080000, 0x080000, CRC(febb484e) SHA1(4b1838795b84f22d578ad043641df0a7bf7d9774) )

NEO_SFIX_128K( "2k4-s1.bin", CRC(a3c9b2d8) SHA1(1472d2cbd7bb73e84824ecf773924007e6117e77) )

NEO_BIOS_SOUND_128K( "2k4-m1d.bin", CRC(5a47d9ad) SHA1(0197737934653acc6c97221660d789e9914f3578) ) /* decrypted */

ROM_REGION( 0x1000000, REGION_SOUND1, ROMREGION_SOUNDONLY )
/* decrypted */
ROM_LOAD( "sp2k4-v1.bin", 0x000000, 0x800000, CRC(e4ddfb3f) SHA1(eb8220ab01c16cf9244b7f3f9912bec0db561b85) )
ROM_LOAD( "sp2k4-v2.bin", 0x800000, 0x800000, CRC(b887d287) SHA1(f593a5722df6f6fac023d189a739a117e976bb2f) )

NO_DELTAT_REGION

ROM_REGION( 0x4000000, REGION_GFX3, 0 )
ROM_LOAD16_BYTE( "2k4-c1d.bin", 0x0000000, 0x800000, CRC(7a050288) SHA1(55a20c5b01e11a859f096af3f8e09986025d288f) ) /* Plane 0,1 */
ROM_LOAD16_BYTE( "2k4-c2d.bin", 0x0000001, 0x800000, CRC(e924afcf) SHA1(651e974f7339d2cdcfa58c5398013197a0525b77) ) /* Plane 2,3 */
ROM_LOAD16_BYTE( "2k4-c3d.bin", 0x1000000, 0x800000, CRC(959fad0b) SHA1(63ab83ddc5f688dc8165a7ff8d262df3fcd942a2) ) /* Plane 0,1 */
ROM_LOAD16_BYTE( "2k4-c4d.bin", 0x1000001, 0x800000, CRC(efe6a468) SHA1(2a414285e48aa948b5b0d4a9333bab083b5fb853) ) /* Plane 2,3 */
ROM_LOAD16_BYTE( "2k4-c5d.bin", 0x2000000, 0x800000, CRC(74bba7c6) SHA1(e01adc7a4633bc0951b9b4f09abc07d728e9a2d9) ) /* Plane 0,1 */
ROM_LOAD16_BYTE( "2k4-c6d.bin", 0x2000001, 0x800000, CRC(e20d2216) SHA1(5d28eea7b581e780b78f391a8179f1678ee0d9a5) ) /* Plane 2,3 */
ROM_LOAD16_BYTE( "2k4-c7d.bin", 0x3000000, 0x800000, CRC(fa705b2b) SHA1(f314c66876589601806352484dd8e45bc41be692) ) /* Plane 0,1 */
ROM_LOAD16_BYTE( "2k4-c8d.bin", 0x3000001, 0x800000, CRC(2c912ff9) SHA1(b624a625ea3e221808b7ea43fb0b1a51d8c1853e) ) /* Plane 2,3 */
ROM_END


DRIVER_INIT( kof2k4se )
{
UINT8 *src = memory_region(REGION_CPU1);
UINT8 *dst = malloc(0x500000);
unsigned int sec[] = {0x400000,0x300000,0x200000,0x100000,0x000000};
if (dst)
{
memcpy(dst,src,0x500000);

for(int i = 0; i < 5; ++i)
{
memcpy(src+i*0x100000,dst+sec[i],0x100000);
}
free(dst);
}
// save_dec_p();
// save_dec_s();
init_neogeo();
}
IQ Forum Member

Offline X-or

  • Newbies
  • *
  • Posts: 38
  • Karma: +0/-0
The King of Fighters 2004 Special Edition ?
« Reply #1 on: January 14, 2005, 12:07:23 AM »
Code: [Select]
ROM_LOAD16_WORD_SWAP( "sp2k4-p1.bin", 0x[B]100000[/B], 0x400000, CRC(e6c50566) )
ROM_LOAD16_WORD_SWAP( "sp2k4-p2.bin", 0x[B]000000[/B], 0x080000, CRC(21a84084) )

and change your init to

Code: [Select]
UINT8 *src = memory_region(REGION_CPU1)+0x100000;
UINT8 *dst = malloc(0x400000);
unsigned int sec[] = {0x300000,0x200000,0x100000,0x000000};
if (dst)
{
memcpy(dst,src,0x400000);

for(int i = 0; i < 4; ++i)
{
memcpy(src+i*0x100000,dst+sec[i],0x100000);
}
free(dst);
}

you can also use the neo descrambler code i posted on shortcut thread :)
« Last Edit: May 10, 2005, 01:14:33 PM by iq_132 »

Offline FerchogtX

  • FBNeo Dev
  • ******
  • Posts: 375
  • Karma: +7/-0
  • FB Alpha Team ;)
    • FB Alpha Plus! Web Site
The King of Fighters 2004 Special Edition ?
« Reply #2 on: January 14, 2005, 12:30:31 AM »
Why do you change the lyout? the original cart has 3 P ROMs intead of two... anyway BOTH are wrong, this is supposed to be the real driver:
Code: [Select]
ROM_START( kf2k4spe )
ROM_REGION( 0x500000, REGION_CPU1, 0 )
ROM_LOAD16_WORD_SWAP( "k2k4s-p2.bin", 0x000000, 0x080000, CRC(21a84084) SHA1(973e8a0bffa0e1f055803f663f81a8e03701802d) )
ROM_LOAD16_WORD_SWAP( "k2k4s-p3.bin", 0x080000, 0x080000, CRC(febb484e) SHA1(4b1838795b84f22d578ad043641df0a7bf7d9774) )
ROM_LOAD16_WORD_SWAP( "k2k4s-p1.bin", 0x100000, 0x400000, CRC(e6c50566) SHA1(cc6a3489a3bfeb4dcc65b6ddae0030f7e66fbabe) )

NEO_SFIX_128K( "k2k4s-s1.bin", CRC(a3c9b2d8) SHA1(1472d2cbd7bb73e84824ecf773924007e6117e77) )

NEO_BIOS_SOUND_128K( "k2k4s-m1.bin", CRC(5a47d9ad) SHA1(0197737934653acc6c97221660d789e9914f3578) )

ROM_REGION( 0x1000000, REGION_SOUND1, ROMREGION_SOUNDONLY )
ROM_LOAD( "k2k4s-v2.bin", 0x000000, 0x800000, CRC(e4ddfb3f) SHA1(eb8220ab01c16cf9244b7f3f9912bec0db561b85) )
ROM_LOAD( "k2k4s-v1.bin", 0x800000, 0x800000, CRC(b887d287) SHA1(f593a5722df6f6fac023d189a739a117e976bb2f) )

NO_DELTAT_REGION

ROM_REGION( 0x4000000, REGION_GFX3, 0 )
ROM_LOAD16_BYTE( "k2k4s-c4.bin", 0x0000000, 0x800000, CRC(7a050288) SHA1(55a20c5b01e11a859f096af3f8e09986025d288f) ) /* Plane 0,1 */
ROM_LOAD16_BYTE( "k2k4s-c8.bin", 0x0000001, 0x800000, CRC(e924afcf) SHA1(651e974f7339d2cdcfa58c5398013197a0525b77) ) /* Plane 2,3 */
ROM_LOAD16_BYTE( "k2k4s-c3.bin", 0x1000000, 0x800000, CRC(959fad0b) SHA1(63ab83ddc5f688dc8165a7ff8d262df3fcd942a2) ) /* Plane 0,1 */
ROM_LOAD16_BYTE( "k2k4s-c7.bin", 0x1000001, 0x800000, CRC(efe6a468) SHA1(2a414285e48aa948b5b0d4a9333bab083b5fb853) ) /* Plane 2,3 */
ROM_LOAD16_BYTE( "k2k4s-c2.bin", 0x2000000, 0x800000, CRC(74bba7c6) SHA1(e01adc7a4633bc0951b9b4f09abc07d728e9a2d9) ) /* Plane 0,1 */
ROM_LOAD16_BYTE( "k2k4s-c6.bin", 0x2000001, 0x800000, CRC(e20d2216) SHA1(5d28eea7b581e780b78f391a8179f1678ee0d9a5) ) /* Plane 2,3 */
ROM_LOAD16_BYTE( "k2k4s-c1.bin", 0x3000000, 0x800000, CRC(fa705b2b) SHA1(f314c66876589601806352484dd8e45bc41be692) ) /* Plane 0,1 */
ROM_LOAD16_BYTE( "k2k4s-c5.bin", 0x3000001, 0x800000, CRC(2c912ff9) SHA1(b624a625ea3e221808b7ea43fb0b1a51d8c1853e) ) /* Plane 2,3 */
ROM_END


DRIVER_INIT( kof2k4se )
{
UINT8 *src = memory_region(REGION_CPU1)+0x100000;
UINT8 *dst = malloc(0x400000);
unsigned int sec[] = {0x300000,0x200000,0x100000,0x000000};
if (dst)
{
memcpy(dst,src,0x400000);

for(int i = 0; i < 4; ++i)
{
memcpy(src+i*0x100000,dst+sec[i],0x100000);
}
free(dst);
}
init_neogeo();
}

See ya!!!! :D

Good and evil co-exist because of the balance, lies are not part of it...

FB Alpha Plus! site infos updated, see the latest info clicking on my profile link...

Offline X-or

  • Newbies
  • *
  • Posts: 38
  • Karma: +0/-0
The King of Fighters 2004 Special Edition ?
« Reply #3 on: January 14, 2005, 01:19:48 AM »
doh!!!! who said I changed anything. >_>
I just fixed the lines who needed to be... (his p3 was loaded correcty on his driver) so that he could fix his driver quickly
posting your entire driver was pointless :P xD

btw James, i would appreciate a patch for that v rom CRC(e4ddfb3f) if you have it...
I have
"265-v1sew.bin", 0x000000, 0x400000, CRC(8991f6e9)
"265-v2sew.bin", 0x400000, 0x400000, CRC(511e4d2f)

which are the split/watermarked version....

thanks

Offline James33

  • Expert
  • *****
  • Posts: 532
  • Karma: +3/-0
  • The Mame Man
    • Emulation Zone
The King of Fighters 2004 Special Edition ?
« Reply #4 on: January 14, 2005, 01:54:04 AM »
Thanks for that


X-or Please Conatct me on MSN  ID *snip* :)
Anyway going by the Kawaks 1.53 dat it uses kof2002 V roms anyway .
IQ Forum Member

Offline James33

  • Expert
  • *****
  • Posts: 532
  • Karma: +3/-0
  • The Mame Man
    • Emulation Zone
The King of Fighters 2004 Special Edition ?
« Reply #5 on: January 14, 2005, 03:31:33 AM »
Ok this is the same rom set as what kawaks 1.53 uses ..And how its loaded in Kawaks Also Same as the kawaks 1.53 dat .


Code: [Select]


ROM_START( kf2k4spe )
ROM_REGION( 0x500000, REGION_CPU1, 0 )
ROM_LOAD16_WORD_SWAP( "k2k4s-p1.bin", 0x100000, 0x400000, CRC(e6c50566) SHA1(cc6a3489a3bfeb4dcc65b6ddae0030f7e66fbabe) )
ROM_LOAD16_WORD_SWAP( "k2k4s-p2.bin", 0x000000, 0x080000, CRC(21a84084) SHA1(973e8a0bffa0e1f055803f663f81a8e03701802d) )
ROM_LOAD16_WORD_SWAP( "k2k4s-p3.bin", 0x080000, 0x080000, CRC(febb484e) SHA1(4b1838795b84f22d578ad043641df0a7bf7d9774) )

NEO_SFIX_128K( "k2k4s-s1.bin", CRC(a3c9b2d8) SHA1(1472d2cbd7bb73e84824ecf773924007e6117e77) )

NEO_BIOS_SOUND_128K( "k2k4s-m1.bin", CRC(5a47d9ad) SHA1(0197737934653acc6c97221660d789e9914f3578) ) /* decrypted */

ROM_REGION( 0x1000000, REGION_SOUND1, ROMREGION_SOUNDONLY )
/* Encrypted */
ROM_LOAD( "265-v1.bin", 0x000000, 0x800000, CRC(15e8f3f5) SHA1(7c9e6426b9fa6db0158baa17a6485ffce057d889) )
ROM_LOAD( "265-v2.bin", 0x800000, 0x800000, CRC(da41d6f9) SHA1(a43021f1e58947dcbe3c8ca5283b20b649f0409d) )

NO_DELTAT_REGION

ROM_REGION( 0x4000000, REGION_GFX3, 0 )
ROM_LOAD16_BYTE( "k2k4s-c1.bin", 0x3000000, 0x800000, CRC(fa705b2b) SHA1(f314c66876589601806352484dd8e45bc41be692) ) /* Plane 0,1 */
ROM_LOAD16_BYTE( "k2k4s-c2.bin", 0x2000000, 0x800000, CRC(74bba7c6) SHA1(e01adc7a4633bc0951b9b4f09abc07d728e9a2d9) ) /* Plane 0,1 */
ROM_LOAD16_BYTE( "k2k4s-c3.bin", 0x1000000, 0x800000, CRC(959fad0b) SHA1(63ab83ddc5f688dc8165a7ff8d262df3fcd942a2) ) /* Plane 0,1 */
ROM_LOAD16_BYTE( "k2k4s-c4.bin", 0x0000000, 0x800000, CRC(7a050288) SHA1(55a20c5b01e11a859f096af3f8e09986025d288f) ) /* Plane 0,1 */
ROM_LOAD16_BYTE( "k2k4s-c5.bin", 0x3000001, 0x800000, CRC(2c912ff9) SHA1(b624a625ea3e221808b7ea43fb0b1a51d8c1853e) ) /* Plane 2,3 */
ROM_LOAD16_BYTE( "k2k4s-c6.bin", 0x2000001, 0x800000, CRC(e20d2216) SHA1(5d28eea7b581e780b78f391a8179f1678ee0d9a5) ) /* Plane 2,3 */
ROM_LOAD16_BYTE( "k2k4s-c7.bin", 0x1000001, 0x800000, CRC(efe6a468) SHA1(2a414285e48aa948b5b0d4a9333bab083b5fb853) ) /* Plane 2,3 */
ROM_LOAD16_BYTE( "k2k4s-c8.bin", 0x0000001, 0x800000, CRC(e924afcf) SHA1(651e974f7339d2cdcfa58c5398013197a0525b77) ) /* Plane 2,3 */
ROM_END


DRIVER_INIT( kf2k4spe )
{
UINT8 *src = memory_region(REGION_CPU1)+0x100000;
UINT8 *dst = malloc(0x400000);
unsigned int sec[] = {0x300000,0x200000,0x100000,0x000000};
if (dst)
{
memcpy(dst,src,0x400000);

for(int i = 0; i < 4; ++i)
{
memcpy(src+i*0x100000,dst+sec[i],0x100000);
}
free(dst);
}
neo_pcm2_playmore_2002(0); // kof2002
init_neogeo();
}


GAMEB( 2004, kf2k4spe, kof2002, neogeo, neogeo, neogeo,  kf2k4spe, ROT0, "Drogon CO", "The King of Fighters 2004 Special Edition (Hack)" )
IQ Forum Member

Offline neo04

  • Jr. Member
  • **
  • Posts: 90
  • Karma: +1/-0
The King of Fighters 2004 Special Edition ?
« Reply #6 on: January 14, 2005, 06:51:46 AM »
Code: [Select]

ROM_REGION( 0x1000000, REGION_SOUND1, ROMREGION_SOUNDONLY )
ROM_LOAD( "k2k4s-v2.bin", 0x000000, 0x800000, CRC(e4ddfb3f) SHA1(eb8220ab01c16cf9244b7f3f9912bec0db561b85) )
ROM_LOAD( "k2k4s-v1.bin", 0x800000, 0x800000, CRC(b887d287) SHA1(f593a5722df6f6fac023d189a739a117e976bb2f) )


ferchogtx, why u name those v roms like that? v1 should be v2, & v2 is v1...

Offline X-or

  • Newbies
  • *
  • Posts: 38
  • Karma: +0/-0
The King of Fighters 2004 Special Edition ?
« Reply #7 on: January 14, 2005, 09:08:28 AM »
Quote from: neo04
ferchogtx, why u name those v roms like that? v1 should be v2, & v2 is v1...


nope fet's name are correct, they are swaped in memory
btw james, kawaks uses wrong v...

Offline KingHanco

  • Sr. Member
  • ****
  • Posts: 401
  • Karma: +0/-4
  • "Special " Member
The King of Fighters 2004 - Special Edition (Hack) making problem - 1 only.
« Reply #8 on: November 18, 2005, 12:55:08 AM »
Code: [Select]
        src/driver.c :

            DRIVER( kof2k4se ) /* 0271 (c) 2003 Snk / Playmore */

 
Code: [Select]
        src/neogeo.c  (section ROM_START) :

            ROM_START( kof2k4se )
            ROM_REGION( 0x900000, REGION_CPU1, 0 )
            ROM_LOAD16_WORD_SWAP( "2k4-p1.bin" , 0x000000, 0x100000, CRC(5f482757) )
            ROM_LOAD16_WORD_SWAP( "2k4-p2.bin" , 0x100000, 0x400000, CRC(e6c50566) )
            ROM_LOAD16_WORD_SWAP( "2k4-p2d.bin" , 0x500000, 0x400000, CRC(698679a7) )

            NEO_SFIX_128K( "2k4-s1.bin", CRC(a3c9b2d8) )

            NEO_BIOS_SOUND_128K( "2k4-m1.bin", CRC(5a47d9ad) )

            ROM_REGION( 0x1000000, REGION_SOUND1, 0)

            ROM_LOAD( "2k4-v1.bin", 0x000000, 0x400000, CRC(8991f6e9) )
            ROM_LOAD( "2k4-v2.bin", 0x400000, 0x400000, CRC(511e4d2f) )
            ROM_LOAD( "2k4-v3.bin", 0x800000, 0x400000, CRC(1dd8b53a) )
            ROM_LOAD( "2k4-v4.bin", 0xc00000, 0x400000, CRC(63bb5462) )

            NO_DELTAT_REGION

            ROM_REGION( 0x4000000, REGION_GFX3, 0 )
            ROM_LOAD16_BYTE( "2k4-c1.bin", 0x0000000, 0x800000, CRC(7a050288) ) /* Plane 0,1 */
            ROM_LOAD16_BYTE( "2k4-c2.bin", 0x0000001, 0x800000, CRC(e924afcf) ) /* Plane 2,3 */
            ROM_LOAD16_BYTE( "2k4-c3.bin", 0x1000000, 0x800000, CRC(959fad0b) ) /* Plane 0,1 */
            ROM_LOAD16_BYTE( "2k4-c4.bin", 0x1000001, 0x800000, CRC(efe6a468) ) /* Plane 2,3 */
            ROM_LOAD16_BYTE( "2k4-c5.bin", 0x2000000, 0x800000, CRC(74bba7c6) ) /* Plane 0,1 */
            ROM_LOAD16_BYTE( "2k4-c6.bin", 0x2000001, 0x800000, CRC(e20d2216) ) /* Plane 2,3 */
            ROM_LOAD16_BYTE( "2k4-c7.bin", 0x3000000, 0x800000, CRC(fa705b2b) ) /* Plane 0,1 */
            ROM_LOAD16_BYTE( "2k4-c8.bin", 0x3000001, 0x800000, CRC(2c912ff9) ) /* Plane 2,3 */
            ROM_END

 
Code: [Select]
        src/neogeo.c  (section DRIVER_INIT) :

            DRIVER_INIT( kof2k4se )
            {
            UINT8 *src = memory_region(REGION_CPU1)+0x100000;
            UINT8 *dst = malloc(0x400000);
            unsigned int sec[] = {0x300000,0x200000,0x100000,0x000000};
            if (dst)
            {
            memcpy(dst,src,0x400000);

            for(int i = 0; i < 4; ++i)
            {
            memcpy(src+i*0x100000,dst+sec[i],0x100000);
            }
            free(dst);
            }
            init_neogeo();
            }

 
Code: [Select]
        src/neogeo.c  (section DRIVER_INIT) :

        /* Dragonsoft */
        GAMEB( 2004, kof2k4se, neogeo, neogeo, neogeo, neogeo, kof2k4se, ROT0, "DragonSoft", "The King of Fighters 2004 - Special Edition (Hac)", 0 )

I get this error on the black screen.

src/driver/neogeo.c: In function ' init_kof2k4se':
src/driver/neogeo.c:6898: error: 'for' loop initial declaration used outside C99 mode
« Last Edit: November 18, 2005, 12:57:47 AM by KingHanco »

Offline iq_132

  • Administrator
  • *****
  • Posts: 3728
  • Karma: +411/-0
  • Definitely not Dink!
    • NeoSource
for(int i = 0; i < 4; ++i)

The above code is invalid by strict C standards (It's fine with relaxed or C++ though)

To fix it, do this:

After this:

            DRIVER_INIT( kof2k4se )
            {

add

           int i;

replace this:

          for(int i = 0; i < 4; ++i)

with this:

           for(i = 0; i < 4; ++i)


Note that I removed "int" from inside the for (...) and defined it before any actual code.


Offline KingHanco

  • Sr. Member
  • ****
  • Posts: 401
  • Karma: +0/-4
  • "Special " Member
Re: The King of Fighters 2004 - Special Edition (Hack) making problem - 1 only.
« Reply #10 on: November 18, 2005, 02:05:39 AM »
Can this be a clone from kof10th?

It gotting the same rom - 5A47D9AD - CRC32 (rom)

It could share it together.

All I have to do is change the kof10th rom from 5008-m1.bin to 2k4-m1.bin in the neogeo.c.

Then I change this bellow.

/* Extras Games */
GAMEB( 2004, kof10th,  kof2k4se,  neogeo, neogeo, neogeo,  kof10th,  ROT0, "Bootleg", "The King of Fighters 10th Anniversary - All Team Battle (Hack)", 0 )

/* Dragonsoft */
GAMEB( 2004, kof2k4se, neogeo, neogeo, neogeo, neogeo, kof2k4se, ROT0, "DragonSoft", "The King of Fighters 2004 - Special Edition (Hack)", 0 )
« Last Edit: November 18, 2005, 03:02:00 AM by KingHanco »

Offline James33

  • Expert
  • *****
  • Posts: 532
  • Karma: +3/-0
  • The Mame Man
    • Emulation Zone
Re: The King of Fighters 2004 - Special Edition (Hack) making problem - 1 only.
« Reply #11 on: November 18, 2005, 08:28:05 AM »
No it is not . Both of those sets are clones of kof2002 .
« Last Edit: November 18, 2005, 08:32:33 AM by James33 »
IQ Forum Member

Offline KingHanco

  • Sr. Member
  • ****
  • Posts: 401
  • Karma: +0/-4
  • "Special " Member
Re: The King of Fighters 2004 - Special Edition (Hack) making problem - 1 only.
« Reply #12 on: November 18, 2005, 06:10:48 PM »
No it is not . Both of those sets are clones of kof2002 .

Well any of the roms from the clones doesn't match the kof2002 from the Mame 0.102.

1 or more have to match from the kof2002 with the clones.

I know those clones. No problem.  :biggrin:

Offline iq_132

  • Administrator
  • *****
  • Posts: 3728
  • Karma: +411/-0
  • Definitely not Dink!
    • NeoSource
Re: The King of Fighters 2004 - Special Edition (Hack) making problem - 1 only.
« Reply #13 on: November 19, 2005, 12:10:18 AM »
Well any of the roms from the clones doesn't match the kof2002 from the Mame 0.102.

1 or more have to match from the kof2002 with the clones.

I know those clones. No problem.  :biggrin:

Actually, no roms have to match up.  It's just organization.  Kof10th and kf2k4spe are hacks of kof2002.
If kf2k4spe was a hack of kof10th, then what you are saying would make sense.


Offline KingHanco

  • Sr. Member
  • ****
  • Posts: 401
  • Karma: +0/-4
  • "Special " Member
Re: The King of Fighters 2004 - Special Edition (Hack) making problem - 1 only.
« Reply #14 on: November 21, 2005, 05:06:16 PM »
Code: [Select]
ROM_START( kf2k4spe )
ROM_REGION( 0x500000, REGION_CPU1, 0 )
ROM_LOAD16_WORD_SWAP( "k2k4s-p1.bin", 0x100000, 0x400000, CRC(e6c50566) SHA1(cc6a3489a3bfeb4dcc65b6ddae0030f7e66fbabe) )
ROM_LOAD16_WORD_SWAP( "k2k4s-p2.bin", 0x000000, 0x080000, CRC(21a84084) SHA1(973e8a0bffa0e1f055803f663f81a8e03701802d) )
ROM_LOAD16_WORD_SWAP( "k2k4s-p3.bin", 0x080000, 0x080000, CRC(febb484e) SHA1(4b1838795b84f22d578ad043641df0a7bf7d9774) )

NEO_SFIX_128K( "k2k4s-s1.bin", CRC(a3c9b2d8) SHA1(1472d2cbd7bb73e84824ecf773924007e6117e77) )

NEO_BIOS_SOUND_128K( "k2k4s-m1.bin", CRC(5a47d9ad) SHA1(0197737934653acc6c97221660d789e9914f3578) )

        ROM_REGION( 0x1000000, REGION_SOUND1, 0)
ROM_LOAD( "265-v1.bin", 0x000000, 0x800000, CRC(15e8f3f5) SHA1(7c9e6426b9fa6db0158baa17a6485ffce057d889) )
ROM_LOAD( "265-v2.bin", 0x800000, 0x800000, CRC(da41d6f9) SHA1(a43021f1e58947dcbe3c8ca5283b20b649f0409d) )

NO_DELTAT_REGION

ROM_REGION( 0x4000000, REGION_GFX3, 0 )
ROM_LOAD16_BYTE( "k2k4s-c1.bin", 0x3000000, 0x800000, CRC(fa705b2b) SHA1(f314c66876589601806352484dd8e45bc41be692) )
ROM_LOAD16_BYTE( "k2k4s-c2.bin", 0x2000000, 0x800000, CRC(74bba7c6) SHA1(e01adc7a4633bc0951b9b4f09abc07d728e9a2d9) )
ROM_LOAD16_BYTE( "k2k4s-c3.bin", 0x1000000, 0x800000, CRC(959fad0b) SHA1(63ab83ddc5f688dc8165a7ff8d262df3fcd942a2) )
ROM_LOAD16_BYTE( "k2k4s-c4.bin", 0x0000000, 0x800000, CRC(7a050288) SHA1(55a20c5b01e11a859f096af3f8e09986025d288f) )
ROM_LOAD16_BYTE( "k2k4s-c5.bin", 0x3000001, 0x800000, CRC(2c912ff9) SHA1(b624a625ea3e221808b7ea43fb0b1a51d8c1853e) )
ROM_LOAD16_BYTE( "k2k4s-c6.bin", 0x2000001, 0x800000, CRC(e20d2216) SHA1(5d28eea7b581e780b78f391a8179f1678ee0d9a5) )
ROM_LOAD16_BYTE( "k2k4s-c7.bin", 0x1000001, 0x800000, CRC(efe6a468) SHA1(2a414285e48aa948b5b0d4a9333bab083b5fb853) )
ROM_LOAD16_BYTE( "k2k4s-c8.bin", 0x0000001, 0x800000, CRC(e924afcf) SHA1(651e974f7339d2cdcfa58c5398013197a0525b77) )
ROM_END

Code: [Select]
DRIVER_INIT( kf2k4spe )
{
int i;
UINT8 *src = memory_region(REGION_CPU1)+0x100000;
UINT8 *dst = malloc(0x400000);
unsigned int sec[] = {0x300000,0x200000,0x100000,0x000000};
if (dst) {
memcpy(dst,src,0x400000);
                for(i = 0; i < 4; ++i)
{
memcpy(src+i*0x100000,dst+sec[i],0x100000);
}
free(dst);
}
// kof2002_vx_decrypt();
init_neogeo();
}

Code: [Select]
/* Dragonsoft */
GAMEB( 2004, kf2k4spe, kof2002,  neogeo, neogeo, neogeo,  kf2k4spe, ROT0, "DragonSoft", "The King of Fighters 2004 - Special Edition (Hack)", 0 )

Code: [Select]
DRIVER( kf2k4spe ) /* 0265 (c) 2004 Dragonsoft */
Those roms are from Winkawaks 1.54. kof2002.zip and kf2k4spe.zip.

I try the Generator making the driver and source first. It didn't show the game screen and no sounds at all. But I get a blue screen and it need the raster coding in for this one. After I done it and quit. I decide to look for the driver and source that matches the roms. So I found one in the MAMEdOX source.

This is the correct roms set and not patches. But there is 2 problems with this.

1. It doesn't like the kof2002_vx_decrypt(); in the source. (Is the coding change in the source??? Maybe I get the sounds and musics problems with this disabled???) What the kof2002_vx_decrypt(); should be then???

2. The sounds and musics are bad. (Crashes sounds and musics)

Anyway it playable. But it have some crashes musics and sounds which are bad.

I don't know what MAMEdOX did to get the musics and sounds to play right in his source.