Author Topic: Please help me with this Compiling problems  (Read 15905 times)

Offline narcissus

  • Newbies
  • *
  • Posts: 23
  • Karma: +1/-8
Please help me with this Compiling problems
« on: March 10, 2008, 04:18:51 AM »
I would like to compile mame0123 to make it support the neogeo system with over-64MB-size c-rom
because I want to add some games which have 80MB c-rom
I have already added the games in "\src\mame\drivers\neodrvr.c".
But I don't know how to change the code in "\src\mame\video\neogeo.c".

I thought maybe this code control the c-rom's size, but I can't understand more.
 
Code: [Select]
              int y;

                for (y = 0; y < 0x10; y++)
                {
                        int x;

                        for (x = 0; x < 8; x++)
                        {
                                *(dest++) = (((src[0x43 | (y << 2)] >> x) & 0x01) << 3) |
                                                    (((src[0x41 | (y << 2)] >> x) & 0x01) << 2) |
                                                        (((src[0x42 | (y << 2)] >> x) & 0x01) << 1) |
                                                        (((src[0x40 | (y << 2)] >> x) & 0x01) << 0);
                        }

                        for (x = 0; x < 8; x++)
                        {
                                *(dest++) = (((src[0x03 | (y << 2)] >> x) & 0x01) << 3) |
                                                    (((src[0x01 | (y << 2)] >> x) & 0x01) << 2) |
                                                        (((src[0x02 | (y << 2)] >> x) & 0x01) << 1) |
                                                        (((src[0x00 | (y << 2)] >> x) & 0x01) << 0);
                        }
Please help me
thx a lot

Offline iq_132

  • Administrator
  • *****
  • Posts: 3728
  • Karma: +411/-0
  • Definitely not Dink!
    • NeoSource
Re: Please help me with this Compiling problems
« Reply #1 on: March 10, 2008, 10:22:10 PM »
Erm.. it should already have support. Do you mean you have a single c rom that is 80mb?


Offline narcissus

  • Newbies
  • *
  • Posts: 23
  • Karma: +1/-8
Re: Please help me with this Compiling problems
« Reply #2 on: March 11, 2008, 02:44:21 AM »
I mean one c-rom is 8MB, I have the game which has 10 c-roms
FBA can support it well
But when I run it in MAME, there's something wrong
the sprites in c9 & c10 can't display correctly
the game driver:
   ROM_REGION( 0x5000000, NEOGEO_REGION_SPRITES, 0 )
or
   ROM_REGION( 0x4000000, NEOGEO_REGION_SPRITES, 0 )
have the same effect in playing

Offline iq_132

  • Administrator
  • *****
  • Posts: 3728
  • Karma: +411/-0
  • Definitely not Dink!
    • NeoSource
Re: Please help me with this Compiling problems
« Reply #3 on: March 11, 2008, 02:50:06 AM »
Mind posting your full driver for that game?


Offline narcissus

  • Newbies
  • *
  • Posts: 23
  • Karma: +1/-8
Re: Please help me with this Compiling problems
« Reply #4 on: March 12, 2008, 05:18:34 AM »
Code: [Select]
ROM_START( kf2k2ps2 )
ROM_REGION( 0x600000, NEOGEO_REGION_MAIN_CPU_CARTRIDGE, 0 )
ROM_LOAD16_WORD_SWAP( "kf2k2ps2-p1.bin", 0x000000, 0x100000, CRC(336C4CA8) )
ROM_LOAD16_WORD_SWAP( "kf2k2ps2-p2.bin", 0x100000, 0x500000, CRC(CB0032BF) )

NEO_SFIX_128K( "kf2k2ps2-s1.bin", CRC(714ADE47) )

NEO_BIOS_AUDIO_128K( "265-m1_decrypted.bin", CRC(1c661a4b) SHA1(4e5aa862a0a182a806d538996ddc68d9f2dffaf7) )

ROM_REGION( 0x1000000, NEOGEO_REGION_AUDIO_DATA_1, 0 )
ROM_LOAD( "265-v1d.bin", 0x000000, 0x800000, CRC(0fc9a58d) )
ROM_LOAD( "265-v2d.bin", 0x800000, 0x800000, CRC(b8c475a4) )

NO_DELTAT_REGION

ROM_REGION( 0x5000000, NEOGEO_REGION_SPRITES, 0 )
ROM_LOAD16_BYTE( "265-c1d.bin", 0x0000000, 0x800000, CRC(7efa6ef7) SHA1(71345A4202E7CC9239538FB978638141416C8893) ) /* Plane 0,1 */
ROM_LOAD16_BYTE( "265-c2d.bin", 0x0000001, 0x800000, CRC(aa82948b) SHA1(B2A40797F68BDEB80BC54DCCC5495BE68934BF0E) ) /* Plane 2,3 */
ROM_LOAD16_BYTE( "265-c3d.bin", 0x1000000, 0x800000, CRC(959fad0b) SHA1(63AB83DDC5F688DC8165A7FF8D262DF3FCD942A2) ) /* Plane 0,1 */
ROM_LOAD16_BYTE( "265-c4d.bin", 0x1000001, 0x800000, CRC(efe6a468) SHA1(2A414285E48AA948B5B0D4A9333BAB083B5FB853) ) /* Plane 2,3 */
ROM_LOAD16_BYTE( "265-c5d.bin", 0x2000000, 0x800000, CRC(74bba7c6) SHA1(E01ADC7A4633BC0951B9B4F09ABC07D728E9A2D9) ) /* Plane 0,1 */
ROM_LOAD16_BYTE( "265-c6d.bin", 0x2000001, 0x800000, CRC(e20d2216) SHA1(5D28EEA7B581E780B78F391A8179F1678EE0D9A5) ) /* Plane 2,3 */
ROM_LOAD16_BYTE( "kf2k2ps2-c7.bin", 0x3000000, 0x800000, CRC(1B1D35FB) ) /* Plane 0,1 */
ROM_LOAD16_BYTE( "kf2k2ps2-c8.bin", 0x3000001, 0x800000, CRC(A5E35D11) ) /* Plane 2,3 */
ROM_LOAD16_BYTE( "kf2k2ps2-c9.bin", 0x4000000, 0x800000, CRC(AA8BBC97) ) /* Plane 0,1 */
ROM_LOAD16_BYTE( "kf2k2ps2-c10.bin", 0x4000001, 0x800000, CRC(9832713D) ) /* Plane 2,3 */
ROM_END
all the roms are decrypted

Offline iq_132

  • Administrator
  • *****
  • Posts: 3728
  • Karma: +411/-0
  • Definitely not Dink!
    • NeoSource
Re: Please help me with this Compiling problems
« Reply #5 on: March 13, 2008, 02:02:44 PM »
Hmm.. I've added this to my fba build and am not sure what I'm looking for that's wrong.
Any notes on what's different in this set than the standard one?


Offline narcissus

  • Newbies
  • *
  • Posts: 23
  • Karma: +1/-8
Re: Please help me with this Compiling problems
« Reply #6 on: March 14, 2008, 12:55:08 AM »
choose the console mode and there're 5 new charaters which appeared in PS2 version have been added
Shingo and King can be seen in select menu
press start at Rugal, Billy and Iori, you will see others

this game run well in fba. I need a driver for mame0123
I think only a driver in "\src\mame\drivers\neodrvr.c" is not enough for the new charaters' gfx sprites displayed bad
« Last Edit: March 14, 2008, 12:56:35 AM by narcissus »

Offline iq_132

  • Administrator
  • *****
  • Posts: 3728
  • Karma: +411/-0
  • Definitely not Dink!
    • NeoSource
Re: Please help me with this Compiling problems
« Reply #7 on: March 15, 2008, 11:09:08 AM »
Ok, I got it to reproduce that issue.  It looks like it's crapping out because of bank 4 (the 5th mb of the p2) isn't quite right (protection?).
I'll look at again later tonight.


Offline iq_132

  • Administrator
  • *****
  • Posts: 3728
  • Karma: +411/-0
  • Definitely not Dink!
    • NeoSource
Re: Please help me with this Compiling problems
« Reply #8 on: March 15, 2008, 10:11:13 PM »
Nm lol, I had the p2 set at the wrong size (4 mb) so it wasn't banks witching the last bank in.

So that works now.  Can you post a screen shot of what it does for you?  It may be a
bank switching issue for you as well.



Offline narcissus

  • Newbies
  • *
  • Posts: 23
  • Karma: +1/-8
Re: Please help me with this Compiling problems
« Reply #9 on: March 16, 2008, 05:13:14 AM »
I don't think the rom has any protection

this is my screen shot
« Last Edit: March 18, 2008, 09:14:42 AM by narcissus »

Offline iq_132

  • Administrator
  • *****
  • Posts: 3728
  • Karma: +411/-0
  • Definitely not Dink!
    • NeoSource
Re: Please help me with this Compiling problems
« Reply #10 on: March 22, 2008, 10:42:10 PM »
Hmm... Try changing this:


   ROM_REGION( 0x5000000, NEOGEO_REGION_SPRITES, 0 )

to this:

   ROM_REGION( 0x8000000, NEOGEO_REGION_SPRITES, 0 )

If that works, I have some ideas on how to best resolve the issue (without using 128mb of ram just for tiles).


Offline narcissus

  • Newbies
  • *
  • Posts: 23
  • Karma: +1/-8
Re: Please help me with this Compiling problems
« Reply #11 on: March 25, 2008, 11:25:35 AM »
ah...
I tried this but it's the same as before like my screen shot :S


Offline iq_132

  • Administrator
  • *****
  • Posts: 3728
  • Karma: +411/-0
  • Definitely not Dink!
    • NeoSource
Re: Please help me with this Compiling problems
« Reply #12 on: March 25, 2008, 01:44:18 PM »
ok, sorry man, I'm stumped :S


Offline Multipass

  • New Member
  • *
  • Posts: 5
  • Karma: +0/-0
Re: Please help me with this Compiling problems
« Reply #13 on: October 07, 2009, 05:59:05 PM »
Hello all,
I have always same problem with kf2k2ps2 in mame, someone have good way for me please?
And now kof98ae is out and i have a same err gfx with this,this set have 12 C roms (8mb x 12) i need help please thanks
« Last Edit: October 07, 2009, 06:02:04 PM by Multipass »