HTML5 Plyr

Adding VVVF Inverter Sound to Create Mod Trains

Wenting Channel · Jun 1, 2025 · 03:32

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.

I 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:
- 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
- Despite being purely client-side feature, because I modified the Create, the server also needs a copy of my modified version of the Create
- Mods that injects to Create's train sound generation (namely, Steam' n' Rails) would crash. So I had to patch that as well.
- 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.

Given 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
Comments (42 saved) click to expand
Loading comments…
mirrors
video (Anonhost): https://r2.anonhost.cc/WOoYjIxCFA.mp4
video (pasted.sh): https://pasted.sh/QpIh.mp4
video (Gofile): https://gofile.io/d/u4JNLwv9
video (VikingFile): https://vikingfile.com/f/7ANfNj4j7K
video (Hexupload): https://hexload.com/3fsbfiwb3ezr
video (BiteBlob): https://biteblob.com/Information/B5EBzt3phLUg4z