Author Topic: King of Gladiator (bootleg) - clone of kof97.  (Read 33858 times)

Offline KingHanco

  • Sr. Member
  • ****
  • Posts: 401
  • Karma: +0/-4
  • "Special " Member
King of Gladiator (bootleg) - clone of kof97.
« on: November 26, 2005, 08:35:27 PM »
It not fully coded yet and doesn't work at all. Get a red neogeo screen on bootup.  Who made it info which not added in. This is dump 7/2/2005 and 7/4/2005. The rest of the roms are from kof97 which the lates version of WinKawaks and Mame is using.

Anyone want to continue working on this or help me out. You can do so. I be more happy getting this to work. :D

Code: [Select]
        DRIVER( kog )          /* 5232 (c) 2005 */

ROM_START( kog )
ROM_REGION( 0x200000, REGION_CPU1, 0 )
ROM_LOAD16_WORD_SWAP( "5232-p1.bin", 0x000000, 0x200000, CRC(d2413ec6) SHA1(c0bf409d1e714cba5fdc6f79e4c2aec805316634) )

NEO_SFIX_128K( "5232-s1.bin", CRC(0bef69da) SHA1(80918586e694dce35c4dba796eb18abf6a070ebb) )

NEO_BIOS_SOUND_128K( "232-m1.bin", CRC(45348747) SHA1(ed77cbae2b208d1177a9f5f6e8cd57070e90b65b) )

ROM_REGION( 0xc00000, REGION_SOUND1, 0)
ROM_LOAD( "232-v1.bin", 0x000000, 0x400000, CRC(22a2b5b5) SHA1(ebdbc977332e6d93e266755000b43857e0082965) )
ROM_LOAD( "232-v2.bin", 0x400000, 0x400000, CRC(2304e744) SHA1(98d283e2bcc9291a53f52afd35ef76dfb0828432) )
ROM_LOAD( "232-v3.bin", 0x800000, 0x400000, CRC(759eb954) SHA1(54e77c4e9e6b89458e59824e478ddc33a9c72655) )

NO_DELTAT_REGION

ROM_REGION( 0x3000000, REGION_GFX3, 0 )
ROM_LOAD16_BYTE( "5232-c1a.bin", 0x0000000, 0x800000, CRC(4eab9b0a) SHA1(a6f6b755215a3f41474e0a76b5463303a522c2d3) )
ROM_LOAD16_BYTE( "5232-c1b.bin", 0x0000001, 0x800000, CRC(1143fdf3) SHA1(9dc5fe9a3b7599380db62095880e2d6f237a41bd) )
ROM_LOAD16_BYTE( "5232-c2a.bin", 0x1000000, 0x800000, CRC(697f8fd0) SHA1(5784464c2357ccef8e6e79b6298843fc3d13b39c) )
ROM_LOAD16_BYTE( "5232-c2b.bin", 0x1000001, 0x800000, CRC(ea82cf8f) SHA1(3d9ab64b69cecd6b3950839ac2c6d151ad66dcf8) )
ROM_LOAD16_BYTE( "5232-c3a.bin", 0x2000000, 0x400000, CRC(abd1be07) SHA1(857eb68bbee4538770bbfa77aaa540d61ab0abcd) ) // was 5232-c3.bin
ROM_LOAD16_BYTE( "5232-c3b.bin", 0x2000001, 0x400000, CRC(d2bd967b) SHA1(c494e0a98e127d37ca360a28accc167fa50fb626) ) // was 5232-c4.bin
ROM_END

DRIVER_INIT( kog )
{
        init_neogeo();
}

/* Testing */
GAMEB( 2005, kog, kof97, neogeo, neogeo, neogeo,  kog,   ROT0, "???", "King of Gladiator", 0 )

I gotting another roms set which is dump in 12/24/1996 and I didn't make a driver at all on this one.
« Last Edit: November 26, 2005, 09:34:07 PM by KingHanco »

Offline KingHanco

  • Sr. Member
  • ****
  • Posts: 401
  • Karma: +0/-4
  • "Special " Member
Re: King of Gladiator (bootleg) - clone of kof97.
« Reply #1 on: November 27, 2005, 03:04:11 AM »
Ok Robert,

I going to try it out.

I saw that you added the kof97 p2 rom in there which I didn't do. I change the 5232-c3a.bin and 5232-c3a.bin back into c3 and c4 in the neogeo.c.  :biggrin:

I bet James33 or iq_132 can get rid of that unresolved graphics issues. Unless you bet them to it.  :cool:

Offline KingHanco

  • Sr. Member
  • ****
  • Posts: 401
  • Karma: +0/-4
  • "Special " Member
Re: King of Gladiator (bootleg) - clone of kof97.
« Reply #2 on: November 27, 2005, 04:54:01 AM »
James gave me most of the above, and I tidied up the DRIVER_INIT.

