Final Burn Neo > FBN Development

The King of Fighers 2004 Special Edition

<< < (3/8) > >>

kenjiro-sa:
Hi there:

I have try make my driver (because my rom only have 2 p's) i dont know if i need the other p or no but when i try to use the driver posted before here i receive this error:

Guru Meditation #c0000005. 77c17740

And when i compile using my driver the graphics are bad (bad textures or corrupted grapics) im using FBA v0.2.94.98...

Plese can somene make a driver for these version of fba? or make a driver for the roms with only 2p's or pls tell me where can i get the other p or someone can help me plz lol

Thx

Cya later


My driver:



--- Code: ---// The King of Fighters 2004

static struct BurnRomInfo kof2k4seRomDesc[] = {
{"2k4-p1.bin", 0x100000, 0x5f482757, 0x10}, //  0 68K code
{"2k4-p2.bin", 0x400000, 0xe6c50566, 0x10}, //  1

{"2k4-s1.bin", 0x020000, 0xa3c9b2d8,    1}, //  1 Text data

{"2k4-c1.bin", 0x800000, 0x7a050288,    1}, //  2 Sprite data
{"2k4-c2.bin", 0x800000, 0xe924afcf,    1}, //  3
{"2k4-c3.bin", 0x800000, 0x959fad0b,    1}, //  5
{"2k4-c4.bin", 0x800000, 0xefe6a468,    1}, //  6
{"2k4-c5.bin", 0x800000, 0x74bba7c6,    1}, //  7
{"2k4-c6.bin", 0x800000, 0xe20d2216,    1}, //  8
{"2k4-c7.bin", 0x800000, 0xfa705b2b,    1}, //  9
{"2k4-c8.bin", 0x800000, 0x2c912ff9,    1}, //  10

{"2k4-m1.bin", 0x020000, 0x5a47d9ad, 0x10}, // 11 Z80 code

{"2k4-v1.bin", 0x400000, 0x8991f6e9,    2}, //  12 Sound data
{"2k4-v2.bin", 0x400000, 0x511e4d2f,    2}, //  13
{"2k4-v3.bin", 0x400000, 0x1dd8b53a,    2}, //  14
{"2k4-v4.bin", 0x400000, 0x63bb5462,    2}, //  15
};

STDROMPICKEXT(kof2k4se, kof2k4se, neogeo);
STD_ROM_FN(kof2k4se);

static int kof2k4seInit()
{
return NeoInit();
}

struct BurnDriver BurnDrvkof2k4se = {

{"kof2k4se", "The King of Fighters 2004", "None", "SNK Playmore Corporation", "Neo Geo", "2000", NULL, "neogeo"},
BDF_GAME_WORKING, 2, HARDWARE_SNK_NEOGEO,
NULL, kof2k4seRomInfo, kof2k4seRomName, neogeoInputInfo, neogeoDIPInfo,
kof2k4seInit, NeoExit, NeoFrame, NeoRender, NeoScan, &NeoRecalcPalette,
nNeoScreenWidth, 224, 4, 3
};

--- End code ---

Badablek:
Your P2 is the encrypted one that need some extra code.......you need the decrypted, or the good initialisation (same as KOF2002 encrypted P)

this is useless :

static int kof2k4seInit()
{
   return NeoInit();
}

just put NeoInit instead of kof2k4seInit

NeoInit, NeoExit, NeoFrame, NeoRender, NeoScan, &NeoRecalcPalette,
   nNeoScreenWidth, 224, 4, 3
};

(For the decrypted P2 crc32 698679A7)

If you want to use the encrypted one, you can check the initialisation of KOF2002 encrypted



*EDIT*

If you want to "make" the p2d with the p2 as the source :

split the p2 crc32 E6C50566 (encrypted) in 4 (Winsplit is a good choice)

now you have 4x1Mb files, name them 1, 2,3 and 4

