kenryk 0 Posted May 13, 2015 Share Posted May 13, 2015 Freakin' brilliant! Working perfectly here, thank you! Link to post Share on other sites
lyteswype 0 Posted May 13, 2015 Share Posted May 13, 2015 Awesome mod! I had the topic about a spotify integration to GTA one day before your release with a good friend of mine Just a few questions:Is it possible to implement features like "Repeat 1 Song" or "Shuffle"? I didn't see functions in the Spotify API for it, but maybe you have some more information. Another feature that would be nice: opening a playlist and select a specific song? But even without that stuff you did great work! Link to post Share on other sites
Apokalyptiker 0 Posted May 13, 2015 Share Posted May 13, 2015 Doesn't work for me for some reason. I have installed everything correctly. When i start the game, it just opens a windows by default. (Haven't pressed anything (http://prntscr.com/74sqtu) [13.05.2015 18:42:39][info] GTAVSpotify initialized [13.05.2015 18:42:39][info] Trying to init Spotify now... [13.05.2015 18:43:20][info] GTAVSpotify initialized [13.05.2015 18:43:20][info] Trying to init Spotify now... [13.05.2015 18:43:21][info] GTAVSpotify initialized [13.05.2015 18:43:21][info] Trying to init Spotify now... [13.05.2015 18:43:46][info] GTAVSpotify initialized [13.05.2015 18:43:46][info] Trying to init Spotify now... Link to post Share on other sites
JohnnyCrazy 34 Posted May 13, 2015 Author 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 Strange. I'm not blocking the thread in any way, what if you use the .NET ScriptHook without my mod? Freakin' brilliant! Working perfectly here, thank you! Thanks for the feedback! Awesome mod! I had the topic about a spotify integration to GTA one day before your release with a good friend of mine Just a few questions:Is it possible to implement features like "Repeat 1 Song" or "Shuffle"? I didn't see functions in the Spotify API for it, but maybe you have some more information. Another feature that would be nice: opening a playlist and select a specific song? But even without that stuff you did great work! Setting Repeat or Shuffle sadly isnt possible yet Specific songs are possible and I will add it to the ToDo List Doesn't work for me for some reason. I have installed everything correctly. When i start the game, it just opens a windows by default. (Haven't pressed anything (http://prntscr.com/74sqtu) [13.05.2015 18:42:39][info] GTAVSpotify initialized [13.05.2015 18:42:39][info] Trying to init Spotify now... [13.05.2015 18:43:20][info] GTAVSpotify initialized [13.05.2015 18:43:20][info] Trying to init Spotify now... [13.05.2015 18:43:21][info] GTAVSpotify initialized [13.05.2015 18:43:21][info] Trying to init Spotify now... [13.05.2015 18:43:46][info] GTAVSpotify initialized [13.05.2015 18:43:46][info] Trying to init Spotify now... Are you sure that you are using the correct mod-file + ScriptHook .NET version? Looks like this is some old dll file? Link to post Share on other sites
lordusa 0 Posted May 13, 2015 Share Posted May 13, 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? Windows 8.1 Link to post Share on other sites
ReemICS 1 Posted May 13, 2015 Share Posted May 13, 2015 Not work for me: My log: [2015-05-13 20:21:04][info] GTAVSpotify initialized [2015-05-13 20:21:05][info] Trying to init Spotify now... [2015-05-13 20:21:05][Warning] Tried to init but Spotify isn't running [2015-05-13 20:21:18][info] Trying to init Spotify now... [2015-05-13 20:21:18][Warning] Tried to init but Spotify isn't running [2015-05-13 20:21:18][info] Trying to init Spotify now... [2015-05-13 20:21:18][Warning] Tried to init but Spotify isn't running [2015-05-13 20:21:20][info] Trying to init Spotify now... [2015-05-13 20:21:20][Warning] Tried to init but Spotify isn't running [2015-05-13 20:21:20][info] Trying to init Spotify now... [2015-05-13 20:21:20][Warning] Tried to init but Spotify isn't running [2015-05-13 20:21:20][info] Trying to init Spotify now... [2015-05-13 20:21:20][Warning] Tried to init but Spotify isn't running [2015-05-13 20:21:21][info] Trying to init Spotify now... [2015-05-13 20:21:21][Warning] Tried to init but Spotify isn't running [2015-05-13 20:21:21][info] Trying to init Spotify now... [2015-05-13 20:21:21][Warning] Tried to init but Spotify isn't running [2015-05-13 20:21:21][info] Trying to init Spotify now... [2015-05-13 20:21:21][Warning] Tried to init but Spotify isn't running [2015-05-13 20:21:21][info] Trying to init Spotify now... [2015-05-13 20:21:21][Warning] Tried to init but Spotify isn't running [2015-05-13 20:21:21][info] Trying to init Spotify now... [2015-05-13 20:21:21][Warning] Tried to init but Spotify isn't running [2015-05-13 20:21:22][info] Trying to init Spotify now... [2015-05-13 20:21:22][Warning] Tried to init but Spotify isn't running [2015-05-13 20:21:22][info] Trying to init Spotify now... [2015-05-13 20:21:22][Warning] Tried to init but Spotify isn't running [2015-05-13 20:21:23][info] Trying to init Spotify now... [2015-05-13 20:21:23][Warning] Tried to init but Spotify isn't running [2015-05-13 20:21:23][info] Trying to init Spotify now... [2015-05-13 20:21:23][Warning] Tried to init but Spotify isn't running [2015-05-13 20:21:23][info] Trying to init Spotify now... [2015-05-13 20:21:23][Warning] Tried to init but Spotify isn't running [2015-05-13 20:27:08][info] Trying to init Spotify now... [2015-05-13 20:27:08][Warning] Tried to init but Spotify isn't running [2015-05-13 20:28:43][info] Trying to init Spotify now... [2015-05-13 20:28:44][Warning] Tried to init but Spotify isn't running [2015-05-13 20:28:44][info] Trying to init Spotify now... [2015-05-13 20:28:44][Warning] Tried to init but Spotify isn't running [2015-05-13 20:31:03][info] GTAVSpotify initialized [2015-05-13 20:31:03][info] Trying to init Spotify now... [2015-05-13 20:31:03][Warning] Tried to init but Spotify isn't running [2015-05-13 20:31:22][info] Trying to init Spotify now... [2015-05-13 20:31:22][Warning] Tried to init but Spotify isn't running [2015-05-13 20:31:26][info] Trying to init Spotify now... [2015-05-13 20:31:26][Warning] Tried to init but Spotify isn't running [2015-05-13 20:31:26][info] Trying to init Spotify now... [2015-05-13 20:31:26][Warning] Tried to init but Spotify isn't running [2015-05-13 20:31:27][info] Trying to init Spotify now... [2015-05-13 20:31:27][Warning] Tried to init but Spotify isn't running Another mod - speedometer works me Link to post Share on other sites
JohnnyCrazy 34 Posted May 13, 2015 Author Share Posted May 13, 2015 Not work for me: My log: Another mod - speedometer works me Like the log says, it can't find spotify. Make sure it's running, if it's running, what is the process name called? OS-Version? Link to post Share on other sites
ReemICS 1 Posted May 13, 2015 Share Posted May 13, 2015 (edited) OK I know Edited May 13, 2015 by ReemICS Link to post Share on other sites
LoneMerc 3 Posted May 13, 2015 Share Posted May 13, 2015 (edited) Mod works great for me thank you. I have a question though: The music volume bar in the options does not work with this mod, and I find it plays the music through my headphones extremely loud, is this tied to my Spotify volume slider or can you build in an option (if the API allows, always wanted to have a play for my own PartyQ app but never got around to it) to control the volume levels? Thanks. Edited May 13, 2015 by LoneMerc Link to post Share on other sites
JohnnyCrazy 34 Posted May 13, 2015 Author Share Posted May 13, 2015 Mod works great for me thank you. I have a question though: The music volume bar in the options does not work with this mod, and I find it plays the music through my headphones extremely loud, is this tied to my Spotify volume slider or can you build in an option (if the API allows, always wanted to have a play for my own PartyQ app but never got around to it) to control the volume levels? Thanks. There is no way I can control the volume yet. Link to post Share on other sites
NinjaPenguin 0 Posted May 14, 2015 Share Posted May 14, 2015 This is amazing. Works apart from the fact, that I can't enter my username. Whenever I select the option to input it, my game freezes and eventually crashes. So I can for now only choose the playlist in the spotify program itself. Error log of Scripthook.NET: [15:54:05] [DEBUG] Created script domain 'ScriptDomain_D1E14474'.[15:54:05] [DEBUG] Loading scripts from 'C:\Program Files (x86)\Steam\steamapps\common\Grand Theft Auto V\scripts' into script domain 'ScriptDomain_D1E14474' ...[15:54:06] [DEBUG] Found 1 script(s) in 'GTAVSpotify.dll'.[15:54:06] [DEBUG] Starting 1 script(s) ...[15:54:06] [DEBUG] Instantiating script 'scripthookvdotnet_spotify.MainClass' in script domain 'ScriptDomain_D1E14474' ...[15:54:07] [DEBUG] Started script 'scripthookvdotnet_spotify.MainClass'.[15:58:42] [DEBUG] Created script domain 'ScriptDomain_52B89408'.[15:58:42] [DEBUG] Loading scripts from 'C:\Program Files (x86)\Steam\steamapps\common\Grand Theft Auto V\scripts' into script domain 'ScriptDomain_52B89408' ...[15:58:42] [DEBUG] Found 1 script(s) in 'GTAVSpotify.dll'.[15:58:42] [DEBUG] Starting 1 script(s) ...[15:58:42] [DEBUG] Instantiating script 'scripthookvdotnet_spotify.MainClass' in script domain 'ScriptDomain_52B89408' ...[15:58:44] [DEBUG] Started script 'scripthookvdotnet_spotify.MainClass'.[16:01:18] [DEBUG] Created script domain 'ScriptDomain_4E4AA1B4'.[16:01:18] [DEBUG] Loading scripts from 'C:\Program Files (x86)\Steam\steamapps\common\Grand Theft Auto V\scripts' into script domain 'ScriptDomain_4E4AA1B4' ...[16:01:18] [DEBUG] Found 1 script(s) in 'GTAVSpotify.dll'.[16:01:18] [DEBUG] Starting 1 script(s) ...[16:01:18] [DEBUG] Instantiating script 'scripthookvdotnet_spotify.MainClass' in script domain 'ScriptDomain_4E4AA1B4' ...[16:01:20] [DEBUG] Started script 'scripthookvdotnet_spotify.MainClass'.[16:27:07] [ERROR] Caught unhandled exception:System.NullReferenceException: Object reference not set to an instance of an object. at scripthookvdotnet_spotify.MainClass.OnTick(Object sender, EventArgs e) at System.EventHandler.Invoke(Object sender, EventArgs e) at GTA.ScriptDomain.DoTick()[16:27:07] [DEBUG] Aborted script 'scripthookvdotnet_spotify.MainClass'. Link to post Share on other sites
AverageGuy 2 Posted May 15, 2015 Share Posted May 15, 2015 (edited) Awesome idea ! I just have one problem : I'm unable to change the keybindings. I edited GTAVSpotify.json but the keys stayed the same ingame. Edited May 15, 2015 by AverageGuy Link to post Share on other sites
JohnnyCrazy 34 Posted May 15, 2015 Author Share Posted May 15, 2015 This is amazing. Works apart from the fact, that I can't enter my username. Whenever I select the option to input it, my game freezes and eventually crashes. So I can for now only choose the playlist in the spotify program itself. Error log of Scripthook.NET: [15:54:05] [DEBUG] Created script domain 'ScriptDomain_D1E14474'.[15:54:05] [DEBUG] Loading scripts from 'C:\Program Files (x86)\Steam\steamapps\common\Grand Theft Auto V\scripts' into script domain 'ScriptDomain_D1E14474' ...[15:54:06] [DEBUG] Found 1 script(s) in 'GTAVSpotify.dll'.[15:54:06] [DEBUG] Starting 1 script(s) ...[15:54:06] [DEBUG] Instantiating script 'scripthookvdotnet_spotify.MainClass' in script domain 'ScriptDomain_D1E14474' ...[15:54:07] [DEBUG] Started script 'scripthookvdotnet_spotify.MainClass'.[15:58:42] [DEBUG] Created script domain 'ScriptDomain_52B89408'.[15:58:42] [DEBUG] Loading scripts from 'C:\Program Files (x86)\Steam\steamapps\common\Grand Theft Auto V\scripts' into script domain 'ScriptDomain_52B89408' ...[15:58:42] [DEBUG] Found 1 script(s) in 'GTAVSpotify.dll'.[15:58:42] [DEBUG] Starting 1 script(s) ...[15:58:42] [DEBUG] Instantiating script 'scripthookvdotnet_spotify.MainClass' in script domain 'ScriptDomain_52B89408' ...[15:58:44] [DEBUG] Started script 'scripthookvdotnet_spotify.MainClass'.[16:01:18] [DEBUG] Created script domain 'ScriptDomain_4E4AA1B4'.[16:01:18] [DEBUG] Loading scripts from 'C:\Program Files (x86)\Steam\steamapps\common\Grand Theft Auto V\scripts' into script domain 'ScriptDomain_4E4AA1B4' ...[16:01:18] [DEBUG] Found 1 script(s) in 'GTAVSpotify.dll'.[16:01:18] [DEBUG] Starting 1 script(s) ...[16:01:18] [DEBUG] Instantiating script 'scripthookvdotnet_spotify.MainClass' in script domain 'ScriptDomain_4E4AA1B4' ...[16:01:20] [DEBUG] Started script 'scripthookvdotnet_spotify.MainClass'.[16:27:07] [ERROR] Caught unhandled exception:System.NullReferenceException: Object reference not set to an instance of an object. at scripthookvdotnet_spotify.MainClass.OnTick(Object sender, EventArgs e) at System.EventHandler.Invoke(Object sender, EventArgs e) at GTA.ScriptDomain.DoTick()[16:27:07] [DEBUG] Aborted script 'scripthookvdotnet_spotify.MainClass'. Could you try using this scripthook .NET version? https://ci.appveyor.com/project/crosire/scripthookvdotnet/build/Build%20No.%2038/artifacts The latest build broke some functions Awesome idea ! I just have one problem : I'm unable to change the keybindings. I edited GTAVSpotify.json but the keys stayed the same ingame. I just updated it, could you try it by just downloading and replacing the file? 1 Link to post Share on other sites
AverageGuy 2 Posted May 21, 2015 Share Posted May 21, 2015 Awesome idea ! I just have one problem : I'm unable to change the keybindings. I edited GTAVSpotify.json but the keys stayed the same ingame. I just updated it, could you try it by just downloading and replacing the file? It's working ! Thanks ! Link to post Share on other sites
timason 12 Posted May 22, 2015 Share Posted May 22, 2015 (edited) Hey loving the mod. It would be pretty cool if you could add a toggle to hide the UI. I would like to play spotify without the UI floating around. I know I can hide it by disabling the mod but then the music doesn't stop when I step out of the car. Just an idea. Anyways super cool mod. Tim PS: Thanks for hotkey editing, I like to use small keyboards Edited May 22, 2015 by timason Link to post Share on other sites
striderx515 0 Posted June 4, 2015 Share Posted June 4, 2015 Hi, new to the modding scene here and love the idea for this mod. I followed the instructions to the letter but it does not seem to be working for me and looking at the logs, I get this: http://screencast.com/t/Aq2GOzoWyWR I've installed the latest scripthook versions and am using the latest spotify script that you posted as well. Any help would be appreciated, thanks. Link to post Share on other sites
kenryk 0 Posted June 4, 2015 Share Posted June 4, 2015 I've installed the latest scripthook versions and am using the latest spotify script that you posted as well. One of the recent changes in the Script Hook V .NET plugin changed the name of the GTA.UIText function (this is the error that you're getting), and that pretty much broke every single .net script that has some kind of interface. You need an earlier version of the plugin, I found that the one bundled with the JC2 mod works with most of the mods. Link to post Share on other sites
striderx515 0 Posted June 4, 2015 Share Posted June 4, 2015 (edited) I've installed the latest scripthook versions and am using the latest spotify script that you posted as well. One of the recent changes in the Script Hook V .NET plugin changed the name of the GTA.UIText function (this is the error that you're getting), and that pretty much broke every single .net script that has some kind of interface. You need an earlier version of the plugin, I found that the one bundled with the JC2 mod works with most of the mods. Thanks for the response. I'll have to do some more playing around to see if it works with an older version. Edited June 4, 2015 by striderx515 Link to post Share on other sites
hrezaei 11 Posted June 4, 2015 Share Posted June 4, 2015 Nice mod! Also +1 for that idea of shoutcast playback. Link to post Share on other sites
JohnnyCrazy 34 Posted June 6, 2015 Author Share Posted June 6, 2015 I will update to the latest scripthook once 1.0 (of the .NET hook) is out Link to post Share on other sites
jami.laine15 0 Posted June 9, 2015 Share Posted June 9, 2015 i cant get it to work! there is no error or enything it just doesnt show up and yes my spotify is running Link to post Share on other sites
pandafawkes 0 Posted June 21, 2015 Share Posted June 21, 2015 Hey ! Can u upload a version for work with ScriptHookDotNet v1.0 ? Link to post Share on other sites
JohnnyCrazy 34 Posted June 22, 2015 Author Share Posted June 22, 2015 Hey, Compiled against 1.0 Make sure to post if you encounter any problems. Link to post Share on other sites
r-daddy 0 Posted June 28, 2015 Share Posted June 28, 2015 This is what i got. Spotify is open (not playing music). I have the latest version of Spotify, 1.0.7.157, latest version of scriphooknet and the latest of your plugin. [10:38:13] [ERROR] Failed to instantiate script 'scripthookvdotnet_spotify.MainClass' because constructor threw an exception:System.Net.WebException: The remote name could not be resolved: 'open.spotify.com' 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
Blacksnofru 0 Posted July 29, 2015 Share Posted July 29, 2015 Don't work for me. Installed everything in the GTAV folder, lunch spotify and the Game, press F3, get in the car, nothing happen. Any idea??? Link to post Share on other sites
beebahboo 0 Posted August 6, 2015 Share Posted August 6, 2015 (edited) Is this mod still working? I've followed all steps, everything is where it should be. When I press F3 in game it pops-up and says "Spotify-GTA could not connect to the spotify-client." I'm running Windows 10, everything is up-to-date. Spotify is running, also up-to-date. Firewall isn't blocking anything. Help would be greatly apprciated, as this is the only mod I even want to use. Thanks. Edit: none of my log files are showing any errors. Edited August 6, 2015 by beebahboo Link to post Share on other sites
jfb0101 0 Posted December 23, 2015 Share Posted December 23, 2015 Hello, I need some help. I copied all dependency files to Grand Theft Autho V directory (dinput8.dll, NativeTrainer.asi, ScriptHookV.dll, ScriptHookVDotNet.asi, ScriptHookVDotNet.dll and ScriptHookVDotNet.dll.metagen) and copied too GTAVSpotify.dll to scripts folder. I open Spotify application and start game. But I can't make this work. When I press F3 nothing happens. I can use mods from F4, but F3 doesn't work. I've tried change F3 key binding (it was associated with Cancel Recoding action). Can somebody help me? Thanks. Link to post Share on other sites
Spewer 0 Posted April 8, 2016 Share Posted April 8, 2016 [17:04:00] [DEBUG] Created script domain 'ScriptDomain_E62352C2'.[17:04:00] [DEBUG] Loading scripts from 'E:\Games\Grand Theft Auto V\scripts' into script domain 'ScriptDomain_E62352C2' ...[17:04:00] [DEBUG] Found 1 script(s) in 'GTAVSpotify.dll'.[17:04:00] [DEBUG] Starting 1 script(s) ...[17:04:00] [DEBUG] Instantiating script 'scripthookvdotnet_spotify.MainClass' in script domain 'ScriptDomain_E62352C2' ...[17:04:01] [DEBUG] Started script 'scripthookvdotnet_spotify.MainClass'.[17:04:21] [ERROR] Caught fatal unhandled exception:System.NullReferenceException: Der Objektverweis wurde nicht auf eine Objektinstanz festgelegt. bei scripthookvdotnet_spotify.MainClass.OnTick(Object sender, EventArgs e) bei GTA.Script.raise_Tick(Object value0, EventArgs value1) bei GTA.Script.MainLoop() Getting this error. Spotify starts playing but the ingame window closes instant. Could you share your source that somebody could update this amazing script? Link to post Share on other sites
Rhaane 0 Posted September 18, 2016 Share Posted September 18, 2016 Hi, just tried following the instructions for installation of this doodad, awesome idea as well, the radio stations in GTAV are some of the weakest in the franchise I think, and all I keep getting in the game is that Spotify isnt runnign even though I've started it up before I run the game. Is this a common problem? I get the feeling I've made a very basic error but can't for the life of me find it. Any help would be much appreciated Because I would KILL to be able to listen to Gloryhammer whilst Im in a car chase Link to post Share on other sites
zwojek 0 Posted January 1, 2017 Share Posted January 1, 2017 (edited) I have another problem. Everything is ok, window pop-up, BUT when i press PLAY, the song plays for about 1-2 seconds then pauses - tried on and on and it pauses after few secs. Any ideas how to make it work? EDIT: SOLVED - radio must be OFF, then it works. Edited January 1, 2017 by zwojek Link to post Share on other sites