Welcome!

General Emulation => MAME => Topic started by: SeiferAlmasy on March 24, 2014, 10:15:17 PM

Title: Error inserting a neogeo game in MAME 0.153 (Updated source from 148)
Post by: SeiferAlmasy on March 24, 2014, 10:15:17 PM
I trying to add a neogeo game called "The King of Fighrers 2002 3rd Strike of Orochi" but i have a some compile errors

The romset as named as Kof2k2C2 (and is a clone of old set of kawaks named kof2002nd) but i reziped this inside a Kof2k2C2 and create a dat in Kawaks and runs fine...

Below the error(s)

Code: [Select]
obj/windows/mame/neogeo.a(neogeo.o):neogeo.c:(.text$_ZN13driver_device19driver_i
nit_wrapperI12neogeo_stateXadL_ZNS1_13init_kof2k2c2EvEEEEvR15running_machine[voi
d driver_device::driver_init_wrapper<neogeo_state, &(neogeo_state::init_kof2k2c2
())>(running_machine&)]+0x15): undefined reference to `neogeo_state::init_kof2k2
c2()'
collect2: ld returned 1 exit status
make: *** [mame.exe] Error 1

help please, and thank's
Title: Re: Error inserting a neogeo game in MAME 0.148
Post by: iq_132 on March 24, 2014, 10:27:39 PM
Did you include init_kof2k2c2() in includes/neogeo.h ??
You should post the snippets you are adding.
Title: Re: Error inserting a neogeo game in MAME 0.148
Post by: SeiferAlmasy on March 24, 2014, 10:34:15 PM
i inserted this in neodrvr.c

Code: [Select]
ROM_START( kof2k2c2 )
ROM_REGION( 0x500000, "maincpu", 0 )
ROM_LOAD16_WORD_SWAP( "kof2k2c2_p1.rom", 0x000000, 0x020000, CRC(21a84084) SHA1(973e8a0bffa0e1f055803f663f81a8e03701802d) )
ROM_LOAD16_WORD_SWAP( "kof2k2c2_p2.rom", 0x040000, 0x040000, CRC(febb484e) SHA1(4b1838795b84f22d578ad043641df0a7bf7d9774) )

NEO_SFIX_128K( "kof2k2c2_s1.rom", CRC(a3c9b2d8) SHA1(1472d2cbd7bb73e84824ecf773924007e6117e77) )

NEO_BIOS_AUDIO_128K( "kof2k2c2_m1.rom", CRC(5a47d9ad) SHA1(0197737934653acc6c97221660d789e9914f3578) )

ROM_REGION( 0x1000000, "ymsnd", 0 )
ROM_LOAD( "kof2k2c2_v1.rom", 0x000000, 0x800000, CRC(e4ddfb3f) SHA1(eb8220ab01c16cf9244b7f3f9912bec0db561b85) )
ROM_LOAD( "kof2k2c2_v2.rom", 0x800000, 0x800000, CRC(b887d287) SHA1(f593a5722df6f6fac023d189a739a117e976bb2f) )

NO_DELTAT_REGION

ROM_REGION( 0x4000000, "sprites", 0 )
ROM_LOAD16_BYTE( "kof2k2c2_c1.rom", 0x0000000, 0x800000, CRC(7a050288) SHA1(55a20c5b01e11a859f096af3f8e09986025d288f) ) /* Plane 0,1 */
ROM_LOAD16_BYTE( "kof2k2c2_c2.rom", 0x0000001, 0x800000, CRC(e924afcf) SHA1(651e974f7339d2cdcfa58c5398013197a0525b77) ) /* Plane 2,3 */
ROM_LOAD16_BYTE( "kof2k2c2_c3.rom", 0x1000000, 0x800000, CRC(959fad0b) SHA1(63ab83ddc5f688dc8165a7ff8d262df3fcd942a2) ) /* Plane 0,1 */
ROM_LOAD16_BYTE( "kof2k2c2_c4.rom", 0x1000001, 0x800000, CRC(efe6a468) SHA1(2a414285e48aa948b5b0d4a9333bab083b5fb853) ) /* Plane 2,3 */
ROM_LOAD16_BYTE( "kof2k2c2_c5.rom", 0x2000000, 0x800000, CRC(74bba7c6) SHA1(e01adc7a4633bc0951b9b4f09abc07d728e9a2d9) ) /* Plane 0,1 */
ROM_LOAD16_BYTE( "kof2k2c2_c6.rom", 0x2000001, 0x800000, CRC(e20d2216) SHA1(5d28eea7b581e780b78f391a8179f1678ee0d9a5) ) /* Plane 2,3 */
ROM_LOAD16_BYTE( "kof2k2c2_c7.rom", 0x3000000, 0x800000, CRC(fa705b2b) SHA1(f314c66876589601806352484dd8e45bc41be692) ) /* Plane 0,1 */
ROM_LOAD16_BYTE( "kof2k2c2_c8.rom", 0x3000001, 0x800000, CRC(2c912ff9) SHA1(b624a625ea3e221808b7ea43fb0b1a51d8c1853e) ) /* Plane 2,3 */
ROM_END

Code: [Select]
GAME( 2002, kof2k2c2,   neogeo,   neogeo,   neogeo, neogeo_state,   kof2k2c2, ROT0, "bootleg", "The King of Fighters 2002 3rd Strike of Orochi (The King of Fighters 2002 bootleg)", GAME_SUPPORTS_SAVE ) /* Hack / Bootleg of kof2002 */

neogeo.h

Code: [Select]
DECLARE_DRIVER_INIT(kof2k2c2);
I am not sure if this rom need something more than the other bootlegs / hacks that already exist in MAME
Title: Re: Error inserting a neogeo game in MAME 0.148
Post by: iq_132 on March 24, 2014, 11:58:00 PM
looks like you're missing DRIVER_INIT(kof2k2c2), it should be pasted somewhere in neodrvr.c
Title: Re: Error inserting a neogeo game in MAME 0.148
Post by: SeiferAlmasy on March 25, 2014, 12:01:38 AM
I added this...

Code: [Select]
DRIVER_INIT_MEMBER(neogeo_state,kof2k2c2)
{
DRIVER_INIT_CALL(neogeo);
//kof2002_decrypt_68k(machine());
neo_pcm2_swap(machine(), 0);
neogeo_cmc50_m1_decrypt(machine());
//kof2002b_gfx_decrypt(machine(), machine().root_device().memregion("sprites")->base(),0x4000000);
//kof2002b_gfx_decrypt(machine(), machine().root_device().memregion("fixed")->base(),0x20000);
}

but don't work, perhaps this set use a fully decrypted set... and mame don't have any kof fully decrypted anymore...
Title: Re: Error inserting a neogeo game in MAME 0.148
Post by: SeiferAlmasy on March 26, 2014, 01:20:33 AM
i change some code in neodrvr.c, neogeo.c e neogeo.h i think at all is ok, but not work, have a same error again

undefined reference to `neogeo_state::init_kof2k2c2()

