HELP WANTED: MRA file converter for MiST

https://github.com/mist-devel/mist-board/wiki

Moderators: Mug UK, Zorro 2, spiny, Greenious, Moderator Team

Post Reply
sebdel
Captain Atari
Captain Atari
Posts: 234
Joined: Fri Dec 30, 2005 9:29 am

Re: HELP WANTED: MRA file converter for MiST

Post by sebdel »

brunosilva wrote:
sebdel wrote:
brunosilva wrote:@sedbel, did you implement the list of zip files here? or just in part? i think just in part

<rom index="0" zip="alienar.zip|alienaru.zip" md5="342b7d5d91dc2cd81f7f193b076555d2">
No, I only did it for rom. I was under the impression that zip in part was deprecated.
Why? It's not working for you?

Re: setname. I cut them to 8 chars and replace a bunch of characters by '_':

Code: Select all

char bad_chars[] = " !@%^*~<>|:?'\"";
nop. this zip part is where most of zip references are now :)
another example: https://github.com/MiSTer-devel/Arcade- ... Amidar.mra
This is already implemented. You tried and it didn't work? What's the problem exactly?
Sorgelig
Ultimate Atarian
Ultimate Atarian
Posts: 6348
Joined: Mon Dec 14, 2015 10:51 am
Location: Russia/Taiwan

Re: HELP WANTED: MRA file converter for MiST

Post by Sorgelig »

jotego wrote:I think I can ommit the md5 sum if all files are referenced to by CRC.
with CRC you can omit md5. use md5="none" so MiSTer will ignore it.
Sorgelig
Ultimate Atarian
Ultimate Atarian
Posts: 6348
Joined: Mon Dec 14, 2015 10:51 am
Location: Russia/Taiwan

Re: HELP WANTED: MRA file converter for MiST

Post by Sorgelig »

<interleave> node on MiSTer does several tasks. It's not only for interleaving several parts, but also can be used to swap the bytes in a single part. map="21" will swap the bytes of the part.
User avatar
jotego
Captain Atari
Captain Atari
Posts: 235
Joined: Wed May 04, 2016 10:02 am
Location: Valencia (Spain)
Contact:

Re: HELP WANTED: MRA file converter for MiST

Post by jotego »

Sorgelig wrote:<interleave> node on MiSTer does several tasks. It's not only for interleaving several parts, but also can be used to swap the bytes in a single part. map="21" will swap the bytes of the part.
The <group> node does that too. It looks like we implemented the same functionality roughly at the same time with two different names.
--
Source code of all my cores here.
My Patreon page here.
sebdel
Captain Atari
Captain Atari
Posts: 234
Joined: Fri Dec 30, 2005 9:29 am

Re: HELP WANTED: MRA file converter for MiST

Post by sebdel »

jotego wrote:
Sorgelig wrote:<interleave> node on MiSTer does several tasks. It's not only for interleaving several parts, but also can be used to swap the bytes in a single part. map="21" will swap the bytes of the part.
The <group> node does that too. It looks like we implemented the same functionality roughly at the same time with two different names.
Question: how do you know if a ROM can run on the MiST? I mean, is there any way to test an arcade core that has <interleave /> in the MRA on the MiST if I send you a proper MRA file?
For example, if I understood the map attribute correctly, here's the mistified MRA for Crater Raider:

Code: Select all