1 > crc32 F1885ABE
2 > crc32 ADC6555F
3 > crc32 2C1F7A8C
4 > crc32 64D1B2D9

merge them in this order : 4 3 2 1

DOS command


--- Code: ---
copy /b 4 + 3 + 2 + 1 2k4-p2d.bin

--- End code ---


you now have the good decrypted P2

kenjiro-sa:

--- Quote from: Badablek ---Your P2 is the encrypted one (I think).......you need the decrypted, or the good initialisation (same as KOF2002 encrypted P)

this is useless :

static int kof2k4seInit()
{
   return NeoInit();
}

just put NeoInit instead of kof2k4seInit

NeoInit, NeoExit, NeoFrame, NeoRender, NeoScan, &NeoRecalcPalette,
   nNeoScreenWidth, 224, 4, 3
};

(For the decrypted P2 crc32 698679A7)

If you want to use the encrypted one, you can check the initialisation of KOF2002 encrypted



*EDIT*

If you want to "make" the p2d with the p2 as the source :

split the p2 crc32 E6C50566 (encrypted) in 4 (Winsplit is a good choice)

now you have 4x1Mb files, name them 1, 2,3 and 4

1 > crc32 F1885ABE
2 > crc32 ADC6555F
3 > crc32 2C1F7A8C
4 > crc32 64D1B2D9

merge them in this order : 4 3 2 1

DOS command


--- Code: ---
copy /b 4 + 3 + 2 + 1 2k4-p2d.bin

--- End code ---


you now have the good decrypted P2
--- End quote ---



Well i have now the p2 decrypted but still's receiving the same error using the firts driver posted here on the firts page:

Look at my romset...u ll se all its ok so i dont know why i still receiving these error

Badablek:
Try this one (fully decrypted, no protection)


--- Code: ---
// The King of Fighters Special Edition 2004

static struct BurnRomInfo kof2k4seRomDesc[] = {
{"2k4-p1.bin", 0x100000, 0x5F482757, 0x10}, //  0 68K code
{"2k4-p2d.bin", 0x400000, 0x698679A7, 0x10}, //  1

{"2k4-s1.bin",  0x020000, 0xA3C9B2D8,    1}, //  2 Text layer tiles

{"2k4-c1d.bin", 0x800000, 0x7A050288,    1}, //  3 Sprite data
{"2k4-c2d.bin", 0x800000, 0xE924AFCF,    1}, //  4 aa82948b
{"2k4-c3d.bin", 0x800000, 0x959FAD0B,    1}, //  5
{"2k4-c4d.bin", 0x800000, 0xEFE6A468,    1}, //  6
{"2k4-c5d.bin", 0x800000, 0x74BBA7C6,    1}, //  7
{"2k4-c6d.bin", 0x800000, 0xE20D2216,    1}, //  8
{"2k4-c7d.bin", 0x800000, 0xFA705B2B,    1}, //  9
{"2k4-c8d.bin", 0x800000, 0x2C912FF9,    1}, //  10

{"2k4-m1d.bin", 0x020000, 0x5A47D9AD, 0x10}, // 11 Z80 code

{"2k4-v1d.bin", 0x400000, 0x8991F6E9,    2}, // 12 Sound data
{"2k4-v2d.bin", 0x400000, 0x511E4D2F,    2}, // 13
{"2k4-v3d.bin", 0x400000, 0x1DD8B53A,    2}, // 14
{"2k4-v4d.bin", 0x400000, 0x63BB5462,    2}, // 15
};

STDROMPICKEXT(kof2k4se, kof2k4se, neogeo);
STD_ROM_FN(kof2k4se);

