Saturday, August 29, 2026

fixing vgm2gbs for linux

once you make a gbs you can convert it to a gb rom using (or just do gb export in deflemask and skip all this)

gbs-master vgm2gbs github

convert.bat is great if your on windows for drag and drop but 2 problems
1 - vgm headers this script used are old and incompatable with most newer deflemask versions
2 - because im running it in wine and requires python its broken
THE FIX
Replace src/gd3.py with:

make a linux.sh and chmod +x it


#!/bin/bash
cd "$(dirname "$0")"
python3 src/main.py "$1"

import struct


class GD3:
    version: int
    track_name: str
    track_name_orig: str
    game_name: str
    game_name_orig: str
    system_name: str
    system_name_orig: str
    author: str
    author_orig: str
    release_date: str
    ripper: str
    notes: str

    def __init__(self, data: bytes):
        assert data[0:4] == b'Gd3 '

        self.version, data_length = struct.unpack_from(" str:
        return f'{self.track_name} - {self.author} - {self.game_name} ({self.ripper})'
 

No comments:

Post a Comment