Author Topic: King of Fighters 10th Anniversary Edition  (Read 83420 times)

Offline neo04

  • Jr. Member
  • **
  • Posts: 90
  • Karma: +1/-0
Re: King of Fighters 10th Anniversary Edition
« Reply #45 on: November 16, 2005, 09:35:51 PM »
your neogeo.c is dated ahead of time... this is the problem with mameplus's v0.101 if i remembered it correctly...
to fix this, just correct the modiffied time for the file (edit it or something)

if u use 0.101 src, keep it like this:
Quote
ROM_REGION( 0x1000000, REGION_SOUND1, ROMREGION_SOUNDONLY )

if u use 0.102 src, change it to this:
Quote
ROM_REGION( 0x1000000, REGION_SOUND1, 0)

also, u must add a new line at the end of the neogeo.c file... just press 'enter' after the end of src to make a new line

Offline KingHanco

  • Sr. Member
  • ****
  • Posts: 401
  • Karma: +0/-4
  • "Special " Member
Re: King of Fighters 10th Anniversary Edition
« Reply #46 on: November 16, 2005, 10:00:40 PM »
your neogeo.c is dated ahead of time... this is the problem with mameplus's v0.101 if i remembered it correctly...
to fix this, just correct the modiffied time for the file (edit it or something)

if u use 0.101 src, keep it like this:
if u use 0.102 src, change it to this:
also, u must add a new line at the end of the neogeo.c file... just press 'enter' after the end of src to make a new line

What newline?

I get an error. There no newline at the end of file.

I will push enter.

Edit...Heh...It didn't make.
« Last Edit: November 17, 2005, 05:43:43 PM by KingHanco »

Offline iq_132

  • Administrator
  • *****
  • Posts: 3728
  • Karma: +411/-0
  • Definitely not Dink!
    • NeoSource
Re: King of Fighters 10th Anniversary Edition
« Reply #47 on: November 16, 2005, 11:19:09 PM »
Go to the very end of neogeo.c, at the very end, after all of the code, every bit of it.
Put your cursor there and then hit the "ENTER" button.  Then try it.


Offline KingHanco

  • Sr. Member
  • ****
  • Posts: 401
  • Karma: +0/-4
  • "Special " Member
Re: King of Fighters 10th Anniversary Edition
« Reply #48 on: November 17, 2005, 01:12:52 AM »
I got the make done now.

But it not on the Mame32 list.

Now it need to be added to the Mame32 list.

I wonder what happen?

Look like it gotting skip on the making this time.

It weard...

This is confusing me now because it wasn't added on.

Edit: The link to the tempuary stuffs is removed.
« Last Edit: November 17, 2005, 05:50:28 PM by KingHanco »

Offline James33

  • Expert
  • *****
  • Posts: 532
  • Karma: +3/-0
  • The Mame Man
    • Emulation Zone
Re: King of Fighters 10th Anniversary Edition
« Reply #49 on: November 17, 2005, 04:48:10 AM »
Ok I will have a look

You did not add the needed code to driver.c

« Last Edit: November 17, 2005, 04:58:28 AM by James33 »
IQ Forum Member

Offline KingHanco

  • Sr. Member
  • ****
  • Posts: 401
  • Karma: +0/-4
  • "Special " Member
Re: King of Fighters 10th Anniversary Edition
« Reply #50 on: November 17, 2005, 05:00:21 AM »
Ok I will have a look

You did not add the needed code to driver.c



This Driver( kof10th ) /* Bootleg kof2002 hack */ was in there. I think I removed it.

I talking to CrashTest. He think Aaron's Anti Crap (tm). He problemy joking.

Offline James33

  • Expert
  • *****
  • Posts: 532
  • Karma: +3/-0
  • The Mame Man
    • Emulation Zone
Re: King of Fighters 10th Anniversary Edition
« Reply #51 on: November 17, 2005, 08:51:34 AM »
When I checked your source that was missing .
IQ Forum Member

