Skip to content

A Python script that generates a GameCube DTPK sound bank from .WAV files.

License

Notifications You must be signed in to change notification settings

Exortile/gcaxdtpk

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

GCAXDTPK

This repo contains a Python script that generates a GameCube DTPK sound bank from .WAV files. Widely tested and confirmed working in Sonic Riders.

Dependencies

  • Nintendo's dsptool.dll. (NOTE: If you're running Python as 64-bit, the .dll has to be 64-bit as well and vice versa.) [Also, I cannot pass this library through this repository. Find your own way of obtaining this.]
  • python3

Usage

Keep in mind, this is a command-line tool, so this may make it a little bit harder to use for newbies.

General command:

python gcaxdtpk.py pathToFolder fileIdentifier [output]

If [output] isn't specified at the end of the command, the generated file will be in the same folder, with the same name as the folder itself, but with .DAT added to the end.

You can also display the help output via these commands:

python gcaxdtpk.py -h
python gcaxdtpk.py --help

Arguments

pathToFolder:

  • Path to a folder that contains WAV files to be put into the DTPK archive. The WAV files must be named according to this format: "0_name.wav". This way the tool knows in which order should the WAV files go into the DTPK archive. The WAV file must also be encoded using signed 16-bit PCM, it must only be in mono channel and with a sample rate of 44100 Hz. Other sample rates may work, but aren't guaranteed.

fileIdentifier:

  • Used as a unique identifier to determine what file is which in terms of other DTPK archives loaded in the game. For example, calling audio with the ID 0xA9320200, means that the identifier in this case is 0xA932.

output:

  • Path to where the file should be saved, along with the filename.

About

A Python script that generates a GameCube DTPK sound bank from .WAV files.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages