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

Both sides previous revisionPrevious revision
Next revision
Previous revision
mtr:dev:custom_bve_sound [2023/12/20 14:04] – Wording adjustment 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, [[mtr_extra:resourcepack:make|custom trains 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 added with Resource Pack (Livery works as well).   - An custom MTR Mod train added with Resource Pack (Livery works as well).
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.1703081079.txt.gz · Last modified: 2023/12/20 14:04 by lx862