• Print

Author Topic: Re: [SVN ULX/ULib only] YouTube music player (UPDATED: June 26th, 2012)  (Read 152690 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]
"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 /index.php/topic,5822.0.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 DooBiiE

  • Newbie
  • *
  • Posts: 10
  • 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 #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

  • Print