You are on page 1of 5

I will assume that you're a newbie at this.

The process is simple but requires some patience. don't get panic, nothing is
really hard.
Maximize the window and let's start:

Overview of the steps:


----------------------
STEP 1 - Prepare the right tools (softwares) for the right work
STEP 2 - Convert and comment your songs
STEP 3-1 - Add your songs to the music player
STEP 3-2 - Add your songs to a radio channel

===================================================================================
===========|
///////////////////////////////////////////////////////////////////////////////////
///////////|
(STEP 1): Prepare the right tools for the right work (AKA programs)
|
///////////////////////////////////////////////////////////////////////////////////
///////////|
===================================================================================
===========|
What you need:
-----------------
1) a software to convert audio files.
Because stalker's X-Ray engine deals with OGG audio files only.
There are many good audio converting softwares out there, like Xilisoft Studio for
example.
We will use a free and fast online website in this guide: (Audio.Online-
Convert.Com)

2) SAVandT (NOT NECESSARY)


Small tool to comment the converted OGG files (Commented OGG files are files that
holds specific info like min/max distances, type of sound etc....)
You can download it from here (http://www.metacognix.com/files/stlkrsoc/#SAVandT)

3) any good audio player that allows you to play and listen to OGG files (NOT
NECESSARY)
(VLC) is a free and great audio player, google it

===================================================================================
===========|
///////////////////////////////////////////////////////////////////////////////////
///////////|
(STEP 2): Convert your songs |
///////////////////////////////////////////////////////////////////////////////////
///////////|
===================================================================================
===========|
Converting:
-----------
- Go to the site i mentioned before: (Audio.Online-Convert.Com) and click on
(Convert audio to the OGG format)
- Upload the songs you want to use and convert them to .ogg extension using these
settings on the linked website --> (48 Kbps bitrate, 44100 Hz sampling rate, mono
audio) and ignore the rest of settings
- Gather all converted .ogg files and place them in some place (in a folder on the
desktop for example)

Commenting:
-----------
- Commenting OGG files isn't really necessary in this case, but you're welcome to
understand the process:
- Start (SAVandT) and uncheck "Rename...with .bak" at top
- Click "Select Drive/Directory" at top left and select the folder you put your
converted oGG files in (left side of SAVandT should now show all the converted
files in that folder)
- Click on one of the files and it should show you its values, edit the values to
this:

>> Game Sound Type: world_ambient (the type of sound is important so the
NPCs can react properly after hearing it)
>> Base Sound Volume: 1.0000000 (the base sound volume in-game, default is 1.0)
>> Minimum Distance: 1.0000000 (the minimum distance from the sound source
where the sound start fading)
>> Maximum Distance: 2.0000000 (the maximum distance from the sound source
where the sound can't be heared anymore by the player)
>> Minimum AI Distance: 1.0000000 (the minimum distance from the sound source
where NPCs can hear/react to the sound)

- Click (Apply)
- Now we need to do this to the rest of files, but to save ourselves alot of
editing work, simply click on (Copy) to copy the settings of the modified file
- for each other file in the left side -> click (Paste) then (Apply)
- Make sure that you did this correctly for all the files, then close SAVandT

===================================================================================
===========|
///////////////////////////////////////////////////////////////////////////////////
///////////|
(STEP 3-1): Add your songs to the music player
|
///////////////////////////////////////////////////////////////////////////////////
///////////|
===================================================================================
===========|
If you wish to add your songs to the music player, you need to do this step,
otherwise skip to (sTEP 3-2) for radio section
Renaming and adding your converted files:
-----------------------------------------
- Open the main folder where you installed CoC and go to this folder
(gamedata\sounds\trx_radio\music_player)
- You will see 7 OGG files, those are the default music player songs (named from
track_1 to track_7)
- Open the folder where your converted files are at
- lets assume that you have 12 converted files/songs: rename your files the same
way (from track_1 to track_12)
- Copy your converted renamed files to the music player directory
(gamedata\sounds\trx_radio\music_player) and overwrite files.

Editing codes:
--------------
- Now you need to do some editting: go to (gamedata\configs) folder and open
(trx_directory.ltx) file with the Notepad
- You will see some codes, you need to edit those so the game can read your new
songs without issues.

I will explain the lines we are interested in:


-----------------------------------------------------------------------------------
-------------------------------------
> number_of_tracks_music_player = 7 (the number of songs in music
player folder)

> file_1 = track_1 (the file name of the first song in music
player folder)
> name_1 = "Cheeki breeki but a bit classy" (the name of the first song
IN-GAME, when you choose the first song inside the game from your PDA, it will
display "Cheeki breeki but a bit classy" for you in this example)

> file_2 = track_2 (the file name of the second song in


music player folder)
> name_2 = "Cheeki breeki but a bit classy" (the name of the second song
IN-GAME, when you choose the first song inside the game from your PDA, it will
display "Cheeki breeki but a bit classy" for you in this example)

and so on other lines to cover all the 7 songs.....


-----------------------------------------------------------------------------------
--------------------------------------

So how can you edit those lines? easy:


I will assume that you put your own files as i mentioned before for example, and
they were 12 files:

1) correct the number of tracks:


