PlaySoundPlugin
Triggers remote or local sound files based on numeric keypad code or menu.
模組介紹 作者原文
Play Sound Plugin
This unofficial TaleSpire plugin allows playing sounds based on a numeric keypad code. This allows an infinte number
of sounds to be referenced from within the game. However, the plugin does not provide the user with a user friendly
way to determine which code entry is associated with which file - the user will have to handle the coorelation on
his/her own.
Video:
This plugin, like all others, is free but if you want to donate, use:
Change Log
1.1.1: Updated for compatibility with BR Seats update.
1.1.0: Added UI menu option.
1.1.0: Fixed bug with audio file location.
1.0.0: Initial release.
Install
Use R2ModMan or similar installer to install this plugin.
You will need to configure this plugin using the R2ModMan Edit Config.
Configuration
Set the `Audio file location and file name` setting. This is the path to the audio files. For local references
(which means all players need to have them locally) start this setting with `file://` followed by the path to
the audio files. For remote repositories start the setting with the URL (inclduing `http:// or
The end of the setting should have the name of the file with the code being represented by a single `#` character.
For example, ` or file://D:/Audio/#.mp3`.
Set the `Number of code digits` to the number of digits used for the code. As soon as this many digits are typed
the corresponding audio file, if present, will be requested to play. For example, for a 3 digit code, thus allowing
999 audio files, set the value to 3. For a 2 digit code, thus allowing 99 audio files, set the value to 2. And so on.
Adding Files
Mode 1: Code Trigger
Place the desired files into the location configured in the configuration (see above). Rename the files to match the
pattern configured in the configuration file replacing the `#` character with the desired code. Ensure that the
desired code matches the number of cogured digits. For example,
`Number of code digits = 2`
`Audio file location and file name = file://D:/Audio/#.mp3`
Then you would rename your audio files to:
`D:/Audio/01.mp3`
`D:/Audio/02.mp3`..
`D:/Audio/99.mp3`
Note that because the setting was set to two digits the file name replaces the `#` character with a 2 digit code.
Mode 2: Menu Trigger
When using the Menu Trigger mode, the plugin looks at the path indicated in the `Audio file location and file name`
and uses that to determine the root location of the audio files menu. Any audio files (ACC, MP3, OGG or WAV) files
will be shown in the root menu. Any folder hierarchy within this folder will be created as a menu hierarchy enumerating
all audio files within as the user navigates the hierarchy.
For example, the configuration of `D:/Audio/#.mp3 would enumerate all the audio files in D:/Audio/`.
Note that in Menu Trigger mode, the filename in the configuration is ignored but must be present. As such the confguration
above should not be `D:/Audio/` it needs to contain a file pattern which, in this case, is a dummy.
In order to support remote files using this method, an additional type of file is supported: WWW. WWW files are text file
with a WWW extension whose content is the URL of the remote file. This allows the creation of local files for the plugin
to enumerate in the menu system but still refer to remote files.
Usage
Mode 1: Code Trigger
- Ensure `Num Lock` is on.
- Enter the numeric code for the file on the keypad.
- Enter all zeros (how even many digits there are in your code) to stop playing audio.
Mode 2: Menu Trigger
- Press the menu shortcut. Default: `Insert`
- Select audio using the side out menu.
Limitation
Since the plugin expects audio files in a specific location - so that you can build the desired hierarchy of folders,
that means that asset packs with Audio files (such as those used for the Audio Plugin) cannot be used out of the box.
However, the steps to add s
安裝與使用 安裝:按包內說明操作
- 解壓本站下載的壓縮包,先讀包內的 readme / 說明檔案。
- 多數模組依賴遊戲的模組載入器:常見做法是用社群模組管理器(如 r2modman)選中本遊戲安裝,由管理器自動處理載入器與依賴。
- 手動安裝時,把模組檔案放進遊戲目錄下對應的 Mod / plugins 資料夾。
- 啟動遊戲確認載入成功;帶「前置依賴」的模組需要把依賴一併安裝。
不同模組的安裝位置差異較大,包內說明是最可靠的依據。
下面這些內容需要先安裝,否則該模組不會生效: