User Tools

Site Tools


mtr:dev:custom_bve_sound

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
mtr:dev:custom_bve_sound [2023/11/09 05:14] – created lx862mtr:dev:custom_bve_sound [2024/02/17 14:10] (current) – [Note / Troubleshooting] sfsperseverance
Line 7: Line 7:
 <WRAP round info> <WRAP round info>
  
-This article is ported from [[https://www.joban.tk/wiki/MTR:Custom_BVE_Train_Sound]], and have not covered steps for importing sounds from BVE Trainsim 5/6.+This article is ported from [[https://www.joban.org/wiki/MTR:Custom_BVE_Train_Sound]], and have not covered steps for importing sounds from BVE Trainsim 5/6.
  
 You may help improving the page by filling in the missing knowledge. You may help improving the page by filling in the missing knowledge.
Line 15: Line 15:
 ===== Prerequisite ===== ===== Prerequisite =====
  
-  - Basic knowledge of adding custom Minecraft sound, train livery via resource pack, and the JSON format.+  - Basic knowledge of adding custom Minecraft sound, [[mtr_extra:making_a_resourcepack|custom trains via resource pack]], and the JSON format.
   - An existing BVE4/OpenBVE Train   - An existing BVE4/OpenBVE Train
-  - An custom MTR Mod Train made with Resource Pack(Livery works as well).+  - An custom MTR Mod train added with Resource Pack (Livery works as well).
   - Software that is capable of exporting **.ogg** file (e.g. [[https://www.audacityteam.org|Audacity]])   - Software that is capable of exporting **.ogg** file (e.g. [[https://www.audacityteam.org|Audacity]])
-  - (Optional, but makes life way easier) Bulk renaming software (**PowerRename** from [[https://github.com/microsoft/PowerToys|PowerToys]], [[https://apps.kde.org/krename/|KRename]] on Linux, etc.)+  - //(Optional, but makes life way easier)// Bulk renaming software (**PowerRename** from [[https://github.com/microsoft/PowerToys|PowerToys]], [[https://apps.kde.org/krename/|KRename]] on Linux, etc.)
  
 ===== Process ===== ===== Process =====
  
-  - Make a copy of your BVE/OpenBVE Train folder, **you should only add/modify/delete files within the newly made copy.** +  - Make a copy of your BVE/OpenBVE Train folder, **only make changes within the newly made copy, not your original one!** 
-  - Find the folder where train sounds are located, they're either located right in the root BVE Train folder, or there might be another Sound Folder within the train folder. (They usually contains bunch of **.wav/.flac** file) +  - Find the folder where the train sound are located. They're either located right in the main train folder (bunch of sound files), or there might be another //sound// folder within the train folder. (They usually contains bunch of **.wav/.flac** file) 
-  - //If you do find another sound folder//, just put all the sound file inside to the root BVE Train Folder+  - //If you do find another sound folder//, just put all the sound file inside to the main train folder
   - Delete all other files except ***.wav, *.flac**, **train.dat** and **sound.cfg**   - Delete all other files except ***.wav, *.flac**, **train.dat** and **sound.cfg**
   - Rename **all files** **(Including sound.cfg and train.dat)** in that folder to __lowercase letter file name__. You can do it with most bulk renaming software, or you can manually renaming each one of them   - Rename **all files** **(Including sound.cfg and train.dat)** in that folder to __lowercase letter file name__. You can do it with most bulk renaming software, or you can manually renaming each one of them
-  - Add the following to sound.cfg, below ''Version 1.0:''<code - sound.cfg>+  - Edit the **sound.cfg** fileby adding the following below the line ''Version 1.0:''<code - sound.cfg>
 [MTR] [MTR]
 MotorNoiseDataType = 4 MotorNoiseDataType = 4
Line 44: Line 44:
   - Export all the **.wav/.flac** file to **.ogg** file (For Audacity user, use **File > Export > Export Multiple**, and choose ''Ogg Vorbis Files'')   - Export all the **.wav/.flac** file to **.ogg** file (For Audacity user, use **File > Export > Export Multiple**, and choose ''Ogg Vorbis Files'')
   - Copy the train folder to ''Your Resource Pack/assets/mtr/sounds''. (Make the folder if it doesn't exist)   - Copy the train folder to ''Your Resource Pack/assets/mtr/sounds''. (Make the folder if it doesn't exist)
-  - Make a sound.json file in ''Your Resource Pack/assets/mtr'' if you haven't already, an example could be found [[https://github.com/jonafanho/Minecraft-Transit-Railway/blob/0daf388b7f62868502753c55a3264c545b5dd569/resources/common/normal/assets/mtr/sounds.json|here]]. +  - Make a sounds.json file in ''Your Resource Pack/assets/mtr'' if you haven't already, an example could be found [[https://github.com/jonafanho/Minecraft-Transit-Railway/blob/0daf388b7f62868502753c55a3264c545b5dd569/resources/common/normal/assets/mtr/sounds.json|here]]. 
-  - Make a sound entry in sound.json of every file in ''sound.cfg'', the sound ID to put should be ''trainSoundID_filename'' +  - Make a sound entry in sounds.json of every file in ''sound.cfg'', the sound ID to put should be ''trainSoundID_filename'' 
-  - Your sound.json in the end should look something like this (I used ''kksp'' as my train directory name):+  - Your sounds.json in the end should look something like this (I used ''kksp'' as my train directory name):
     - {{:mtr:dev:mtr-bve2.png?600}}     - {{:mtr:dev:mtr-bve2.png?600}}
   - Finally, add the following line to your custom train entry in ''mtr_custom_resources.json'', replace ''soundID'' with your actual sound ID/Train Folder Name:   - Finally, add the following line to your custom train entry in ''mtr_custom_resources.json'', replace ''soundID'' with your actual sound ID/Train Folder Name:
Line 60: Line 60:
  
   - **You will need to re-select the train in the siding, or restart the client if you have made any changes to the sound config.**   - **You will need to re-select the train in the siding, or restart the client if you have made any changes to the sound config.**
-  - ''point.ogg'' is played whenever the train crosses a rail node, which is different from BVE's behavior (Crossing a junction). If you feel the sound doesn't fit, please remove it in sound.json+  - ''point.ogg'' is played whenever the train crosses a rail node, which is different from BVE's behavior (Crossing a junction). If you feel the sound doesn't fit, please remove it in sounds.json
   - Small motor noises may be heard even when the train is coasting, this is to simulate train adding small bits of power to maintain it's speed.   - Small motor noises may be heard even when the train is coasting, this is to simulate train adding small bits of power to maintain it's speed.
  
  
mtr/dev/custom_bve_sound.txt · Last modified: 2024/02/17 14:10 by sfsperseverance