<misterromdescription>
	<name>Crater Raider</name>
	<mameversion>0216</mameversion>
	<mratimestamp>201912310000</mratimestamp>
	<year>1984</year>
	<manufacturer>Bally Midway</manufacturer>
	<category>Action</category>
	<rbf>mcr3scroll</rbf>
	<setname>crater</setname>
	<switches default="FF 00">
		<dip bits="8"    name="Service" ids="Off,On"/>
	</switches>
	<buttons names="Fire,Shield,-,-,Start 2P,Start 1P,Coin" default="A,B,Select,Start,R"/>
	<rom index="1">
		<part>2</part>
	</rom>
	<rom index="0" zip="crater.zip" md5="3e955ef6ec3c456981e04117864fcc48" type="merged|nonmerged">
		<part crc="ad31f127" name="crcpu.6d"/>
		<part crc="3743c78f" name="crcpu.7d"/>
		<part crc="c95f9088" name="crcpu.8d"/>
		<part crc="a03c4b11" name="crcpu.9d"/>
		<part crc="44ae4cbd" name="crcpu.10d"/>
		<part repeat="0x4000">FF</part>
		<part crc="fd666cb5" name="crsnd4.a7"/>
		<part crc="90bf2c4c" name="crsnd1.a8"/>		
		<part crc="3b8deef1" name="crsnd2.a9"/>
		<part crc="05803453" name="crsnd3.a10"/>	
		<part repeat="0x6000">00</part>
		<group width="32">
			<part crc="579a8e36" name="crvid.a4" />
			<part crc="5bf954e0" name="crvid.a6" />
			<part crc="4b913498" name="crvid.a8" />
			<part crc="7a22d6bc" name="crvid.a10" />
		</group>
		<group width="32">
			<part crc="2c2f5b29" name="crvid.a3" />
			<part crc="9bdec312" name="crvid.a5" />
			<part crc="9fa307d5" name="crvid.a7" />
			<part crc="811f152d" name="crvid.a9" />
		</group>
		<part crc="9d73504a" name="crcpu.3a"/>
		<part crc="42a47dff" name="crcpu.4a"/>
		<part crc="2fe4a6e1" name="crcpu.5a"/>		
		<part crc="d0659042" name="crcpu.6a"/>
		<part crc="6fe53c8d" name="crcpu.10g"/>
	</rom>
</misterromdescription>
Any way to test that?
slingshot
Atari God
Atari God
Posts: 1883
Joined: Mon Aug 06, 2018 3:05 pm

Re: HELP WANTED: MRA file converter for MiST

Post by slingshot »

Only with modifying the code, the cores do the byte-shuffling in HDL:
https://github.com/Gehstock/Mist_FPGA/b ... ST.sv#L163
sebdel
Captain Atari
Captain Atari
Posts: 234
Joined: Fri Dec 30, 2005 9:29 am

Re: HELP WANTED: MRA file converter for MiST

Post by sebdel »

slingshot wrote:Only with modifying the code, the cores do the byte-shuffling in HDL:
https://github.com/Gehstock/Mist_FPGA/b ... ST.sv#L163
Why are we doing this then? Is it so you can run more games on the same hardware by externalising the byte-shuffling and other config stuff?
slingshot
Atari God
Atari God
Posts: 1883
Joined: Mon Aug 06, 2018 3:05 pm

Re: HELP WANTED: MRA file converter for MiST

Post by slingshot »

sebdel wrote: Why are we doing this then? Is it so you can run more games on the same hardware by externalising the byte-shuffling and other config stuff?
When I wrote this code, the MRA tool didn't exist even in imagination, so I had to solve it somehow. But in the future it can be useful (Jotego requested it at the first place for his CPS1 core).
sebdel
Captain Atari
Captain Atari
Posts: 234
Joined: Fri Dec 30, 2005 9:29 am

Re: HELP WANTED: MRA file converter for MiST

Post by sebdel »

slingshot wrote:
sebdel wrote: Why are we doing this then? Is it so you can run more games on the same hardware by externalising the byte-shuffling and other config stuff?
When I wrote this code, the MRA tool didn't exist even in imagination, so I had to solve it somehow. But in the future it can be useful (Jotego requested it at the first place for his CPS1 core).
I see, you don't really need interleave. I'll see with Jotego then.
Still, I'd like to try to generate a valid rom with interleaved video, just for testing purpose. I see other differences too: the Mister memory map has 16KB and 24KB holes. I guess your address decoding is smarter.
So, let's say I replace this:

Code: Select all

.port2_a       ( {sp_ioctl_addr[18:17], sp_ioctl_addr[14:0], sp_ioctl_addr[16]} ), // merge sprite roms to 32-bit wide words
by this

Code: Select all

.port2_a       ( sp_ioctl_addr ),
Am I good to go?
slingshot
Atari God
Atari God
Posts: 1883
Joined: Mon Aug 06, 2018 3:05 pm

Re: HELP WANTED: MRA file converter for MiST

Post by slingshot »

sebdel wrote: So, let's say I replace this:

Code: Select all

.port2_a       ( {sp_ioctl_addr[18:17], sp_ioctl_addr[14:0], sp_ioctl_addr[16]} ), // merge sprite roms to 32-bit wide words
by this

Code: Select all

.port2_a       ( sp_ioctl_addr ),
Am I good to go?
I think it should work if you don't touch other places (easy to see, this one should affects sprites only).
brunosilva
Obsessive compulsive Atari behavior
Obsessive compulsive Atari behavior
Posts: 132
Joined: Mon Apr 09, 2018 10:58 pm