Offline KingHanco

  • Sr. Member
  • ****
  • Posts: 401
  • Karma: +0/-4
  • "Special " Member
Re: King of Fighters 10th Anniversary Edition
« Reply #52 on: November 17, 2005, 03:44:10 PM »
When I checked your source that was missing .

There I added it back in there.

Do a make and you will get the crazy screen problem like I did by using my source.

It will not work. Trust me.

Have you try it yet by using my source? It broking.
« Last Edit: November 17, 2005, 05:42:53 PM by KingHanco »

Offline KingHanco

  • Sr. Member
  • ****
  • Posts: 401
  • Karma: +0/-4
  • "Special " Member
Re: King of Fighters 10th Anniversary Edition
« Reply #53 on: November 17, 2005, 04:23:30 PM »
There I added it back in there.

Do a make and you will get the crazy screen problem like I did by using my source.

It will not work. Trust me.

Have you try it yet by using my source? It broking.

See...
« Last Edit: November 17, 2005, 05:43:07 PM by KingHanco »

Offline iq_132

  • Administrator
  • *****
  • Posts: 3728
  • Karma: +411/-0
  • Definitely not Dink!
    • NeoSource
Re: King of Fighters 10th Anniversary Edition
« Reply #54 on: November 17, 2005, 05:14:29 PM »
You didn't happen to notice that every other occurrance of "DRIVER(" in driver.c is upper case?

Change this:

 
Code: [Select]
       Driver( kof10th ) /* Bootleg kof2002 hack */to this:
Code: [Select]
        DRIVER( kof10th ) /* Bootleg kof2002 hack */


Offline KingHanco

  • Sr. Member
  • ****
  • Posts: 401
  • Karma: +0/-4
  • "Special " Member
Re: King of Fighters 10th Anniversary Edition
« Reply #55 on: November 17, 2005, 05:48:16 PM »
Thanks that works.

It showing on the Mame32 list now.

I removed all the pictures and zips. I also removed the link to my tempuary stuffs.
« Last Edit: November 17, 2005, 05:50:59 PM by KingHanco »

Offline iq_132

  • Administrator
  • *****
  • Posts: 3728
  • Karma: +411/-0
  • Definitely not Dink!
    • NeoSource
Re: King of Fighters 10th Anniversary Edition
« Reply #56 on: November 17, 2005, 05:58:26 PM »
I removed all the pictures and zips. I also removed the link to my tempuary stuffs.
I appreciate that :)  I only have a limited amount of server space and tons of big attachments eat it up quickly.


Offline KingHanco

  • Sr. Member
  • ****
  • Posts: 401
  • Karma: +0/-4
  • "Special " Member
Re: King of Fighters 10th Anniversary Edition
« Reply #57 on: November 17, 2005, 07:24:02 PM »
I test the game out. There is some junks on the NEOGEO screen.

Everything else I think is fine.

Now I need to get the Mame32 name into Mame32-X in the source. I need to find the Mame32 in the source to change it. It should be very easy to do.

Offline iq_132

  • Administrator
  • *****
  • Posts: 3728
  • Karma: +411/-0
  • Definitely not Dink!
    • NeoSource
Re: King of Fighters 10th Anniversary Edition
« Reply #58 on: November 17, 2005, 10:52:02 PM »
I test the game out. There is some junks on the NEOGEO screen.
It's like that on real hardware.


Offline KingHanco

  • Sr. Member
  • ****
  • Posts: 401
  • Karma: +0/-4
  • "Special " Member
Re: King of Fighters 10th Anniversary Edition
« Reply #59 on: December 04, 2005, 02:46:16 AM »
lmao! Why are you using that shitty code?

I trying out the bottom half.

The sounds won't work anymore after using the WinKawaks 1.55 roms version. Razoola put the older kof10th v1 and v2 roms on WinKawaks 1.55.

Do you know how to fixs it? The neo_pcm2_playmore_2002(0); will work in this bellow.

