Spotify Radio [.NET] 1.0.5
16594
172
-
1 januari 2021
This will add a new radio to the radio wheel that will control any Spotify playback currently playing.
Video Showcase
Video How To Install
Github link
Requirements(Must have these downloaded and installed first):
- Scripthook V
- Community Script Hook V
- NativeUI
- Community HUD.gfx by WildBrick142
Microsoft Visual C++ 2015 Redistributable[IF NOT INSTALLED ALREADY]
The download is located under "Visual Studio 2015, 2017 and 2019"
Download the x64 version- Spotify Premium is required for mod to work perfectly...I am working on building an in-game player and if possible should work with free accounts
Recommended(If you get out of memory errors, then this is required)
Credits
- Thank you to WildBrick142 for creating the Community HUD.gfx mod because this would not be possible without WildBrick's mod and contributions.
- Thank you to Dexyfex for CodeWalker and the CoderWalker community. CodeWalker's discord is an amazing resource and where I was able to learn how to make this mod.
- Thank you to Carl Johnson for the Chatterbox FM mod. I did not know addon radios were possible until this mod, I had the spotify up and working but did not an addon radio was possible.
- These 3 individuals may not even know it, but reading their posts and their discussions helped greatly and this mod wouldn't be possible with that them. Shoutout to them!!!
- Also big thanks to Spotify for their API and JohnnyCrazy for the C# client
How To Use
Make sure to have Spotify open somewhere, it could be the desktop application, the web application, your phone, an alexa, idk, as long as it is Spotify and its running on the device you want to hear it from.
The Spotify web player can be found here: https://open.spotify.com/
When you have installed the mod correctly, you will sign in with Spotify, authorize the spotify app, and then all you have to do is get in a car and switch to the newly added Spotify Radio
Press F10 in game for additional control over your music like setting your Radio's Playlist and changing volume.
How does the sign in work? Well the window will send you to the following website: https://gta-spotify-radio.web.app/login. This will immediately redirect you to an official Spotify login controlled by Spotify themselves. You can view the github repo in backend/functions/index.js for how this is implemented. And then you can look at SpotifyRadio/SpotifyRadio/Form1.cs to see the browser opening the mentioned website link. You can also just press the link to see it happen for yourself. This mod follows the Authorization Code Flow for Spotify's API which you can read about here: https://developer.spotify.com/documentation/general/guides/authorization-guide/
How To Install (Make sure to have installed the requirements first)
- Use OpenIV to edit the file: "mods\update\update.rpf\common\data\dlclist.xml"
- Add this to the dlclist.xml:
dlcpacks:/spotifyradio (this should be in-between item tags. I think the tags get cut off here, View readme in case you're confused) - Close OpenIV
- In this mod's files open the folder "Place in GTA Root"
- Select all the folders and drag that to the root directory of GTA
Default location is "C:\Program Files (x86)\Steam\steamapps\common\Grand Theft Auto V"
How To Set a Default Radio Playlist
- Open your favorite browser and go to https://open.spotify.com/
- Find the playlist you would like to use, and press it
- The url should look something like this https://open.spotify.com/playlist/37i9dQZF1DX0XUsuxWHRQd
- Copy the id that comes after the playlist/
- So with the example url, it will be 37i9dQZF1DX0XUsuxWHRQd
- Open GTASpotify.ini and next to DefaultPlaylst=, paste it in
- So for example, your ini should look like this: DefaultPlaylist=37i9dQZF1DX0XUsuxWHRQd
Known Bugs
- Spotify music does not stop when game is paused.
- Black screen on main menu. Caused by fullscreen game, working on fix but easy work around.
- Press ALT+TAB and find the Spotify Login window, close that
- Go back to gta 5, it should not be frozen anymore.
- Once in game, change your display settings to windowed.
- Reload the mod.
- Sign into spotify.
- Put the game back into fullscreen.
- Enjoy
- If you get other bugs, then one thing I recommend doing is to check if your firewall is blocking outbound connections on GTA5, if it is then it is blocking your requests to control Spotify's playback.
Changelog
v1.0.5
- Support for the new Community Script Hook version
v1.0.4
- Podcast Support
- Display track name on first person radio
- Added a match mood(WIP), gameplay tries to match the music
v1.0.3
- Can now set playback device in game
- Added ini to change default settings
- Bug fixes and better error handling
v1.0.2
- Reduced the size of the mod by shortening length of empty audio files
v1.0.1
- Removed unnecessary folders from SpotifyRadio folder.
v1.0
- First release
Först uppladdad: 14 november 2020
Senast uppdaterad: 1 januari 2021
Senast nedladdad: 36 minuter sen
168 Kommentarer
This will add a new radio to the radio wheel that will control any Spotify playback currently playing.
Video Showcase
Video How To Install
Github link
Requirements(Must have these downloaded and installed first):
- Scripthook V
- Community Script Hook V
- NativeUI
- Community HUD.gfx by WildBrick142
Microsoft Visual C++ 2015 Redistributable[IF NOT INSTALLED ALREADY]
The download is located under "Visual Studio 2015, 2017 and 2019"
Download the x64 version- Spotify Premium is required for mod to work perfectly...I am working on building an in-game player and if possible should work with free accounts
Recommended(If you get out of memory errors, then this is required)
Credits
- Thank you to WildBrick142 for creating the Community HUD.gfx mod because this would not be possible without WildBrick's mod and contributions.
- Thank you to Dexyfex for CodeWalker and the CoderWalker community. CodeWalker's discord is an amazing resource and where I was able to learn how to make this mod.
- Thank you to Carl Johnson for the Chatterbox FM mod. I did not know addon radios were possible until this mod, I had the spotify up and working but did not an addon radio was possible.
- These 3 individuals may not even know it, but reading their posts and their discussions helped greatly and this mod wouldn't be possible with that them. Shoutout to them!!!
- Also big thanks to Spotify for their API and JohnnyCrazy for the C# client
How To Use
Make sure to have Spotify open somewhere, it could be the desktop application, the web application, your phone, an alexa, idk, as long as it is Spotify and its running on the device you want to hear it from.
The Spotify web player can be found here: https://open.spotify.com/
When you have installed the mod correctly, you will sign in with Spotify, authorize the spotify app, and then all you have to do is get in a car and switch to the newly added Spotify Radio
Press F10 in game for additional control over your music like setting your Radio's Playlist and changing volume.
How does the sign in work? Well the window will send you to the following website: https://gta-spotify-radio.web.app/login. This will immediately redirect you to an official Spotify login controlled by Spotify themselves. You can view the github repo in backend/functions/index.js for how this is implemented. And then you can look at SpotifyRadio/SpotifyRadio/Form1.cs to see the browser opening the mentioned website link. You can also just press the link to see it happen for yourself. This mod follows the Authorization Code Flow for Spotify's API which you can read about here: https://developer.spotify.com/documentation/general/guides/authorization-guide/
How To Install (Make sure to have installed the requirements first)
- Use OpenIV to edit the file: "mods\update\update.rpf\common\data\dlclist.xml"
- Add this to the dlclist.xml:
dlcpacks:/spotifyradio (this should be in-between item tags. I think the tags get cut off here, View readme in case you're confused) - Close OpenIV
- In this mod's files open the folder "Place in GTA Root"
- Select all the folders and drag that to the root directory of GTA
Default location is "C:\Program Files (x86)\Steam\steamapps\common\Grand Theft Auto V"
How To Set a Default Radio Playlist
- Open your favorite browser and go to https://open.spotify.com/
- Find the playlist you would like to use, and press it
- The url should look something like this https://open.spotify.com/playlist/37i9dQZF1DX0XUsuxWHRQd
- Copy the id that comes after the playlist/
- So with the example url, it will be 37i9dQZF1DX0XUsuxWHRQd
- Open GTASpotify.ini and next to DefaultPlaylst=, paste it in
- So for example, your ini should look like this: DefaultPlaylist=37i9dQZF1DX0XUsuxWHRQd
Known Bugs
- Spotify music does not stop when game is paused.
- Black screen on main menu. Caused by fullscreen game, working on fix but easy work around.
- Press ALT+TAB and find the Spotify Login window, close that
- Go back to gta 5, it should not be frozen anymore.
- Once in game, change your display settings to windowed.
- Reload the mod.
- Sign into spotify.
- Put the game back into fullscreen.
- Enjoy
- If you get other bugs, then one thing I recommend doing is to check if your firewall is blocking outbound connections on GTA5, if it is then it is blocking your requests to control Spotify's playback.
Changelog
v1.0.5
- Support for the new Community Script Hook version
v1.0.4
- Podcast Support
- Display track name on first person radio
- Added a match mood(WIP), gameplay tries to match the music
v1.0.3
- Can now set playback device in game
- Added ini to change default settings
- Bug fixes and better error handling
v1.0.2
- Reduced the size of the mod by shortening length of empty audio files
v1.0.1
- Removed unnecessary folders from SpotifyRadio folder.
v1.0
- First release
Först uppladdad: 14 november 2020
Senast uppdaterad: 1 januari 2021
Senast nedladdad: 36 minuter sen
-
Do I follow the instructions in the readme file or the description page? The readme file includes replacing textures in hud.ytd while the description page does not.
12 november 2021 -
My hud.ytd does not have the "gtav_radio_stations_texture05_512.dds" in the hud.ytd file. Do I just add the dds file into the ytd file anyway?
12 november 2021 -
Will it possible for this mod to work with mobile radio function in Simple Trainer or Menyoo Trainer? Currently you are able to switch to spotify in those trainers but the audio is muted if you are on foot and not in a vehicle with radio. Other channels are working fine.
12 november 2021 -
Or perhaps to auto-pause the radio when you get out of the vehicle and auto-resume the radio when you get back in?
12 november 2021 -
-
Does show the NativeUI controls but the Spotify Radio isn't appearing in the wheel system, and the Spotify playlist doesn't automatically pause when you leave the car. Any help greatly welcome
10 december 2021 -
@SNDST00M In order to get the radio to show in the wheel system, install this https://www.gta5-mods.com/tools/community-hud-gfx-for-add-on-radio-stations.
And as far as pausing, it does not pause, it mutes instead. This was intentional as I was thinking about how a radio doesn't stop playing music once you leave your car, so that when you re enter your car it's a different song paying if enough time passed.
13 december 2021 -
Anyone having issues getting the login to popup when starting story mode. I was able to fix it by giving my account full control of the GTAV directory. It was a permission issue for me. (Right click on GTAV main folder --> Security --> full control for your specific user)
14 december 2021 -
Exactly the kind of mod I was looking for! It's not perfect, but it does what I need to.
-Obviously you know this already, but Spotify does not pause when game is paused
-Spotify unmutes at times when it logically shouldn't, such as in police vehicles and bicycles.
-While most radio stations have the music volume when dialogue is playing, Spotify Radio doesn't. I would suggest having it lower the volume by a certain percentage of what it's set to be at by default if it is possible to do so.
-Everytime I switch to Spotify Radio, or it's automatically turned on when I enter a vehicle, the game lags. It's not a huge deal as it's only barely noticeable, and it may depend on hardware, since I know I don't exactly have the most powerful machine in the world.
-There was one time where the script straight up crashed as I got into a vehicle, but luckily I was able to reload it by using ScriptHookVDotNet. I don't know how to recreate it, but if it happens again, I will try to remember what I did before it did.6 januari 2022 -
scaleform_generic.rpf" isnt an option for me..... cant proceed any further help please
23 februari 2022 -
@Wyvernken try reinstalling the CommunityHUDGFX had same issue. reinstalled files and it showed up
1 mars 2022 -
ive got it to show up in game and it works but when changing playback device whole mod crashs game still running but the station is dead and f10 doesnt respond
1 mars 2022 -
Everything work except it cant detect any playback devices thus i cant play any music
7 maj 2022 -
-
Its not detecting a playback device and is only wanting to play it from my phone
18 juni 2022 -
@StubbierLime I have windows 10 and the spotify app from the windows store installed. With game running start the app open the spotify menu refresh devices and your computer should show instantly
2 juli 2022 -
-
Froze my entire computer and caused the lights in my room to flicker
11 oktober 2022 -
No longer turns off when you're knocked off your vehicle, doesn't work with the app at all anymore, doesn't change volume at all when changing stations in Firefox (only Chromium player semi-works).
8 november 2022 -
Hello, I installed as instructed, however, I couldn't find "scaleform_generic.rpf" so I searched it using OpenIV. Once I found it in the mods folder, I proceeded. This might've been where I went wrong, however, I'm not sure. Then, I had an issue with the game version and ScriptHookV so I changed the GTA5.exe and PlayGTAV.exe files to the older versions with a file I found online. Once I did that, the game launched as normal. Then, when I hit Story Mode, it crashes. I would like to know what file could potentially be at fault here or if I screwed up by going in the wrong folder or anything. Any help would be appreciated, and I would also like to know if the radio plays through other sources in game than cars (Like Franklin's house on the hills with a radio in the rooms) and whether that's even possible without Spotify allowing audio through their API.
18 december 2022
WildBrick142(https://www.gta5-mods.com/users/WildBrick142) has updated the Community HUD mod and that makes installing this mod a lot easier. You can now skip steps 3-7 from the README file and safely ignore the hud.gfx file and the gtav_radio_stations_texture05_512.dds file that comes with the Spotify Radio mod.
So be sure to update the Community HUD mod(https://www.gta5-mods.com/tools/community-hud-gfx-for-add-on-radio-stations), it will help prevent problems when trying to get more radios.