Custom music in maps
Moderator: English Moderator
-
- Posts: 12
- Joined: 19 Dec 2012, 19:08
Custom music in maps
Hi all.
This has been driving me crazy today. I have trawled these forums, the Steam community page, and Google but can't get this working properly.
Please can someone explain how to get custom music embedded in my maps so that when someone joins my server and plays the map they can hear the music - they can't currently. The steps I've followed are below - tell me where I'm going wrong!
I make a new map
I point the editor to my .ogg file
The editor makes a .mux file in the /media/musics folder
I copy the .mux file to my webserver (which allows direct downloads)
I create a .mux.loc file of the same name in /media/musics, containing a link to the remote file
I save the map and upload it to maniaexchange
I add the map to my server
This has been driving me crazy today. I have trawled these forums, the Steam community page, and Google but can't get this working properly.
Please can someone explain how to get custom music embedded in my maps so that when someone joins my server and plays the map they can hear the music - they can't currently. The steps I've followed are below - tell me where I'm going wrong!
I make a new map
I point the editor to my .ogg file
The editor makes a .mux file in the /media/musics folder
I copy the .mux file to my webserver (which allows direct downloads)
I create a .mux.loc file of the same name in /media/musics, containing a link to the remote file
I save the map and upload it to maniaexchange
I add the map to my server
Re: Custom music in maps
The music file must reside in a public accessible storage, e.g. web share, Dropbox etc.
and the content of the locator file must be the resulting address.
local server shares like \\myserver\media\music\mymusicfile.ogg are not possible!
And: no scripts or button executions shall be necessary in order to access the file.
And use the locator in your local game clients music files before you edit the map, not afterwards.
and the content of the locator file must be the resulting address.
local server shares like \\myserver\media\music\mymusicfile.ogg are not possible!
And: no scripts or button executions shall be necessary in order to access the file.
And use the locator in your local game clients music files before you edit the map, not afterwards.
-
- Posts: 12
- Joined: 19 Dec 2012, 19:08
Re: Custom music in maps
Hi TMarc, thanks for the response.
The music file is here:
http://kindledboot.com/media/Koop_-_Forces,_Darling.ogg
Can you please elaborate on your last line, I'm not sure I follow:
What files should be in my local folder? (I assume .mux and .loc)
What files should be in my remote folder? .loc / .mux / .ogg?
The music file is here:
http://kindledboot.com/media/Koop_-_Forces,_Darling.ogg
Can you please elaborate on your last line, I'm not sure I follow:
Also, should my .loc be pointing to a .ogg or a .mux on my website?And use the locator in your local game clients music files before you edit the map, not afterwards.
What files should be in my local folder? (I assume .mux and .loc)
What files should be in my remote folder? .loc / .mux / .ogg?
- WTCYoStunt12
- Posts: 401
- Joined: 28 Jan 2012, 15:45
- Location: Toulouse, France
- Contact:
Re: Custom music in maps
Here are the steps you must follow:
1-Get your music in a vorbis (.ogg) format
2-Upload the file to a public server and get the direct link (when you enter the link in your browser, it must download it)
3-Place you music in the "Music" folder of Maniaplanet
4-Create a .ogg.loc file named exactly the same as the .ogg file. (You should have in you folder music.ogg and music.ogg.loc)
5-Open the .loc with a basic text editor and put the direct link of you file in it. If there is no ".ogg" at the end of the link, add it. (for example if you are using puush).
6-Create (or edit) your map by adding the music
7-Save it and you are done!
---
8-Normally, it works at this point. You can verify it yourself by removing the .ogg and .ogg.loc file. Then open the map in normal play and if MP is downloading something, it works.
1-Get your music in a vorbis (.ogg) format
2-Upload the file to a public server and get the direct link (when you enter the link in your browser, it must download it)
3-Place you music in the "Music" folder of Maniaplanet
4-Create a .ogg.loc file named exactly the same as the .ogg file. (You should have in you folder music.ogg and music.ogg.loc)
5-Open the .loc with a basic text editor and put the direct link of you file in it. If there is no ".ogg" at the end of the link, add it. (for example if you are using puush).
6-Create (or edit) your map by adding the music
7-Save it and you are done!
---
8-Normally, it works at this point. You can verify it yourself by removing the .ogg and .ogg.loc file. Then open the map in normal play and if MP is downloading something, it works.
Re: Custom music in maps
Is it correct that there is a comma in your link!? Such things and other special characters you should avoid 

