Difference between revisions of "Documentation/Engine/Sound/Modding"
(→Create own sound - Step by step) |
|||
(17 intermediate revisions by 2 users not shown) | |||
Line 5: | Line 5: | ||
<br> | <br> | ||
All modded sounds must be a part of new FMOD bank to be usable for the game.<br> | All modded sounds must be a part of new FMOD bank to be usable for the game.<br> | ||
− | |||
You need install FMOD Studio software to authoring new sound for the game.<br> | You need install FMOD Studio software to authoring new sound for the game.<br> | ||
+ | Always use template (for the specific game version) of the sound bank to create your sound project.<br> | ||
+ | Visit the [[Documentation/Engine/Sound/Downloads|Downloads]] section to get template project or sound examples. | ||
== Create own bank - Step by step == | == Create own bank - Step by step == | ||
Line 27: | Line 28: | ||
# Open your project in FMOD Studio to edit it.<br>The events browser displays your project's events and event folders. | # Open your project in FMOD Studio to edit it.<br>The events browser displays your project's events and event folders. | ||
− | # To create an event in this browser, right click on an empty space and select "New Event" from the context menu.<br>This opens a sub-menu, in which you have the option to make a 3D Event | + | # To create an event in this browser, right click on an empty space and select "New Event" from the context menu.<br>This opens a sub-menu, in which you have the option to make a 3D Event or a 2D Event (or a custom default event). |
# Select 2D or 3D option in dependency which sound you want to modding. | # Select 2D or 3D option in dependency which sound you want to modding. | ||
# Set name for the new event. (''System independent names are strongly recommended.'') | # Set name for the new event. (''System independent names are strongly recommended.'') | ||
Line 33: | Line 34: | ||
# Assign the event to the audio bus.<br>Open window "Mixer Routing" and drag the "new event" to the target audio bus. | # Assign the event to the audio bus.<br>Open window "Mixer Routing" and drag the "new event" to the target audio bus. | ||
# Edit your sound... | # Edit your sound... | ||
+ | ''Notes:''<br> | ||
+ | - ''Always create new events!''<br> | ||
+ | - ''If you create new project from other templates (for ex. from your older project) also always create new event with unique GUID!''<br> | ||
+ | - ''The 'copy-paste' process create new GUID for the event so it is recomended way to duplicate or move sound events.''<br> | ||
+ | - ''Take a care for abilities of sound - 2D/3D, loop, controlling parameters. Sound features are dependent on sound type you modding. Some abilities of the sound are necessary for the correct sound playing.'' | ||
== Prepare bank to the game - Step by step == | == Prepare bank to the game - Step by step == | ||
− | + | When you finished work on new sounds you should prepare the sound bank to the game.<br> | |
+ | # Build the bank.<br>Simply select menu File / Build... in the FMOD Studio.<br>The file "[bank name].bank" should be created in the "build" subfolder of your project.<br>''The "master.bank" and "master.strings.bank" files will probably also be created, but ignore them.'' | ||
+ | # Export GUIDs.<br>Select menu File / Export GUIDs... in the FMOD Studio.<br>The file "GUIDs.txt" should be created in the same subfolder.<br>(''You should see your new events in the object list in the GUIDs.txt file content.'') | ||
+ | # Rename file "GUIDs.txt" to "[bank name].bank.guids". | ||
+ | # You can optimize the contents of the guids file by leaving only those objects you created yourself and remain part of the new bank. But it is not absolutely necessary. | ||
+ | # The both files ("[bank name].bank" and "[bank name].bank.guids") is the only one content you should use in your sound mod. | ||
+ | # Edit the game's configuration files to include a link to your audio events. | ||
+ | # Enjoy new sounds. | ||
+ | ''Notes:''<br> | ||
+ | - ''Please, take a care what do you want to change in game and minimize overwriting files. You should provide space for the other modders.''<br> | ||
+ | - ''If you want to change all sound in the bank create new bank with the same name on overwrite it.''<br> | ||
+ | - ''If you want to change global or default sound create new bank with new event. Then overwrite only the .soundref file to redirect sound event to your new bank and event.''<br> | ||
+ | - ''If you want to change specific sound create new bank with new event. Then overwrite configuration file of the specified component or accessory to redirect sound to your event.''<br> | ||
+ | |||
+ | == Fan-created video tutorials and info == | ||
+ | Here you can see various approaches or variants of basic process as stored in first post of FMOD thread on our forum (rest of thread are learning and discussions from open beta period). It might be easier to understand for someone as it was created by people that did not knew the system at first - https://forum.scssoft.com/viewtopic.php?f=178&t=281124 |
Revision as of 09:12, 9 July 2020
Contents
Modding Sound
FMOD requires each sound bank to have its own globally unique identifier (GUID). It also requires that the main mix buses of the master bank of each sound have the same GUIDs.
FMOD Studio does not provide a user interface to edit GUIDs, so to make it easier to create a correctly authored third party sounds, we are providing our Master Bank as a template for the new sound projects.
All modded sounds must be a part of new FMOD bank to be usable for the game.
You need install FMOD Studio software to authoring new sound for the game.
Always use template (for the specific game version) of the sound bank to create your sound project.
Visit the Downloads section to get template project or sound examples.
Create own bank - Step by step
- Download template.bank project.
- Unzip project to the 'your new sound project' folder.
- Rename "template.fspro" file (in project root folder) to "[my project name].fspro".
(Not necessary but recommended.) - Open your project (simply open [my project name].fspro file) in FMOD Studio software.
- There are three browsers that can appear in an event editor window: the events browser, the banks browser, and the assets browser.
To create a new bank, right click in an empty space in the banks browser and select "New Bank". - Set the name of the new bank.
The bank name determines the name of the bank file so it is strongly recommended to use system independen names (lowercase chars, no spaces,...). - That is it!
New GUID is automatically create by FMOD for the new bank, so you have own independent bank which can be used in the game for modded sounds.
Notes:
- Always create new bank because creating new GUID for the bank is necessary!
- If you create new project from other templates (for ex. from your older project) also always create new bank. The GUIDs have to be unique!
- Never rename 'master' bank to other bank!
- Never delete the standard buses that come with the template project! If you delete them and create your own, they will not work even if the names are the same!
Create own sound - Step by step
It is very easy if you are familiar with FMOD Studio.
- Open your project in FMOD Studio to edit it.
The events browser displays your project's events and event folders. - To create an event in this browser, right click on an empty space and select "New Event" from the context menu.
This opens a sub-menu, in which you have the option to make a 3D Event or a 2D Event (or a custom default event). - Select 2D or 3D option in dependency which sound you want to modding.
- Set name for the new event. (System independent names are strongly recommended.)
- Assign the event to your bank.
Right click on the "new event", select "Assign to Bank" menu and select target bank in submenu. - Assign the event to the audio bus.
Open window "Mixer Routing" and drag the "new event" to the target audio bus. - Edit your sound...
Notes:
- Always create new events!
- If you create new project from other templates (for ex. from your older project) also always create new event with unique GUID!
- The 'copy-paste' process create new GUID for the event so it is recomended way to duplicate or move sound events.
- Take a care for abilities of sound - 2D/3D, loop, controlling parameters. Sound features are dependent on sound type you modding. Some abilities of the sound are necessary for the correct sound playing.
Prepare bank to the game - Step by step
When you finished work on new sounds you should prepare the sound bank to the game.
- Build the bank.
Simply select menu File / Build... in the FMOD Studio.
The file "[bank name].bank" should be created in the "build" subfolder of your project.
The "master.bank" and "master.strings.bank" files will probably also be created, but ignore them. - Export GUIDs.
Select menu File / Export GUIDs... in the FMOD Studio.
The file "GUIDs.txt" should be created in the same subfolder.
(You should see your new events in the object list in the GUIDs.txt file content.) - Rename file "GUIDs.txt" to "[bank name].bank.guids".
- You can optimize the contents of the guids file by leaving only those objects you created yourself and remain part of the new bank. But it is not absolutely necessary.
- The both files ("[bank name].bank" and "[bank name].bank.guids") is the only one content you should use in your sound mod.
- Edit the game's configuration files to include a link to your audio events.
- Enjoy new sounds.
Notes:
- Please, take a care what do you want to change in game and minimize overwriting files. You should provide space for the other modders.
- If you want to change all sound in the bank create new bank with the same name on overwrite it.
- If you want to change global or default sound create new bank with new event. Then overwrite only the .soundref file to redirect sound event to your new bank and event.
- If you want to change specific sound create new bank with new event. Then overwrite configuration file of the specified component or accessory to redirect sound to your event.
Fan-created video tutorials and info
Here you can see various approaches or variants of basic process as stored in first post of FMOD thread on our forum (rest of thread are learning and discussions from open beta period). It might be easier to understand for someone as it was created by people that did not knew the system at first - https://forum.scssoft.com/viewtopic.php?f=178&t=281124