Jump to content
LaunchBox Community Forums

M3u file generator


Recommended Posts

Hi,

I made a software that will generate all m3u file for your games that have multiple CD/DVD/Disk... 
How it works, choose your games folder and click Start. It will create a subfolder "m3u" in your selected games folder with "1list.txt" to list all files and "1result.txt" to show you all the content of all m3u generated. So it will be easier to check if all files are generated correctly.

Result will be like this;
Alternate Reality - The City (USA) (Disk 1 Side A).m3u (file)
..\Alternate Reality - The City (USA) (Disk 1 Side A).D64 (content)
..\Alternate Reality - The City (USA) (Disk 1 Side B).D64 (content)
..\Alternate Reality - The City (USA) (Disk 2 Side A).D64 (content)
..\Alternate Reality - The City (USA) (Disk 2 Side B).D64 (content)

The software compares one line to the next one in the "1list.txt" and if there is 2 or less different character, it supposes that is 2 disk from the same game.
So here, we have 1 and B different, so it works.
..\Alternate Reality - The Dungeon (USA) (Disk 1 Side B).D64
..\Alternate Reality - The Dungeon (USA) (Disk 2 Side A).D64

This also works for one difference;
..\BrainDead 13 (U) (Disc 1).chd
..\BrainDead 13 (U) (Disc 2).chd

This will not work;
Resident evil 2 (Leon).chd
Resident evil 2 (Claire).chd

You can choose if the m3u will be move to the same folder of your game (or in the same zip file) or let them in the subfolder.
If you choose a subfolder the m3u generated include the "..\" for the filename of the game, let the folder m3u at this place (a subfolder of your games) and import file that they are in games\m3u. You can delete the 2 txt files after your check is done.

 

2.png.8440d157a4ed1a671c8db3d5227a0267.png

**Updated software to show a message if no folder is choose.
**Update : let you the choice to generate the m3u to run in the same folder or in a subfolder.
**Update: add search text box to create only m3u contains these text and create m3u for all games there are not multi-disc.
**Update: Fix search text box and removed the file extension of the game in the m3u file.

 

 

M3U Generator.exe

Edited by thewhite
  • Like 2
  • Thanks 4
  • Unusual Gem 1
Link to comment
Share on other sites

  • 1 month later...

Oh MY!!!!! Oh MY!!!!! Many thanks indeed. I was looking for a program that could do this. Could you issue another version without the "..\" ? Is for the small files. I like to compress them, so in one "zip" file, I can have each game set with the m3u file.

Edited by Flames
Link to comment
Share on other sites

It is for the computer tapes, or disks. For example, for the Amstrad computer. You can have different tape sides for one game. This means several files. You can make a zip file called as the M3U file. When loaded by Retroarch, it allows swaping tape sides. So, at the end, you have one zip file per game.

Link to comment
Share on other sites

Example: I issue a zip file called "Battle of Britain (E) (CDT)". Inside there are 3 files:

- Battle of Britain (E) - Side A (CDT).cdt

- Battle of Britain (E) - Side B (CDT).cdt

- Battle of Britain (E) (CDT).m3u

Retroarch opens "Battle of Britain (E) (CDT).m3u", and indexes the two tapes for swapping "Battle of Britain (E) - Side A (CDT).cdt" and "Battle of Britain (E) - Side B (CDT).cdt"

So the text for m3u file should be

    Battle of Britain (E) - Side A (CDT).cdt

    Battle of Britain (E) - Side B (CDT).cdt

The text is without "..\" at the begining. For 1 file there is no problem, but massive generation, is a hard work.

Edited by Flames
Link to comment
Share on other sites

I found a small trick for this purpouse. You can us Note++, and open all generated m3u files. Select option - Edit - Replace, and replace ..\ by nothing. Before pressing replace button, you can notice, there is another button that says "Replace on all opened files". Then you can close the program, and begin savings all opened files. 

Link to comment
Share on other sites

20 minutes ago, thewhite said:

Ok i didn't know you can load the zip file with launchbox then retroarch load the m3u inside the zip...

Yes, you can, if the emulator core supports m3u files. The only thing you have to take into account is that, zip name, should match with m3u name, and not with the other files, because this can create confusion to Retroarch and may try to run other file than the m3u.

I do agree with you, for CD images, there is no need of zip files, but for old computer games, zip files work really good.

I do have to thank you such a great program. Many thanks!!!

Edited by Flames
Link to comment
Share on other sites

  • 3 months later...

I don't see what can go wrong, my code compare line 1 with 2, then 2 with 3... Maybe the filename are not correct in the file 1list.txt.
Can you try with only one game that have more than ten files, put them in a folder, does it works? If not, can you give me the filename, so i can test on my side?

Link to comment
Share on other sites

It has happened to me in several games of amiga that creates two or three m3u files but they are few it is not a problem I have corrected it by hand

I think it's a problem with how the files are named.

Indiana Jones and the Fate of Atlantis - The Graphic Adventure_Disk9

Indiana Jones and the Fate of Atlantis - The Graphic Adventure_Disk10

a suggestion, it would be great if it also created m3u files from the simple files

Edited by torpider
Link to comment
Share on other sites

  • 1 month later...
  • 6 months later...

1. Possible to set some search term (maybe make it optional) for 'disc' and 'disk'?

The below from PSX got wrongly generated into "Cool Boarders 2 (USA).chd.m3u" :

Cool Boarders 2 (USA).chd
Cool Boarders 3 (USA).chd
Cool Boarders 4 (USA).chd

 

Generating the m3u then without the search term (disc and/or disk) would be good too, example a single "Final Fantasy IX (USA) (Rev 1).m3u" for the below.

Final Fantasy IX (USA) (Disc 1) (Rev 1).chd

Final Fantasy IX (USA) (Disc 2) (Rev 1).chd

Final Fantasy IX (USA) (Disc 3) (Rev 1).chd

Final Fantasy IX (USA) (Disc 4) (Rev 1).chd

 

2. generating m3u for single disc files will be helpful for frontend to just configure to ignore the original iso/chd as well.

 

 

Link to comment
Share on other sites

On 8/20/2023 at 11:29 PM, thewhite said:

@zealvix

It's a good idea, i was not sure to be able to do this, but it's done in the new version. If you set "disc" in the search box and there is 2 or less different character for the first line compared to the second line, it will be considered as the same game and add it in the m3u file.

Thanks!!

Works much better now with the keyword search, at least I don't see any false results (unrelated games grouped together)  yet from brief checks.

I prefer the m3u to be saved without " (Disc 1)" or the original extension (e.g chd) in the filename, but that is a small issue, can easily mass delete them with other file-renaming tools, so all good。

Edited by zealvix
Link to comment
Share on other sites

  • 2 months later...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
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.

×
×
  • Create New...