Page 1 of 1

Metal Slug 5 Plus

Posted: Sun Aug 14, 2022 8:40 am
by terminator2k2
just wandering if the game mapper/rom bank switching could be added for metal slug 5 plus rom to the core?

Re: Metal Slug 5 Plus

Posted: Mon Feb 20, 2023 9:33 pm
by Moondandy

OK, so in order to provide support for Metal Slug 5 Plus I have been informed that there needs to be a custom bankswitch mapper at 0x2FFFFX, here is the relevant Mame code

Code: Select all

case NEOGEO_MSLUG5P:
            space.install_read_handler(0x2ffff0, 0x2fffff, read16m_delegate(*m_slots[m_curr_slot], FUNC(neogeo_cart_slot_device::protection_r)));
            space.install_write_handler(0x2ffff0, 0x2fffff, write16sm_delegate(*this, FUNC(neogeo_base_state::write_bankprot_ms5p)));
            break;

Special function:

Code: Select all

void neogeo_base_state::write_bankprot_ms5p(offs_t offset, uint16_t data)
{
    logerror("ms5plus bankswitch - offset: %06x PC %06x: set banking %04x\n", offset, m_maincpu->pc(), data);

if ((offset == 0) && (data == 0xa0))
{
    m_bank_base = 0xa0;
    m_bank_cartridge->set_base((uint8_t *)m_slots[m_curr_slot]->get_rom_base() + m_bank_base);
}
else if (offset == 2)
{
    m_bank_base = m_slots[m_curr_slot]->get_bank_base(data);
    m_bank_cartridge->set_base((uint8_t *)m_slots[m_curr_slot]->get_rom_base() + m_bank_base);
}
}

There are a number of other Mappers in Mame for other unlicensed games, some of which seem to come from a big yellow coloured Chinese bootleg cart and worked on original hardware. You can see the code for these different games here:

Neo-Geo-Mappers.png
Neo-Geo-Mappers.png (975.49 KiB) Viewed 4577 times

Now, can someone help me figure out what the following games are? Three of them are presumably versions of The King of Fighters 2003, but what are their variant names?

CTHD2K3 = Crouching Tiger Hidden Dragon 2003
CT2K3SP = Crouching Tiger Hidden Dragon 2003 Super Plus
MSLUG5P = Metal Slug 5 Plus
KOG = King of Gladiator
KOF2K3B = ?
KOF2K3UP = ?
KOF2K3P = ?
SBP = Super Bubble Pop
KOF10TH = The King of Fighters 10th Anniversary 2005
JOCKEYGP - Jockey Grand Prix
VLINER = V-Liner

If we can figure these out then there is enough info now to get fleshed out tickets in GitHub and there is a chance a developer may be willing to add support. At least some of these should be pretty simple to add.


Re: Metal Slug 5 Plus

Posted: Tue Feb 21, 2023 3:43 pm
by MrSniffles

At a guess...

CTHD2K3 = Crouching Tiger Hidden Dragon 2003
CT2K3SP = Crouching Tiger Hidden Dragon 2003 Super Plus
KOG = King of Gladiator


Re: Metal Slug 5 Plus

Posted: Tue Aug 01, 2023 11:42 am
by terminator2k2

Big thank you, to Sorgelig for adding the Metal Slug 5 Plus rom banking, much appreciated


Re: Metal Slug 5 Plus

Posted: Fri Aug 04, 2023 6:04 am
by neogeo81

Didn't it already work before if you used the .neo file?


Re: Metal Slug 5 Plus

Posted: Sun Aug 06, 2023 7:15 am
by terminator2k2
neogeo81 wrote: Fri Aug 04, 2023 6:04 am

Didn't it already work before if you used the .neo file?

no it didnt work, even with a .neo