Skip to main content

A DMD configuration tool from DirectB2S files in Visual Pinball ini

Project description

DMD Config Tool

A command-line tool to automatically configure DMD (Dot Matrix Display) and Backglass settings for Visual Pinball tables using DirectB2S files.

Features

  • Automatic DMD area detection in DirectB2S files
  • Support for both 2 and 3 screen setups
  • Precise template-based rectangle detection
  • Configurable screen layouts via YAML file
  • Optional image extraction for debugging

Installation

pip install dmd-config

Usage

Basic usage:

dmd-config your_table.directb2s

Save extracted images for debugging:

dmd-config -s your_table.directb2s

Use custom screen configuration:

dmd-config -c custom_config.yaml your_table.directb2s

Configuration

Create a DMD_config.yaml file to define your screen layout:

screens:
  # Primary display for the playfield
  Playfield:
    id: 1
    size_x: 3840
    size_y: 2160

  # Display for the DMD (set size_x: 0 for 2-screen setup)
  DMD:
    id: 2
    size_x: 1920
    size_y: 1080

  # Display for the backglass
  BackGlass:
    id: 3
    size_x: 2560
    size_y: 1440

Output

The tool generates an INI file with the same name as your DirectB2S file, containing all necessary settings for:

  • PinMAME DMD window
  • FlexDMD window
  • B2S window settings
  • Screen positions and dimensions

Requirements

  • Python 3.8 or higher
  • OpenCV
  • NumPy
  • Pillow
  • PyYAML

License

This project is licensed under the GNU General Public License v3 (GPLv3).

Contributing

Found a bug or want to contribute? Feel free to open an issue or submit a pull request on GitHub.

Author

Le-Syl21 (sylvain.gargasson@gmail.com)

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

dmd_config-0.1.0.tar.gz (17.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

dmd_config-0.1.0-py3-none-any.whl (18.4 kB view details)

Uploaded Python 3

File details

Details for the file dmd_config-0.1.0.tar.gz.

File metadata

  • Download URL: dmd_config-0.1.0.tar.gz
  • Upload date:
  • Size: 17.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.0.1 CPython/3.12.3 Linux/6.8.0-51-generic

File hashes

Hashes for dmd_config-0.1.0.tar.gz
Algorithm Hash digest
SHA256 c3b7eb9a471f9b355d560d919de647b3b7771dafe8ffccf4cd1bcbfe6a094c1b
MD5 2ed43a3fd03c53d4b8a9baa809b4ff69
BLAKE2b-256 1627348e6a49d01efa9fe2c5ca91f05e999a1b85bbd4334ef7391da25cb50d9b

See more details on using hashes here.

File details

Details for the file dmd_config-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: dmd_config-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 18.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.0.1 CPython/3.12.3 Linux/6.8.0-51-generic

File hashes

Hashes for dmd_config-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 78c89d4f334027543aa8318bc0bf94f946e8655e80a7063c16bb580fb385a3b6
MD5 0c08933b53e54d84d3b7fd795db123eb
BLAKE2b-256 a28cc5e73aa159d489026f6429404d0249b9e7fa3e889985133f0715dbab7990

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page