Author Topic: Re: [SVN ULX/ULib only] YouTube music player (UPDATED: June 26th, 2012)  (Read 83324 times)

0 Members and 1 Guest are viewing this topic.

Offline PAL-18

  • Full Member
  • ***
  • Posts: 142
  • Karma: 1
Re: Re: [SVN ULX/ULib only] YouTube music player (UPDATED: June 26th, 2012)
« Reply #75 on: December 22, 2012, 01:00:31 PM »
When i open the music menu i get the following script error:

Quote
[ERROR] ...x youtube/lua/ulx/modules/cl/youtube_music_player_cl.lua:422: attempt to call global 'ValidEntity' (a nil value)
  1. fn - ...x youtube/lua/ulx/modules/cl/youtube_music_player_cl.lua:422
   2. Call - addons/ulib/lua/ulib/shared/hook.lua:183
    3. fn - addons/ulib/lua/ulib/cl_init.lua:54
     4. func - addons/ulib/lua/ulib/client/cl_util.lua:22
      5. unknown - lua/includes/modules/net.lua:31

Aside from this error, it works fine.

Offline JamminR

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 8096
  • Karma: 390
  • Sertafide Ulysses Jenius
    • Team Ulysses [ULib/ULX, other fine releases]
Re: Re: [SVN ULX/ULib only] YouTube music player (UPDATED: June 26th, 2012)
« Reply #76 on: December 22, 2012, 02:55:02 PM »
Error reported already by vizzy.
http://forums.ulyssesmod.net/index.php/topic,4992.msg27274/topicseen.html#msg27274
Error he gives is off by a line # or two, but, the code was modified after he reported it.
And if you work your way down the posts, it seems ntdave gave code/dropbox links that may have fixed it, along with Vizzy using latest greatest ULX/Ulib

I've fixed the playlist issue. I'm still not sure what the deal is with all those other errors you were getting  ???

Anyways here it is http://dl.dropbox.com/u/18804041/admin_ulx%20youtube.7z
"Though a program be but three lines long, someday it will have to be maintained." -- The Tao of Programming

Offline PAL-18

  • Full Member
  • ***
  • Posts: 142
  • Karma: 1
Re: Re: [SVN ULX/ULib only] YouTube music player (UPDATED: June 26th, 2012)
« Reply #77 on: December 22, 2012, 06:34:54 PM »
Some players can't hear any music (and they haven't stopped it) any idea why they cant?

Offline JamminR

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 8096
  • Karma: 390
  • Sertafide Ulysses Jenius
    • Team Ulysses [ULib/ULX, other fine releases]
Re: Re: [SVN ULX/ULib only] YouTube music player (UPDATED: June 26th, 2012)
« Reply #78 on: December 22, 2012, 10:34:20 PM »
Some players can't hear any music (and they haven't stopped it) any idea why they cant?
Just a wild guess..perhaps this script's sound is affected by Gmod's new additional sv_alltalk features?
See http://forums.ulyssesmod.net/index.php/topic,5822.msg26990.html#msg26990
Again, just a wild guess.
"Though a program be but three lines long, someday it will have to be maintained." -- The Tao of Programming

Offline ntdave71694

  • Newbie
  • *
  • Posts: 7
  • Karma: 1
Re: Re: [SVN ULX/ULib only] YouTube music player (UPDATED: June 26th, 2012)
« Reply #79 on: December 28, 2012, 02:23:44 AM »
Some players can't hear any music (and they haven't stopped it) any idea why they cant?

They don't have Flash player for other browsers, that's my guess.

http://get.adobe.com/flashplayer/otherversions/

Offline mhupfauer

  • Newbie
  • *
  • Posts: 2
  • Karma: 0
I get this error:

You are running ULib version 2.50.
[ULIB] Loading SHARED module: ulx_init.lua
[ULX] Loading CLIENT module: motdmenu.lua
[ULX] Loading CLIENT module: uteam.lua
[ULX] Loading CLIENT module: xgui_client.lua
[ULX] Loading CLIENT module: xgui_helpers.lua
[ULX] Loading CLIENT module: xlib.lua
[ULX] Loading CLIENT module: youtube_music_player_cl.lua
[ULX] Loading SHARED module: chat.lua
[ULX] Loading SHARED module: fun.lua
[ULX] Loading SHARED module: menus.lua
[ULX] Loading SHARED module: rcon.lua
[ULX] Loading SHARED module: teleport.lua
[ULX] Loading SHARED module: user.lua
[ULX] Loading SHARED module: userhelp.lua
[ULX] Loading SHARED module: util.lua
[ULX] Loading SHARED module: vote.lua
[ULX] Loading SHARED module: youtube_music_player_sh.lua
[ULIB] Loading SHARED module: urequest.lua
[ULIB] Loading CLIENT module: urequest_cl.lua
Hey '*******' - You're in the 'superadmin' group on this server.
Client "*********" spawned in server (******)<STEAM_0:0:*****>.
ULX version 3.60 loaded.
Welcome to DarkRP|EU-Server|FASTDL|CUSTOME JOBS! We're playing rp_downtown_v4c.
[DarkRP] ***** (STEAM_0:0:*******) has joined the game

///////////////////////////////////////
//  ULX GUI -- Made by Stickly Man!  //
///////////////////////////////////////
// Loading GUI Modules...            //
//   bans.lua                        //
//   commands.lua                    //
//   groups.lua                      //
//   maps.lua                        //
//   settings.lua                    //
// Loading Setting Modules...        //
//   client.lua                      //
//   server.lua                      //
// Loading Gamemode Module(s)...     //
//   sandbox.lua                     //
//   No module found!                //
// Modules Loaded!                   //
///////////////////////////////////////