but, the DRIVER_INIT_MEMBER(neogeo_state,kof2k2c2) is ok in neogeo.h or i think it ok :P
Title: Re: Error inserting a neogeo game in MAME 0.148
Post by: iq_132 on March 26, 2014, 07:20:03 AM
Do you actually have init_kof2k2c2 somewhere? there should be code for that subroutine. I didn't see it in the code you pasted.
Title: Re: Error inserting a neogeo game in MAME 0.148
Post by: SeiferAlmasy on March 26, 2014, 10:09:04 PM
Sorry but, no have any references to init_<game here> in neogeo.h only this reference

DRIVER_INIT_MEMBER(neogeo_state,kof2k2c2)

in this case, add a line init_kof2k2c2() in neogeo.h and that's work?
Title: Re: Error inserting a neogeo game in MAME 0.148
Post by: SeiferAlmasy on April 11, 2014, 05:50:22 PM
I try now, thanks Robert

EDIT:

Code: [Select]
D:\Source\MAME\mame0148s>make -j5
Linking mame.exe...
obj/windows/mame/neogeo.a(neogeo.o):neogeo.c:(.text$_ZN13driver_device19driver_i
nit_wrapperI12neogeo_stateXadL_ZNS1_13init_kof2k2c2EvEEEEvR15running_machine[voi
d driver_device::driver_init_wrapper<neogeo_state, &(neogeo_state::init_kof2k2c2
())>(running_machine&)]+0x15): undefined reference to `neogeo_state::init_kof2k2
c2()'
collect2: ld returned 1 exit status
make: *** [mame.exe] Error 1

neogeo.h

Code: [Select]
DECLARE_DRIVER_INIT(kof2k2c2);
neodrvr.c

Code: [Select]
ROM_START( kof2k2c2 )
ROM_REGION( 0x500000, "maincpu", 0 )
ROM_LOAD16_WORD_SWAP( "kof2k2c2_p1.rom", 0x000000, 0x020000, CRC(21a84084) SHA1(973e8a0bffa0e1f055803f663f81a8e03701802d) )
ROM_LOAD16_WORD_SWAP( "kof2k2c2_p2.rom", 0x040000, 0x040000, CRC(febb484e) SHA1(4b1838795b84f22d578ad043641df0a7bf7d9774) )

NEO_SFIX_128K( "kof2k2c2_s1.rom", CRC(a3c9b2d8) SHA1(1472d2cbd7bb73e84824ecf773924007e6117e77) )

NEO_BIOS_AUDIO_128K( "kof2k2c2_m1.rom", CRC(5a47d9ad) SHA1(0197737934653acc6c97221660d789e9914f3578) )

ROM_REGION( 0x1000000, "ymsnd", 0 )
ROM_LOAD( "kof2k2c2_v1.rom", 0x000000, 0x800000, CRC(e4ddfb3f) SHA1(eb8220ab01c16cf9244b7f3f9912bec0db561b85) )
ROM_LOAD( "kof2k2c2_v2.rom", 0x800000, 0x800000, CRC(b887d287) SHA1(f593a5722df6f6fac023d189a739a117e976bb2f) )

NO_DELTAT_REGION

ROM_REGION( 0x4000000, "sprites", 0 )
ROM_LOAD16_BYTE( "kof2k2c2_c1.rom", 0x0000000, 0x800000, CRC(7a050288) SHA1(55a20c5b01e11a859f096af3f8e09986025d288f) ) /* Plane 0,1 */
ROM_LOAD16_BYTE( "kof2k2c2_c2.rom", 0x0000001, 0x800000, CRC(e924afcf) SHA1(651e974f7339d2cdcfa58c5398013197a0525b77) ) /* Plane 2,3 */
ROM_LOAD16_BYTE( "kof2k2c2_c3.rom", 0x1000000, 0x800000, CRC(959fad0b) SHA1(63ab83ddc5f688dc8165a7ff8d262df3fcd942a2) ) /* Plane 0,1 */
ROM_LOAD16_BYTE( "kof2k2c2_c4.rom", 0x1000001, 0x800000, CRC(efe6a468) SHA1(2a414285e48aa948b5b0d4a9333bab083b5fb853) ) /* Plane 2,3 */
ROM_LOAD16_BYTE( "kof2k2c2_c5.rom", 0x2000000, 0x800000, CRC(74bba7c6) SHA1(e01adc7a4633bc0951b9b4f09abc07d728e9a2d9) ) /* Plane 0,1 */
ROM_LOAD16_BYTE( "kof2k2c2_c6.rom", 0x2000001, 0x800000, CRC(e20d2216) SHA1(5d28eea7b581e780b78f391a8179f1678ee0d9a5) ) /* Plane 2,3 */
ROM_LOAD16_BYTE( "kof2k2c2_c7.rom", 0x3000000, 0x800000, CRC(fa705b2b) SHA1(f314c66876589601806352484dd8e45bc41be692) ) /* Plane 0,1 */
ROM_LOAD16_BYTE( "kof2k2c2_c8.rom", 0x3000001, 0x800000, CRC(2c912ff9) SHA1(b624a625ea3e221808b7ea43fb0b1a51d8c1853e) ) /* Plane 2,3 */
ROM_END

Code: [Select]
DRIVER_INIT_MEMBER(neogeo_state,kof2k2c2)
{
DRIVER_INIT_CALL(neogeo);
kf2k2mp2_px_decrypt(machine());
neo_pcm2_swap(machine(), 0);
neogeo_cmc50_m1_decrypt(machine());
neogeo_bootleg_sx_decrypt(machine(), 1);
cmc50_neogeo_gfx_decrypt(machine(), 0xec);
}
~

Code: [Select]
GAME( 2002, kof2k2c2,   neogeo,  neogeo,   neogeo, neogeo_state,   kof2k2c2, ROT0, "bootleg", "The King of Fighters 2002 3rd Strike of Orochi (bootleg)", GAME_SUPPORTS_SAVE )
Okay, this is pissing me ...

After entering the DRIVER_INIT_MEMBER in neodrvr.c it's finally compiled, but when I run the game says that the driver does not exist ...

No more options here :(

EDIT 2:

In addition to adding the driver in neodrvr.ce neogeo.h there some other file to list the game or something? is not loading the game, says that the driver does not exist (unknown system "kof2k2c2") and shows the closest matches

Title: Re: Error inserting a neogeo game in MAME 0.148
Post by: SeiferAlmasy on April 12, 2014, 01:08:47 AM
I had no idea we would have to add the file mame.lst too, is now working!

Thanks and excuse the nuisance
Title: Re: Error inserting a neogeo game in MAME 0.148
Post by: SeiferAlmasy on April 12, 2014, 03:54:36 AM
new problem, now about a Kof 2002 Remix Ultra 3.5

the game boot's ok, but if perform a "new" DM or SDM, neogeo resets...

v1 and v2 are 5 and 7mb of size, how i correct this in driver? perhaps this has crashing emulator, i think

thanks...
Title: Re: Error inserting a neogeo game in MAME 0.148
Post by: SeiferAlmasy on June 24, 2014, 03:11:51 AM
I am posting again to say that I was doing wrong when adding the rom ...

I suppose the MAME, when adding roms tagged "bootleg" assume the bootleg has protections or something ...

Code: [Select]
GAME (2002 kof2k2js, KOF2002, neogeo, neogeo, neogeo_state, neogeo, ROT0, "bootleg", "The King of Fighters 2002 Ultra Remix 3.5 (FCHT / EGHT)," GAME_SUPPORTS_SAVE)
So it was just me change the "bootleg" to "hack" that stopped giving compilation errors saying that was not recorded in neogeo.h and not necessary a DRIVER_INIT_MEMBER (neogeo_state, gamename) of neogeo.c

but this new game added (the first ever works perfectly) when performing the SDM Iori (hcf x 2 + a / c) just resetting the game, and do not know what else to do since the Kawaks and a compilation of MAME (Ash-Build) the same game works perfectly (even was there I took the example of the driver)

Any help would be very welcome in this issue

Thank you

(Sorry, my English is not very good)[/code]
Title: Re: Error inserting a neogeo game in MAME 0.148
Post by: SeiferAlmasy on June 24, 2014, 04:11:44 PM
Code: [Select]
GAME( 2002, kof2k2js,   neogeo,  neogeo,   neogeo, neogeo_state,   neogeo,   ROT0, "hack", "The King of Fighters 2002 Remix Ultra 3.0 (FCHT/EGHT)", GAME_SUPPORTS_SAVE )
GAME( 2002, kf2k2js2,   neogeo,  neogeo,   neogeo, neogeo_state,   neogeo,   ROT0, "hack", "The King of Fighters 2002 Remix Ultra 3.5 (FCHT/EGHT)", GAME_SUPPORTS_SAVE )
GAME( 2002, kf2k2js3,   neogeo,  neogeo,   neogeo, neogeo_state,   neogeo,   ROT0, "hack", "The King of Fighters 2002 Remix Ultra 3.5 (JASON/FCHT)", GAME_SUPPORTS_SAVE )

games loading fine, but the problem continue... only in mame and this game is totally decrypted
Title: Re: Error inserting a neogeo game in MAME 0.148
Post by: Arcadez on June 24, 2014, 08:14:52 PM
games loading fine, but the problem continue... only in mame and this game is totally decrypted

If the game boots and the graphics are ok but it crashes in game maybe it's related to encryption/decryption Machine commands??
im no expert but i noticed you have the driver init set like this........

Quote
DRIVER_INIT_MEMBER(neogeo_state,kof2k2c2)
{
   DRIVER_INIT_CALL(neogeo);
   kf2k2mp2_px_decrypt(machine());
   neo_pcm2_swap(machine(), 0);
   neogeo_cmc50_m1_decrypt(machine());
   neogeo_bootleg_sx_decrypt(machine(), 1);
   cmc50_neogeo_gfx_decrypt(machine(), 0xec);
}

kf2k2mp2_px_decrypt(machine()); did you add a encryption/decryption scheme for this define to the neocrypt.c machine file ??
something like this one for sv chaos......

Quote
       void svc_px_decrypt(running_machine &machine)
   {
       static const UINT8 xor1[ 0x20 ] = { 0x3b, 0x6a, 0xf7, 0xb7, 0xe8, 0xa9, 0x20, 0x99, 0x9f, 0x39, 0x34, 0x0c, 0xc3, 0x9a, 0xa5, 0xc8, 0xb8, 0x18, 0xce, 0x56, 0x94, 0x44, 0xe3, 0x7a, 0xf7, 0xdd, 0x42, 0xf0, 0x18, 0x60, 0x92, 0x9f };
       static const UINT8 xor2[ 0x20 ] = { 0x69, 0x0b, 0x60, 0xd6, 0x4f, 0x01, 0x40, 0x1a, 0x9f, 0x0b, 0xf0, 0x75, 0x58, 0x0e, 0x60, 0xb4, 0x14, 0x04, 0x20, 0xe4, 0xb9, 0x0d, 0x10, 0x89, 0xeb, 0x07, 0x30, 0x90, 0x50, 0x0e, 0x20, 0x26 };
       int i;
       int ofst;
       int rom_size = 0x800000;
       UINT8 *rom = machine.root_device().memregion( "maincpu" )->base();
       UINT8 *buf = auto_alloc_array(machine, UINT8,  rom_size );
   
             for( i = 0; i < 0x100000; i++ )
       {
             rom[ i ] ^= xor1[ (BYTE_XOR_LE(i) % 0x20) ];
       }
             for( i = 0x100000; i < 0x800000; i++ )
       {
             rom[ i ] ^= xor2[ (BYTE_XOR_LE(i) % 0x20) ];
       }
   
           for( i = 0x100000; i < 0x0800000; i += 4 )
       {
           UINT16 rom16;
           rom16 = rom[BYTE_XOR_LE(i+1)] | rom[BYTE_XOR_LE(i+2)]<<8;
           rom16 = BITSWAP16( rom16, 15, 14, 13, 12, 10, 11, 8, 9, 6, 7, 4, 5, 3, 2, 1, 0 );
           rom[BYTE_XOR_LE(i+1)] = rom16&0xff;
           rom[BYTE_XOR_LE(i+2)] = rom16>>8;
       }
           memcpy( buf, rom, rom_size );
           for( i = 0; i < 0x0100000 / 0x10000; i++ )
       {
          ofst = (i & 0xf0) + BITSWAP8( (i & 0x0f), 7, 6, 5, 4, 2, 3, 0, 1 );
          memcpy( &rom[ i * 0x10000 ], &buf[ ofst * 0x10000 ], 0x10000 );
       }
        for( i = 0x100000; i < 0x800000; i += 0x100 )
       {
       ofst = (i & 0xf000ff) + ((i & 0x000f00) ^ 0x00a00) + (BITSWAP8( ((i & 0x0ff000) >> 12), 4, 5, 6, 7, 1, 0, 3, 2 ) << 12);
       memcpy( &rom[ i ], &buf[ ofst ], 0x100 );
       }
      memcpy( buf, rom, rom_size );
      memcpy( &rom[ 0x100000 ], &buf[ 0x700000 ], 0x100000 );
      memcpy( &rom[ 0x200000 ], &buf[ 0x100000 ], 0x600000 );
      auto_free( machine, buf );
      }
 
Title: Re: Error inserting a neogeo game in MAME 0.148
Post by: SeiferAlmasy on June 24, 2014, 10:04:40 PM
kof2k2c2 is running perfectly, the problem now is with the set above, kof2k2js / kf2k2js2 / kf2k2js3

These games are giving problem while Iori's DM

Nor is it necessary even in kof2k2c2 this statement above, because my rom is decrypted, then it really becomes unnecessary (at least working 100% here)

I just took the topic ever created for not even having to open another.

Quote
kf2k2mp2_px_decrypt(machine()); did you add a encryption/decryption scheme for this define to the neocrypt.c machine file ??
something like this one for sv chaos......

Yes, but is not used by kof2k2c2 and the hacks that I'm trying to add, I thought I needed but did not, because all the roms are decrypted, the reason I say this is that in Kawaks, if not decrypted, does not work properly.
Title: Re: Error inserting a neogeo game in MAME 0.148
Post by: Arcadez on June 25, 2014, 11:02:50 AM
Im more than likely hindering rather than helping i must admit ive never used Kawaks or played much of the KOF games
but from what your saying the game your trying to add works but when you perform a special move the game crashes
i still think your missing some code somewhere maybe decryption or encryption that the game triggers when you perform
the Iori's DM special moves

Anyway best of luck i hope you get it sorted
Title: Re: Error inserting a neogeo game in MAME 0.148
Post by: SeiferAlmasy on June 25, 2014, 11:21:05 PM
I not sure that Winkawaks (using a loader) load only decripted roms, but probably yes... and MAME always runs decrypted bootlegs without decryption codes so far at least
Title: Re: Error inserting a neogeo game in MAME 0.148
Post by: SeiferAlmasy on June 26, 2014, 02:58:56 PM
Magic Plus III works fine here too :(

if you want i upload these roms...

and, Robert... that's games runs fine in kawaks, without any bugs...
Title: Re: Error inserting a neogeo game in MAME 0.148
Post by: SeiferAlmasy on June 26, 2014, 10:13:01 PM
All build of mame that support this game are the same error ... I do not know if you can help it, if you are interested or something ... but if you can, I am sending you a private message so
Title: Re: Error inserting a neogeo game in MAME 0.148
Post by: SeiferAlmasy on June 27, 2014, 12:59:56 PM
Thanks Robert...

Meanwhile'm studying the source code (updated to current version, 0153) and seeing if I can solve here...
Title: Re: Error inserting a neogeo game in MAME 0.153 (Updated source from 148)
Post by: SeiferAlmasy on June 27, 2014, 05:44:48 PM
my driver now

neogeo.h

Code: [Select]
DECLARE_DRIVER_INIT(kf2k2mp3);
neogeo.c

Code: [Select]
ROM_START( kf2k2mp3 )
ROM_REGION( 0x500000, "maincpu", 0 )
ROM_LOAD16_WORD_SWAP( "kf2k2mp3-p1.rom", 0x000000, 0x100000, CRC(0cdbe99c) SHA1(d1c0c953a1c313d10105a7882dadd5927bCA3E4F) )
ROM_LOAD16_WORD_SWAP( "kf2k2mp3-p2.rom", 0x100000, 0x400000, CRC(de6ffd21) SHA1(0f9108aae7541d0d754ce764b195c921c021c373) )

NEO_SFIX_128K( "kf2k2mp3-s1.rom", CRC(4d0c4e77) SHA1(6e65b3e0ec2a04de4553f8ccf9c3197a0126e332) )

/* Encrypted */
NEO_BIOS_AUDIO_ENCRYPTED_128K( "265-m1.m1", CRC(85aaa632) SHA1(744fba4ca3bc3a5873838af886efb97a8a316104) ) /* mask rom TC531001 */

ROM_REGION( 0x1000000, "ymsnd", 0 )
/* Encrypted */
ROM_LOAD( "265-v1.v1", 0x000000, 0x800000, CRC(15e8f3f5) SHA1(7c9e6426b9fa6db0158baa17a6485ffce057d889) ) /* mask rom TC5364205 */
ROM_LOAD( "265-v2.v2", 0x800000, 0x800000, CRC(da41d6f9) SHA1(a43021f1e58947dcbe3c8ca5283b20b649f0409d) ) /* mask rom TC5364205 */

NO_DELTAT_REGION

ROM_REGION( 0x4000000, "sprites", 0 )
/* NOT Encrypted */
ROM_LOAD16_BYTE( "kf2k2_c1.rom", 0x0000000, 0x800000, CRC(c1a21b4c) SHA1(235938175d6011c5c8a37fc94f8fb604132d8038) ) /* Plane 0,1 */ /* mask rom TC5364205 */
ROM_LOAD16_BYTE( "kf2k2_c2.rom", 0x0000001, 0x800000, CRC(9b3d7e8d) SHA1(38c16541862636934a456f23632f64ff0f5ae617) ) /* Plane 2,3 */ /* mask rom TC5364205 */
ROM_LOAD16_BYTE( "kf2k2_c3.rom", 0x1000000, 0x800000, CRC(e5074eea) SHA1(387ef21d58b416126b95843bac1a0b6cc346818f) ) /* Plane 0,1 */ /* mask rom TC5364205 */
ROM_LOAD16_BYTE( "kf2k2_c4.rom", 0x1000001, 0x800000, CRC(f6eb1ff2) SHA1(77cb493b9e75d42c204a9a6c052a813c2730e44f) ) /* Plane 2,3 */ /* mask rom TC5364205 */
ROM_LOAD16_BYTE( "kf2k2_c5.rom", 0x2000000, 0x800000, CRC(74bba7c6) SHA1(e01adc7a4633bc0951b9b4f09abc07d728e9a2d9) ) /* Plane 0,1 */ /* mask rom TC5364205 */
ROM_LOAD16_BYTE( "kf2k2_c6.rom", 0x2000001, 0x800000, CRC(e20d2216) SHA1(5d28eea7b581e780b78f391a8179f1678ee0d9a5) ) /* Plane 2,3 */ /* mask rom TC5364205 */
ROM_LOAD16_BYTE( "kf2k2_c7.rom", 0x3000000, 0x800000, CRC(0e9f6adb) SHA1(0e4cdbd3df2ef7b0c78c3275ee22684c67bf2d23) ) /* Plane 0,1 */ /* mask rom TC5364205 */
ROM_LOAD16_BYTE( "kf2k2_c8.rom", 0x3000001, 0x800000, CRC(9961799e) SHA1(cf5d43bbd90269155ac41fe9a31328654784351f) ) /* Plane 2,3 */ /* mask rom TC5364205 */
ROM_END

PS: M1 and V's roms are encrypted (from kof2002 - kf2k2mp3 is "parent" in my compilation, C5 and C6 orinally from kof2k2nd fully decryted)

Code: [Select]
DRIVER_INIT_MEMBER(neogeo_state,kf2k2mp3)
{
DRIVER_INIT_CALL(neogeo);
neo_pcm2_swap(0);
neogeo_cmc50_m1_decrypt();
}

Code: [Select]
GAME( 2002, kf2k2mp3,   kof2002,  neogeo,   neogeo, neogeo_state,   kf2k2mp3, ROT0, "bootleg", "The King of Fighters 2002 Magic Plus III (bootleg)" , GAME_SUPPORTS_SAVE ) /* Non Encrypted P's - Encrypted M and V's - Non-Encrypted GFX */
But the error continues...

PS: I posted this to reference only... this actual source

Maybe this help...

(http://i.imgur.com/cVVXLa2l.jpg) (http://i.imgur.com/cVVXLa2.jpg)



Title: Re: Error inserting a neogeo game in MAME 0.153 (Updated source from 148)
Post by: SeiferAlmasy on July 01, 2014, 02:08:23 AM
in the HBMAME same error occurs... but the kof2k2rm13 in isn't famous hack, i find it in a arabian site only but the link is offline

this kof2k2rm13 is part of HBMAME?

EDIT: i add kof2k2js but same error, kof2k2rm13 (Remix Ultra 2.5 or 3.0 i think) is diff from kof2k2js (Remix Ultra 3.5) but same error on both roms in Iori DM move...

My hope was that this build of MAME (HBMAME) the game did not have the same error, but it does.

I downloaded many builds of MAME that support this game in various ZIPs, but with the same CRC files, insert the source code of several others, but the error persists

I give up, I do not even know how to fix this, if it's hopeless ...

Thanks for the help Robert, and everyone who tried to help
Title: Re: Error inserting a neogeo game in MAME 0.153 (Updated source from 148)
Post by: SeiferAlmasy on July 01, 2014, 12:33:24 PM
Kawaks, Nebula, Final Burn Alpha too i think

I'll use nebula or FBA to this game in my arcade, and voila, I'm done: P (kawaks don't accept command line since 138)

Iori DM (Desperation Move) is a special move, like a SUPER in Street Fighter games

about this address error... i think the game try to READ in A2C9A2 and A2C9A4 and WRITE in A2C9A5 and this causes de error and freezes (or reset system without unibios) have a method to fix this or any hack in code to fix... like as CPS1 video hacks...

Robert, HBMAME is yours? that's a great emulator (PLEASE FIX THIS LOL - just kidding :p)

PS: i don't give up... :p
Title: Re: Error inserting a neogeo game in MAME 0.153 (Updated source from 148)
Post by: Haze on July 05, 2014, 08:17:28 AM
it's the hack that's broken, not the emulator.  it would behave the same way (crashing) on a real Neogeo.

kawaks doesn't emulate the 68000 correctly so doesn't trigger the address error on the invalid access, that is a bug in kawaks.
Title: Re: Error inserting a neogeo game in MAME 0.153 (Updated source from 148)
Post by: SeiferAlmasy on July 05, 2014, 01:30:57 PM
Haze, thanks for your reply...

I guessed it already, as stated by Robert few posts ago, something like ...

But it is not only in Kawaks that works at Nebula and also saved some mistake in Final Burn Alpha also has a driver that works correctly

It is the only error that gives the game has other games like The King of Fighters 2002 Magic Plus III (which is a modification of MP2 to include Iori "Orochi") were also of an error in DM, before finalizing the DM , the CPU halt and the counter hits too, may amend any scam or another DM after this also only in mame.

Anyway, there's an easy way around this, only for the X or Y game "work properly"?
Title: Re: Error inserting a neogeo game in MAME 0.153 (Updated source from 148)
Post by: SeiferAlmasy on July 15, 2014, 03:43:09 AM
(http://i.imgur.com/HabY33V.png)

This game is a kof2002rm13 on HBMAME... look the snapshot
Title: Re: Error inserting a neogeo game in MAME 0.153 (Updated source from 148)
Post by: Haze on July 15, 2014, 08:04:16 AM
it's a hack, so obviously the checksums don't match what is expected of the original game, I'm not sure what your point is...  The Unibios can't know the checksums of every dumb hack out there, there isn't enough space to store them.

all your problems originate because you're running a hacked version of the game with incorrectly hacked game code.
Title: Re: Error inserting a neogeo game in MAME 0.153 (Updated source from 148)
Post by: SeiferAlmasy on July 15, 2014, 03:14:53 PM
other hacks present in mame, including kof10th posted by iq_132 had a solution, a solution had to hit it

Not every hack in mame passes this check (assuming, for the game to work correctly, you need this check mark OK on all items there) I think this may be the error, you may miss something as in kf2k2mp2 that runs on mame perfectly, did some tests here by changing values ​​in the "memcpy" of that game and started the bugs, just like that of magic plus 3 and KOF 2002 remix ultra ...

many hacks has passed in this test, only a few has failed, that's my point...

Thanks Haze
Title: Re: Error inserting a neogeo game in MAME 0.153 (Updated source from 148)
Post by: SeiferAlmasy on July 17, 2015, 12:56:32 PM
Robert, you said the problem has been fixed, but what exactly was the problem? According Haze said above, was the problem of the game, not the emulator and it played in a real neogeo, happens the same error.

Thanks for the answer :)