I was browsing the idea and suggestion subforum when i saw a thread about having a radio or music player in Beamng. He was crucified because "the devs have better things to do" Which is true I then decided to take on the task of making it myself. So thus began a journey that happens only once in a decade for a programmer, its called 'Productivity' Its not a simple music player (To those who said in the suggestion thread "meh, Im just gonna open media player it'll be the same") Features: [3D Audio] The mod uses 3D audio, so it feels like its coming from the car when in external camera (Very low volume when the door are closed, and higher volume when the doors are open) and sounds like its inside the car when in the inside view Since the engine is awesome, without adding any line of code, the pitch changes slightly when you crash are turn fast, which kinda sound like tape warping (Fukken awesome *o*) To add to that it works with multiple car, you can start the radio in one car and it'lll still play from that car if you switch car. [Volume] You can use the Music volume sliders in the audio settings, I finally managed to make it separate from the Effects Volume (Engine was way to loud to listen to the music and if i brought it down it was bringing the music down too.) [It Can Break] Crash too hard the radio breaks! (No wai ) [Multiple Radio Station] You can have as many radio station as you want! (Altough i don't recommend more than 20, it might make the game lag) They continue playing foward when you are listening to another station. Cons: The big bummer is that the audio needs to be mono, Its easy, you'll only have to put it in audacity and make it mono. Its not coming out right now I can't differenciate via the script yet in what camera mode the player is (external /interior) so the external audio effect isn't quite good for now, since the radio plays via one of the hood's beam and is suppose to switch to a door beam from external camera. No Apps and UI,Thus music playlist are for later because the Apps making is broken right now. The radio stations Goes back to the beginning and reloads if you respawn the car with ctrl_r (easy fix, ill put the script outside the vehicle scripts so it won't reload with all the vehicle scripts) Enjoy a showcase for now, the Mod will come out in a day or 2, I have some stuff left to do and i have irl work tommorow :c "Why are you making this thread if you aren't releasing it right now??" Im a bit of an attention whore, please aknowledge me, im also a big tease. :3 EDIT: the radio mod is now available in the programming and utility subforum!
You need to find a way to stop the audio from pitch/Doppler shifting when you're at high speed. While the car was moving, Rod Stewart sounded completely munted. I do not approve of munted Rod Stewart.
Its mainly not at highspeed, its when the camera accelerate quickly ex: if you make a really fast turn or start doing barrel rolls. I don't think its possible sadly, its the way the engine is. nothing lua scripting can really do sadly Anyway, it sound like old tape warping i'd keep it
This is awesome, how will you be able to add your own music tho. probably going to be easier to know when its released tho. I really like this. keep it up. cant wait to try this out.
In the content folder /music/ and for the radio station its Content/music/radio/ It'll take .mp3 /.wav / .ogg as long as its mono, easy to do in audacity. Going to sleep now, Ill probably release it tommorow after work
Hmm. I'm definitely interested in seeing the code at least. Maybe we can work towards overcoming some of the limitations.
I can not wait to use the mod! May in the future you can edit the texture of the radius on the cars to display what it's playing station
Sure the whole mod will only be the modified sounds.lua file, until i can code an apps, once its out feel free to try to find a fix for the auto Pitching /doppler effect. I can't get my hand on it. also i can't get my hand on how to get the camera changing still.
Mod is taking form little by little, It'll be out in about 5 hours Max. I just finished fixing a problem where radio station kept unloading.
Hey, cheers to you for going ahead with the idea despite little to no interest. I'm interested, will be watching the thread. Can we expect a GUI for the mod, or is it commandline only?
Thanks for the kind word, its rare that i get productive! GUI will come when they fix and release a better tutorial on how to make apps. Its command line to get the radio started for now, and you can map keys to turn on the radio or turn it off, or change the stations. Volume is controlled using the music volume slider in the settings.
Thanks for the answer. Perhaps if I have time I might look into app creation, I imagine a simple box that outputs lua commands can't be too hard to make.
Maybe even making it like GTA, you can assign a Image to a radio station so when you switch station the image appear at the top with the station's name.
can there be a mode where the radio literally plays streaming audio from major radio broadcasting companies?