Author Topic: can anyone help me add this game?  (Read 4592 times)

Offline niabi

  • Newbies
  • *
  • Posts: 33
  • Karma: +0/-0
can anyone help me add this game?
« on: September 01, 2012, 04:08:09 AM »
I've been trying to add this rom for my nephew, and I almost got it, but the game always boots into "hardware test mode" and no way to exit that screen :( can anyone shed a light on why its doing this?

this is what I got so far, I copied the kof2k4se since it was also a KOF2002 hack...

Code: [Select]

static struct BurnRomInfo kof2k2smpRomDesc[] = {
{ "kOF2K2_p1.ROM", 0x100000, 0x8C07CE4E, 1 | BRF_ESS | BRF_PRG }, //  0 68K code
{ "kOF2K2_p2.ROM", 0x400000, 0x97C7DBE3, 1 | BRF_ESS | BRF_PRG }, //  1

{ "kOF2K2_S1.ROM", 0x020000, 0x9AC75783, 2 | BRF_GRA },           //  3 Text layer tiles


{ "kof2k2_c4.rom", 0x800000, 0xEFE6A468, 3 | BRF_GRA },            //  4 Sprite data
{ "kof2k2_c8.rom", 0x800000, 0xBEF667A3, 3 | BRF_GRA },            //  5
{ "kof2k2_c3.rom", 0x800000, 0x959FAD0B, 3 | BRF_GRA },           //  6
{ "kof2k2_c7.rom", 0x800000, 0x8A5B561C, 3 | BRF_GRA },           //  7
{ "kof2k2_c2.rom", 0x800000, 0xAA82948B, 3 | BRF_GRA },           //  8
{ "kof2k2_c6.rom", 0x800000, 0xE20D2216, 3 | BRF_GRA },           //  9
{ "kof2k2_c1.rom", 0x800000, 0x7EFA6EF7, 3 | BRF_GRA },          // 10
{ "kof2k2_c5.rom", 0x800000, 0x74BBA7C6, 3 | BRF_GRA },           // 11

{ "kof2K2_M1.ROM", 0x020000, 0xAB9D360E, 4 | BRF_ESS | BRF_PRG }, // 12 Z80 code

{ "kof2K2_V1.ROM", 0x400000, 0x13D98607, 5 | BRF_SND },           // 13 Sound data
{ "kof2K2_V2.ROM", 0x400000, 0x9CF74677, 5 | BRF_SND },           // 14
{ "kof2K2_V3.ROM", 0x400000, 0x8E9448B5, 5 | BRF_SND },           // 14
{ "kof2K2_V4.ROM", 0x400000, 0x67271B5, 5 | BRF_SND },           // 14
};


STDROMPICKEXT(kof2k2smp, kof2k2smp, neogeo)
STD_ROM_FN(kof2k2smp)

static void kof2k2smpCallback()
{
UINT8 *dst = (UINT8*)BurnMalloc(0x100000);

if (dst)
{
memcpy (dst,                        Neo68KROMActive + 0x000000, 0x100000);
memcpy (Neo68KROMActive + 0x000000, Neo68KROMActive + 0x100000, 0x100000);
memcpy (Neo68KROMActive + 0x400000, dst,                        0x100000);
memcpy (dst,                        Neo68KROMActive + 0x100000, 0x100000);
memcpy (Neo68KROMActive + 0x100000, Neo68KROMActive + 0x300000, 0x100000);
memcpy (Neo68KROMActive + 0x300000, dst,                        0x100000);

BurnFree (dst);
}
}

static INT32 kof2k2smpInit()
{
NeoCallbackActive->pInitialise = kof2k2smpCallback;

return NeoInit();
}

struct BurnDriver BurnDrvkof2k2smp = {
"kof2k2smp", "kof2002smp", "neogeo", NULL, "2004",
"The King of Fighters Super Magic Plus (Hack)\0", NULL, "bootleg", "Neo Geo MVS",
NULL, NULL, NULL, NULL,
BDF_GAME_WORKING | BDF_CLONE | BDF_BOOTLEG, 2, HARDWARE_PREFIX_CARTRIDGE | HARDWARE_SNK_NEOGEO, GBF_VSFIGHT, FBF_KOF,
NULL, kof2k2smpRomInfo, kof2k2smpRomName, NULL, NULL, neogeoInputInfo, neogeoDIPInfo,
kof2k2smpInit, NeoExit, NeoFrame, NeoRender, NeoScan, &NeoRecalcPalette,
0x1000, 304, 224, 4, 3
};



Thanks in advance!

EDIT: I made a little advace, if i take out the kof2k2smpInit I can get the ROM to load but the GFX are all scrambled :S


« Last Edit: September 01, 2012, 04:40:09 AM by niabi »

Offline niabi

  • Newbies
  • *
  • Posts: 33
  • Karma: +0/-0
Re: can anyone help me add this game?
« Reply #1 on: September 02, 2012, 04:07:20 AM »
got it working by using the Generator

http://neo-source.com/index.php?topic=398.0