Music, movies and textures¶
The PC version reads some kinds of files the PS3 can't, so these need no converting. They play on Windows, Linux and Mac alike.
Music¶
The game's music is in banks (sound/<bank>.mowb, one track per entry from 1 up). Put a track in an open format
beside where the bank would be:
sound/ds_bgm_m01/1.wav plays in place of the bank ds_bgm_m01's first track
sound/ds_bgm_m01/1.loop optional: the loop
A file can also be named by the track's cue instead of its number, as voice lines are (see below):
sound/ds_bgm_m01/m010000000.wav, with m010000000.loop for its loop.
- Formats: WAV (16, 24 or 32-bit PCM, or 32-bit float; 8 to 384 kHz; mono to 8 channels, the first two played), FLAC, Ogg Vorbis and Opus.
- The loop file holds one line:
none, or<start> <end>in the file's own samples, the end included. Without one, the track loops whole if the game's track looped. - The file is resampled to the track's rate (48 kHz for the game's music).
- A file that can't play gets no stand-in: the game's own track plays, and the log says why.
Voice lines¶
The game's voice lines are in the same banks as its music (sound/ds_bgm_m01.mowb to ds_bgm_m06.mowb, a few in
ds_bgm_m08 and ds_bgm_other): about 1,350 lines, most of them 1 to 10 seconds long. The Nexus's bank alone has 751.
A mod replaces one the way it replaces a music track, with these differences:
- The name: the line's cue, a letter and nine digits, for example
sound/ds_bgm_m01/v111400100.wav. The cue is listed in the bank's.mosb; this version finds the bank entry it plays. An entry number (sound/ds_bgm_m01/241.wav) works too. When a mod has both for one line, the number is used, and the log says so. A music track has a cue as well (m010000000). - Mono: the game's line is mono. A mono file plays as it is; a stereo file is mixed down to one channel. Other rates are resampled to 48 kHz, as for music.
- The length: any.
- No loop: voice lines don't loop, so a
.loopfile isn't needed. - The log: a
[mods] voice:line for each line used, and for each it can't use, with the reason, beside the[mods] music:lines. A cue the bank doesn't have givesthe bank has no cue <name>.
A line in an open format is decoded on the PC from its file, outside the game's memory.
Movies¶
Put movie/<name>.webm beside where the game's movie/<name>.pam would be, for example movie/ds_title.webm for
the one behind the title menu.
- Formats: WebM with VP9 or VP8 pictures and Opus or Vorbis sound. No H.264, AAC or MP4.
- Size: any. Each picture is scaled to 1280x720.
- Sound is made 48 kHz stereo. A file with no sound plays silence with its pictures.
- The name's case doesn't matter, on Linux and Mac too.
- When the file can't be played, the game's movie plays, and the log says why.
Textures bigger than the disc's¶
Textures can be any size. At each start, a mod's texture bigger than the disc's texture of the same name goes to the game at the disc's size, and the renderer draws the mod's full texture in its place. So big textures don't use up the game's video memory or its file loader.
- This covers DXT1, DXT3 and DXT5 textures (not cube maps) in a
.tpf, or in an archive of them: equipment pieces, characters, objects, cutscenes and effects. - It keeps a second copy of each texture it covers in the data folder (
mod_textures), so a big texture mod takes about twice its own size on the disk. - It needs the current renderer: the older one (on Linux, Renderer D3D12) loads mods' textures whole, as before.