X3TC: Editing/changing music files
Moderators: Moderators for English X Forum, Scripting / Modding Moderators
-
- Posts: 255
- Joined: Fri, 13. Feb 04, 05:29
X3TC: Editing/changing music files
Is it possible to change the music files in x3tc?
What I mean is.... is it possible to swap out the OC music files with other music files? For example... the music theme for kingdom's end.. if I wanted that theme to play in every sector is it possible? Would it be a case of copying the file and renaming it?
I wonder if I could replace the current music with older X game music file or my own personal music files... maybe have the BSG theme play in specific sectors or something...
Has anyone tried anything like this??
What I mean is.... is it possible to swap out the OC music files with other music files? For example... the music theme for kingdom's end.. if I wanted that theme to play in every sector is it possible? Would it be a case of copying the file and renaming it?
I wonder if I could replace the current music with older X game music file or my own personal music files... maybe have the BSG theme play in specific sectors or something...
Has anyone tried anything like this??
-
- Posts: 16999
- Joined: Mon, 5. Mar 07, 22:03
-
- Posts: 464
- Joined: Fri, 20. Jun 08, 07:12
http://www.pagemark.nl/x3activemap/music_guide.htm
This guide is from Reunion, but most of it is the same.
This guide is from Reunion, but most of it is the same.
-
- Posts: 255
- Joined: Fri, 13. Feb 04, 05:29
Thanks!!!Thelic wrote:http://www.pagemark.nl/x3activemap/music_guide.htm
This guide is from Reunion, but most of it is the same.


-
- Posts: 20
- Joined: Fri, 2. Sep 11, 22:47
-
- Moderator (Deutsch)
- Posts: 25130
- Joined: Sun, 2. Apr 06, 16:38
What music file is played in which sector is defined in the map. It can be changed by using the MD. Simply copy the following code into an empty .xml file:
And save it in the "director" folder (if you don't have one, simply create one) in your X3:TC main directory.
The parts you have to change for a specific sector are the x,y-coordinate ( x="0" y="0" ) of this sector and the number of the music file in the "soundtracks"-folder you like to play ( music="8512" ). This example will play track number 08512.mp3 (the X3:TC teaser soundtrack) in Kingdom End.
It's possible to give every sector in the map a specific soundtrack. However, the combat music is limited to the known 5 (?) files afaik.
Code: Select all
<?xml version="1.0" encoding="iso-8859-1" ?>
<?xml-stylesheet href="director.xsl" type="text/xsl" ?>
<director name="template" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="director.xsd">
<cues>
<cue name="ChangeSectorSound">
<action>
<do_all>
<find_sector name="sector" x="0" y="0"/>
<alter_sector sector="sector" music="8512"/>
</do_all>
</action>
</cue>
</cues>
</director>
The parts you have to change for a specific sector are the x,y-coordinate ( x="0" y="0" ) of this sector and the number of the music file in the "soundtracks"-folder you like to play ( music="8512" ). This example will play track number 08512.mp3 (the X3:TC teaser soundtrack) in Kingdom End.
It's possible to give every sector in the map a specific soundtrack. However, the combat music is limited to the known 5 (?) files afaik.
Nun verfügbar! X3: Farnham's Legacy - Ein neues Kapitel für einen alten Favoriten
Die komplette X-Roman-Reihe jetzt als Kindle E-Books! (Farnhams Legende, Nopileos, X3: Yoshiko, X3: Hüter der Tore, X3: Wächter der Erde)
Neuauflage der fünf X-Romane als Taschenbuch
The official X-novels Farnham's Legend, Nopileos, X3: Yoshiko as Kindle e-books!
Die komplette X-Roman-Reihe jetzt als Kindle E-Books! (Farnhams Legende, Nopileos, X3: Yoshiko, X3: Hüter der Tore, X3: Wächter der Erde)
Neuauflage der fünf X-Romane als Taschenbuch
The official X-novels Farnham's Legend, Nopileos, X3: Yoshiko as Kindle e-books!
-
- Posts: 20
- Joined: Fri, 2. Sep 11, 22:47
Thanks for your help 
Ok so if I add a custom music in the 'soundtrack' folder under the name ?????.mp3 (5 numbers ?), I'll have to create a new .xml file with the code you quoted, replace the coordinates with the map's and the 5 numbers of the mp3, and it replaces it ?
Too bad for the fight music though :/

Ok so if I add a custom music in the 'soundtrack' folder under the name ?????.mp3 (5 numbers ?), I'll have to create a new .xml file with the code you quoted, replace the coordinates with the map's and the 5 numbers of the mp3, and it replaces it ?
Too bad for the fight music though :/
-
- Moderator (Deutsch)
- Posts: 25130
- Joined: Sun, 2. Apr 06, 16:38
Yes.
Nun verfügbar! X3: Farnham's Legacy - Ein neues Kapitel für einen alten Favoriten
Die komplette X-Roman-Reihe jetzt als Kindle E-Books! (Farnhams Legende, Nopileos, X3: Yoshiko, X3: Hüter der Tore, X3: Wächter der Erde)
Neuauflage der fünf X-Romane als Taschenbuch
The official X-novels Farnham's Legend, Nopileos, X3: Yoshiko as Kindle e-books!
Die komplette X-Roman-Reihe jetzt als Kindle E-Books! (Farnhams Legende, Nopileos, X3: Yoshiko, X3: Hüter der Tore, X3: Wächter der Erde)
Neuauflage der fünf X-Romane als Taschenbuch
The official X-novels Farnham's Legend, Nopileos, X3: Yoshiko as Kindle e-books!
-
- Posts: 20
- Joined: Fri, 2. Sep 11, 22:47
-
- Posts: 2
- Joined: Tue, 27. Sep 11, 03:40
Try replacing one of the redundant tracks in the soundtrack folder with your custom music. For example, 00005 is the publisher's intro theme and never used in the game, rename your custom music to that then reference it in the xml. 08505 and 06030 can also be used._Axel wrote:I have a little problem...
I tried this method and it works with default music that was already in the soundtrack directory, but when I add custom music and reference it in the Xml, it doesn't seem to affect the sector's music.
-
- Posts: 1159
- Joined: Mon, 3. Nov 08, 14:25
If you have already used the above MD code to change the sector music once, and saved the game, then just changing the track number won't work. You'll need to change the cue name as well, as the game will have set that cue name as 'complete' and won't rerun it._Axel wrote:I have a little problem...
I tried this method and it works with default music that was already in the soundtrack directory, but when I add custom music and reference it in the Xml, it doesn't seem to affect the sector's music.
-
- Posts: 20
- Joined: Fri, 2. Sep 11, 22:47
If I understand well the above xml code create a cue, so adding another xml file with the same cue name will just set the cue to the other value ?
Ok, so I'll just have to rename the cues in the other xml files/add other new cues in the same xml file for it to load correctly next time I load a save ?
Also thanks for your tip smokey
Ok, so I'll just have to rename the cues in the other xml files/add other new cues in the same xml file for it to load correctly next time I load a save ?
Also thanks for your tip smokey
