Posted by: bio138 - Saturday, June 14, 2014 12:11:09 AM
Hello, could I remotely add custom music to my map that plays when I wish it to? Or is this not possible/allowed.
If it is possible please alert me on how to or if you have seen it done before, I swear I have seen a map do it before. But it could have just been a mod or my memory made it up. If its not, please let me know so I can stop looking around the web although I fear I may be looking at the wrong sections to figure it out. Thank you.
Posted by: Gameanater - Saturday, June 14, 2014 10:44:25 AM
I have seen it done before. However, those maps are long deleted from my copy...
I think you need an Expand.big file in order to do it...
I'll poke around and see if I can come up with anything.
Posted by: CommieDog - Saturday, June 14, 2014 12:23:45 PM
You can certainly change the scripts to play different music for a single map, but I don't think you can add new audio assets on a map level. You have to use mods for that.
Posted by: bio138 - Saturday, June 14, 2014 3:05:14 PM
Thank you for your time and the answers that you two have provided, I will also see if I can dig up anything about Expand.big files although judging by the second response, I don't know how far that will be able to take me. Thank you both for the quick responses, both of my thanks.
Posted by: Gameanater - Saturday, June 14, 2014 3:07:49 PM
No prob...
And I am lazy, I still haven't done the poking around... lol
Posted by: Gameanater - Saturday, June 14, 2014 3:09:32 PM
I suppose you could include a link to a YouTube video with the music you want in the map's readme and have the video playing while you play Zero Hour. But I dunno if Internet Browser audio stuff can play while you're in a game.
Posted by: i^love^mixery - Saturday, June 14, 2014 3:19:36 PM
Actually it is possible without modifying .big files.
You can put your .mp3s here:
Zero Hour Directory\Data\Audio\Tracks (create if it doesn't exist)
Then you have to put this into your map.ini:
[code]
MusicTrack Test_01
Filename = Test_01.mp3
End
MusicTrack Test_02
Filename = Test_02.mp3
End[/code]
Posted by: Gameanater - Saturday, June 14, 2014 3:20:45 PM
Whoa. That's cool. [sunglasses]
Posted by: bio138 - Saturday, June 14, 2014 3:25:53 PM
[quote=I^Love^Mixery;132046]Actually it is possible without modifying .big files.
You can put your .mp3s here:
Zero Hour Directory\Data\Audio\Tracks (create if it doesn't exist)
Then you have to put this into your map.ini:
[code]
MusicTrack Test_01
Filename = Test_01.mp3
End
MusicTrack Test_02
Filename = Test_02.mp3
End[/code][/quote]
This is very interesting, the digging up on the .big files and poking around leads me to no avail. So this is amazing, thank you. But if I were to add this to my map and got my friends to play it with me, does it auto download the songs that I have playing? I would assume no and is just wondering if you are aware of this ahead of time. Thanks again.
Posted by: Gameanater - Saturday, June 14, 2014 3:28:51 PM
[quote=bio138;132048][quote=I^Love^Mixery;132046]Actually it is possible without modifying .big files.
You can put your .mp3s here:
Zero Hour Directory\Data\Audio\Tracks (create if it doesn't exist)
Then you have to put this into your map.ini:
[code]
MusicTrack Test_01
Filename = Test_01.mp3
End
MusicTrack Test_02
Filename = Test_02.mp3
End[/code][/quote]
This is very interesting, the digging up on the .big files and poking around leads me to no avail. So this is amazing, thank you. But if I were to add this to my map and got my friends to play it with me, does it auto download the songs that I have playing? I would assume no and is just wondering if you are aware of this ahead of time. Thanks again.
[/quote]
You'll likely get a mismatch error if you play with the new .mp3's. My suggestion would be to just try and play online against a random person and see if the new .mp3's affect anything.
If you do get a mismatch, then just give your friends copies of the new files and tell them where and how to install it into their own copy of the game.
Posted by: i^love^mixery - Saturday, June 14, 2014 3:34:40 PM
You are lucky if maps with custom music work online at all.
All your friends will have to create this folder structure and move the same .mp3s there manually.
Posted by: bio138 - Saturday, June 14, 2014 3:43:04 PM
Thank you for these quick replys, and not to be a guy who asks a lot of questions here but when using your script that you have provided with the two tracks that I added in for testing. In both skirmish and a solo network game I here the regular game music stop when the game starts as if it is loading the music or something. I don't here any music that I added, just silence for about 10 seconds before it starts to play the game music once again? Any suggestions or is it something like the songs that I have added are too large? Thank you once again.
Posted by: i^love^mixery - Sunday, June 15, 2014 1:09:47 PM
Well.. of course you have to put script into worldbuilder too.
Something like this:
[code]
*** IF ***
True.
*** THEN ***
Play 'Test_01' using fadeout (FALSE) and fadein (FALSE).
[/code]
(Multimedia -> Music -> Play Track)
Posted by: bio138 - Sunday, June 15, 2014 4:11:08 PM
When I use the following code you have provided IN world builder, it claims 'Test_01' does not exist, in game I am still met with the silence. However there were some tracks that just said Track1, Track2 and Track3. Tried all of those for the lolz and still nothing. I imagine this is starting to irritate you with me asking all of these. I am still having difficulty despite the map.ini being exactly what you told me and the world builder code being the same. I have the tracks in the Audio\Track\ the same. I have no idea now.
Posted by: Gameanater - Sunday, June 15, 2014 6:07:15 PM
That's odd... I'm not sure why the existing Tracks wouldn't be playing...
On a side note, one of those tracks has a very apocalyptic feel to it (forgot which one). It's one of my favorite in the game.
Wait a second... Mixery, does it matter if the .mp3 file has a space in it?
Posted by: klingondragon - Monday, June 16, 2014 3:49:57 PM
i added some music to the game so that whatever faction im playing on any map or mission i get my own music
go to : C:\Program Files\EA Games\Command & Conquer Generals Zero Hour\Data and add \Audio\Tracks then put the mp3s into that folder and call them USA_01.mp3 CHI_01.mp3 and GLA_01.mp3
not specifically for one map but it works well for me
Posted by: Gameanater - Monday, June 16, 2014 8:26:05 PM
[quote=KlingonDragon;132082]i added some music to the game so that whatever faction im playing on any map or mission i get my own music
go to : C:\Program Files\EA Games\Command & Conquer Generals Zero Hour\Data and add \Audio\Tracks then put the mp3s into that folder and call them USA_01.mp3 CHI_01.mp3 and GLA_01.mp3
not specifically for one map but it works well for me[/quote]
I didn't know you could do THAT...
[open_mouth]
Now that's some cool stuff.
Posted by: i^love^mixery - Tuesday, June 17, 2014 1:34:38 AM
That's exactly the same solution, only that he replaces existing tracks rather than adding new ones. bio138 if this still doesn't work and if you don't want to go with klingondragons solution upload the map please.
Posted by: klingondragon - Tuesday, June 17, 2014 2:11:59 AM
You can add up to 11 for each faction and I thinking of going through my collection of classical music and making a good playlist
I'll upload it when I'm done if people want it
Posted by: Nizar Haddad - Wednesday, September 21, 2016 8:15:08 AM
well this is a very old topic, but still it's issue occurs till nowadays..
until now i can't see any solution.. i have some ideas, i'll tell you them and the results after testing
Posted by: AdrianeMapMaker - Thursday, September 22, 2016 1:59:55 AM
Guys i think this is a good for mission intro
this is the link:https://www.youtube.com/watch?v=JL8jlwo5WKc
Well i tried million ways to do it, and only 1 method worked with me.. [smile]
Alright everyone, remain focus on this cause this is a total new self-originated method and with it's first appearance from 13 years... although it's easy [grin]
So, to add a total new music just for 1 map, follow these steps :
1) Get the music in the form of .mp3 .
2) Open the map folder, then create a file named (map.ini) using Notepad.
3) Open the file (map.ini) with Notepad, and enter the following code :
[code=plain]
MusicTrack TheMusicNickname
Filename = TheMusic.mp3
End
[/code]
*TheMusicNickname = the name which you will use inside World Builder
....................................(it can be anything, but i prefer to make it the same of the music name)
....................................(and it MUST NOT contain any SPACES).
*TheMusic = your music file-name (remember it must be .mp3 music file).
4) Open Zero Hour game folder, then open the [Data] folder.
.....Now create a new folder, name it : "Audio",
.....then create a folder inside it, name it : "Tracks".
5) Copy & Paste your Music mp3 file in that folder.
> Now to the simple World Builder part:
6) Go to Scripts, inside the "PlyrCivilian" folder create a New Script.
.....Open the "Actions if true." tab and then click [New...] to add action.
.....From the menus, go to : Multimedia -> Music -> Play a music track.
.....Down in the MessageBox, you'll see : Play '???' using fadeout (FALSE) and fadein (FALSE).
.....so click on the (???) symbols, and enter in the input box the exact name you used in the (map.ini),
.....which is the (TheMusicNickname) part.
[color=orange] MusicTrack TheMusicNickname [/color]
now save your work and go test it happily [+1] [sunglasses]
*NOTE: This only works Offline. While in Online gaming it would give a mismatch.
.............. Which is why we need a team to solve this problem, so who's on it.. [img]https://www.cnclabs.com/forums/images/emoticons/gwicon_detective.gif[/img] [img]https://www.cnclabs.com/forums/images/emoticons/gwicon_gunsmilie.gif[/img]
Posted by: zero hour mad map maker - Sunday, November 6, 2016 6:22:34 PM
RATS! I tried doing what Nizar Haddad did above, but it didn't work.....
Posted by: bio138 - Tuesday, November 8, 2016 9:10:20 PM
Im glad people are still attempting to figure this out, however I dont think it will spread from player to player over the web. You would need them to download it one on one. But best of luck to the rest of you.