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

Offline SeiferAlmasy

  • Newbies
  • *
  • Posts: 44
  • Karma: +1/-0
  • MAME's FAN (Since 1997)
    • vgBR - Videogames Brasil
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
« Last Edit: June 27, 2014, 05:38:36 pm by SeiferAlmasy »

Offline iq_132

  • Administrator
  • *****
  • Posts: 3519
  • Karma: +366/-0
  • The original dancing hotdog
    • NeoSource
Re: Error inserting a neogeo game in MAME 0.148
« Reply #1 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.



Offline SeiferAlmasy

  • Newbies
  • *
  • Posts: 44
  • Karma: +1/-0
  • MAME's FAN (Since 1997)
    • vgBR - Videogames Brasil
Re: Error inserting a neogeo game in MAME 0.148
« Reply #2 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
« Last Edit: March 24, 2014, 11:10:14 pm by SeiferAlmasy »

Offline iq_132

  • Administrator
  • *****
  • Posts: 3519
  • Karma: +366/-0
  • The original dancing hotdog
    • NeoSource
Re: Error inserting a neogeo game in MAME 0.148
« Reply #3 on: March 24, 2014, 11:58:00 pm »
looks like you're missing DRIVER_INIT(kof2k2c2), it should be pasted somewhere in neodrvr.c



Offline SeiferAlmasy

  • Newbies
  • *
  • Posts: 44
  • Karma: +1/-0
  • MAME's FAN (Since 1997)
    • vgBR - Videogames Brasil
Re: Error inserting a neogeo game in MAME 0.148
« Reply #4 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...
« Last Edit: March 25, 2014, 12:03:49 am by SeiferAlmasy »

Offline SeiferAlmasy

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

Offline iq_132

  • Administrator
  • *****
  • Posts: 3519
  • Karma: +366/-0
  • The original dancing hotdog
    • NeoSource
Re: Error inserting a neogeo game in MAME 0.148
« Reply #6 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.



Offline SeiferAlmasy

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

Offline Robert

  • MAME Devs
  • *****
  • Posts: 391
  • Karma: +27/-0
    • The MESSUI Place
Re: Error inserting a neogeo game in MAME 0.148
« Reply #8 on: April 06, 2014, 04:58:22 am »
I think DRIVER_INIT_MEMBER didn't exist in 0.148?

But if it did, then you need to add into neogeo.h:
DECLARE_DRIVER_INIT(kof2k2c2);
into the class where the other DECLARE_DRIVER_INITs are.
And, make sure you try a clean build.
« Last Edit: April 06, 2014, 05:02:04 am by Robert »

Offline SeiferAlmasy

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

« Last Edit: April 11, 2014, 11:05:29 pm by SeiferAlmasy »

Offline SeiferAlmasy

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

Offline SeiferAlmasy

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

Offline SeiferAlmasy

  • Newbies
  • *
  • Posts: 44
  • Karma: +1/-0
  • MAME's FAN (Since 1997)
    • vgBR - Videogames Brasil
Re: Error inserting a neogeo game in MAME 0.148
« Reply #12 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]
« Last Edit: June 24, 2014, 03:13:14 am by SeiferAlmasy »

Offline Robert

  • MAME Devs
  • *****
  • Posts: 391
  • Karma: +27/-0
    • The MESSUI Place
Re: Error inserting a neogeo game in MAME 0.148
« Reply #13 on: June 24, 2014, 04:40:26 am »
You appear to be missing a comma after the year 2002.

Offline SeiferAlmasy

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