This program sets your PC's RGB lighting based on what weapon you are using in an emulated play of the Nintendo DS game, Metroid Prime: Hunters.

- This doesn't currently work on Windows, only Linux. I'm sorry. I need a way to capture a screenshot of the active window without the border, or just surrender to having Windows users manually select the corners of the play area. I was running it on Fedora 43 KDE, then Devuan Excalibur.
- You will need OpenRGB to be running. If it does not support your RGB hardware, this program will not work.
- OpenRGB's SDK server needs to be running, but don't worry, starting it just a quick button press from inside OpenRGB: Under the "SDK Server" tab, click "Start Server". There are settings within OpenRGB to make it start at login with the server if you so desire.
- You can't use just any DS emulator. Because the program uses screenshots, it's heavily reliant on the GUI sizing and "Hybrid" layout of MelonDS. All of that sizing still exists in MelonPrimeDS. I recommend using MelonPrimeDS, specifically the Livetek release.
- Once MelonDS or MelonPrimeDS is running, go to the menubar and choose "View" -> "Screen layout" -> "Hybrid". Everything else defers to regular setup for that emulator.
- You need a screenshot tool, either scrot for XOrg, or KDE Spectacle for Wayland. My program will try to figure out which one it needs.
This program was written in Python 3.13 (may work with other versions of Python 3), and relies on the following non-native Python packages:
- OpenRGB-Python
- Pillow
TOMLlib(I thought this was a third-party library, but maybe not)
You can install these all at once by running python3 -m pip install -r requirements.txt within the downloaded repository folder.
The script is meant to be run from the command line. At startup, it will ask you which RGB device to use if it detects multiple. Once you do that, just switch back to the Melon window and play. When you are done, abort the script from the terminal with Ctrl+C. Enjoy!
Copyright 2026 Wilbur Jaywright dba Marswide BGL.
This file is part of MPH-RGB.
MPH-RGB is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
MPH-RGB is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.
You should have received a copy of the GNU Lesser General Public License along with MPH-RGB. If not, see https://www.gnu.org/licenses/.