Page 1 of 1

[Help!] Map loading music

Posted: 2013-02-27 14:26
by H.Maverick
Hello ladies and gentlemen.

I'm editing the "rt_vehicle_training" map for the unit i am currently in, with different loading screenshots and soundtrack, but for some reason i can't get the music to work.

When i open up the ".desc" file i get all this.
<map gsid="">
<name>Camp Wolverine</name>
<briefing locid="MAPDESCRIPTION_rt_vehicle_training">map description for modders maps not localized (english only)</briefing>
<music> objects_client/sound/menu/music/SONG NAME CLASSIFIED.ogg</music>
<modes>
<mode type="gpm_cq">
<maptype players="64" type="headon" locid="GAMEMODE_DESCRIPTION_aasfullassets">Unlocalized test for this mode on this map</maptype>
</mode>
</modes>
</map>
The place where i have the music files are.

Objects_Server - Sound-Menu-Music
Objects_client - Sound-Menu-Music

Anyone want to tell me what I've done wrong? :)

Re: [Help!] Map loading music

Posted: 2013-02-27 17:31
by pr|Zer0
<music> objects_client/sound/menu/music/SONG NAME CLASSIFIED.ogg</music> - THIS is wrong

First make sure you have clientarchives.con and server archives.con onto your map name/ server.zip

Example of my clientarchives.con

Code: Select all

[b]fileManager.mountArchive Levels/umm_qasr/[color=Red]objects_client.zip[/color] [color=Blue]Objects[/color][/b]
[b]fileManager.mountArchive Levels/umm_qasr/[color=DarkGreen]common_client.zip[/color] [color=Indigo]Common[/color][/b]
Serverarchives.con:

Code: Select all

fileManager.mountArchive Levels/umm_qasr/objects_server.zip Objects
now, in mapname.desc file, point the engine to the place where you have your music file. So if your file is in common_client.zip/sound/menu/music/xxx.ogg the line in desc file should be like

Code: Select all

[color=Indigo]common[/color]/sound/menu/music/xxx.ogg
.
its like this because you mount your common_client.zip archive as "common" (remember the line in clientarchives.con?? ). Also pay attention to the colors i used here. For the game, green is seen as indigo, therefore you need to point the game to the indigo, not green, if you know what I mean.

Re: [Help!] Map loading music

Posted: 2013-02-27 18:18
by H.Maverick
I see, thank you for your help :)

Edit: Map Didn't work(fixed that)
Edit: For some reason the music still doesn't work

Edit nr3: Do i just open it up and edit the files with notepad without having to download anything? that's what i was told..

Re: [Help!] Map loading music

Posted: 2013-02-27 18:44
by pr|Zer0
Take asad_khal level folder(notice the underscore in the folder name)
Now, open asad_khal/asad_khal.desc file
first 2 lines are like

Code: Select all

<map gsid="5045">
	<name> [color=Red]Asad Khal[/color] </name>
Notice the name WITHOUT underscore.

Open mods/pr_edit/localization/english/prmaps.utxt (with notepad or whatever u use for text editing)
Navigate to the 2nd line.
It looks like

Code: Select all

HUD_LEVELNAME_[color=DarkGreen]asad_khal[/color]                                    [color=Red]Asad Khal[/color]
This line tells the game to replace asad_khal with Asad Khal(notice that anything is missing??).
Again, red must be = to red, green must be = to green


http://www.bfeditor.org/forums/index.php?showtopic=2482 for your music issue. And read some of them tuts. Will help ya

Re: [Help!] Map loading music

Posted: 2013-02-27 18:56
by H.Maverick
Alright, thank you again