Resource icon

PSP GBA2PSP, a simple script to install a GBA emulator and game to the XMB 2023-08-13

GBA2PSP is a small python script to install the excellent TempGBA4PSP-Single-game emulator as well as a GBA game onto a PSP.
If you provide links it can add cover-image, background, logo as well as intro music to be shown on the XMB.

This makes them look kind of like PS-Classics games with one entry on the XMB per game.

It contains a games database but I have only populated it with icon-/pic0/pic1/snd0 for a handful of games so you will need to add these assets yourself in most cases (pull requests to populate more entries welcome).

It only works on the command line and it requires python3 as well as a handful of dependencies to be installed.

It makes the games look like this:
metal slug.jpg



===
GBA2PSP is a utility to automate the process to install GBA games and the
TempGBA-Single-Game emulator on a PSP.

It can automatically install ICON0/PIC0/PIC1 and SND0.AT3 either via the command
line or through links from the database gamedb.py.
Gamedb only contains links to assets for one game so far but
pull requests to add more links are welcome.

Usage:
======
usage: gba2psp.py [-h] [-v] [--psp-game-dir PSP_GAME_DIR] [--icon0 ICON0]
[--pic0 PIC0] [--pic1 PIC1] [--snd0 SND0]
game

positional arguments:
game GBA image

options:
-h, --help show this help message and exit
-v Verbose
--psp-game-dir PSP_GAME_DIR
Where to install the files (/PSP/GAME on your device)
--icon0 ICON0 Image for ICON0
--pic0 PIC0 Image for PIC0
--pic1 PIC1 Image for PIC1
--snd0 SND0 Image for SND0

ICON0/PIC0/PIC1 are either local files containing an image or a hyperlink.
In the latter case the content of the hyperlink will be downloaded and used as
the image. Images are scaled to the proper size, converted to PNG and injected
SND0 is an audio file in any format or a http-link to a youtube video.
In the latter case the youtube video will be downloaded and used.
The audio will be converted to WAV format using FFMPEG and converted into
AT3 format using ATRACDENC.
The Audio will be clamped to a maximum of 60 seconds and 500kb.
The audio will be set to loop.

PSP-GAME-DIR should point to the PSP/GAME directory on the PSP/VITA.


Example 1: (using explicit files/links on the command line)
./gba2psp.py --psp-game-dir=/run/media/sahlberg/SONY/PSP/GAME --icon0=cover.jpg --pic0=logo.png --pic1=background.jpg --snd0=intro.mp3 Crash\ Bandicoot\ 2\ -\ N-Tranced\ \(USA\).gba

Example 2: (using the default links to assets from gamedb.py)
./gba2psp.py --psp-game-dir=D:/PSP/GAME Crash\ Bandicoot\ 2\ -\ N-Tranced\ \(USA\).zip

Python dependencies:
====================
pip install pillow
pip install requests
pip install git+https://github.com/nficano/pytube

Dependencies:
=============
TempGBA4PSP-Single-game. Download and extract this as a subdirectory in the
gba2psp directory.
https://github.com/GrabowskiDev/TempGBA4PSP-Single-game/releases/tag/v2.0

Ffmpeg. Install this utility and make it is reachable through the path.

Atracdenc. Install this utility and make sure that the atracdenc program
is reachable through path.
Atracdenc can be found at https://github.com/dcherednik/atracdenc
Uploaded by
Ronnie Sahlberg
Downloads
1,185
Views
1,185
First release
Last update

Ratings

0.00 star(s) 0 ratings

More resources from Ronnie Sahlberg

Back
Top