Re: HELP WANTED: MRA file converter for MiST

Post by brunosilva »

sebdel wrote:
brunosilva wrote:
sebdel wrote: No, I only did it for rom. I was under the impression that zip in part was deprecated.
Why? It's not working for you?

Re: setname. I cut them to 8 chars and replace a bunch of characters by '_':

Code: Select all

char bad_chars[] = " !@%^*~<>|:?'\"";
nop. this zip part is where most of zip references are now :)
another example: https://github.com/MiSTer-devel/Arcade- ... Amidar.mra
This is already implemented. You tried and it didn't work? What's the problem exactly?
doesnt work. Context:
I have a folder with nonmerged set (zip name is alienaru.zip)

my mra has this
<rom index="0" zip="alienar.zip|alienaru.zip" md5="342b7d5d91dc2cd81f7f193b076555d2">
I got this:
warning: zip file not found: alienar.zip
part not found in zip: aarom01 (bb0c21be)
part not found in zip: aarom02 (165acd37)
part not found in zip: aarom03 (e5d51d92)
part not found in zip: aarom04 (24f6feb8)
part not found in zip: aarom05 (5b1ac59b)
part not found in zip: aarom06 (da7195a2)
part not found in zip: aarom07 (f9812be4)
part not found in zip: aarom08 (cd7f3a87)
part not found in zip: aarom09 (e6ce77b4)
part not found in zip: aarom10 (6feb0314)
part not found in zip: aarom11 (ae3a270e)
part not found in zip: aarom12 (6be9f09e)
part not found in zip: sg.snd (2fcf6c4d)
part not found in zip: sg.snd (2fcf6c4d)

rom is not ok.

when i change the mra to:
<rom index="0" zip="alienaru.zip|alienar.zip" md5="342b7d5d91dc2cd81f7f193b076555d2">
I got this:
warning: zip file not found: alienar.zip
but rom is OK.

if needed i can send the mra and zip file
sebdel
Captain Atari
Captain Atari
Posts: 234
Joined: Fri Dec 30, 2005 9:29 am

Re: HELP WANTED: MRA file converter for MiST

Post by sebdel »

brunosilva wrote:
sebdel wrote:
brunosilva wrote:
nop. this zip part is where most of zip references are now :)
another example: https://github.com/MiSTer-devel/Arcade- ... Amidar.mra
This is already implemented. You tried and it didn't work? What's the problem exactly?
doesnt work. Context:
I have a folder with nonmerged set (zip name is alienaru.zip)

my mra has this
<rom index="0" zip="alienar.zip|alienaru.zip" md5="342b7d5d91dc2cd81f7f193b076555d2">
I got this:
warning: zip file not found: alienar.zip
part not found in zip: aarom01 (bb0c21be)
part not found in zip: aarom02 (165acd37)
part not found in zip: aarom03 (e5d51d92)
part not found in zip: aarom04 (24f6feb8)
part not found in zip: aarom05 (5b1ac59b)
part not found in zip: aarom06 (da7195a2)
part not found in zip: aarom07 (f9812be4)
part not found in zip: aarom08 (cd7f3a87)
part not found in zip: aarom09 (e6ce77b4)
part not found in zip: aarom10 (6feb0314)
part not found in zip: aarom11 (ae3a270e)
part not found in zip: aarom12 (6be9f09e)
part not found in zip: sg.snd (2fcf6c4d)
part not found in zip: sg.snd (2fcf6c4d)

rom is not ok.

when i change the mra to:
<rom index="0" zip="alienaru.zip|alienar.zip" md5="342b7d5d91dc2cd81f7f193b076555d2">
I got this:
warning: zip file not found: alienar.zip
but rom is OK.

if needed i can send the mra and zip file
It should work. I'll look into it. I found the zip(s). Please post the mra here.

edit: I rebuilt the mra and it works for me. It even works with the windows binary on linux:

Code: Select all

 wine ./release/windows/mra.exe samples/alienar.mra
Make sure you got the latest release from the repo. I update the binaries regularly. I need to find a way to better communicate that fact.

The version I just pushed:

Code: Select all

wine ./release/windows/mra.exe -v
MRA Tool (e3d5eca6bcd3da54af3c5f68d7a1cc7e28ce77d5) (Feb 19 2020)
my mra for reference:

Code: Select all

