Radio Mod Is Out!

Discussion in 'Content Creation' started by TheStatPow, Nov 6, 2015.

?

Should I release it?

  1. Yes, please, as soon as you can.

    190 vote(s)
    96.9%
  2. No, its dumb and you're dumb, you smell like pee so nobody wants to be around you >:(

    6 vote(s)
    3.1%
  1. TheStatPow

    TheStatPow
    Expand Collapse

    Joined:
    Aug 8, 2013
    Messages:
    145
    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 :p

    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 :eek:)

    [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!

     
    #1 TheStatPow, Nov 6, 2015
    Last edited: Nov 7, 2015
    • Like Like x 12
  2. Zappymouse

    Zappymouse
    Expand Collapse

    Joined:
    Jun 18, 2013
    Messages:
    1,060
    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.
     
  3. TheStatPow

    TheStatPow
    Expand Collapse

    Joined:
    Aug 8, 2013
    Messages:
    145
    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 :D
     
  4. TheStatPow

    TheStatPow
    Expand Collapse

    Joined:
    Aug 8, 2013
    Messages:
    145
    i'll still try to find a fix for it.
     
  5. Zappymouse

    Zappymouse
    Expand Collapse

    Joined:
    Jun 18, 2013
    Messages:
    1,060
    If the engine sound isn't doppler shifted, you can find a solution for your radio.
     
  6. TheStatPow

    TheStatPow
    Expand Collapse

    Joined:
    Aug 8, 2013
    Messages:
    145
    True.
     
  7. crashmaster

    crashmaster
    Expand Collapse

    Joined:
    Aug 4, 2013
    Messages:
    1,820
    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.
     
  8. TheStatPow

    TheStatPow
    Expand Collapse

    Joined:
    Aug 8, 2013
    Messages:
    145
    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
     
    • Like Like x 1
  9. torsion

    torsion
    Expand Collapse

    Joined:
    May 31, 2015
    Messages:
    1,600
    Hmm. I'm definitely interested in seeing the code at least. Maybe we can work towards overcoming some of the limitations.
     
  10. acynder

    acynder
    Expand Collapse

    Joined:
    Mar 22, 2015
    Messages:
    231
    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
     
  11. TheStatPow

    TheStatPow
    Expand Collapse

    Joined:
    Aug 8, 2013
    Messages:
    145
    Yeah im waiting for them to fix the UI/apps stuff before getting on that!

    Would be cool.
     
  12. TheStatPow

    TheStatPow
    Expand Collapse

    Joined:
    Aug 8, 2013
    Messages:
    145
    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.
     
  13. TheStatPow

    TheStatPow
    Expand Collapse

    Joined:
    Aug 8, 2013
    Messages:
    145
    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.
     
    • Like Like x 1
  14. randomshortguy

    randomshortguy
    Expand Collapse

    Joined:
    Aug 9, 2013
    Messages:
    1,562
    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?
     
  15. TheStatPow

    TheStatPow
    Expand Collapse

    Joined:
    Aug 8, 2013
    Messages:
    145
    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.
     
  16. randomshortguy

    randomshortguy
    Expand Collapse

    Joined:
    Aug 9, 2013
    Messages:
    1,562
    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.
     
    • Like Like x 1
  17. Narwhal

    Narwhal
    Expand Collapse

    Joined:
    Aug 4, 2013
    Messages:
    1,698
    Im looking foward to this. Keep up the good work!
     
    • Like Like x 1
  18. TheStatPow

    TheStatPow
    Expand Collapse

    Joined:
    Aug 8, 2013
    Messages:
    145
    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.
     
  19. 1UZ-FE

    1UZ-FE
    Expand Collapse

    Joined:
    Oct 13, 2014
    Messages:
    351
    can there be a mode where the radio literally plays streaming audio from major radio broadcasting companies?
     
  20. TheStatPow

    TheStatPow
    Expand Collapse

    Joined:
    Aug 8, 2013
    Messages:
    145
    Welp im hitting a problem right now, radios randomly restarts if you crash too hard.
     
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice