{"id":"KGAu82gZKPo","title":"Adding VVVF Inverter Sound to Create Mod Trains","description":"I have recently started playing Create Mod with my friends. I built a train route that goes around ore veins in the server. I decided to use the monorail from the Steam' n' Rails mod, and it worked great except one thing: the monorail train shouldn't sound like as if it has a steam engine. So I decided to modify the code to replace the steam engine sound with VVVF inverter sound.\n\nI have never done any mod development before so I have no idea how to actually do it properly. For now I just hacked together a demo version that barely works to show the concept. Some of the main issues I have right now is that:\n- Instead of being a mod depending on Create, I am modifying the code of Create itself. Works for me for now but it's messy\n- Despite being purely client-side feature, because I modified the Create, the server also needs a copy of my modified version of the Create\n- Mods that injects to Create's train sound generation (namely, Steam' n' Rails) would crash. So I had to patch that as well.\n- The way I am calculating the speed is super sensitive to lag (jitter). I believe my code doesn't introduce significant lag, but the our map is already laggy enough. This is also why I had to record the video with shaders turned off. Otherwise it pretty much doesn't work.\n\nGiven that I am super busy with all other projects... Unfortunately I think it's unlikely I will ever turn this demo into a viable mod","duration":212,"upload_date":"2025-06-01","view_count":3315,"like_count":134,"dislike_count":1,"comment_count":42,"status":"completed","archived_at":"2026-10-18 11:08:37.840041","metadata":{"id":"KGAu82gZKPo","title":"Adding VVVF Inverter Sound to Create Mod Trains","channel":"Wenting Channel","duration":212,"uploader":"Wenting Channel","extractor":"innertube","thumbnail":"https://i.ytimg.com/vi/KGAu82gZKPo/hqdefault.jpg","channel_id":"UCkbVQA_Isfnvv1XNL_mELig","like_count":134,"thumbnails":{"high":{"url":"https://i.ytimg.com/vi/KGAu82gZKPo/hqdefault.jpg","width":480,"height":360},"maxres":{"url":"https://i.ytimg.com/vi/KGAu82gZKPo/maxresdefault.jpg","width":1280,"height":720},"medium":{"url":"https://i.ytimg.com/vi/KGAu82gZKPo/mqdefault.jpg","width":320,"height":180},"default":{"url":"https://i.ytimg.com/vi/KGAu82gZKPo/default.jpg","width":120,"height":90},"standard":{"url":"https://i.ytimg.com/vi/KGAu82gZKPo/sddefault.jpg","width":640,"height":480}},"view_count":3315,"_channel_id":"UCkbVQA_Isfnvv1XNL_mELig","description":"I have recently started playing Create Mod with my friends. I built a train route that goes around ore veins in the server. I decided to use the monorail from the Steam' n' Rails mod, and it worked great except one thing: the monorail train shouldn't sound like as if it has a steam engine. So I decided to modify the code to replace the steam engine sound with VVVF inverter sound.\n\nI have never done any mod development before so I have no idea how to actually do it properly. For now I just hacked together a demo version that barely works to show the concept. Some of the main issues I have right now is that:\n- Instead of being a mod depending on Create, I am modifying the code of Create itself. Works for me for now but it's messy\n- Despite being purely client-side feature, because I modified the Create, the server also needs a copy of my modified version of the Create\n- Mods that injects to Create's train sound generation (namely, Steam' n' Rails) would crash. So I had to patch that as well.\n- The way I am calculating the speed is super sensitive to lag (jitter). I believe my code doesn't introduce significant lag, but the our map is already laggy enough. This is also why I had to record the video with shaders turned off. Otherwise it pretty much doesn't work.\n\nGiven that I am super busy with all other projects... Unfortunately I think it's unlikely I will ever turn this demo into a viable mod","upload_date":"20250601","uploader_id":"UCkbVQA_Isfnvv1XNL_mELig","webpage_url":"https://www.youtube.com/watch?v=KGAu82gZKPo","_enriched_at":"2026-10-18T09:08:35+00:00","_meta_sources":["oembed","watch_page","ryd"],"comment_count":15,"dislike_count":1,"thumbnail_url":"https://i.ytimg.com/vi/KGAu82gZKPo/hqdefault.jpg","average_rating":4.970370370370371,"thumbnail_path":"thumbnails/KGAu82gZKPo.jpg","dya_submitted_at":"2026-10-28T05:45:56+00:00","release_timestamp":"2025-06-01"},"captions":[]}