<misterromdescription>
    <name>Alien Arena</name>
    <mameversion>0209</mameversion>
    <rom index="0" zip="alienaru.zip|alienar.zip" md5="342b7d5d91dc2cd81f7f193b076555d2">
        <part crc="bb0c21be" name="aarom01"/>
        <part crc="165acd37" name="aarom02"/>
        <part crc="e5d51d92" name="aarom03"/>
        <part crc="24f6feb8" name="aarom04"/>
        <part crc="5b1ac59b" name="aarom05"/>
        <part crc="da7195a2" name="aarom06"/>
        <part crc="f9812be4" name="aarom07"/>
        <part crc="cd7f3a87" name="aarom08"/>
        <part crc="e6ce77b4" name="aarom09"/>
        <part crc="6feb0314" name="aarom10"/>
        <part crc="ae3a270e" name="aarom11"/>
        <part crc="6be9f09e" name="aarom12"/>
        <part crc="2fcf6c4d" name="sg.snd"/>
        <part crc="2fcf6c4d" name="sg.snd"/>
        <part>
                02 25 00 03 00 03 00 01 00 04 00 01 00 01 00 00
                00 00 00 01 00 03 00 03 00 00 00 00 00 00 00 00
                00 00 00 00 02 20 02 20 02 20 02 20 02 20 05 50
                05 52 04 45 05 53 04 45 04 4e 05 54 04 45 04 04
                02 20 04 42 05 59 02 20 02 20 02 20 02 20 02 20
                02 20 02 20 02 20 05 57 04 49 04 4c 04 4c 04 49
                04 41 04 4d 05 53 02 20 04 45 04 4c 04 45 04 43
                05 54 05 52 04 4f 04 4e 04 49 04 43 05 53 02 20
                04 49 04 4e 04 43 03 3d 02 2f 02 28 05 52 0e ec
                00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
                00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
                00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
                00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
                00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
                00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
                00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
                00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
                00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
                00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
                00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
                00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
                00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
                00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
                00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
                00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
                00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
                00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
                00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
                00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
                00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
                00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
                00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
                00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
                00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
                00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
                00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
                00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
                00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
                00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
                00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
                00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
                00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
                00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
                00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
                00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
                00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
                00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
                00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
                00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
                00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
                00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
                00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
                00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
                00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
                00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
                00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
                00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
                00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
                00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
                00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
                00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
                00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
                00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
                00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
        </part>
    </rom>
</misterromdescription>
brunosilva
Obsessive compulsive Atari behavior
Obsessive compulsive Atari behavior
Posts: 132
Joined: Mon Apr 09, 2018 10:58 pm

Re: HELP WANTED: MRA file converter for MiST

Post by brunosilva »

hi

usually i'm on the latest version of mra because i follow that repo :)

just tried with today's version and i have the same problem.

I only have in the folder this zip: alienaru.zip

the command i run is: mra.exe -Az c:\mra_files\nonmerged -O "C:\MRA_files\mra" "C:\MRA_files\mra\Alien Arena (Stargate upgrade).mra"

