NeoGeo Art of Fighting, MAME style rom entry problem
Posted: Mon Sep 06, 2021 3:14 pm
Hello.
I have a question.
This code is mame style code for Art of Fighting.
https://github.com/MiSTer-devel/NeoGeo_ ... ter/xml.md
-----------------------------------------------------------------------------------------
Example MAME style rom entry
Below is an example of an XML entry for a MAME style ROM set.
<romset name="aof" pcm="1" altname="Art of Fighting">
<file name="044-p1.p1" type="P" index="4" offset="0"/>
<file name="044-s1.s1" type="S" index="8" offset="0"/>
<file name="044-c1.c1" type="C" index="64" offset="0"/>
<file name="044-c2.c2" type="C" index="65" offset="0"/>
<file name="044-c1.c1" type="C" index="72" offset="0x100000"/>
<file name="044-c2.c2" type="C" index="73" offset="0x100000"/>
<file name="044-c3.c3" type="C" index="68" offset="0"/>
<file name="044-c4.c4" type="C" index="69" offset="0"/>
<file name="044-c3.c3" type="C" index="76" offset="0x100000"/>
<file name="044-c4.c4" type="C" index="77" offset="0x100000"/>
<file name="044-m1.m1" type="M" index="9" offset="0"/>
<file name="044-v2.v2" type="V" index="16" offset="0"/>
<file name="044-v4.v4" type="V" index="20" offset="0"/>
</romset>
-----------------------------------------------------------------------------------------
When applied to romsets.xml, the graphic is broken.
MAME XML information :
------------------------------------------------------------------------------------
ROM_REGION( 0x800000, "cslot1:sprites", 0 )
ROM_LOAD16_BYTE( "044-c1.c1", 0x000000, 0x100000, ~~~~~~)
ROM_CONTINUE( 0x400000, 0x100000 )
ROM_LOAD16_BYTE( "044-c2.c2", 0x000001, 0x100000, ~~~~~~)
ROM_CONTINUE( 0x400001, 0x100000 )
ROM_LOAD16_BYTE( "044-c3.c3", 0x200000, 0x100000, ~~~~~~)
ROM_CONTINUE( 0x600000, 0x100000 )
ROM_LOAD16_BYTE( "044-c4.c4", 0x200001, 0x100000, ~~~~~~)
ROM_CONTINUE( 0x600001, 0x100000 )
------------------------------------------------------------------------------------
The c3 and c4 rom load addresses are 0x200000, 0x200001
So, I modified it as below. c3(index=68), c4(index=69)
--------------------------------------------------------------------------------------
<romset name="aof" pcm="1" altname="Art of Fighting">
<file name="044-p1.p1" type="P" index="4" offset="0"/>
<file name="044-s1.s1" type="S" index="8" offset="0"/>
<file name="044-c1.c1" type="C" index="64" offset="0"/>
<file name="044-c2.c2" type="C" index="65" offset="0"/>
<file name="044-c1.c1" type="C" index="72" offset="0x100000"/>
<file name="044-c2.c2" type="C" index="73" offset="0x100000"/>
<file name="044-c3.c3" type="C" index="68" offset="0x200000"/>
<file name="044-c4.c4" type="C" index="69" offset="0x200000"/>
<file name="044-c3.c3" type="C" index="76" offset="0x100000"/>
<file name="044-c4.c4" type="C" index="77" offset="0x100000"/>
<file name="044-m1.m1" type="M" index="9" offset="0"/>
<file name="044-v2.v2" type="V" index="16" offset="0"/>
<file name="044-v4.v4" type="V" index="20" offset="0"/>
</romset>
--------------------------------------------------------------------------------------
Only player character graphics are broken.
Is there any solution?
I have a question.
This code is mame style code for Art of Fighting.
https://github.com/MiSTer-devel/NeoGeo_ ... ter/xml.md
-----------------------------------------------------------------------------------------
Example MAME style rom entry
Below is an example of an XML entry for a MAME style ROM set.
<romset name="aof" pcm="1" altname="Art of Fighting">
<file name="044-p1.p1" type="P" index="4" offset="0"/>
<file name="044-s1.s1" type="S" index="8" offset="0"/>
<file name="044-c1.c1" type="C" index="64" offset="0"/>
<file name="044-c2.c2" type="C" index="65" offset="0"/>
<file name="044-c1.c1" type="C" index="72" offset="0x100000"/>
<file name="044-c2.c2" type="C" index="73" offset="0x100000"/>
<file name="044-c3.c3" type="C" index="68" offset="0"/>
<file name="044-c4.c4" type="C" index="69" offset="0"/>
<file name="044-c3.c3" type="C" index="76" offset="0x100000"/>
<file name="044-c4.c4" type="C" index="77" offset="0x100000"/>
<file name="044-m1.m1" type="M" index="9" offset="0"/>
<file name="044-v2.v2" type="V" index="16" offset="0"/>
<file name="044-v4.v4" type="V" index="20" offset="0"/>
</romset>
-----------------------------------------------------------------------------------------
When applied to romsets.xml, the graphic is broken.
MAME XML information :
------------------------------------------------------------------------------------
ROM_REGION( 0x800000, "cslot1:sprites", 0 )
ROM_LOAD16_BYTE( "044-c1.c1", 0x000000, 0x100000, ~~~~~~)
ROM_CONTINUE( 0x400000, 0x100000 )
ROM_LOAD16_BYTE( "044-c2.c2", 0x000001, 0x100000, ~~~~~~)
ROM_CONTINUE( 0x400001, 0x100000 )
ROM_LOAD16_BYTE( "044-c3.c3", 0x200000, 0x100000, ~~~~~~)
ROM_CONTINUE( 0x600000, 0x100000 )
ROM_LOAD16_BYTE( "044-c4.c4", 0x200001, 0x100000, ~~~~~~)
ROM_CONTINUE( 0x600001, 0x100000 )
------------------------------------------------------------------------------------
The c3 and c4 rom load addresses are 0x200000, 0x200001
So, I modified it as below. c3(index=68), c4(index=69)
--------------------------------------------------------------------------------------
<romset name="aof" pcm="1" altname="Art of Fighting">
<file name="044-p1.p1" type="P" index="4" offset="0"/>
<file name="044-s1.s1" type="S" index="8" offset="0"/>
<file name="044-c1.c1" type="C" index="64" offset="0"/>
<file name="044-c2.c2" type="C" index="65" offset="0"/>
<file name="044-c1.c1" type="C" index="72" offset="0x100000"/>
<file name="044-c2.c2" type="C" index="73" offset="0x100000"/>
<file name="044-c3.c3" type="C" index="68" offset="0x200000"/>
<file name="044-c4.c4" type="C" index="69" offset="0x200000"/>
<file name="044-c3.c3" type="C" index="76" offset="0x100000"/>
<file name="044-c4.c4" type="C" index="77" offset="0x100000"/>
<file name="044-m1.m1" type="M" index="9" offset="0"/>
<file name="044-v2.v2" type="V" index="16" offset="0"/>
<file name="044-v4.v4" type="V" index="20" offset="0"/>
</romset>
--------------------------------------------------------------------------------------
Only player character graphics are broken.
Is there any solution?