Auto MGL Creation Tool

Discussion of developmental aspects of the MiSTer Project.
syntax_x
Posts: 18
Joined: Thu Jan 28, 2021 11:42 am
Has thanked: 1 time
Been thanked: 11 times

Auto MGL Creation Tool

Unread post by syntax_x »

I'm not a coder by any means, I only delve into it when I must so please go easy on me but here's a dirty .bat that will clone an entire core game directory as .mgl, SD card ready.

I hope someone smarter than me finds this useful.

https://drive.google.com/file/d/1txa9eJ ... sp=sharing

MGL_Maker_Cloner_V3.bat
(6.1 KiB) Downloaded 336 times

Lsne1JY.png
Lsne1JY.png (11.33 KiB) Viewed 10434 times
syntax_x
Posts: 18
Joined: Thu Jan 28, 2021 11:42 am
Has thanked: 1 time
Been thanked: 11 times

Re: Auto MGL Creation Tool

Unread post by syntax_x »

These are the MGL settings I've pulled from the cores sv files, if anyone has more they would like me to add or edit please let me know.

Code: Select all

ATARI2600        1 F 0 *
ATARI7800        1 F 1 A78 A26 BIN
ATARILYNX        1 F 0 LNX
C64              1 F 1 PRG CRT REU TAP
COLECO           1 F 0 COL BIN ROM SG
GAMEBOY          1 F 1 GBC GB    
GBA              1 F 0 GBA
GENESIS          1 F 0 BIN GEN MD    
JAGUAR           1 F 0 JAG
MEGACD           1 S 0 CUE CHD
NEOGEO           1 F 1 NEO ZIP
                 1 S 1 ISO BIN
NES              1 F 0 NES FDS NSF
PSX              1 S 1 CUE CHD
SMS              1 F 1 SMS SG
                 1 F 2 GG
SNES             2 F 0 SFC SMC BIN BS
TGFX16           1 F 0 PCE BIN
                 1 F 1 SGX
                 1 S 0 CUE CHD
VECTREX          1 F 1 OVR VEC BIN ROM
WONDERSWAN       1 F 1 WSC WS

User avatar
LamerDeluxe
Top Contributor
Posts: 1239
Joined: Sun May 24, 2020 10:25 pm
Has thanked: 887 times
Been thanked: 284 times

Re: Auto MGL Creation Tool

Unread post by LamerDeluxe »

Thanks for creating this! This should be a handy way to create a folder with direct links to favorite games.
syntax_x
Posts: 18
Joined: Thu Jan 28, 2021 11:42 am
Has thanked: 1 time
Been thanked: 11 times

Re: Auto MGL Creation Tool

Unread post by syntax_x »

Cheers :)
Just don't run it twice in the same place or it will add a _ to every MGL folder and mess that folder up, not that it really matters as it takes seconds to make another one.
Atari2600 will create a MGL for every single file it finds also, so watch that one.
User avatar
LamerDeluxe
Top Contributor
Posts: 1239
Joined: Sun May 24, 2020 10:25 pm
Has thanked: 887 times
Been thanked: 284 times

Re: Auto MGL Creation Tool

Unread post by LamerDeluxe »

Sounds good, looking forward to trying it.
gameboyhomeboy
Posts: 14
Joined: Wed Jan 19, 2022 6:21 pm

Re: Auto MGL Creation Tool

Unread post by gameboyhomeboy »

Where do the mgl files go? I'm still a little confused by these
syntax_x
Posts: 18
Joined: Thu Jan 28, 2021 11:42 am
Has thanked: 1 time
Been thanked: 11 times

Re: Auto MGL Creation Tool

Unread post by syntax_x »

They go on the root of the card/usb just like a core.
calle81
Posts: 11
Joined: Sun May 24, 2020 9:35 pm
Has thanked: 3 times
Been thanked: 1 time

Re: Auto MGL Creation Tool

Unread post by calle81 »

Never mind. Notice that I should do this with a SD-card reader

---------------------------------
Hey, this sounds great :)

Can you give some pointers on how to use the script? I tried connecting over SMB and run the script in the root of the folder like this "Y:\games\PSX\USA\MGL_Maker_Cloner_V3.bat". However all I get is access denied after selecting PSX in the menu. It probably has to with file permissions.
kubbie
Posts: 106
Joined: Mon May 25, 2020 11:41 am
Has thanked: 1 time
Been thanked: 5 times

Re: Auto MGL Creation Tool

Unread post by kubbie »

Can you add NeoGeo CD to this tool? TIA

Post Reply