struct BurnDriver BurnDrvkof2k4se = {
{"kof2k4se", "The King of Fighters 2004 Special Edition", "KOF2002 hack,

Fully decrypted", "Playmore", "Neo Geo", "2004", NULL, "neogeo"},
BDF_GAME_WORKING, 2, HARDWARE_SNK_NEOGEO | HARDWARE_SNK_SRAM,
NULL, kof2k4seRomInfo, kof2k4seRomName, neogeoInputInfo, neogeoDIPInfo,
NeoInit, NeoExit, NeoFrame, NeoRender, NeoScan, &NeoRecalcPalette,
nNeoScreenWidth, 224, 4, 3
};

--- End code ---


This is the one I use, and everything works fine for me

If the Guru meditation is still there, I can't help you as i'm not a programer ^^

ps : do not forget to erase kof2k4se config file before trying a new driver

James33:

--- Quote from: kenjiro-sa ---Hi there:

I have try make my driver (because my rom only have 2 p's) i dont know if i need the other p or no but when i try to use the driver posted before here i receive this error:

Guru Meditation #c0000005. 77c17740

And when i compile using my driver the graphics are bad (bad textures or corrupted grapics) im using FBA v0.2.94.98...

Plese can somene make a driver for these version of fba? or make a driver for the roms with only 2p's or pls tell me where can i get the other p or someone can help me plz lol

Thx

Cya later


My driver:



--- Code: ---// The King of Fighters 2004

static struct BurnRomInfo kof2k4seRomDesc[] = {
{"2k4-p1.bin", 0x100000, 0x5f482757, 0x10}, //  0 68K code
{"2k4-p2.bin", 0x400000, 0xe6c50566, 0x10}, //  1

{"2k4-s1.bin", 0x020000, 0xa3c9b2d8,    1}, //  1 Text data

{"2k4-c1.bin", 0x800000, 0x7a050288,    1}, //  2 Sprite data
{"2k4-c2.bin", 0x800000, 0xe924afcf,    1}, //  3
{"2k4-c3.bin", 0x800000, 0x959fad0b,    1}, //  5
{"2k4-c4.bin", 0x800000, 0xefe6a468,    1}, //  6
{"2k4-c5.bin", 0x800000, 0x74bba7c6,    1}, //  7
{"2k4-c6.bin", 0x800000, 0xe20d2216,    1}, //  8
{"2k4-c7.bin", 0x800000, 0xfa705b2b,    1}, //  9
{"2k4-c8.bin", 0x800000, 0x2c912ff9,    1}, //  10

{"2k4-m1.bin", 0x020000, 0x5a47d9ad, 0x10}, // 11 Z80 code

{"2k4-v1.bin", 0x400000, 0x8991f6e9,    2}, //  12 Sound data
{"2k4-v2.bin", 0x400000, 0x511e4d2f,    2}, //  13
{"2k4-v3.bin", 0x400000, 0x1dd8b53a,    2}, //  14
{"2k4-v4.bin", 0x400000, 0x63bb5462,    2}, //  15
};

STDROMPICKEXT(kof2k4se, kof2k4se, neogeo);
STD_ROM_FN(kof2k4se);

static int kof2k4seInit()
{
return NeoInit();
}

struct BurnDriver BurnDrvkof2k4se = {

{"kof2k4se", "The King of Fighters 2004", "None", "SNK Playmore Corporation", "Neo Geo", "2000", NULL, "neogeo"},
BDF_GAME_WORKING, 2, HARDWARE_SNK_NEOGEO,
NULL, kof2k4seRomInfo, kof2k4seRomName, neogeoInputInfo, neogeoDIPInfo,
kof2k4seInit, NeoExit, NeoFrame, NeoRender, NeoScan, &NeoRecalcPalette,
nNeoScreenWidth, 224, 4, 3
};

--- End code ---

--- End quote ---

You only need this code added


--- Code: ---static void kf2k4seDecrypt() // Code by IQ_132 (http://neosource.1emu.net/)
{
unsigned char* src = Neo68KROM01+0x100000;
unsigned char* dst = (unsigned char*)malloc(0x400000);
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);
}
}

static int kof2k4seInit()
{
pNeoInitCallback = kf2k4seDecrypt;
return NeoInit();
}

--- End code ---

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version