You will most likely get an error with sx_decrypt(1), as it's a custom routine I use.
Replace it with samsh5bl_sx_decrypt().

Ether one doesn't work because of the sx_decrypt(). Same error. Try this samsh5b _gfx_decrypt(?) - What ever it needed in between the ( ).

Another thing is that I don't have the samsh5bl at all.

But I do have the samsho5, samsho5h and the samsh5sp (Neo-Geo 20050712) roms. But no drivers yet for those in my build.

================================================================================

Ok I trying to clearup the screen all the way. But it still scamble on the screen. Look like there is a warning on the screen and won't go anywhere after that.

Code: [Select]
DRIVER_INIT( kog )
{
        UINT8 *rom = memory_region( REGION_CPU1 );
        UINT8 *buf = malloc( 0x100000 );
        int i;
        unsigned int nBank[] = { 0x3, 0x8, 0x7, 0xC, 0x1, 0xA, 0x6, 0xD };

        for (i = 0; i < 8; i++)
        {
        memcpy (buf + i * 0x20000, rom + nBank[i] * 0x20000, 0x20000);
        }
        memcpy( &rom[ 0x000000 ], &buf[ 0x000000 ], 0x100000);  //move unscrambled p1 back

        memcpy( &rom[ 0x100000 ], &rom[ 0x200000 ], 0x400000);  //move p2 rom to original location

        free(buf);

        neo_pcm2_snk_1999(4);
        neogeo_fix_bank_type = 1;
//      kof2000_neogeo_gfx_decrypt(0x2e);
kof2000_neogeo_gfx_decrypt(0x1e);
        init_neogeo();
}

I trying out the next one.
« Last Edit: November 27, 2005, 06:56:13 AM by KingHanco »

Offline KingHanco

  • Sr. Member
  • ****
  • Posts: 401
  • Karma: +0/-4
  • "Special " Member
Re: King of Gladiator (bootleg) - clone of kof97.
« Reply #3 on: November 27, 2005, 08:03:58 AM »
Thanks.

I saw that orange neogeo screen. There is a circle with a big F on thee screen. Also the title screen is screwup bady. :D

I think this is a kof97 on the screwup screen. Weard heh...
« Last Edit: November 27, 2005, 05:08:43 PM by KingHanco »

Offline iq_132

  • Administrator
  • *****
  • Posts: 3723
  • Karma: +411/-0
  • Definitely not Dink!
    • NeoSource
Re: King of Gladiator (bootleg) - clone of kof97.
« Reply #4 on: November 27, 2005, 09:32:40 PM »
That bad title screen is because there is still code needed to make that game run properly.
It should be very much like kf10thep.


Offline James33

  • Expert
  • *****
  • Posts: 532
  • Karma: +3/-0
  • The Mame Man
    • Emulation Zone
Re: King of Gladiator (bootleg) - clone of kof97.
« Reply #5 on: November 28, 2005, 03:25:39 AM »
I bet James33 or iq_132 can get rid of that unresolved graphics issues. Unless you bet them to it.  :cool:

I have given up for now . But without a doubt there will be people trying to make it work properly .
IQ Forum Member

Offline KingHanco

  • Sr. Member
  • ****
  • Posts: 401
  • Karma: +0/-4
  • "Special " Member
Re: King of Gladiator (bootleg) - clone of kof97.
« Reply #6 on: November 28, 2005, 03:32:41 AM »
I have given up for now . But without a doubt there will be people trying to make it work properly .

Well anyone can't then what the use trying to get it to work. Anyone will beating their head in the keyboard trying. (Joking.)  :biggrin:

I giving up for now as well. Edit - Not fully working and removed from my build.
« Last Edit: November 28, 2005, 03:09:34 PM by KingHanco »

Offline KingHanco

  • Sr. Member
  • ****
  • Posts: 401
  • Karma: +0/-4
  • "Special " Member
Re: King of Gladiator (bootleg) - clone of kof97.
« Reply #7 on: November 29, 2005, 02:00:35 AM »
Dam I wish it playable on Mame32.  :biggrin:

Let me knnow guys when it working fully.  :cool:
« Last Edit: November 29, 2005, 02:05:20 AM by KingHanco »

Offline Death Metal

  • Member
  • ***
  • Posts: 121
  • Karma: +3/-0
  • Crimson Blade
Re: King of Gladiator (bootleg) - clone of kof97.
« Reply #8 on: November 30, 2005, 10:17:05 PM »
Apart from selecting a few different characters, what makes this game special, anyway?

Offline iq_132

  • Administrator
  • *****
  • Posts: 3723
  • Karma: +411/-0
  • Definitely not Dink!
    • NeoSource
Re: King of Gladiator (bootleg) - clone of kof97.
« Reply #9 on: November 30, 2005, 10:54:56 PM »
Boobies.  :eek:


Offline Death Metal

  • Member
  • ***
  • Posts: 121
  • Karma: +3/-0
  • Crimson Blade
