Jump to content
Tursi

MakeMultiCart tool (for EA#5)

Recommended Posts

Posted (edited)

I can't remember if this has already been done ;) 

 

But for @Nick99's Smurf music demo, I wrote a little tool that takes a folder of EA#5 files (in TIFILES format) and compiles a ROM-based, non-inverted multicart. It deals with the multiple file nature and seems to do the right thing... Naturally, it's a copy cart - the files are still loaded into RAM so you still need 32k to run them.

 

It builds a full selection list and copy program dynamically, but since it's very easy to have more files than the TI selection list can display, I wrapped the whole thing in the classic Multicart menu, which doesn't care how many entries there are (within reason).

 

I didn't do a ton of testing. It worked for Smurfs and I stopped there. But that covered a lot of cases so it should be working. It'll build up to 2MB carts, though I've only tested up to 256k. ;)

 

It was kind of a fun little task to have it build all the code dynamically. Classic99's cartridge maker does something similar - with pre-written blocks of code that can be assembled as needed.

 

Anyway, the Github is here: https://github.com/tursilion/makemulticart

 

and for laziness the binary is here. I haven't written much for documentation and it's just a straight up Windows command-line app:

 

makemulticart.zip - Version 1.2 - this version now finally works with random play, but you have to use the 9/7/2021 version of quickplayer in vgmcomp2 to create the quickplayer files for it to work (I had to make some changes to the player's structure).

Edited by Tursi
updated zip file
  • Like 10
  • Thanks 3

Share this post


Link to post
Share on other sites

Cause selecting folders in the Windows GUI is annoying. ;)

 

Share this post


Link to post
Share on other sites
23 minutes ago, Tursi said:

Cause selecting folders in the Windows GUI is annoying. ;)

 

yes, I know, just allow the selection of the first file of the directory to instruct the tool to work on all the files from that path. 🙂  

  • Like 1

Share this post


Link to post
Share on other sites
6 hours ago, Tursi said:

Cause selecting folders in the Windows GUI is annoying. ;)

Fact check: TRUE.  There are multiple file requesters (browsers) available in Windows, and it seems the best one is rarely available.

5 hours ago, tmop69 said:

yes, I know, just allow the selection of the first file of the directory to instruct the tool to work on all the files from that path. 🙂  

I assume it does not enumerate wildcards?  Running the utility in Powershell will offer quite a bit more flexibility, too.

Share this post


Link to post
Share on other sites
9 hours ago, tmop69 said:

yes, I know, just allow the selection of the first file of the directory to instruct the tool to work on all the files from that path. 🙂  

To amend my previous message, this from the included .md file:

 

Input files must be EA#5 files with TIFILES headers. Place all of them in a
folder and pass the folder to this program:

makemulticart c:\myfolder\ c:\output\cartridge8.bin

No wildcards, no list of programs necessary.  It enumerates the entire directory.

  • Like 1

Share this post


Link to post
Share on other sites
11 hours ago, tmop69 said:

yes, I know, just allow the selection of the first file of the directory to instruct the tool to work on all the files from that path. 🙂  

That's what I do everywhere I've ever needed to, but then I have to truncate the returned string. ;)

 

Share this post


Link to post
Share on other sites
5 hours ago, OLD CS1 said:

I assume it does not enumerate wildcards?  Running the utility in Powershell will offer quite a bit more flexibility, too.

No wildcards, no specific file input. It appends "\*" to whatever path you provide and uses that as the filespec. ;)

 

I have no intention of expanding this utility, in case it's not obvious. ;) Opportunity for an enterprising front-end creator, I guess! ;)

 

  • Like 1

Share this post


Link to post
Share on other sites

I dropped a version 1.1 in the first post - this will be needed for the upcoming randomization tool for VGMs. The only difference is it adds a tag in the unused bytes of the header. :)

 

Share this post


Link to post
Share on other sites

Disregard, don't bother with v1.1 (it works, but is not mandatory for anything coming up). When I went to integrate it I found I had completely misremembered how it worked. ;) So a 1.2 is coming that does everything all in one, random player included.

 

  • Like 4
  • Thanks 2

Share this post


Link to post
Share on other sites

Posted 1.2, and it works, but it's too late tonight to make a demo. You will need to also download a new copy of vgmcomp2, as the quickplayer program had to undergo some changes. If you use the latest version of everything, though, it will automatically add a 'random' option to the menu, and this random tool is capable of mixing and matching the visualizer with the musics.

 

Of course, the smart version of me would have just done that with separate programs and datas, but not me, no, I spent hours making code that could parse the exe startup and patch it all dynamically. Dumb. But it's done and it works ;)

 

  • Like 4
  • Thanks 1

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...

  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...