How to add your own tracks

The process is quite simple but requires some patience. don't get panic, nothing is really hard.
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, create playlists
•	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: (https://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, you can use it (https://www.videolan.org/vlc/index.html)

========================================================

(STEP 2): Convert and comment 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:

1.	Game Sound Type:  world_ambient (the type of sound is important so the NPCs can react properly after hearing it)
2.	Base Sound Volume: 1.0000000 (the base sound volume in-game, default is 1.0)
3.	Minimum Distance: 1.0000000 (the minimum distance from the sound source where the sound start fading)
4.	Maximum Distance: 2.0000000 (the maximum distance from the sound source where the sound can't be heared anymore by the player)
5.	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

Adding your files:
•	Open the main folder of your game and go to this folder (gamedata\sounds\trx\radio\_playlist_x).  _playlist_x is the folder of the playlist (x), by default there are 2 available playlists (_playlist_1) and (_playlist_2)
•	You will see many OGG files inside, those are the default music player songs
•	You can delete them (if you want) and add your own tracks inside them
•	or you can create your own playlists

•	To create new playlist: Simply create a new folder and put it alongside with other playlists folders in (gamedata\sounds\trx\radio\)
•	Name it to (_playlist_3), any new playlists MUST have increased number by 1, so adding 2 new playlists must have folders named as (_playlist_3) and (_playlist_4) 
•	Put your converted ogg files in those folders of your new playlists
•	After you finish, open the file (gamedata\configs\trx\trx_radio.ltx) by using Notepad
•	Inside it, you'll see a parameter (number_of_playlists = 2), this one determine the number of playlists that will be available in-game
•	So if you created new playlist (number 3), you should edit that parameter to be (number_of_playlists = 3)
•	After changing it correctly, save the file
•	ALWAYS make sure that number_of_playlists match the actual number of playlists folders inside  (gamedata\sounds\trx\radio) folder

Renaming:
The name of your files in music player's folder will show up in the PDA. but to get the name shown up correctly, make sure to follow these rules:
•	rename your songs files to whatever want want, but instead of spaces ( ), use underscores (_)
•	Don't use special characters (you can use - )

So for example, if you want your song to appear as "Firelake - Dirge For The Planet" in-game, the file itself in that folder should be named to "Firelake_-_Dirge_For_The_Planet"

You have the ability to change the name of your new playlist right from the radio options menu in-game.

Note:
Only put OGG files in (_music_player) cause any other type may cause issues. only OGG sound files should go there.

========================================================

(STEP 3-2): Add your songs to the a radio channel

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

Adding your files:
•	Open the main folder of your game and go to this folder (gamedata\sounds\trx\radio).
•	You will see many folders:
•	(gamedata\sounds\trx\radio\_channel_1) is the folder that contains the tracks  of channel 1 
•	(gamedata\sounds\trx\radio\_channel_2) is the folder that contains the tracks  of channel 2
•	Get inside the folder of the channel you want to put your own songs in
•	Delete the files there (if you want)
•	Copy your converted files to this folder.
•	Done!

Note:
Only put OGG files in (_music_player) cause any other type may cause issues. only OGG sound files should go there.

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.