Problem plugin Music
Moderators: hal|Sascha, TM-Patrol
Problem plugin Music
Hi
I have a problem with the plugin music.
My server run with remotecp 4.0.3.2 . I configured the file setting.xml and I enable the plugin music.
But I don't have any music on my server. My songs are all in .mux.
What can I do ?
I have a problem with the plugin music.
My server run with remotecp 4.0.3.2 . I configured the file setting.xml and I enable the plugin music.
But I don't have any music on my server. My songs are all in .mux.
What can I do ?
Re: Problem plugin Music
Anybody can help me !!?? 

- hal|Sascha
- Pit Crew
- Posts: 671
- Joined: 12 Aug 2005 16:22
- Owned TM-games: TMU, TMN, TMS, TMO
- Location: Germany Munich
- Contact:
Re: Problem plugin Music
Hi Dark,
How does your settings.xml looks like?
The <file> field musst contain a web-url, it's currently not possible to use locally hosted files.
How does your settings.xml looks like?
The <file> field musst contain a web-url, it's currently not possible to use locally hosted files.
CPU: Intel Core 2 Duo E6600
Mainboard: Asus P5W DH Deluxe
RAM: 2 GB
Graphics: ATI Radeon X1950XTX
Audio: Soundblaster Audigy 4
Internet: ADSL 6Mbit
OS: Windows Vista Bussiness
Mainboard: Asus P5W DH Deluxe
RAM: 2 GB
Graphics: ATI Radeon X1950XTX
Audio: Soundblaster Audigy 4
Internet: ADSL 6Mbit
OS: Windows Vista Bussiness
Re: Problem plugin Music
Yes, all my files are hosted on free.fr and work great.
The link is good also I don't understand why I haven't any music on my server.
Perhaps because the musics are in .mux !?
The link is good also I don't understand why I haven't any music on my server.
Perhaps because the musics are in .mux !?
- hal|Sascha
- Pit Crew
- Posts: 671
- Joined: 12 Aug 2005 16:22
- Owned TM-games: TMU, TMN, TMS, TMO
- Location: Germany Munich
- Contact:
Re: Problem plugin Music
Just to clear everything out, you know that you have to type /music to open the music player? (don't want to bother you, but had some simliar problem last week. People might think the rcp music stuff works like aseco's forceMusic implementation, but thats not the case)DarK wrote:Yes, all my files are hosted on free.fr and work great.
The link is good also I don't understand why I haven't any music on my server.
Perhaps because the musics are in .mux !?
Have you asked somebody else if the music works?
If all fails, could you send me 1 or 2 of your mux file URL's by PM, so I can try them with my server? Could possibly be a bug, never tested it with mux that good, I allways prefered ogg files

CPU: Intel Core 2 Duo E6600
Mainboard: Asus P5W DH Deluxe
RAM: 2 GB
Graphics: ATI Radeon X1950XTX
Audio: Soundblaster Audigy 4
Internet: ADSL 6Mbit
OS: Windows Vista Bussiness
Mainboard: Asus P5W DH Deluxe
RAM: 2 GB
Graphics: ATI Radeon X1950XTX
Audio: Soundblaster Audigy 4
Internet: ADSL 6Mbit
OS: Windows Vista Bussiness
Re: Problem plugin Music
Ok it work.
I did not know that I had to write /music in chat but I have a question.
What is that people are going to hear the music by connecting to the server or have to activate the music by typing /music ??
I did not know that I had to write /music in chat but I have a question.
What is that people are going to hear the music by connecting to the server or have to activate the music by typing /music ??
- hal|Sascha
- Pit Crew
- Posts: 671
- Joined: 12 Aug 2005 16:22
- Owned TM-games: TMU, TMN, TMS, TMO
- Location: Germany Munich
- Contact:
Re: Problem plugin Music
Yes everybody has to type /music to open the music panel.DarK wrote:Ok it work.
I did not know that I had to write /music in chat but I have a question.
What is that people are going to hear the music by connecting to the server or have to activate the music by typing /music ??
You could try to replace the onNewPlayer fuction inside /live/Music/index.php by this code:
Code: Select all
public function onNewPlayer($player)
{
$window = $player->ManiaFWK->addWindow('MLMusic', 'Music Player', -61.5, -45.25, 35);
if($window) {
$window->setOption('header', false);
$window->setOption('close', false);
$window->setOption('static', true);
$window->setOption('bg', false);
}
$this->onMLAMusicSetFlag($player, 'open', true);
$this->onMLAMusicSetFlag($player, 'play', true);
$this->onMLAMusicSetFlag($player, 'trackid', 1);
$this->onMLMusic(array($player));
}
Haven't tested it its just a idea, but should work

