Music from my dedicated server

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

Moderators: TheM, toffe, NADEO

yaahooz
Posts: 6
Joined: 24 May 2020, 19:17

Re: Music from my dedicated server

Post by yaahooz »

Bah! Of course! Im a moron lol. I did not take that into account. Thanks guys, fixed and it works!
User avatar
TMarc
Posts: 15441
Joined: 05 Apr 2011, 19:10
Location: Europe
Contact:

Re: Music from my dedicated server

Post by TMarc »

perfect :thumbsup:
TheBigMiike
Posts: 1257
Joined: 06 Mar 2013, 16:12
Location: Vendée | France
Contact:

Re: Music from my dedicated server

Post by TheBigMiike »

TMarc, the link on the last image is a true one ^_^. It redirects to a web page.
Image Image
User avatar
TMarc
Posts: 15441
Joined: 05 Apr 2011, 19:10
Location: Europe
Contact:

Re: Music from my dedicated server

Post by TMarc »

Possible, but like for the skins or other resources, i guess music needs to be accessible without relay links.
User avatar
o0Julia0o
Posts: 44
Joined: 11 Jul 2020, 15:20

Re: Music from my dedicated server

Post by o0Julia0o »

Are local paths possible?

Like: D:\SONGS\song1.ogg ?

I am getting an error, too trying 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',
    }
  }

Code: Select all

  File "D:\PyPlanet\Project1\settings\base.py", line 97
    SONGS = {
    ^
IndentationError: unexpected indent
The same error i get with this:

Code: Select all

  SONGS = {
    'default': [
      'https://dl.espressif.com/dl/audio/ff-16b-2c-44100hz.ogg',
    }
  }


With the default-settings i am getting no error(but of course have no chance adding songs)

Code: Select all

SONGS = {
	'default': []
}
I am not a coder, but is that correct, that there is no closing "]" in the code(with the songa added) above?
GrandPa43 wrote: 06 Jan 2019, 13:51 I hope you will alter the music app to the possibility to not override authors music
oh yes, that would be very useful.
User avatar
toffe
Posts: 782
Joined: 15 Jun 2013, 10:57
Location: The Netherlands
Contact:

Re: Music from my dedicated server

Post by toffe »

You need to host this on a public space, no local paths are possible. Also the URL should download the music file directly, no indurect links are possible here.
User avatar
o0Julia0o
Posts: 44
Joined: 11 Jul 2020, 15:20

Re: Music from my dedicated server

Post by o0Julia0o »

Thank you. So this music-file-store-place is o.k.?

https://dl.espressif.com/dl/audio/ff-16b-2c-44100hz.ogg

Using this:

Code: Select all

  SONGS = {
    'default': [
      'https://dl.espressif.com/dl/audio/ff-16b-2c-44100hz.ogg',
    }
  }
is leading into this error:

Code: Select all

  File "D:\PyPlanet\Project1\settings\base.py", line 97
    SONGS = {
    ^
IndentationError: unexpected indent
User avatar
TMarc
Posts: 15441
Joined: 05 Apr 2011, 19:10
Location: Europe
Contact:

Re: Music from my dedicated server

Post by TMarc »

your example is missing a closing square bracket.
Post Reply

Return to “PyPlanet”

Who is online

Users browsing this forum: No registered users and 1 guest