Home Page
Posted By: Fstarred mame scripts for automatize installation - 11/19/21 09:15 AM
PREMISE:

I've built a bartop on which there is mounted a miniPC to run MAME.

Since I need to upgrade mame without having to deal with keyboard too much, I've created a set of scripts to automatically accomplish the installation task.

Here are some features:

  • Download mame from given url
  • Extract mame archived file to output directory
  • Generate mame executable shortcut file
  • Generate mame.ini and write entries taken from paths.lua
  • Generate ui.ini and write entries taken from paths.lua
  • Copy default.cfg (if exists) from script directory to mame dir


Link here

There are also other scripts for downloading useful data.

I'd appreciate any feedback, thank you smile
Just to make sure, does the script extract all of the relevant files from the archive? There are a number of support files that are sometimes updated along with the executable, so you need to be sure to extract and copy all of them. smile
Originally Posted by Just Desserts
Just to make sure, does the script extract all of the relevant files from the archive? There are a number of support files that are sometimes updated along with the executable, so you need to be sure to extract and copy all of them. smile

Sorry I'm not sure of understand what you mean, what are these support files?
By the way the script use 7za to extraxt mame, which hopefully extract all the needed stuff.
To ensure mame.ini and ui.ini are all up-to-date, instead of simply copying from some old ones, they are generated by mame itself and then entries modifies are applied once created.
I'll put it more simply: Do you copy all of the files from the archive, or just the executable?
You could just look at the script – it attempts to download an official release archive and extract it. There’s no filtering of paths in the 7za command: https://github.com/fstarred/mame-scripts/blob/main/getmame.bat#L21

I’m a bit more uncomfortable about the script for downloading ROMs from mamedev.org without showing the user the “for personal use only” notice.
As Vas Crabb says, it download all the content archive.

Originally Posted by Vas Crabb
I’m a bit more uncomfortable about the script for downloading ROMs from mamedev.org without showing the user the “for personal use only” notice.

Ok I'll modify the script so a warning will be displayed, any suggestion will be appreciated smile
Originally Posted by Vas Crabb
You could just look at the script

I could, if I knew anything about scripting. I'd rather just ask a clear-cut question and hopefully get a reasonable answer. I don't think there's anything wrong with that.
© Forums