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).D64.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.

1.png.1769e3af17355f52271a982ee1cc944c.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.

 

 

M3U Generator.exe

Edited by thewhite
  • Like 2
  • Thanks 2
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

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.

 Share

×
×
  • Create New...