CPU: Intel Core 2 Duo E6600
Mainboard: Asus P5W DH Deluxe
RAM: 2 GB
Graphics: ATI Radeon X1950XTX
Audio: Soundblaster Audigy 4
Internet: ADSL 6Mbit
OS: Windows Vista Bussiness
Mainboard: Asus P5W DH Deluxe
RAM: 2 GB
Graphics: ATI Radeon X1950XTX
Audio: Soundblaster Audigy 4
Internet: ADSL 6Mbit
OS: Windows Vista Bussiness
Re: Problem plugin Music
The modification work fine. Thanks.
But it'is possible to change music automatically when the map change ?
But it'is possible to change music automatically when the map change ?
-
- smooth traffic navigator
- Posts: 284
- Joined: 28 Jul 2008 16:12
- Owned TM-games: TMUF
- Location: Toulouse
- Contact:
Re: Problem plugin Music
I think if you add
to the same file it should work...
Code: Select all
public function onBeginChallenge()
{
if(empty(Core::getObject('players')->players)) return;
foreach(Core::getObject('players')->players AS $player)
{
$this->onMLAMusicCT(array($player,1));
}
}
Re: Problem plugin Music
Thanks I just added:
And it works perfectly. The music change automatically with the map but is it possible to stop the music when comes the moment of the podium ?
Code: Select all
$this->onMLAMusicCT(array($player,1));
-
- smooth traffic navigator
- Posts: 284
- Joined: 28 Jul 2008 16:12
- Owned TM-games: TMUF
- Location: Toulouse
- Contact:
Re: Problem plugin Music
not near my setup to try it but I guess you need to add in the onBeginChallenge, after the previous mod:
and in onEndChallenge
Be sure to do that for all players...
Code: Select all
$this->onMLAMusicSetFlag($player, 'play', true);
$this->onMLMusic(array($player));
Code: Select all
$this->onMLAMusicSetFlag($player, 'play', false);
$this->onMLMusic(array($player));
Re: Problem plugin Music
Ok but I haven't onEndChallenge in the index.php !! 

-
- smooth traffic navigator
- Posts: 284
- Joined: 28 Jul 2008 16:12
- Owned TM-games: TMUF
- Location: Toulouse
- Contact:
Re: Problem plugin Music
Add this then
Code: Select all
public function onEndChallenge()
{
if(empty(Core::getObject('players')->players)) return;
foreach(Core::getObject('players')->players AS $player)
{
$this->onMLAMusicSetFlag($player, 'play', false);
$this->onMLMusic(array($player)); }
}
- hal|Sascha
- Pit Crew
- Posts: 671
- Joined: 12 Aug 2005 16:22
- Owned TM-games: TMU, TMN, TMS, TMO
- Location: Germany Munich
- Contact:
Re: Problem plugin Music
nice work guys!
I did nearly the same yesterday after Dark asked here
Its the music plugin for the 4.0.3.4 update, but should work with 4.0.3.3/2 (not sure with 4.0.3.2
)
http://www.file-upload.net/download-203 ... c.zip.html
I did nearly the same yesterday after Dark asked here

Its the music plugin for the 4.0.3.4 update, but should work with 4.0.3.3/2 (not sure with 4.0.3.2

http://www.file-upload.net/download-203 ... c.zip.html
CPU: Intel Core 2 Duo E6600
Mainboard: Asus P5W DH Deluxe
RAM: 2 GB
Graphics: ATI Radeon X1950XTX
Audio: Soundblaster Audigy 4
Internet: ADSL 6Mbit
OS: Windows Vista Bussiness
Mainboard: Asus P5W DH Deluxe
RAM: 2 GB
Graphics: ATI Radeon X1950XTX
Audio: Soundblaster Audigy 4
Internet: ADSL 6Mbit
OS: Windows Vista Bussiness
Re: Problem plugin Music
Yes don't work with remotecp 4.0.3.2
I have this error
I have this error
Code: Select all
Fatal error: Call to a member function add() on a non-object in C:\xampp\htdocs\
www\remotecp\live\Music\index.php on line 25
Appuyez sur une touche pour continuer...