-
- Posts: 12
- Joined: 19 Dec 2012, 19:08
Re: Custom music in maps
Stunty, thanks for that guide, I'll try it out today.
TMarc, you're right. I'll change that.
Many thanks gents.
TMarc, you're right. I'll change that.
Many thanks gents.
-
- Posts: 12
- Joined: 19 Dec 2012, 19:08
Re: Custom music in maps
This hasn't worked.
I don't think the .loc is saving into the GBX. When I load the map with only the .mux file in /media/musics the tune plays locally, but nothing downloads. If I remove all three files form the folder it plays nothing.
Here is the header data from GBXDump:
<deps>
<dep file="Skins\Any\Advertisement\Advert2.zip"/>
<dep file="Skins\Any\Advertisement\Advert3.zip"/>
<dep file="Skins\Any\Advertisement\Advert1.zip"/>
<dep file="Media\Musics\Koop_-_Forces_Darling.mux"/>
</deps>
</header>
You can see that it only lists the .mux as a dependency and not the .loc
Here is the link to my music file:
http://kindledboot.com/media/Koop_-_Forces_Darling.ogg
I don't think the .loc is saving into the GBX. When I load the map with only the .mux file in /media/musics the tune plays locally, but nothing downloads. If I remove all three files form the folder it plays nothing.
Here is the header data from GBXDump:
<deps>
<dep file="Skins\Any\Advertisement\Advert2.zip"/>
<dep file="Skins\Any\Advertisement\Advert3.zip"/>
<dep file="Skins\Any\Advertisement\Advert1.zip"/>
<dep file="Media\Musics\Koop_-_Forces_Darling.mux"/>
</deps>
</header>
You can see that it only lists the .mux as a dependency and not the .loc
Here is the link to my music file:
http://kindledboot.com/media/Koop_-_Forces_Darling.ogg
- nighthawk4571
- Posts: 618
- Joined: 20 Aug 2011, 06:39
- Location: QLD, Australia
- Contact:
Re: Custom music in maps
your file is not an .mux file - it is a .ogg file (Koop_-_Forces_Darling.ogg). So the .loc file should point to that, not a .mux.
E.g.
1. In the .loc file: http: //kindledboot.com/media/Koop_-_Forces,_Darling.ogg
[ I left a gap in the 'http:_//' section to avoid creating it as a link here - close that gap! BUT the link you show here doesn't work - I see this message:
'404 Not Found
The requested URL /media/Koop_-_Forces,_Darling.ogg was not found on this server.
Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.' ]
2. Save the .loc file as: Koop_-_Forces,_Darling.ogg.loc
I'm pretty sure this should fix your problem, as long as the file link is correct .... good luck!
E.g.
1. In the .loc file: http: //kindledboot.com/media/Koop_-_Forces,_Darling.ogg
[ I left a gap in the 'http:_//' section to avoid creating it as a link here - close that gap! BUT the link you show here doesn't work - I see this message:
'404 Not Found
The requested URL /media/Koop_-_Forces,_Darling.ogg was not found on this server.
Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.' ]
2. Save the .loc file as: Koop_-_Forces,_Darling.ogg.loc
I'm pretty sure this should fix your problem, as long as the file link is correct .... good luck!


Getting old, forgetting most of what I ever learned !
My name is Nighthawk. The 4571 used to be my IQ.

Admin: http://bagracing.freeforums.org/portal.php
U-tUbe: https://www.youtube.com/user/bvnighthawk
-
- Posts: 12
- Joined: 19 Dec 2012, 19:08
Re: Custom music in maps
Hi Nighthawk.
Please see the latter link I posted to the music file (just before your post) - I had renamed it to remove the comma at TMarc's suggestion. If you click that I'm sure it'll work.
My .loc file does point to the .ogg
I refer to the .mux as ManiaPlanet creates it automatically and as long as it's in my /media/musics folder the tune will play. If I remove the .loc, .mux, and .ogg from this local folder nothing plays and nothing downloads.
I saved my map after creating the .loc and following all the steps above, then re-upped it to Maniaexchange, then deleted it from my remote server maplist and re-added it. Still nothing.
Please see the latter link I posted to the music file (just before your post) - I had renamed it to remove the comma at TMarc's suggestion. If you click that I'm sure it'll work.
My .loc file does point to the .ogg
I refer to the .mux as ManiaPlanet creates it automatically and as long as it's in my /media/musics folder the tune will play. If I remove the .loc, .mux, and .ogg from this local folder nothing plays and nothing downloads.
I saved my map after creating the .loc and following all the steps above, then re-upped it to Maniaexchange, then deleted it from my remote server maplist and re-added it. Still nothing.
Re: Custom music in maps
actually the loc must point to the location where you store the file in public,
so it also has to have the ending .ogg in the locator.
and the file name of the locator will be the file name of your music file .loc
music file name:
webspace location:
locator file name:
locator file content (= webspace location):
Then you place only the loc file into your \Media\Musics folder
In the map, you select the tool menu, select own music, and then you select the music file name.
Then test the map. Possibly it will take some while to download the file, which will be placed automatically along with the locator.
Beware, after placing new music and/or lpc files, you need to restart maniaplanet, otherwise it will not recognize the new or modified files.
This definitely works, I was able to hear your music with only using the locator in a new map.
so it also has to have the ending .ogg in the locator.
and the file name of the locator will be the file name of your music file .loc
music file name:
Code: Select all
Koop_-_Forces_Darling.ogg
Code: Select all
http://kindledboot.com/media/Koop_-_Forces_Darling.ogg
Code: Select all
Koop_-_Forces_Darling.ogg.loc
Code: Select all
http://kindledboot.com/media/Koop_-_Forces_Darling.ogg
In the map, you select the tool menu, select own music, and then you select the music file name.
Then test the map. Possibly it will take some while to download the file, which will be placed automatically along with the locator.
Beware, after placing new music and/or lpc files, you need to restart maniaplanet, otherwise it will not recognize the new or modified files.
This definitely works, I was able to hear your music with only using the locator in a new map.
Who is online
Users browsing this forum: No registered users and 1 guest