Code Monkey home page Code Monkey logo

retrolist's Introduction

retrolist

Python script that generates a 1G1R playlist for the default Retroarch frontend, using DAT-o-MATIC parent/clone XML DAT files.

Description

This python script generates a Retroarch compatible playlist, similar to the ones generated automatically wit the feature 'Scan Directory', but filtering as many files as possible to get a single game per region.

A rom set usually contains a large number of version of the same game, be it corresponding to different regions or other variants such as bootleg copies, hacks, etc.

The script used the information from a DAT-o-MATIC parent/clone xml data file to, out of the available versions of a game in the romset:

  • Filter a particular set of regions when possible
  • Specify the priority of those regions (i.e. prefer USA over Europe versions)
  • Select the parent version over the clones (e.g version 2 over version 1)
  • Choose released version over unreleased (i.e. betas, prototypes)

After the playlist is generated, it creates a series of zip files for each of the selected files in the current directory, comprising the sanitized rom set.

The software has been written using Python 2.7 in OS X, and it depends on crcmod to compute the CRC32 for the rom files, although alternatively it could used MD5.

Usage

The script accepts the following parameters

  • An XML file containing a parent/clone datafile
  • A prefix for the destination path
  • A series of directories containing the rom files

The region preferences is hard-coded to USA, EUR and JPN and can be changed inside the script.

Example

  • Download a complete romset compiled with GoodTools. For a lot of 8 and 16 bit systems, Emuparadise is a good place to start.
  • Download the parent/clone xml data file from DAT-o-MATIC. Remember to select the correct system on the top of the screen.
  • Extract all files to a single directory
$ mkdir roms
$ cd roms
$ for i in *; do unzip -j "$i"; done
  • Run the script
$ ./retrolist.py database.xml playlist.lpl "/storage/roms/" roms/
  • Copy the playlist and the sanitized rom set to the Retroarch directory

version

1.0

retrolist's People

Contributors

mbroncano avatar

Stargazers

Kenny DiBattista avatar  avatar Matt H avatar Tom Hensel avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.