Music from my dedicated server

Python 3 Server Controller for Trackmania and Shootmania for script-only modes.

Moderators: TheM, toffe, NADEO

Post Reply
GrandPa43
Posts: 9
Joined: 23 Apr 2013, 16:14

Music from my dedicated server

Post by GrandPa43 » 06 Jan 2019, 11:39

Hi,
My question is how to set a correct command in the base file to get music on my server?

# Songs is a list of URLs to .ogg files of songs to be played by the music server.
SONGS = {
'default': []
}


Please show me a correct example on this url and songs:
Http://My-music_server.com

song1.ogg
song2.ogg
song3.ogg
song4.ogg

Greetz,
GrandPa

User avatar
toffe
Posts: 678
Joined: 15 Jun 2013, 10:57
Location: The Netherlands
Contact:

Re: Music from my dedicated server

Post by toffe » 06 Jan 2019, 12:37

First of all, make sure you enabled the app in the apps.py like this (add the line to the list of apps):

Code: Select all

'pyplanet.apps.contrib.music_server',
For the full documentation on enabling apps, see: http://pypla.net/en/latest/intro/config ... -apps-apps

For your song configuration, you should just add the URL's to the list inside the default key, like this:

Code: Select all

  SONGS = {
    'default': [
      'http://My-music_server.com/song1.ogg',
      'http://My-music_server.com/song2.ogg',
      'http://My-music_server.com/song3.ogg',
      'http://My-music_server.com/song4.ogg',
    }
  }
(doc: http://pypla.net/en/latest/intro/config ... songs-base)

Restart PyPlanet and the songs will appear in the /songlist
Please let me know if this helped you getting the music to work on your server.

GrandPa43
Posts: 9
Joined: 23 Apr 2013, 16:14

Re: Music from my dedicated server

Post by GrandPa43 » 06 Jan 2019, 12:55

Thanks for quick answer, I possibly forget to inform that i run the server on version 0.6.3 I'm not sure that make any difference.

My second question is: some map authors have added music allready in theyr map, and i do not want to override this music, is there any "switch (true/false)" that control this?

Greetz
GrandPa

User avatar
toffe
Posts: 678
Joined: 15 Jun 2013, 10:57
Location: The Netherlands
Contact:

Re: Music from my dedicated server

Post by toffe » 06 Jan 2019, 13:26

When using the music app, the map authors music will be overwritten by the personal queued songs from the app.

Toffe

GrandPa43
Posts: 9
Joined: 23 Apr 2013, 16:14

Re: Music from my dedicated server

Post by GrandPa43 » 06 Jan 2019, 13:51

Hi, and a again thanks for quick answer. :clap:
I hope you will alter the music app to the possibility to not override authors music, to me is the app useless atm. I will not insult the author with overide his music ;)
Case is closed, thanks for enlighting my mind :thumbsup:

Greetz
GrandPa :pil

GrandPa43
Posts: 9
Joined: 23 Apr 2013, 16:14

Re: Music from my dedicated server

Post by GrandPa43 » 14 Jan 2019, 21:24

Hi Toffe, thanks for good guide on how to set songs in your music app. I have now done a successful tryout :) I downloaded in the server 7 different songs from a external server and all works smooth. Of coarse i hope for a possebility to not override the ingame music, so that must be my wish for the future.
Your Pyplanet controller is running stably and well 24/7, I very much appreciate your work, :clap:
Greetz,
GrandPa,

Post Reply

Return to “PyPlanet”

Who is online

Users browsing this forum: No registered users and 0 guests