so if alienaru.zip is in second place (alienar.zip|alienaru.zip) it doesnt work, if its in first place (alienaru.zip|alienar.zip), it works (giving the warning that alienar.zip wasn't found) :)
User avatar
jotego
Captain Atari
Captain Atari
Posts: 235
Joined: Wed May 04, 2016 10:02 am
Location: Valencia (Spain)
Contact:

Re: HELP WANTED: MRA file converter for MiST

Post by jotego »

sebdel wrote:
slingshot wrote: I see, you don't really need interleave. I'll see with Jotego then.
Still, I'd like to try to generate a valid rom with interleaved video, just for testing purpose.
Hi Sebdel, I'm not sure of what you need from me. Interleave or group XML elements are vital for me. For other arcade cores I have been able to manage by complicating the downloading logic because the ROM variants were fixed at least. For CPS I cannot predict how the ROM is coming up, so this was needed. I am using it daily but so far I have only used your tool and have not tried the native MiSTer MRA parser yet.

The downloading logic in the CPS core is now trivial, saving me much debug headache and time. I even feel tempted of reverting old cores to this simpler logic plus MRA tool but that would be disruptive for users. But all future cores will use this new approach.
--
Source code of all my cores here.
My Patreon page here.
sebdel
Captain Atari
Captain Atari
Posts: 234
Joined: Fri Dec 30, 2005 9:29 am

Re: HELP WANTED: MRA file converter for MiST

Post by sebdel »

jotego wrote:
sebdel wrote:
slingshot wrote: I see, you don't really need interleave. I'll see with Jotego then.
Still, I'd like to try to generate a valid rom with interleaved video, just for testing purpose.
Hi Sebdel, I'm not sure of what you need from me. Interleave or group XML elements are vital for me. For other arcade cores I have been able to manage by complicating the downloading logic because the ROM variants were fixed at least. For CPS I cannot predict how the ROM is coming up, so this was needed. I am using it daily but so far I have only used your tool and have not tried the native MiSTer MRA parser yet.

The downloading logic in the CPS core is now trivial, saving me much debug headache and time. I even feel tempted of reverting old cores to this simpler logic plus MRA tool but that would be disruptive for users. But all future cores will use this new approach.
Of course, agree on all this. What I meant was: you're the only one that develop cores (and mra) for both Mist and Mister. So the question for you was: is it a problem that interleaving is not achieve the same way on mist and mister (group vs. interleave)?
User avatar
jotego
Captain Atari
Captain Atari
Posts: 235
Joined: Wed May 04, 2016 10:02 am
Location: Valencia (Spain)
Contact:

Re: HELP WANTED: MRA file converter for MiST

Post by jotego »

sebdel wrote: Of course, agree on all this. What I meant was: you're the only one that develop cores (and mra) for both Mist and Mister. So the question for you was: is it a problem that interleaving is not achieve the same way on mist and mister (group vs. interleave)?
It is, yes. Because I'd like to distribute only one MRA file. I thought you had already added support for interleave. I was literally about to move from <group> to <interleave> as I saw your message. I am preparing the beta release now so I need an MRA file that works in MiSTer.
--
Source code of all my cores here.
My Patreon page here.
slingshot
Atari God
Atari God
Posts: 1883
Joined: Mon Aug 06, 2018 3:05 pm

Re: HELP WANTED: MRA file converter for MiST

Post by slingshot »

jotego wrote:I even feel tempted of reverting old cores to this simpler logic plus MRA tool but that would be disruptive for users. But all future cores will use this new approach.
But supplying an MRA for your existing cores couldn't hurt, I think, the ROM generation part was always hard, the scripts didn't work in all cases.
sebdel
Captain Atari
Captain Atari
Posts: 234
Joined: Fri Dec 30, 2005 9:29 am

Re: HELP WANTED: MRA file converter for MiST

Post by sebdel »

jotego wrote:
sebdel wrote: Of course, agree on all this. What I meant was: you're the only one that develop cores (and mra) for both Mist and Mister. So the question for you was: is it a problem that interleaving is not achieve the same way on mist and mister (group vs. interleave)?
It is, yes. Because I'd like to distribute only one MRA file. I thought you had already added support for interleave. I was literally about to move from <group> to <interleave> as I saw your message. I am preparing the beta release now so I need an MRA file that works in MiSTer.
It's not so simple but I think it can work in some cases. For example, the final fight AE mra that I just saw on twitter might work.
Here's the release on the unmerged branch:
https://github.com/sebdel/mra-tools-c/tree/interleave_node_support/release
Let me know if that works with your CPS1 mra (that I can't see yet. I love you but I'm not paying 3$ for testing :lol: .)

Edit: ok, thank you for the beta access. I could test and it's a success. I think you can write one mra to rule them all now :)
So, I released a new version of the tool with support for interleave. There are some limitations though:

- Unlike on Mister, order matters. So please write:

Code: Select all

<interleave output="32">
	<part name="file1" map="0021" />
	<part name="file2" map="2100" />
</interleave>
rather than:

Code: Select all

<interleave output="32">
	<part name="file2" map="2100" />
	<part name="file1" map="0021" />
</interleave>
It doesn't change anything on mister but it does for the mra tool.

- I don't support the "combined part" syntax, this sort of thing:

Code: Select all

<interleave output="32">
	<part name="file1" map="0021" />
	<part name="file2" map="0021" />
	<part name="file3" map="2100" />
	<part name="file4" map="2100" />
</interleave>
where bytes are spread in 2 different files that are read one after the other. This is equivalent to:

Code: Select all

<interleave output="32">
	<part name="file1" map="0021" />
	<part name="file3" map="2100" />
</interleave>
<interleave output="32">
	<part name="file2" map="0021" />
	<part name="file4" map="2100" />
</interleave>
so please do that instead. I am aware that that could be a problem if you combine files of different size, but... Let's worry about it when/if it happens.

Finally: while I was able to generate ROMs from the Mister mra and play them on the Mist, there were a couple of bytes that were different and that's because the mra are different:
Final fight mra for MiST says:

Code: Select all

       <!-- Mapper for ffight --> 
       <part> FF F3 44 40 07 </part>
while for MiSTer it says:

Code: Select all

       <!-- Mapper for ffight --> 
       <part> FF F7 44 40 07 </part>
Same thing for willow:

Code: Select all

       <!-- Mapper for willow --> 
       <part> FF 73 88 40 20 </part>
versus:

Code: Select all

       <!-- Mapper for willow --> 
       <part> FF 77 00 40 20 </part>
If you can align these, you're good to go for a single mra delivery.
Thanks again, and congratulation on the CPS1 core, it's amazing. I have some graphical glitches to report but I'll wait for an official release :)
robinsonb5
Obsessive compulsive Atari behavior
Obsessive compulsive Atari behavior
Posts: 100
Joined: Sat May 16, 2015 3:02 pm

