Resource icon

In-Race Music 1.2.5

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.

What do you think about subscription models in simracing?

  • It's fine

  • It's fine for hardware

  • It's fine for software

  • I don't like it

  • I don't like it for hardware

  • I don't like it for software

  • Other, please comment


Results are only viewable after voting.
Back
Top