Re: King of Gladiator (bootleg) - clone of kof97.
« Reply #10 on: December 02, 2005, 03:12:32 AM »
Oh! Enough for me to be good, then. :p

Offline KingHanco

  • Sr. Member
  • ****
  • Posts: 401
  • Karma: +0/-4
  • "Special " Member
Re: King of Gladiator (bootleg) - clone of kof97.
« Reply #11 on: December 04, 2005, 05:48:25 AM »
So I nolonger need these right? Because I got a error on the sx_decrypt. Too few arguments to fuction.

Code: [Select]
static void sx_decrypt( void )
{
        int sx_size = memory_region_length( REGION_GFX1 );
        UINT8 *rom = memory_region( REGION_GFX1 );
        int i;

        if ((rom[0] == 0x11) || (rom[0] == 0x22))
        {
        UINT8 *buf = malloc( sx_size );
        memcpy( buf, rom, sx_size );

        for( i = 0; i < sx_size; i += 0x10 )
        {
        memcpy( &rom[ i ], &buf[ i + 8 ], 8 );
        memcpy( &rom[ i + 8 ], &buf[ i ], 8 );
        }
        free( buf );
        }
        else
        if (rom[0] == 0x30)
        {
        for( i = 0; i < sx_size; i++ )
        rom[ i ] = BITSWAP8( rom[ i ], 7, 6, 0, 4, 3, 2, 1, 5 );
    }
}

static void samsh5bl_cx_decrypt( void )
{
       int cx_size = memory_region_length( REGION_GFX3 );
       UINT8 *rom = memory_region( REGION_GFX3 );
       UINT8 *buf = malloc( cx_size );
       int i;

       memcpy( buf, rom, cx_size );

       for( i = 0; i < cx_size / 0x40; i++ )
       memcpy( &rom[ i * 0x40 ], &buf[ (i ^ 1) * 0x40 ], 0x40 );

    free( buf );
}

DRIVER_INIT( kog )
{
       UINT8 *rom = memory_region( REGION_CPU1 );
       UINT8 *buf = malloc( 0x100000 );
       int i;
       unsigned int nBank[] = { 0x3, 0x8, 0x7, 0xC, 0x1, 0xA, 0x6, 0xD };

       for (i = 0; i < 8; i++)
       memcpy (buf + i * 0x20000, rom + nBank[i] * 0x20000, 0x20000);

       memcpy( &rom[ 0x000000 ], &buf[ 0x000000 ], 0x100000);  //move unscrambled p1 back
       memcpy( &rom[ 0x100000 ], &rom[ 0x200000 ], 0x400000);  //move p2 rom to original location

       free(buf);

       sx_decrypt();
       samsh5bl_cx_decrypt();
    init_neogeo();
}

You didn't say to removed those before make.
« Last Edit: December 04, 2005, 05:51:06 AM by KingHanco »

Offline neo04

  • Jr. Member
  • **
  • Posts: 90
  • Karma: +1/-0
Re: King of Gladiator (bootleg) - clone of kof97.
« Reply #12 on: December 04, 2005, 05:53:58 AM »
u still need cx & sx decrypt code

Offline KingHanco

  • Sr. Member
  • ****
  • Posts: 401
  • Karma: +0/-4
  • "Special " Member
Re: King of Gladiator (bootleg) - clone of kof97.
« Reply #13 on: December 04, 2005, 05:57:51 AM »
Heh. You post before I did. Thanks for letting me know Robert.

I only need this one time only. kof2km2 already have. It confused with 2. So I need to removed 1 and leave 1 only and nomore after that.

Code: [Select]
static void sx_decrypt( int value )
{
        int sx_size = memory_region_length( REGION_GFX1 );
        UINT8 *rom = memory_region( REGION_GFX1 );
        int i;

        if (value == 1)
        {
        UINT8 *buf = malloc( sx_size );
        memcpy( buf, rom, sx_size );

        for( i = 0; i < sx_size; i += 0x10 )
        {
        memcpy( &rom[ i ], &buf[ i + 8 ], 8 );
        memcpy( &rom[ i + 8 ], &buf[ i ], 8 );
        }
        free( buf );
        }
        else
        if (value == 2)
        {
        for( i = 0; i < sx_size; i++ )
        rom[ i ] = BITSWAP8( rom[ i ], 7, 6, 0, 4, 3, 2, 1, 5 );
    }
}
« Last Edit: December 04, 2005, 06:35:45 AM by KingHanco »

Offline Ashura-X

  • Member
  • ***
  • Posts: 138
  • Karma: +0/-0
Re: King of Gladiator (bootleg) - clone of kof97.
« Reply #14 on: December 04, 2005, 11:49:08 AM »
Well I´ve tried all this code on mame32plus source (my one) and still I have the same orange neogeo logo and no backgrounds at the start screen !!
Any clue about this issue ?