![]() |
music script dosent work suddenly
Script worked fine for weeks.
Then one day it didn't. It dosent work today either after full pc reboot. what happened to graal to make this not work? mp3's load in urls/ PHP Code:
no sound for playlist play display says 0 seconds in the song length. what changed in gs2 or game client?!?!?!?!?! |
Maybe it's the file host. =O
|
nope. as stated above :rolleyes: files are hosted correctly and the URL string is formed correctly in the script. Paste the url into a webbrowser, i get music. Nothing changed in the file host or npc. Graal had an update then it stopped working.
|
Try using a timeout to check whether the end of the song has been reached instead of using sleep() with the length of the song.
|
It is possible that the music is not directly started and it first needs to contact the web server. With the new update the game is not freezing/waiting anymore until the music stream is started, so musiclen might be zero if you call it directly after starting the stream.
|
Thank you Stefan!
Placing a delay between the play command and the check for musiclen fixed it. |
I still think you should use a timeout to check for that instead of sleep.
|
| All times are GMT +2. The time now is 11:22 PM. |
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.