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 often do you meet up (IRL) with your simracing friends?

  • Weekly

    Votes: 23 9.1%
  • Monthly

    Votes: 13 5.2%
  • Yearly

    Votes: 20 7.9%
  • Weekly at lan events

    Votes: 1 0.4%
  • Monthly at lan events

    Votes: 0 0.0%
  • Yearly at lan events

    Votes: 4 1.6%
  • Never have

    Votes: 197 78.2%
Back
Top