Code: [Select]
static UINT16 kof10thExtraRAMB[0x01000];

static void kof10thBankswitch(unsigned int nBank)
{
nBank = 0x100000 + ((nBank & 7) << 20);
if (nBank >= 0x700000)
nBank = 0x100000;
neogeo_set_cpu1_second_bank(nBank);
}

READ16_HANDLER( kof10th_RAMB_r )
{
return kof10thExtraRAMB[offset];
}

WRITE16_HANDLER( kof10th_custom_w )
{
if (!kof10thExtraRAMB[0xFFE]) { // Write to RAM bank A
UINT16 *prom = (UINT16*)memory_region( REGION_CPU1 );
COMBINE_DATA(&prom[(0xE0000/2) + (offset & 0xFFFF)]);
} else {
// S data should be written here...
}
}

static WRITE16_HANDLER( kof10th_bankswitch_w )
{
if (offset >= 0x5F000) {
if (offset == 0x5FFF8) { // Standard bankswitch
kof10thBankswitch(data);
} else if (offset == 0x5FFFC && kof10thExtraRAMB[0xFFC] != data) {
UINT8 *src = memory_region( REGION_CPU1 );
memcpy (src + 0x400,  src + ((data & 1) ? 0x800400 : 0x700400), 0xdfbff);
}
COMBINE_DATA(&kof10thExtraRAMB[offset & 0xFFF]);
} else {
// Usually writes 0x8EF3 or 0x7DF3, sometimes writes 0x0003 to offset 0x25FFF0
}
}

DRIVER_INIT( kof10th )
{
int i, j;
UINT8 *dst = malloc(0x900000);
UINT8 *src = memory_region( REGION_CPU1 );
UINT8 *srm = memory_region( REGION_GFX1 );

if (dst) {
memcpy(dst + 0x000000, src + 0x600000, 0x100000); // Correct?
memcpy(dst + 0x100000, src + 0x000000, 0x800000);
for (i = 0; i < 0x900000; i++) {
j = (i&0xFFF000) + BITSWAP16(i&0xFFF,15,14,13,12,11,2,9,8,7,1,5,4,3,10,6,0);
src[j] = dst[i];
}
free(dst);
                neo_pcm2_swap(0);
}

// Altera protection chip patches these over P ROM
((UINT16*)src)[0x0124/2] = 0x000d; // Enables XOR for RAM moves, forces SoftDIPs, and USA region
((UINT16*)src)[0x0126/2] = 0xf7a8;

((UINT16*)src)[0x8bf4/2] = 0x4ef9; // Run code to change "S" data
((UINT16*)src)[0x8bf6/2] = 0x000d;
((UINT16*)src)[0x8bf8/2] = 0xf980;

  for (i = 0; i < 0x10000; i++) { // Get S data, should be done on the fly
  srm[0x00000+(i^1)]=BITSWAP8(src[0x600000+i]^0xf3,7,6,0,4,3,2,1,5);
  srm[0x10000+(i^1)]=BITSWAP8(src[0x6d0000+i]^0xf3,7,6,0,4,3,2,1,5);
}
  for (i = 0; i < 0x04000; i++) {
srm[0x02000+(i^1)]=BITSWAP8(src[0x6c2000+i]^0xf3,7,6,0,4,3,2,1,5);
srm[0x12000+(i^1)]=BITSWAP8(src[0x612000+i]^0xf3,7,6,0,4,3,2,1,5);
}

init_neogeo();

memory_install_read16_handler(0,  ADDRESS_SPACE_PROGRAM, 0x2fe000, 0x2fffff, 0, 0, kof10th_RAMB_r);
memory_install_write16_handler(0, ADDRESS_SPACE_PROGRAM, 0x200000, 0x23ffff, 0, 0, kof10th_custom_w);
memory_install_write16_handler(0, ADDRESS_SPACE_PROGRAM, 0x240000, 0x2fffff, 0, 0, kof10th_bankswitch_w);
}

The sounds still cracky added in there anyway.