bio138
  • bio138
  • 50.25% (Neutral)
  • Private Topic Starter
11 years ago
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.
Sponsor
Gameanater
11 years ago
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.
Any old friends still on here can add me on discord @jcdenton2187. I'm far more likely to respond there.
CommieDog
11 years ago
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.
UserPostedImage 
CommieDog: Because someone has to do your dirty work for you
bio138
  • bio138
  • 50.25% (Neutral)
  • Private Topic Starter
11 years ago
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.
Gameanater
11 years ago
No prob...

And I am lazy, I still haven't done the poking around... lol
Any old friends still on here can add me on discord @jcdenton2187. I'm far more likely to respond there.
Gameanater
11 years ago
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.
Any old friends still on here can add me on discord @jcdenton2187. I'm far more likely to respond there.
i^love^mixery
11 years ago
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:


MusicTrack Test_01
  Filename = Test_01.mp3
End

MusicTrack Test_02
  Filename = Test_02.mp3
End
Gameanater
11 years ago
Whoa. That's cool. 😎
Any old friends still on here can add me on discord @jcdenton2187. I'm far more likely to respond there.
bio138
  • bio138
  • 50.25% (Neutral)
  • Private Topic Starter
11 years ago

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:


MusicTrack Test_01
  Filename = Test_01.mp3
End

MusicTrack Test_02
  Filename = Test_02.mp3
End

Originally Posted by: I^Love^Mixery 




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.
Gameanater
11 years ago

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:


MusicTrack Test_01
  Filename = Test_01.mp3
End

MusicTrack Test_02
  Filename = Test_02.mp3
End

Originally Posted by: bio138 




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.

Originally Posted by: I^Love^Mixery 



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.


Any old friends still on here can add me on discord @jcdenton2187. I'm far more likely to respond there.
i^love^mixery
11 years ago
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.
bio138
  • bio138
  • 50.25% (Neutral)
  • Private Topic Starter
11 years ago
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.
i^love^mixery
11 years ago
Well.. of course you have to put script into worldbuilder too.

Something like this:


*** IF ***
    True.
*** THEN ***
Play 'Test_01' using fadeout (FALSE) and fadein (FALSE).

(Multimedia -> Music -> Play Track)
bio138
  • bio138
  • 50.25% (Neutral)
  • Private Topic Starter
11 years ago
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.
Gameanater
11 years ago
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?
Any old friends still on here can add me on discord @jcdenton2187. I'm far more likely to respond there.
klingondragon
11 years ago
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
Gameanater
11 years ago

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

Originally Posted by: KlingonDragon 



I didn't know you could do THAT...
😮
Now that's some cool stuff.

Any old friends still on here can add me on discord @jcdenton2187. I'm far more likely to respond there.
i^love^mixery
11 years ago
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.
klingondragon
11 years ago
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
Nizar Haddad
9 years ago
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