JohnnyCrazy 34 Posted May 11, 2015 Share Posted May 11, 2015 (edited) GTAV Spotify Player | Your music in your car! Always wanted to listen to your Spotify playlists while cruising around Los Santos with full playback-control? Well, now you can! This mod will add a spotify controller in your right upper corner as soon as you enter a car. With this controller you can: View all track infos (title, artist, album, track-time) Play/Pause Skip/Previous track Select one of your playlists for playback Some Screens: Installation: Make sure you have the latest ScriptHook + ScriptHook .NET 1.0 installed! Download the latest build here: GTAVSpotify.zip Extract it inside your "Grand Theft Auto V"-Folder, so the DLL is located here: "Grand Theft Auto V/scripts/GTAVSpotify.dll" Run GTAV! Usage: Start Spotify before you go ingame (F3 won't work if spotify isn't running) Press F3 once you're ingame, a message should appear over your map. Now, just hop in a car and the player should appear. The player will pause itself when the radio is turned on. Just turn your radio off and it should play again To Control it (The small little white bar is your "cursor"): NumPad / = go left NumPad * = select NumPad - = go right When you open "Playlists" the first time, you need to enter your Spotify-ID. (If you go to your Spotify Profile, click on the 3 dots and "copy spotify-URI". "spotify:user:XXXX" XXXX is your spotify-ID) Make sure your Playlists are public! Else it won't find them. Have fun listening to your music! You can change the Key-Bindings in "GTAVSpotify.json", located in the /scripts folder. Key-Codes: Yea, Key-Codes: None: 0 LButton: 1 RButton: 2 Cancel: 3 MButton: 4 XButton1: 5 XButton2: 6 Back: 8 Tab: 9 LineFeed: 10 Clear: 12 Enter: 13 Return: 13 ShiftKey: 16 ControlKey: 17 Menu: 18 Pause: 19 CapsLock: 20 Capital: 20 HangulMode: 21 HanguelMode: 21 KanaMode: 21 JunjaMode: 23 FinalMode: 24 KanjiMode: 25 HanjaMode: 25 Escape: 27 IMEConvert: 28 IMENonconvert: 29 IMEAccept: 30 IMEAceept: 30 IMEModeChange: 31 Space: 32 Prior: 33 PageUp: 33 PageDown: 34 Next: 34 End: 35 Home: 36 Left: 37 Up: 38 Right: 39 Down: 40 Select: 41 Print: 42 Execute: 43 Snapshot: 44 PrintScreen: 44 Insert: 45 Delete: 46 Help: 47 D0: 48 D1: 49 D2: 50 D3: 51 D4: 52 D5: 53 D6: 54 D7: 55 D8: 56 D9: 57 A: 65 B: 66 C: 67 D: 68 E: 69 F: 70 G: 71 H: 72 I: 73 J: 74 K: 75 L: 76 M: 77 N: 78 O: 79 P: 80 Q: 81 R: 82 S: 83 T: 84 U: 85 V: 86 W: 87 X: 88 Y: 89 Z: 90 LWin: 91 RWin: 92 Apps: 93 Sleep: 95 NumPad0: 96 NumPad1: 97 NumPad2: 98 NumPad3: 99 NumPad4: 100 NumPad5: 101 NumPad6: 102 NumPad7: 103 NumPad8: 104 NumPad9: 105 Multiply: 106 Add: 107 Separator: 108 Subtract: 109 Decimal: 110 Divide: 111 F1: 112 F2: 113 F3: 114 F4: 115 F5: 116 F6: 117 F7: 118 F8: 119 F9: 120 F10: 121 F11: 122 F12: 123 F13: 124 F14: 125 F15: 126 F16: 127 F17: 128 F18: 129 F19: 130 F20: 131 F21: 132 F22: 133 F23: 134 F24: 135 NumLock: 144 Scroll: 145 LShiftKey: 160 RShiftKey: 161 LControlKey: 162 RControlKey: 163 LMenu: 164 RMenu: 165 BrowserBack: 166 BrowserForward: 167 BrowserRefresh: 168 BrowserStop: 169 BrowserSearch: 170 BrowserFavorites: 171 BrowserHome: 172 VolumeMute: 173 VolumeDown: 174 VolumeUp: 175 MediaNextTrack: 176 MediaPreviousTrack: 177 MediaStop: 178 MediaPlayPause: 179 LaunchMail: 180 SelectMedia: 181 LaunchApplication1: 182 LaunchApplication2: 183 OemSemicolon: 186 Oem1: 186 Oemplus: 187 Oemcomma: 188 OemMinus: 189 OemPeriod: 190 Oem2: 191 OemQuestion: 191 Oem3: 192 Oemtilde: 192 Oem4: 219 OemOpenBrackets: 219 OemPipe: 220 Oem5: 220 OemCloseBrackets: 221 Oem6: 221 OemQuotes: 222 Oem7: 222 Oem8: 223 Oem102: 226 OemBackslash: 226 ProcessKey: 229 Packet: 231 Attn: 246 Crsel: 247 Exsel: 248 EraseEof: 249 Play: 250 Zoom: 251 NoName: 252 Pa1: 253 OemClear: 254 DOWNLOAD: GTAVSpotify.zip Since I currently don't have any capture software installed, I would be more than grateful if someone could take a small video If it throws any erros, please include all log files so I can trace the issue! Thanks and have fun. Greetings, Johnny Edited June 22, 2015 by JohnnyCrazy cmtemenezes, Wasabi Ice Cream, SID44SID and 3 others 6 Link to post Share on other sites
JoshLmao 1 Posted May 11, 2015 Share Posted May 11, 2015 (edited) That is fantastic. I've been waiting for something like this and now it's here. Gonna try it out and see how it is I whipped up a quick video about it here: Edited May 11, 2015 by JoshLmao JohnnyCrazy 1 Link to post Share on other sites
mis009 92 Posted May 11, 2015 Share Posted May 11, 2015 Wow this is nice have been waiting for this good work! Link to post Share on other sites
qwerasdzxc 21 Posted May 11, 2015 Share Posted May 11, 2015 If someone could make this for Deezer OldWorldNomad 1 Link to post Share on other sites
NoShotz 14 Posted May 11, 2015 Share Posted May 11, 2015 (edited) if only it was available where i live Edit: nevermind, apparently it is now Edited May 11, 2015 by NoShotz Link to post Share on other sites
NeatSquid 2 Posted May 11, 2015 Share Posted May 11, 2015 Great work I'll be trying this out later on. If it works without stutter (*cough* Self Radio), I will be so happy Link to post Share on other sites
teisco 9 Posted May 11, 2015 Share Posted May 11, 2015 When will these moders understand that not all of us have a numberpad ? Link to post Share on other sites
JohnnyCrazy 34 Posted May 11, 2015 Author Share Posted May 11, 2015 (edited) When will these moders understand that not all of us have a numberpad ? Keys can be changed in the GTAVSpotify.json, maybe I will post the Numbercodes later But srsly, don't even mod your GTA V if you have no Numpad...we are playing on PC god damn it.... Edited May 11, 2015 by JohnnyCrazy Link to post Share on other sites
teisco 9 Posted May 11, 2015 Share Posted May 11, 2015 I play plenty of mods for which the developer has an open mind and includes other forms of input. Also this is 2015 and many play pc with smaller keyboards or laptops without a number pad. You are only limiting your audience and user base by sticking with an outdated device for control. Link to post Share on other sites
NeatSquid 2 Posted May 11, 2015 Share Posted May 11, 2015 Mod works perfectly No lag on my Pentium Link to post Share on other sites
NeatSquid 2 Posted May 11, 2015 Share Posted May 11, 2015 Can you please release the key codes? I really need to remap mine. Link to post Share on other sites
JohnnyCrazy 34 Posted May 11, 2015 Author Share Posted May 11, 2015 Yea, Key-Codes: None: 0 LButton: 1 RButton: 2 Cancel: 3 MButton: 4 XButton1: 5 XButton2: 6 Back: 8 Tab: 9 LineFeed: 10 Clear: 12 Enter: 13 Return: 13 ShiftKey: 16 ControlKey: 17 Menu: 18 Pause: 19 CapsLock: 20 Capital: 20 HangulMode: 21 HanguelMode: 21 KanaMode: 21 JunjaMode: 23 FinalMode: 24 KanjiMode: 25 HanjaMode: 25 Escape: 27 IMEConvert: 28 IMENonconvert: 29 IMEAccept: 30 IMEAceept: 30 IMEModeChange: 31 Space: 32 Prior: 33 PageUp: 33 PageDown: 34 Next: 34 End: 35 Home: 36 Left: 37 Up: 38 Right: 39 Down: 40 Select: 41 Print: 42 Execute: 43 Snapshot: 44 PrintScreen: 44 Insert: 45 Delete: 46 Help: 47 D0: 48 D1: 49 D2: 50 D3: 51 D4: 52 D5: 53 D6: 54 D7: 55 D8: 56 D9: 57 A: 65 B: 66 C: 67 D: 68 E: 69 F: 70 G: 71 H: 72 I: 73 J: 74 K: 75 L: 76 M: 77 N: 78 O: 79 P: 80 Q: 81 R: 82 S: 83 T: 84 U: 85 V: 86 W: 87 X: 88 Y: 89 Z: 90 LWin: 91 RWin: 92 Apps: 93 Sleep: 95 NumPad0: 96 NumPad1: 97 NumPad2: 98 NumPad3: 99 NumPad4: 100 NumPad5: 101 NumPad6: 102 NumPad7: 103 NumPad8: 104 NumPad9: 105 Multiply: 106 Add: 107 Separator: 108 Subtract: 109 Decimal: 110 Divide: 111 F1: 112 F2: 113 F3: 114 F4: 115 F5: 116 F6: 117 F7: 118 F8: 119 F9: 120 F10: 121 F11: 122 F12: 123 F13: 124 F14: 125 F15: 126 F16: 127 F17: 128 F18: 129 F19: 130 F20: 131 F21: 132 F22: 133 F23: 134 F24: 135 NumLock: 144 Scroll: 145 LShiftKey: 160 RShiftKey: 161 LControlKey: 162 RControlKey: 163 LMenu: 164 RMenu: 165 BrowserBack: 166 BrowserForward: 167 BrowserRefresh: 168 BrowserStop: 169 BrowserSearch: 170 BrowserFavorites: 171 BrowserHome: 172 VolumeMute: 173 VolumeDown: 174 VolumeUp: 175 MediaNextTrack: 176 MediaPreviousTrack: 177 MediaStop: 178 MediaPlayPause: 179 LaunchMail: 180 SelectMedia: 181 LaunchApplication1: 182 LaunchApplication2: 183 OemSemicolon: 186 Oem1: 186 Oemplus: 187 Oemcomma: 188 OemMinus: 189 OemPeriod: 190 Oem2: 191 OemQuestion: 191 Oem3: 192 Oemtilde: 192 Oem4: 219 OemOpenBrackets: 219 OemPipe: 220 Oem5: 220 OemCloseBrackets: 221 Oem6: 221 OemQuotes: 222 Oem7: 222 Oem8: 223 Oem102: 226 OemBackslash: 226 ProcessKey: 229 Packet: 231 Attn: 246 Crsel: 247 Exsel: 248 EraseEof: 249 Play: 250 Zoom: 251 NoName: 252 Pa1: 253 OemClear: 254 Link to post Share on other sites
Ragref 265 Posted May 11, 2015 Share Posted May 11, 2015 I play plenty of mods for which the developer has an open mind and includes other forms of input. Also this is 2015 and many play pc with smaller keyboards or laptops without a number pad. You are only limiting your audience and user base by sticking with an outdated device for control. *sighs* Limiting their audience? Probably 5% of people who downloads these mods have no Numpad. This is 2015, get an actual PC with a Numpad. JohnnyCrazy and NeatSquid 2 Link to post Share on other sites
teisco 9 Posted May 11, 2015 Share Posted May 11, 2015 I will stick to the better modders than and use mods like Endeavor Trainer that uses either number pad or controller or to the mods that let us change the input through file settings. Link to post Share on other sites
JohnnyCrazy 34 Posted May 11, 2015 Author Share Posted May 11, 2015 I will stick to the better modders than and use mods like Endeavor Trainer that uses either number pad or controller or to the mods that let us change the input through file settings. Did you even read my post? You can change it Ragref 1 Link to post Share on other sites
DAMND 510 Posted May 11, 2015 Share Posted May 11, 2015 ^^haha beautiful, man. I didn't even know this would be possible. psyched to dl this when I get home. Link to post Share on other sites
Rented 3,444 Posted May 12, 2015 Share Posted May 12, 2015 Ah man always wanted R* to add Spotify to the radio wheel, sort of like the User Track Player in previous games and that could work online as well... back on topic it's a great mod! Link to post Share on other sites
Esoteric777 2 Posted May 12, 2015 Share Posted May 12, 2015 Love it, wish it could be a little more compact. Link to post Share on other sites
lordusa 0 Posted May 12, 2015 Share Posted May 12, 2015 Getting error... This is my ScriptHookVDotNet.log [22:45:11] [DEBUG] Created script domain 'ScriptDomain_35376C86'.[22:45:11] [DEBUG] Loading scripts from 'C:\Program Files (x86)\Grand Theft Auto V\scripts' into script domain 'ScriptDomain_35376C86' ...[22:45:11] [DEBUG] Found 1 script(s) in 'GTAVSpotify.dll'.[22:45:11] [DEBUG] Starting 1 script(s) ...[22:45:11] [DEBUG] Instantiating script 'scripthookvdotnet_spotify.MainClass' in script domain 'ScriptDomain_35376C86' ...[22:45:13] [ERROR] Failed to instantiate script 'scripthookvdotnet_spotify.MainClass' because constructor threw an exception:System.Net.WebException: Unable to connect to the remote server ---> System.Net.Sockets.SocketException: An attempt was made to access a socket in a way forbidden by its access permissions 194.132.196.163:80 at System.Net.Sockets.Socket.DoConnect(EndPoint endPointSnapshot, SocketAddress socketAddress) at System.Net.ServicePoint.ConnectSocketInternal(Boolean connectFailure, Socket s4, Socket s6, Socket& socket, IPAddress& address, ConnectSocketState state, IAsyncResult asyncResult, Exception& exception) --- End of inner exception stack trace --- at System.Net.WebClient.DownloadDataInternal(Uri address, WebRequest& request) at System.Net.WebClient.DownloadString(Uri address) at SpotifyAPI.SpotifyLocalAPI.RemoteHandler.GetOAuthKey() at SpotifyAPI.SpotifyLocalAPI.RemoteHandler.Init() at scripthookvdotnet_spotify.MainClass.InitSpotify(Boolean byUser) at scripthookvdotnet_spotify.MainClass..ctor() Link to post Share on other sites
JohnnyCrazy 34 Posted May 12, 2015 Author Share Posted May 12, 2015 Getting error... This is my ScriptHookVDotNet.log [22:45:11] [DEBUG] Created script domain 'ScriptDomain_35376C86'.[22:45:11] [DEBUG] Loading scripts from 'C:\Program Files (x86)\Grand Theft Auto V\scripts' into script domain 'ScriptDomain_35376C86' ...[22:45:11] [DEBUG] Found 1 script(s) in 'GTAVSpotify.dll'.[22:45:11] [DEBUG] Starting 1 script(s) ...[22:45:11] [DEBUG] Instantiating script 'scripthookvdotnet_spotify.MainClass' in script domain 'ScriptDomain_35376C86' ...[22:45:13] [ERROR] Failed to instantiate script 'scripthookvdotnet_spotify.MainClass' because constructor threw an exception:System.Net.WebException: Unable to connect to the remote server ---> System.Net.Sockets.SocketException: An attempt was made to access a socket in a way forbidden by its access permissions 194.132.196.163:80 at System.Net.Sockets.Socket.DoConnect(EndPoint endPointSnapshot, SocketAddress socketAddress) at System.Net.ServicePoint.ConnectSocketInternal(Boolean connectFailure, Socket s4, Socket s6, Socket& socket, IPAddress& address, ConnectSocketState state, IAsyncResult asyncResult, Exception& exception) --- End of inner exception stack trace --- at System.Net.WebClient.DownloadDataInternal(Uri address, WebRequest& request) at System.Net.WebClient.DownloadString(Uri address) at SpotifyAPI.SpotifyLocalAPI.RemoteHandler.GetOAuthKey() at SpotifyAPI.SpotifyLocalAPI.RemoteHandler.Init() at scripthookvdotnet_spotify.MainClass.InitSpotify(Boolean byUser) at scripthookvdotnet_spotify.MainClass..ctor() Is Spotify running? And check if there is a process called "SpotifyWebHelper.exe". If not, I will look into it this evening Link to post Share on other sites
LoneMerc 3 Posted May 12, 2015 Share Posted May 12, 2015 I will stick to the better modders than and use mods like Endeavor Trainer that uses either number pad or controller or to the mods that let us change the input through file settings. Woah, that's a bit harsh don't you think? You have all these people doing wonders, making the game BETTER to play and you're having a go at this guy's attempt to make something that has been requested! I don't see you releasing any mods...? Also as far as I remember, Endeavor Trainer doesn't allow Spotify... Maybe you need to have a bit of respect for these people who don't get paid for this! On topic, this looks great Can't wait to try it out! Link to post Share on other sites
Wasabi Ice Cream 1 Posted May 12, 2015 Share Posted May 12, 2015 (edited) Though I don't use Spotify at all, I have to commend everyone involved in this natural progression of mods. Love how the community can come together and continue to build on each other's work to come up with this stuff. Great job. Please, ignore all the ungrateful bastards. Edited May 12, 2015 by Wasabi Ice Cream Link to post Share on other sites
JohnnyCrazy 34 Posted May 12, 2015 Author Share Posted May 12, 2015 (edited) That is fantastic. I've been waiting for something like this and now it's here. Gonna try it out and see how it is I whipped up a quick video about it here: Great job with the video Thanks a lot! Also wrote down your ideas, thanks for them too! Edited May 12, 2015 by JohnnyCrazy Link to post Share on other sites
MrGTAmodsgerman 296 Posted May 12, 2015 Share Posted May 12, 2015 @JohnnyCrazy Kannst du den Mod auch in einen Web Radio mod umbauen? Das würde Auto fahren richtig echt aussehen lassen. Link to post Share on other sites
lordusa 0 Posted May 12, 2015 Share Posted May 12, 2015 Getting error... This is my ScriptHookVDotNet.log [22:45:11] [DEBUG] Created script domain 'ScriptDomain_35376C86'.[22:45:11] [DEBUG] Loading scripts from 'C:\Program Files (x86)\Grand Theft Auto V\scripts' into script domain 'ScriptDomain_35376C86' ...[22:45:11] [DEBUG] Found 1 script(s) in 'GTAVSpotify.dll'.[22:45:11] [DEBUG] Starting 1 script(s) ...[22:45:11] [DEBUG] Instantiating script 'scripthookvdotnet_spotify.MainClass' in script domain 'ScriptDomain_35376C86' ...[22:45:13] [ERROR] Failed to instantiate script 'scripthookvdotnet_spotify.MainClass' because constructor threw an exception:System.Net.WebException: Unable to connect to the remote server ---> System.Net.Sockets.SocketException: An attempt was made to access a socket in a way forbidden by its access permissions 194.132.196.163:80 at System.Net.Sockets.Socket.DoConnect(EndPoint endPointSnapshot, SocketAddress socketAddress) at System.Net.ServicePoint.ConnectSocketInternal(Boolean connectFailure, Socket s4, Socket s6, Socket& socket, IPAddress& address, ConnectSocketState state, IAsyncResult asyncResult, Exception& exception) --- End of inner exception stack trace --- at System.Net.WebClient.DownloadDataInternal(Uri address, WebRequest& request) at System.Net.WebClient.DownloadString(Uri address) at SpotifyAPI.SpotifyLocalAPI.RemoteHandler.GetOAuthKey() at SpotifyAPI.SpotifyLocalAPI.RemoteHandler.Init() at scripthookvdotnet_spotify.MainClass.InitSpotify(Boolean byUser) at scripthookvdotnet_spotify.MainClass..ctor() Is Spotify running? And check if there is a process called "SpotifyWebHelper.exe". If not, I will look into it this evening Yes Spotify is running and SpotifyWebHelper.exe is there Link to post Share on other sites
JohnnyCrazy 34 Posted May 12, 2015 Author Share Posted May 12, 2015 Getting error... This is my ScriptHookVDotNet.log [22:45:11] [DEBUG] Created script domain 'ScriptDomain_35376C86'.[22:45:11] [DEBUG] Loading scripts from 'C:\Program Files (x86)\Grand Theft Auto V\scripts' into script domain 'ScriptDomain_35376C86' ...[22:45:11] [DEBUG] Found 1 script(s) in 'GTAVSpotify.dll'.[22:45:11] [DEBUG] Starting 1 script(s) ...[22:45:11] [DEBUG] Instantiating script 'scripthookvdotnet_spotify.MainClass' in script domain 'ScriptDomain_35376C86' ...[22:45:13] [ERROR] Failed to instantiate script 'scripthookvdotnet_spotify.MainClass' because constructor threw an exception:System.Net.WebException: Unable to connect to the remote server ---> System.Net.Sockets.SocketException: An attempt was made to access a socket in a way forbidden by its access permissions 194.132.196.163:80 at System.Net.Sockets.Socket.DoConnect(EndPoint endPointSnapshot, SocketAddress socketAddress) at System.Net.ServicePoint.ConnectSocketInternal(Boolean connectFailure, Socket s4, Socket s6, Socket& socket, IPAddress& address, ConnectSocketState state, IAsyncResult asyncResult, Exception& exception) --- End of inner exception stack trace --- at System.Net.WebClient.DownloadDataInternal(Uri address, WebRequest& request) at System.Net.WebClient.DownloadString(Uri address) at SpotifyAPI.SpotifyLocalAPI.RemoteHandler.GetOAuthKey() at SpotifyAPI.SpotifyLocalAPI.RemoteHandler.Init() at scripthookvdotnet_spotify.MainClass.InitSpotify(Boolean byUser) at scripthookvdotnet_spotify.MainClass..ctor() Is Spotify running? And check if there is a process called "SpotifyWebHelper.exe". If not, I will look into it this evening Yes Spotify is running and SpotifyWebHelper.exe is there The only thing I can think of is either a firewall issue (although it's connecting to localhost) or an outdated Spotify-Client Which Windows are you using? Link to post Share on other sites
Fischkopf 3 Posted May 12, 2015 Share Posted May 12, 2015 Too bad I don't use spotify... i wish someone could make a script that can load .pls files for shoutcast radio streaming.. There used to be a GTA IV plugin that did this. Link to post Share on other sites
Troublesome96_ 111 Posted May 13, 2015 Share Posted May 13, 2015 This mod is awesome. But for some reason I can't access the playlist menu and I have the plugins needed. Not sure what's wrong. Link to post Share on other sites
NeatSquid 2 Posted May 13, 2015 Share Posted May 13, 2015 Whenever I use this mods, the LUA command prompt says that it's timed out and I can't use any LUA scripts Link to post Share on other sites