Troubles with Music on TM2

Moderator: NADEO

Post Reply
donlafferty
Posts: 8
Joined: 14 Aug 2011, 19:53

Troubles with Music on TM2

Post by donlafferty »

I've got a plugin I wrote for TMF/U that does various things and one of those is providing music for the game from an FTP server.

It worked flawlessly under TMF/U but it's a bit spotty under TM2.

I have been able to modify my plugin to make most of the functions work but with music it seems it doesn't always pick up the song I select right away. It keeps repeating songs from previous maps.

It's likely some small issue with my plugin but I wanted to see if anyone else has noticed any differences in the way you have to load music.

The plugin is written in Python by the way. 8-)
wraith36
Posts: 32
Joined: 13 Aug 2011, 10:44
Location: Liverpool UK

Re: Troubles with Music on TM2

Post by wraith36 »

You cant use FTP for music, has to be HTTP

If you keep having problems try this very cool piece of kit.
Its only 600kb so its nice and small to.

http://www.rejetto.com/hfs/?f=dl

Its a http server that runs from a pc or dedi box.
I used this to run music to tmnf from a second pc and it worked a treat.

But please read all the info on the site.
As usual you still neeed to convert to .mux or .ogg
Paste all music in the left hand panel were it says root, i made a folder in root and called it .mux then put all tracks in there.
To get the redirect address right click on the track and it will let you copy the redirect part of it.

Lots of info on the site so please read through it.
Let me know if all go's well.
And happy racing.
donlafferty
Posts: 8
Joined: 14 Aug 2011, 19:53

Re: Troubles with Music on TM2

Post by donlafferty »

Wraith: Thanks for the reply. I am actually using HTTP but I use FTP to get the list of songs on my server. As I mentioned I'm using Python.

My plugin gets a list of files on my server on startup and at each map change and then creates the http url the game needs to download the songs to the clients.

I think I might have an idea. On TMU it would select a song for a challenge and then have the clients download the song. If the client didn't get it downloaded by the end of the challenge then the client would never hear that song and it would move to the next song in the order.

On TM2 it seems to play whatever was downloaded until the client gets the next song downloaded and then on the next map change it changes songs. This way all the songs in the list seem to play but I can't neccesarily choose the song for the next challenge. Perhaps when I get all the songs downloaded to my client it will work the way I expect but for now it seems to be replaying songs.

I wish someone really familiar with the new game would explain the process. :?:
Post Reply

Return to “Dedicated Server”

Who is online

Users browsing this forum: No registered users and 1 guest