Re: HELP WANTED: MRA file converter for MiST

Post by robinsonb5 »

@sebdel - I had a very minor build issue for mra-tools - could you add "--std=c99" to the makefile's CFLAGS, since you're using C99/C++ style "for(int j=....)" constructs in a couple of places...?
Other than that, it seems like a great tool!
sebdel
Captain Atari
Captain Atari
Posts: 234
Joined: Fri Dec 30, 2005 9:29 am

Re: HELP WANTED: MRA file converter for MiST

Post by sebdel »

robinsonb5 wrote:@sebdel - I had a very minor build issue for mra-tools - could you add "--std=c99" to the makefile's CFLAGS, since you're using C99/C++ style "for(int j=....)" constructs in a couple of places...?
Other than that, it seems like a great tool!
oops, I slipped into 99 accidentally. I'd rather stay retro all the way. I'll fix that, thanks for the report :cheers:
sebdel
Captain Atari
Captain Atari
Posts: 234
Joined: Fri Dec 30, 2005 9:29 am

Re: HELP WANTED: MRA file converter for MiST

Post by sebdel »

brunosilva wrote:hi

usually i'm on the latest version of mra because i follow that repo :)

just tried with today's version and i have the same problem.

I only have in the folder this zip: alienaru.zip

the command i run is: mra.exe -Az c:\mra_files\nonmerged -O "C:\MRA_files\mra" "C:\MRA_files\mra\Alien Arena (Stargate upgrade).mra"

so if alienaru.zip is in second place (alienar.zip|alienaru.zip) it doesnt work, if its in first place (alienaru.zip|alienar.zip), it works (giving the warning that alienar.zip wasn't found) :)
Sorry, took me a while but I think it's fixed now. Why would anyone use windows anyway :?
User avatar
jotego
Captain Atari
Captain Atari
Posts: 235
Joined: Wed May 04, 2016 10:02 am
Location: Valencia (Spain)
Contact:

Re: HELP WANTED: MRA file converter for MiST

Post by jotego »

sebdel wrote:Sorry, took me a while but I think it's fixed now. Why would anyone use windows anyway :?
:mrgreen: :mrgreen:
--
Source code of all my cores here.
My Patreon page here.
brunosilva
Obsessive compulsive Atari behavior
Obsessive compulsive Atari behavior
Posts: 132
Joined: Mon Apr 09, 2018 10:58 pm

Re: HELP WANTED: MRA file converter for MiST

Post by brunosilva »

lool
I use mac on my job, windows at home (with linux subsystem when needed and bit bash) and linux on webservers... :)

anyway, thanks for the help :P
sebdel
Captain Atari
Captain Atari
Posts: 234
Joined: Fri Dec 30, 2005 9:29 am

Re: HELP WANTED: MRA file converter for MiST

Post by sebdel »

I wanted to say, I answered the call for help from Jotego without knowing what he was going to do with it, and now we get this on the MiST:
Image
I also got a very nice gesture by regular mail.

So... Thank you Jotego ! :cheers:
User avatar
jotego
Captain Atari
Captain Atari
Posts: 235
Joined: Wed May 04, 2016 10:02 am
Location: Valencia (Spain)
Contact:

Re: HELP WANTED: MRA file converter for MiST

Post by jotego »

sebdel wrote:I wanted to say, I answered the call for help from Jotego without knowing what he was going to do with it...
I also got a very nice gesture by regular mail.

So... Thank you Jotego ! :cheers:
Thanks a lot for answering my call. You've made life easier for both users and developers! :cheers:
--
Source code of all my cores here.
My Patreon page here.
Post Reply

Return to “MiST”