Author Topic: Error inserting a neogeo game in MAME 0.153 (Updated source from 148)  (Read 21651 times)

Offline Arcadez

  • Expert
  • *****
  • Posts: 558
  • Karma: +15/-0
  • Arcade Addict
Re: Error inserting a neogeo game in MAME 0.148
« Reply #15 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
« Last Edit: June 25, 2014, 03:07:08 PM by gamez fan »

Offline SeiferAlmasy

  • Jr. Member
  • **
  • Posts: 53
  • Karma: +1/-0
  • MAME's FAN (Since 1997)
    • vgBR - Videogames Brasil
Re: Error inserting a neogeo game in MAME 0.148
« Reply #16 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

Offline SeiferAlmasy

  • Jr. Member
  • **
  • Posts: 53
  • Karma: +1/-0
  • MAME's FAN (Since 1997)
    • vgBR - Videogames Brasil
Re: Error inserting a neogeo game in MAME 0.148
« Reply #17 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...
« Last Edit: June 26, 2014, 03:20:57 PM by SeiferAlmasy »

Offline SeiferAlmasy

  • Jr. Member
  • **
  • Posts: 53
  • Karma: +1/-0
  • MAME's FAN (Since 1997)
    • vgBR - Videogames Brasil
Re: Error inserting a neogeo game in MAME 0.148
« Reply #18 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

Offline SeiferAlmasy

  • Jr. Member
  • **
  • Posts: 53
  • Karma: +1/-0
  • MAME's FAN (Since 1997)
    • vgBR - Videogames Brasil
Re: Error inserting a neogeo game in MAME 0.148
« Reply #19 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...

Offline SeiferAlmasy

  • Jr. Member
  • **
  • Posts: 53
  • Karma: +1/-0
  • MAME's FAN (Since 1997)
    • vgBR - Videogames Brasil
Re: Error inserting a neogeo game in MAME 0.153 (Updated source from 148)
« Reply #20 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...





« Last Edit: June 27, 2014, 11:18:08 PM by SeiferAlmasy »

Offline SeiferAlmasy

  • Jr. Member
  • **
  • Posts: 53
  • Karma: +1/-0
  • MAME's FAN (Since 1997)
    • vgBR - Videogames Brasil
Re: Error inserting a neogeo game in MAME 0.153 (Updated source from 148)
« Reply #21 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
« Last Edit: July 01, 2014, 03:12:48 AM by SeiferAlmasy »

Offline SeiferAlmasy

  • Jr. Member
  • **
  • Posts: 53
  • Karma: +1/-0
  • MAME's FAN (Since 1997)
    • vgBR - Videogames Brasil
Re: Error inserting a neogeo game in MAME 0.153 (Updated source from 148)
« Reply #22 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
« Last Edit: July 01, 2014, 03:10:43 PM by SeiferAlmasy »

Offline Haze

  • MAME Devs
  • *****
  • Posts: 184
  • Karma: +47/-0
Re: Error inserting a neogeo game in MAME 0.153 (Updated source from 148)
« Reply #23 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.

Offline SeiferAlmasy

  • Jr. Member
  • **
  • Posts: 53
  • Karma: +1/-0
  • MAME's FAN (Since 1997)
    • vgBR - Videogames Brasil
Re: Error inserting a neogeo game in MAME 0.153 (Updated source from 148)
« Reply #24 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"?
« Last Edit: July 05, 2014, 01:33:07 PM by SeiferAlmasy »

Offline SeiferAlmasy

  • Jr. Member
  • **
  • Posts: 53
  • Karma: +1/-0
  • MAME's FAN (Since 1997)
    • vgBR - Videogames Brasil
Re: Error inserting a neogeo game in MAME 0.153 (Updated source from 148)
« Reply #25 on: July 15, 2014, 03:43:09 AM »


This game is a kof2002rm13 on HBMAME... look the snapshot

Offline Haze

  • MAME Devs
  • *****
  • Posts: 184
  • Karma: +47/-0
Re: Error inserting a neogeo game in MAME 0.153 (Updated source from 148)
« Reply #26 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.
« Last Edit: July 15, 2014, 08:08:46 AM by Haze »

Offline SeiferAlmasy

  • Jr. Member
  • **
  • Posts: 53
  • Karma: +1/-0
  • MAME's FAN (Since 1997)
    • vgBR - Videogames Brasil
Re: Error inserting a neogeo game in MAME 0.153 (Updated source from 148)
« Reply #27 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
« Last Edit: July 15, 2014, 03:16:05 PM by SeiferAlmasy »

Offline SeiferAlmasy

  • Jr. Member
  • **
  • Posts: 53
  • Karma: +1/-0
  • MAME's FAN (Since 1997)
    • vgBR - Videogames Brasil
Re: Error inserting a neogeo game in MAME 0.153 (Updated source from 148)
« Reply #28 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 :)