Compact freed 860160 bytes
Redownloading all lightmaps
Noclip allowed
]
]
Unknown command: _ulx_songplayer
No YouTube videos have been played since you joined

[ERROR] addons/ulx/lua/ulx/modules/cl/youtube_music_player_cl.lua:124: attempt to call field 'Get' (a nil value)
  1. unknown - addons/ulx/lua/ulx/modules/cl/youtube_music_player_cl.lua:124

Timer Failed! [Simple][@addons/ulx/lua/ulx/modules/cl/youtube_music_player_cl.lua (line 122)]

Offline JamminR

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 8096
  • Karma: 390
  • Sertafide Ulysses Jenius
    • Team Ulysses [ULib/ULX, other fine releases]
Because your using the original post code meant for Gmod12 pre October 2012.
Please see this post october 2012 thread here - http://forums.ulyssesmod.net/index.php/topic,4992.msg27297.html#msg27297

As you browse our forums, please look for releases/posts after Oct 2012.
Many pre-Gm13 releases were 'fixed' by others than the original authors in posts later in the threads.
Just look a bit when you find something you think you might like.
"Though a program be but three lines long, someday it will have to be maintained." -- The Tao of Programming

Offline mhupfauer

  • Newbie
  • *
  • Posts: 2
  • Karma: 0
Because your using the original post code meant for Gmod12 pre October 2012.
Please see this post october 2012 thread here - http://forums.ulyssesmod.net/index.php/topic,4992.msg27297.html#msg27297

As you browse our forums, please look for releases/posts after Oct 2012.
Many pre-Gm13 releases were 'fixed' by others than the original authors in posts later in the threads.
Just look a bit when you find something you think you might like.

Thanks alot JamminR.

Offline DooBiiE

  • Newbie
  • *
  • Posts: 8
  • Karma: 0
is this upto date now and working with gmod ?

Offline JamminR

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 8096
  • Karma: 390
  • Sertafide Ulysses Jenius
    • Team Ulysses [ULib/ULX, other fine releases]
Read the last few pages, post october 2012 Gm13 update.
Heck, I even answered your question about 2 posts ago.
"Though a program be but three lines long, someday it will have to be maintained." -- The Tao of Programming

Offline PAL-18

  • Full Member
  • ***
  • Posts: 142
  • Karma: 1
Is there a limit to how many songs can exist on the player list?  If so, i think i hit it :(


Offline kpjVideo

  • Newbie
  • *
  • Posts: 3
  • Karma: -1
Hello, every time I try to add a video to the YouTube jukebox addon nothing happens and it dosn't play at all. I have been on servers that have working version but I cannot seen to get mine to work.
Does anyone have a working version or a way of fixing this?
Thank you very much!  8)

Offline JamminR

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 8096
  • Karma: 390
  • Sertafide Ulysses Jenius
    • Team Ulysses [ULib/ULX, other fine releases]
Re: [SVN ULX/ULib only] YouTube music player (UPDATED: June 26th, 2012)
« Reply #87 on: July 20, 2013, 06:08:11 PM »
Tried this?
http://forums.ulyssesmod.net/index.php/topic,4992.msg27297.html#msg27297

(also, I merged your question - when having problems getting a specific plugin to work, please post in the original release post (unless of course you're asking about something that's locked, and then I'd recommend dev corner or off topic, since, it was locked for a reason)
"Though a program be but three lines long, someday it will have to be maintained." -- The Tao of Programming

Offline kpjVideo

  • Newbie
  • *
  • Posts: 3
  • Karma: -1
Re: [SVN ULX/ULib only] YouTube music player (UPDATED: June 26th, 2012)
« Reply #88 on: July 20, 2013, 06:50:35 PM »
Tried this?
http://forums.ulyssesmod.net/index.php/topic,4992.msg27297.html#msg27297

(also, I merged your question - when having problems getting a specific plugin to work, please post in the original release post (unless of course you're asking about something that's locked, and then I'd recommend dev corner or off topic, since, it was locked for a reason)
Ahh okay and yes I have tried this but I still receive this error:
Code: [Select]
[ERROR] addons/ulx/lua/ulx/modules/cl/youtube_music_player_cl.lua:129: attempt to call field 'Get' (a nil value)
  1. unknown - addons/ulx/lua/ulx/modules/cl/youtube_music_player_cl.lua:129

Any ideas  :-\

Offline JamminR

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 8096
  • Karma: 390
  • Sertafide Ulysses Jenius
    • Team Ulysses [ULib/ULX, other fine releases]
Re: [SVN ULX/ULib only] YouTube music player (UPDATED: June 26th, 2012)
« Reply #89 on: July 20, 2013, 09:38:49 PM »
Looks like you're still using the old code from the first post.
The link I've linked to several times over the past few posts, both for you, and for others, line 129 is blank, and the 'update' fixes a Gmod12 function http.Get to a Gmod13 function http.Fetch.

Make sure you're using the latest on the server.
Line 128, 129, and 130 of the file that error shows should look like below.
Code: [Select]
local getTheLength = function()

http.Fetch( "http://gdata.youtube.com/feeds/api/videos/" .. video_id .. "?v=2", function( content, length, headers, returncode )

129 is actually blank, but, I'm not sure if Gmod returns the line before the error, or actual line of.
"Though a program be but three lines long, someday it will have to be maintained." -- The Tao of Programming