Difference between revisions of "Changing sounds"

From XStoryPlayer Wiki
Jump to: navigation, search
(Created page with "The scene sounds can be found in the <code>./pack/pack_dungeon/scenes/sounds</code> directory. The character sounds can be found in the <code>./pack/pack_dungeon/ai/speech/de...")
 
Line 5: Line 5:
 
===Sound format===
 
===Sound format===
  
* XStoryPlayer color textures are in .dds file format.
+
* XStoryPlayer character sound files are in .wav format.
* XStoryPlayer bump/displacement/normal textures are not in the .dds file format because that results in artifacts due to its normalized nature.
+
* XStoryPlayer scene sound files that are long are in .mp3 format.
 
+
A .dds file is an compressed image format like .png or .jpg.<br>It contains reduced (mipmapped) versions of the image and it can directly be used as a compressed texture by the graphics card.
+
  
 
===Adding talking sound===
 
===Adding talking sound===

Revision as of 14:33, 7 January 2015

The scene sounds can be found in the ./pack/pack_dungeon/scenes/sounds directory.

The character sounds can be found in the ./pack/pack_dungeon/ai/speech/default directory.

Sound format

  • XStoryPlayer character sound files are in .wav format.
  • XStoryPlayer scene sound files that are long are in .mp3 format.

Adding talking sound

  1. At the moment the girls only make sounds during sex and in other special situations. It is however possible to add sound files to sentences.
    To let a character make a sound the following code can be used:
    talk.s      = "aaaahhhhhhh"; // The mouth movement is derived from this text
    talk.file   = "scream1";     // The file in the ai/speech directory
    talk.volume = 1.050;         // The sound volume
    talk.text   = false;         // Do not show text in dialog window

    First the ai/speech/saiko/ location is tried. If the file is not there the ai/speech/default/ location is used.
    This allows you to add girl specific sounds.