Resource icon

In-Race Music 1.2

Login or Register an account to download this content
Hi! This seems like an awesome idea. But could you perhaps explain how this works exactly. I'm a total amateur when it comes to python. As an aside, I have no idea how the"playsound" module is installed and searches on how to install it have been vague.
S
SwankyOrc
Download Python and install it (available here: https://www.python.org/ftp/python/3.9.4/python-3.9.4-amd64.exe) if you haven't already. This should include a thing called Pip. Then open up command prompt (search cmd in the windows search bar) and type in "pip install playsound" but without the speech marks. Then with your music placed in the "Assetto Corsa/apps/python/Music/Songs" folder as .wav files the music should start playing once you load a race in the game.

It might be a bit of a janky way of doing it but when the session loads in the music.py script is loaded. All this script does is launch the play_songs.py script that is also there which then checks all of the files in the Songs folder and starts playing from a random point. Then after each song finishes it plays the next and so on until the AC session is ended. When the session is ended the music.py script kills the play_songs.py script to stop the music.

Hope this helps.

Latest News

How long have you been simracing

  • < 1 year

    Votes: 226 14.8%
  • < 2 years

    Votes: 157 10.2%
  • < 3 years

    Votes: 153 10.0%
  • < 4 years

    Votes: 117 7.6%
  • < 5 years

    Votes: 218 14.2%
  • < 10 years

    Votes: 179 11.7%
  • < 15 years

    Votes: 121 7.9%
  • < 20 years

    Votes: 82 5.4%
  • < 25 years

    Votes: 68 4.4%
  • Ok, I am a dinosaur

    Votes: 211 13.8%
Back
Top