Jump to content


Photo

Sound organizer


  • Please log in to reply
No replies to this topic

#1 the bigg

the bigg

    2083 is a prime number.

  • Modder
  • 3331 posts

Posted 20 August 2011 - 11:36 AM

This is a tp2 designed to allow modders to quickly add voice over to .tra lines (or entire files/mods) that previously lacked them. Specifically, it does the following two things for you:
1) translate generic [character] markers into numbered .wav references, listing the lines to be voiced to a separate file (that is, you can write [STIVAN] as the sound for all lines by Stivan and [Bob] as the sound for all lines by Bob, and it will be translated respectively to [TB#SS001]...[TB#SS999] and [TB#BOB01]..[TB#BOB99].
2) copy any new [sound] declarations from a 'master' language to the other languages the mod is already translated to (independently of whether you added a sound file or it was translated by the former functionality).

Code:
Spoiler


To work, this requires you to change some variables at the top of the tp2:
'source' defines the directory containing the TRA files (where markers will be translated, and from where sounds will be copied to other languages).
'early' is an array of files in ~%source%~ that will be processed as first (for example, to put sounds used in the character soundset in front of sounds used in banters).
'names-to-soundsets' defines the character-prefix mapping; that is to say, if you write [STIVAN] as the sound file for any tra reference, it will be translated to [TB#SS001] and [ROSALINA] to [TB#SRO01].
'sound_reference' is a directory where files containing the script for the various sound files to be recorded will be written to.
'langs' is an array of directories where new sound files will be copied to (without overwriting existing references).

Currently, there are a couple of restrictions (that prevent functionality on affected lines, while still working correctly on the rest of the tra file):
1) cannot handle .tra files with dialogF references
2) cannot handle .tra entries written on more than only one line
Both will be amended on request.

I hope this was confusing enough. As usual, I welcome all comments, suggestions and criticism, as long as it is done on a public channel.

Italian users: help test the Stivan NPC!

Author or Co-Author: WeiDU - Widescreen - Generalized Biffing - Refinements - TB#Tweaks - IWD2Tweaks - TB#Characters - Traify Tool - Some mods that I won't mention in public
Maintainer: Semi-Multi Clerics - Nalia Mod - Nvidia Fix
Code dumps: Detect custom secondary types - Stutter Investigator

If possible, send diffs, translations and other contributions using Git.