change:
> number_of_tracks_music_player = 7
To this:
> number_of_tracks_music_player = 12

2) correct the in-game names for your songs:


Change:
> name_1 = "Cheeki breeki but a bit classy"
To the name of your first song, for example if your first song originally called
"Yo! this is a test" then the line should become like this:
> name_1 = "Yo! this is a test"

^ do this for the other lines (name_2, name_3 etc.....) in the same way

3) After exceeding the track 7, you need to add new lines like this:
> file_8 = track_8
> name_8 = "name of track 8 in-game"

> file_9 = track_9


> name_9 = "name of track 9 in-game"

and so on.... until you cover all your tracks, just make sure of 2 things:
(1)- always put the new lines at the end, follow the same pattern
(2)- the number of (file_) and (name_) lines should be EQUAL to the number of your
converted files, so if you have 12 tracks then the whole code should end with
(file_12) and (name_12) lines.

After you finish, click (file -> save) then close the file.

===================================================================================
===========|
///////////////////////////////////////////////////////////////////////////////////
///////////|
(STEP 3-2): Add your songs to a radio channal
|
///////////////////////////////////////////////////////////////////////////////////
///////////|
===================================================================================
===========|
If you wish to add your songs to one of the radio channels , you need to do this
step, otherwise go to (sTEP 3-1) for music player section

Renaming and adding your converted files:


-----------------------------------------
- I will assume that you want to put your own songs in Channel 1 (Zone FM):
- Open the main folder where you installed CoC and go to this folder
(gamedata\sounds\trx_radio\channel_1)
- You will see 19 OGG files, those are the default songs played in Zone.FM (named
from track_1 to track_19)
- Open the folder where your converted files are at
- lets assume that you have 12 converted files/songs: files rename your files the
same way (from track_1 to track_12)
- Copy your converted renamed files to channel 1 (Zone.FM) directory
(gamedata\sounds\trx_radio\channel_1) and overwrite files.

Editting codes:
---------------
- Now you need to do some editting: go to (gamedata\configs) folder and open
(trx_directory.ltx) file with the Notepad
- You will see some codes, you need to edit those so the game can read your new
songs without issues.

I will explain the lines we are interested in:


-----------------------------------------------------------------------------------
-------------------------------------
> number_of_tracks_channel_1 = 19 (the number of tracks played in
channel 1 (Zone FM))
> number_of_tracks_channel_2 = 19 (the number of tracks played in
channel 2 (CHPR))
-----------------------------------------------------------------------------------
-------------------------------------

If you put your own files in channel 1 folder as i mentioned before, and assuming
they were 12 files:
change:
> number_of_tracks_channel_1 = 19
To:
> number_of_tracks_channel_1 = 12
This will make sure that your 12 songs (track_1 to track_12 files) will be played
on channel 1 (Zone.FM)

If you put your own files in channel 2 folder


(gamedata\sounds\trx_radio\channel_2), and assuming they were 23 files:
change:
> number_of_tracks_channel_2 = 19
To:
> number_of_tracks_channel_2 = 23
This will make sure that your 23 songs (track_1 to track_23 files) will be played
on channel 2 (CHPR)

Do the change you want and after you finish, click (file -> save) then close the
file.

===================================================================================
===========
Or you can change both music player and radio channels playlists, its up to you.
Make sure that you understand the steps correctly.
Have fun.

You might also like