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

To join the OverTake Racing Club races I want them to be: (multiple choice)

  • Free to access

    Votes: 116 87.2%
  • Better structured events

    Votes: 22 16.5%
  • Better structured racing club forum

    Votes: 23 17.3%
  • More use of default game content

    Votes: 17 12.8%
  • More use of fixed setups

    Votes: 42 31.6%
  • No 3rd party registration pages

    Votes: 48 36.1%
  • Less casual events

    Votes: 13 9.8%
  • More casual events

    Votes: 41 30.8%
  • Other, specify in thread

    Votes: 6 4.5%
Back
Top