possible to change the menu music ?

This is for troubleshooting of problems with the FAF client and Forged Alliance game.

Moderator: PhilipJFry

possible to change the menu music ?

Postby Soranamida » 13 Nov 2017, 04:50

hello guys first topic

I really want to change the music of the menu and I want the old supreme commander music

is it possible ? I try to modified the sound files but I havent found the main theme in folders

no solutions for this guys ?

thank you
Soranamida
 
Posts: 2
Joined: 13 Nov 2017, 04:45
Has liked: 0 time
Been liked: 0 time
FAF User Name: Soranamida

Re: possible to change the menu music ?

Postby Uveso » 13 Nov 2017, 08:14

Here is a link to a mod that installs the old Supreme commander music:
https://wiki.faforever.com/index.php?ti ... _Music_Mod

Download the file and unpack it (scmusic.zip).
Inside the zip you will find 3 files:

SC_Music.xsb and SC_Music.xwb are the files for the bank/music data.

SC_Music.scd is a ZIP archivefile.
Rename it from "SC_Music.scd" to "SC_Music.zip".
If you now unpack the SC_Music.zip, you will find the file:
SC_Music\mods\SC_Music\hook\lua\UserMusic.lua

Inside this file you can see how music is organised in the game.

---

If you want to change the music from the menu you could start modifying main.lua and menucommon.lua.
(I only searched for "Menu_Loop" and did not test this!!!)

Code: Select all
main.lua line 232:
local ambientSoundHandle = PlaySound(Sound({Cue = "AMB_Menu_Loop", Bank = "AmbientTest",}))
and
Code: Select all
menucommon.lua line 78:
ambientSoundHandle = PlaySound(Sound({Cue = "AMB_Menu_Loop", Bank = "AmbientTest",}))
User avatar
Uveso
Supreme Commander
 
Posts: 1788
Joined: 11 Dec 2015, 20:56
Location: Germany
Has liked: 70 times
Been liked: 291 times
FAF User Name: Uveso

Re: possible to change the menu music ?

Postby Soranamida » 13 Nov 2017, 11:32

ok thank you man ! I will see this

I have found main menu et uia but I dont know how the supreme commander theme is named :( so I dont know how to remplace the lines of code
Soranamida
 
Posts: 2
Joined: 13 Nov 2017, 04:45
Has liked: 0 time
Been liked: 0 time
FAF User Name: Soranamida

Re: possible to change the menu music ?

Postby Uveso » 13 Nov 2017, 18:23

Well, this is all i know about sounds:

Code: Select all
PlaySound(Sound({Cue = "AMB_Menu_Loop", Bank = "AmbientTest",}))

These sounds are stored in XACT format (Wavebank (.xwb) and soundbank (.xsb))

This means, this sound is stored inside a file named (Bank=) "AmbientTest.xwb" and the sound is named (Cue=) "AMB_Menu_Loop".

If you open the soundbank "AmbientTest.xsb" with an texteditor, you can see what sounds are stored inside "AmbientTest.xwb"
AMB_Menu_Loop
Gen_Fire_Loop
Gen_Fire_Start
Gen_Tree_Crush
AMB_Planet_Rumble_zoom
AMB_SER_OP_Briefing


If you now open the downloaded soundfiles from the old Supremecommander you will also have 2 files. (Wavebank (.xwb) and soundbank (.xsb)

If you open the SC_Music.xsb file (soundbank) you will find only 2 sounds:
Building
Battle

This means, there are no other sounds in there. No Menu-loop !
To replace the menu music you need the menu sound files from the old game.

Maby someone here or on steam can help and send you the 2 files:
AmbientTest.xsb
AmbientTest.xwb
I expect the same filenames for the older gameversion, but maybe i am wrong!
User avatar
Uveso
Supreme Commander
 
Posts: 1788
Joined: 11 Dec 2015, 20:56
Location: Germany
Has liked: 70 times
Been liked: 291 times
FAF User Name: Uveso


Return to Tech Support

Who is online

Users browsing this forum: No registered users and 1 guest