Genesis M&M2

Not tested, based on the DOS-profile of MM2
genesis_plus_gx core used

<?xml version="1.0" encoding="UTF-8" ?>
<gamelink>

    <card
        title="MIGHT & MAGIC II - GATES TO ANOTHER WORLD"
        short="MIGHT & MAGIC II"
        titlelo="Might & Magic II"
        sort_name="Might & Magic II Genesis (E)"
        system="GENESIS"
        beta="true"
    />

    <libretro>

    <!-- Might and Magic - Gates to Another World (USA, Europe) -->
        <detect system="GENESIS">
            <content_hash>d86b6d7381ef67ecb5391eddb6857bf9d15b1e402da6bfc42cb003186599cbff</content_hash>
            <peek bytes="F3A5 F3A7 F3B5 F3A3" />
        </detect>

    </libretro>

    <regions>

        <region id="80" name="Cron" ground_floor="true" start_floor="G" >
            <grid width="16" height="16" tilex="5" tiley="4"
                label_major="true"
                natural_rows="true"
                x_letters="true" />
        </region>

        <region id="1" name="Middlegate" ground_floor="true" start_floor="G" auto_create="true" >
            <grid width="16" height="16" />
        </region>

        <region id="2" name="Atlantium" ground_floor="true" start_floor="G" >
            <grid width="16" height="16" />
        </region>

        <region id="3" name="Tundara" ground_floor="true" start_floor="G" >
            <grid width="16" height="16" />
        </region>

        <region id="4" name="Vulcania" ground_floor="true" start_floor="G" >
            <grid width="16" height="16" />
        </region>

        <region id="5" name="Sandsobar" ground_floor="true" start_floor="G" >
            <grid width="16" height="16" />
        </region>

        <region id="7" name="Castle Hillstone" ground_floor="true" start_floor="G" >
            <grid width="16" height="16" />
        </region>

        <region id="8" name="Corak's Cave" ground_floor="true" start_floor="G" >
            <grid width="16" height="16" />
        </region>

        <region id="9" name="Castle Woodhaven" ground_floor="true" start_floor="G" >
            <grid width="16" height="16" />
        </region>

        <region id="10" name="Murray's Cave" ground_floor="true" start_floor="G" >
            <grid width="16" height="16" />
        </region>

        <region id="11" name="Castle Pinehurst" ground_floor="true" start_floor="G" >
            <grid width="16" height="16" />
        </region>

        <region id="12" name="Luxus Palace" ground_floor="true" start_floor="G" >
            <grid width="16" height="16" />
        </region>

        <region id="13" name="Water Plane" ground_floor="true" start_floor="G" >
            <grid width="16" height="16" />
        </region>

        <region id="14" name="Air Plane" ground_floor="true" start_floor="G" >
            <grid width="16" height="16" />
        </region>

        <region id="15" name="Earth Plane" ground_floor="true" start_floor="G" >
            <grid width="16" height="16" />
        </region>

        <region id="16" name="Fire Plane" ground_floor="true" start_floor="G" >
            <grid width="16" height="16" />
        </region>

        <region id="17" name="Sarakin's Mine" ground_floor="true" start_floor="G" >
            <grid width="16" height="16" />
        </region>

        <region id="18" name="Druids' Cave" ground_floor="true" start_floor="G" >
            <grid width="16" height="16" />
        </region>

        <region id="19" name="Dragon's Dominion" ground_floor="true" start_floor="G" >
            <grid width="16" height="16" />
        </region>

        <region id="20" name="Ice Caverns" ground_floor="true" start_floor="G" >
            <grid width="16" height="16" />
        </region>

        <region id="21" name="Xabran" ground_floor="true" start_floor="G" >
            <grid width="16" height="16" />
        </region>

        <region id="22" name="Square Lake" ground_floor="true" start_floor="G" >
            <grid width="16" height="16" />
        </region>

        <region id="23" name="Frost Dragon's Cave" ground_floor="true" start_floor="G" >
            <grid width="16" height="16" />
        </region>

        <region id="24" name="Nomadic Rift" ground_floor="true" start_floor="G" >
            <grid width="16" height="16" />
        </region>

        <region id="25" name="Isle of Evil" ground_floor="true" start_floor="G" >
            <grid width="16" height="16" />
        </region>

        <region id="26" name="Isle of Good" ground_floor="true" start_floor="G" >
            <grid width="16" height="16" />
        </region>

        <region id="27" name="Dawn's Cavern" ground_floor="true" start_floor="G" >
            <grid width="16" height="16" />
        </region>

        <region id="28" name="Gemmaker's Cave" ground_floor="true" start_floor="G" >
            <grid width="16" height="16" />
        </region>

    </regions>

    <views>

        <!-- CLASSES -->

        <class name="base">
            <xpos offset="0" length="1" min="0" max="13" />
            <ypos offset="1" length="1" min="0" max="13" />
            <face offset="2" length="1" n="4e" e="45" s="53" w="57" />
         </class>

        <!-- TOWNS -->

        <!-- Middlegate (surface) -->
        <packetview extends="base" region="1">
            <check offset="3" length="1" value="00" />
            <const_floor>G</const_floor>
        </packetview>

        <!-- Middlegate (cavern) -->
        <packetview extends="base" region="1">
            <check offset="3" length="1" value="11" />
            <const_floor>B1</const_floor>
        </packetview>

        <!-- Atlantium (surface) -->
        <packetview extends="base" region="2">
            <check offset="3" length="1" value="01" />
            <const_floor>G</const_floor>
        </packetview>

        <!-- Atlantium (cavern) -->
        <packetview extends="base" region="2">
            <check offset="3" length="1" value="12" />
            <const_floor>B1</const_floor>
        </packetview>

        <!-- Tundara (surface) -->
        <packetview extends="base" region="3">
            <check offset="3" length="1" value="02" />
            <const_floor>G</const_floor>
        </packetview>

        <!-- Tundara (cavern) -->
        <packetview extends="base" region="3">
            <check offset="3" length="1" value="13" />
            <const_floor>B1</const_floor>
        </packetview>

        <!-- Vulcania (surface) -->
        <packetview extends="base" region="4">
            <check offset="3" length="1" value="03" />
            <const_floor>G</const_floor>
        </packetview>

        <!-- Vulcania (cavern) -->
        <packetview extends="base" region="4">
            <check offset="3" length="1" value="14" />
            <const_floor>B1</const_floor>
        </packetview>

        <!-- Sandsobar (surface) -->
        <packetview extends="base" region="5">
            <check offset="3" length="1" value="04" />
            <const_floor>G</const_floor>
        </packetview>

        <!-- Sandsobar (cavern) -->
        <packetview extends="base" region="5">
            <check offset="3" length="1" value="15" />
            <const_floor>B1</const_floor>
        </packetview>

        <!-- CASTLES -->

        <!-- Castle Hillstone -->
        <packetview extends="base" region="7">
            <check offset="3" length="1" value="37" />
            <const_floor>G</const_floor>
        </packetview>
        <packetview extends="base" region="7">
            <check offset="3" length="1" value="2d" />
            <const_floor>B1</const_floor>
        </packetview>
        <packetview extends="base" region="7">
            <check offset="3" length="1" value="2e" />
            <const_floor>B2</const_floor>
        </packetview>

        <!-- Luxus Palace -->
        <packetview extends="base" region="12">
            <check offset="3" length="1" value="3a" />
            <const_floor>G</const_floor>
        </packetview>
        <packetview extends="base" region="12">
            <check offset="3" length="1" value="33" />
            <const_floor>B1</const_floor>
        </packetview>
        <packetview extends="base" region="12">
            <check offset="3" length="1" value="34" />
            <const_floor>B2</const_floor>
        </packetview>

        <!-- Castle Pinehurst -->
        <packetview extends="base" region="11">
            <check offset="3" length="1" value="39" />
            <const_floor>G</const_floor>
        </packetview>
        <packetview extends="base" region="11">
            <check offset="3" length="1" value="31" />
            <const_floor>B1</const_floor>
        </packetview>
        <packetview extends="base" region="11">
            <check offset="3" length="1" value="32" />
            <const_floor>B2</const_floor>
        </packetview>

        <!-- Castle Woodhaven -->
        <packetview extends="base" region="9">
            <check offset="3" length="1" value="38" />
            <const_floor>G</const_floor>
        </packetview>
        <packetview extends="base" region="9">
            <check offset="3" length="1" value="2f" />
            <const_floor>B1</const_floor>
        </packetview>
        <packetview extends="base" region="9">
            <check offset="3" length="1" value="30" />
            <const_floor>B2</const_floor>
        </packetview>

        <!-- DUNGEONS -->

        <!-- Corak's Cave -->
        <packetview extends="base" region="8">
            <check offset="3" length="1" value="16" />
            <const_floor>G</const_floor>
        </packetview>

        <!-- Square Lake -->
        <packetview extends="base" region="22">
            <check offset="3" length="1" value="17" />
            <const_floor>G</const_floor>
        </packetview>

        <!-- Ice Caverns -->
        <packetview extends="base" region="20">
            <check offset="3" length="1" value="18" />
            <const_floor>G</const_floor>
        </packetview>

        <!-- Sarakin's Mine -->
        <packetview extends="base" region="17">
            <check offset="3" length="1" value="19" />
            <const_floor>G</const_floor>
        </packetview>

        <!-- Murray's Cave -->
        <packetview extends="base" region="10">
            <check offset="3" length="1" value="1a" />
            <const_floor>G</const_floor>
        </packetview>

        <!-- Druids' Cave -->
        <packetview extends="base" region="18">
            <check offset="3" length="1" value="1b" />
            <const_floor>G</const_floor>
        </packetview>

        <!-- Frost Dragon's Cave -->
        <packetview extends="base" region="23">
            <check offset="3" length="1" value="1c" />
            <const_floor>G</const_floor>
        </packetview>

        <!-- Dragon's Dominion -->
        <packetview extends="base" region="19">
            <check offset="3" length="1" value="1d" />
            <const_floor>G</const_floor>
        </packetview>

        <!-- Nomadic Rift -->
        <packetview extends="base" region="24">
            <check offset="3" length="1" value="20" />
            <const_floor>G</const_floor>
        </packetview>

        <!-- Isle of Evil -->
        <packetview extends="base" region="25">
            <check offset="3" length="1" value="35" />
            <const_floor>G</const_floor>
        </packetview>

        <!-- Isle of Good -->
        <packetview extends="base" region="26">
            <check offset="3" length="1" value="36" />
            <const_floor>G</const_floor>
        </packetview>

        <!-- Xabran -->
        <packetview extends="base" region="21">
            <check offset="3" length="1" value="3b" />
            <const_floor>G</const_floor>
        </packetview>

        <!-- Dawn's Cavern -->
        <packetview extends="base" region="27">
            <check offset="3" length="1" value="1e" />
            <const_floor>G</const_floor>
        </packetview>

        <!-- Gemmaker's Cave -->
        <packetview extends="base" region="28">
            <check offset="3" length="1" value="1f" />
            <const_floor>G</const_floor>
        </packetview>

        <!-- CRON -->

        <!-- (A1) -->
        <packetview extends="base" region="80">
            <check offset="3" length="1" value="05" />
            <move x="0" y="-48" />
        </packetview>

        <!-- (B1) -->
        <packetview extends="base" region="80">
            <check offset="3" length="1" value="06" />
            <move x="16" y="-48" />
        </packetview>

        <!-- (C1) -->
        <packetview extends="base" region="80">
            <check offset="3" length="1" value="07" />
            <move x="32" y="-48" />
        </packetview>

        <!-- (D1) -->
        <packetview extends="base" region="80">
            <check offset="3" length="1" value="08" />
            <move x="48" y="-48" />
        </packetview>

        <!-- (E1) -->
        <packetview extends="base" region="80">
            <check offset="3" length="1" value="21" />
            <move x="64" y="-48" />
        </packetview>

        <!-- (A2) -->
        <packetview extends="base" region="80">
            <check offset="3" length="1" value="09" />
            <move x="0" y="-32" />
        </packetview>

        <!-- (B2) -->
        <packetview extends="base" region="80">
            <check offset="3" length="1" value="0a" />
            <move x="16" y="-32" />
        </packetview>

        <!-- (C2) -->
        <packetview extends="base" region="80">
            <check offset="3" length="1" value="0b" />
            <move x="32" y="-32" />
        </packetview>

        <!-- (D2) -->
        <packetview extends="base" region="80">
            <check offset="3" length="1" value="22" />
            <move x="48" y="-32" />
        </packetview>

        <!-- (E2) -->
        <packetview extends="base" region="80">
            <check offset="3" length="1" value="23" />
            <move x="64" y="-32" />
        </packetview>

        <!-- (A3) -->
        <packetview extends="base" region="80">
            <check offset="3" length="1" value="0c" />
            <move x="0" y="-16" />
        </packetview>

        <!-- (B3) -->
        <packetview extends="base" region="80">
            <check offset="3" length="1" value="0d" />
            <move x="16" y="-16" />
        </packetview>

        <!-- (C3) -->
        <packetview extends="base" region="80">
            <check offset="3" length="1" value="0e" />
            <move x="32" y="-16" />
        </packetview>

        <!-- (D3) -->
        <packetview extends="base" region="80">
            <check offset="3" length="1" value="24" />
            <move x="48" y="-16" />
        </packetview>

        <!-- (E3) -->
        <packetview extends="base" region="80">
            <check offset="3" length="1" value="25" />
            <move x="64" y="-16" />
        </packetview>

        <!-- (A4) -->
        <packetview extends="base" region="80">
            <check offset="3" length="1" value="0f" />
            <move x="0" y="0" />
        </packetview>

        <!-- (B4) -->
        <packetview extends="base" region="80">
            <check offset="3" length="1" value="10" />
            <move x="16" y="0" />
        </packetview>

        <!-- (C4) -->
        <packetview extends="base" region="80">
            <check offset="3" length="1" value="26" />
            <move x="32" y="0" />
        </packetview>

        <!-- (D4) -->
        <packetview extends="base" region="80">
            <check offset="3" length="1" value="27" />
            <move x="48" y="0" />
        </packetview>

        <!-- (E4) -->
        <packetview extends="base" region="80">
            <check offset="3" length="1" value="28" />
            <move x="64" y="0" />
        </packetview>

        <!-- ELEMENTAL PLANES -->

        <!-- Air Plane -->
        <packetview extends="base" region="14">
            <check offset="3" length="1" value="29" />
            <const_floor>G</const_floor>
        </packetview>

        <!-- Fire Plane -->
        <packetview extends="base" region="16">
            <check offset="3" length="1" value="2a" />
            <const_floor>G</const_floor>
        </packetview>

        <!-- Earth Plane -->
        <packetview extends="base" region="15">
            <check offset="3" length="1" value="2b" />
            <const_floor>G</const_floor>
        </packetview>

        <!-- Water Plane -->
        <packetview extends="base" region="13">
            <check offset="3" length="1" value="2c" />
            <const_floor>G</const_floor>
        </packetview>

    </views>

</gamelink>
Unless otherwise stated, the content of this page is licensed under Creative Commons Attribution-ShareAlike 3.0 License