Guest User

Untitled

a guest
May 4th, 2017
274
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.16 KB | None | 0 0
  1. Guide written for the retarded. Other people may just treat it as some sort of vague set of hints
  2.  
  3. Whatcho gonna need
  4. - Audacity (or any tool that lets you convert music files to .ogg +turn them into Mono, web based converters work just fine but I'm a fanatic traditionalist when it comes to computing) http://www.audacityteam.org/download/
  5. There's even Ganoo/Leenocks version for us, linuxoids
  6. - SAVandT www.metacognix.com/files/stlkrsoc/SAVandT_1.1.7z
  7. - any sort of text editor
  8.  
  9. If you've got .ogg files skip to step 2. If they're commented, skip step 3.
  10.  
  11. STEP 1 - grab a music file n oggify it
  12. I'm going to assume you're converting from MP3 file. Launch Audacity, open your MP3 file.
  13.  
  14. If your file is Stereo (it probably is. You know it when you see two channels in Audacity) you need to turn it into Mono. Press 'Tracks' on the top menu, then press 'Stereo track to Mono'.
  15.  
  16. Press CTRL+SHIFT+E, save as Ogg Vorbis file. Turn quality down to 0 because it doesn't make much difference (and file size's smaller), especially in Stalker games because they're being played on old, probably broken soviet radios and you hear them briefly. Name it, say "sugartits.ogg".
  17.  
  18. STEP 2 - insertion
  19. Put "sugartits.ogg" file into gamedata/sounds/radio2 folder. [it can be "shrek" folder, doesn't matter really, just remember it's name]
  20.  
  21. STEP 3 - commenting
  22. Launch SAVandT (it has its own help file if I'm not being clear enough).
  23. Press 'Select Drive/Directory' button on top left corner. Navigate to gamedata/sounds/radio2.
  24.  
  25. Your .ogg files will now be displayed on the left side of the window. Select desired file and:
  26. - set Game Sound Type to world_ambient (so AI doesn't react to it and game understands it's music)
  27. - set Base Sound Volume to 1,0000000. Unless you want it to be quieter or louder. Max value is 2,0 apparently, but personally I found no difference between 1 and 2.
  28. - Minimum Distance is the distance at which the sound is being heard at 100% volume and isn't being faded out. You may want to set it to ~10, but just experiment with it
  29. - Maximum Distance is the distance at which you can NOT hear the music at all. Say, you set it to 50, so after 50 meters from the source you can't hear it at all. But when you're 49 meters from source you can hear it, although rather vaguely.
  30. - Maximum AI Distance is irrelevant here. It defines from what distance AI reacts to the given sound, so in other cases you'd want it to be same-y to Max Distance value. Doesn't matter here, because AI ignores world_ambient altogether.
  31.  
  32. When you're done with a file press Apply button on the bottom of the window. If you modify multiple files you can press the Copy button and Paste it into other files.
  33. Don't forget to Apply them all.
  34.  
  35. STEP 4 - config file
  36. Open gamedata/configs/plugins/xr_sound.ltx file with a text editor, preferably Notepad. Word etc. are a no-no, you want a simple editor.
  37. So, you see multiple labels inside. Each of them is a different radio in different locations. You want to change the Bar music to Sugartits.ogg, so you look for [bar_visitors_radio] label and underneath you type "radio2\sugartits". Remember to remove the .ogg extenstion, because the engine resolves extensions on its own.
  38.  
  39. Regarding other labels:
  40. - [agr_smart_terrain_1_6_radio], [agr_smart_terrain_1_6_near_2_radio], [agr_smart_terrain_1_6_near_1_radio]
  41. Army base in Agroprom. Replace it all with one music file, unless you want the Army to listen to some avant-garde shit
  42. - [agr_smart_terrain_4_4_radio]
  43. Freedom base. It doesn't follow the naming of other lables for some reason, but it's a Freedom base radio.
  44. - [bar_visitors_radio]
  45. Bar radio, obviously
  46. - [val_smart_terrain_7_3_radio]
  47. Bandit base in the Dark Valley. That small building where Bandit trader resides
  48. - [gar_smart_terrain_3_5_radio]
  49. No clue. Name suggests it's in the Garbage but I haven't tested it
  50. - [mar_smart_terrain_base_radio]
  51. Clear Sky base
  52. - [esc_sidorovich_radio]
  53. Sid's bunker in Cordon
  54. - [red_forester_radio]
  55. Forester's tower in the Red Forest, of course
  56.  
  57. That's it, you're all set. Don't bother much with testing, I don't test my shit myself. Just play and if you hear something quirky just change .ogg comments or xr_sound.ltx files vaguely
Advertisement
Add Comment
Please, Sign In to add comment