Call of Chernobyl is a free-play sandbox mod for S.T.A.L.K.E.R. : Call of Pripyat created by TeamEPIC. It features 32 explorable maps, reworked level design and level fixes, new original level, Trucks Cemetery, Full AI and A-Life overhaul, engine and script enhancements, Repeatable task system which bases itself on A-Life events, Customizable weather environments for every map as well as surges and psi-storms from AF3, Character creation which includes name, portrait and faction selection; Several optional modes such as Ironman mode, story mode and zombie survival mode, New achievements, rankings and reputation system, PDA leaderboard and enhanced PDA statistics, Companion system with keyboard issued commands, many optional side-features and community-made addons . Call of Chernobyl was player's choice Mod of the Year 9th place in 2015 and 1st place in 2016!

Forum Thread
  Posts  
workaround for music volume being reset to 0 (Games : S.T.A.L.K.E.R.: Call of Pripyat : Mods : S.T.A.L.K.E.R.: Call of Chernobyl : Forum : Addons : workaround for music volume being reset to 0) Locked
Thread Options
Nov 5 2019 Anchor

In Call of Chernobyl , at least in version 1.4.22 as i can't say for further versions, there was a problem with the music volume that could sometime be reset to 0 , it could happen during a transition between map levels, when you quickloaded , changing the game option and clicking apply/ok, etc...

Very annoying if you played with music and dynamic battle music. Of course if you played without music you would never notice :)

I found a workaround that has been working so far for me without any problem.

In your ...\gamedata\scripts\ folder , if you have a ui_sr_teleport.script , continue to read, if you don't have such file (only a few addons may have added it) just extract it from the scripts.db located in your ...\database\config\ folder

So edit the ui_sr_teleport.script file , in the very beginning of the script just after

-- basic dynamic msg_box
-- alundaio

local ini = ini_file("sr_teleport_sections.ltx")

add

get_console():execute("snd_volume_music 1.")

so it looks like

-- basic dynamic msg_box
-- alundaio

local ini = ini_file("sr_teleport_sections.ltx")
get_console():execute("snd_volume_music 1.")

Save the changes, now everytime the game will load a level (a quickload load the level too) it will reset the music to volume 1 (the maximum) , preventing you to lose the music for some reason.

Of course, put the modified ui_sr_teleport.script in your ...\gamedata\scripts\ to benefit from the changes

NOTE : if you want to play with a lesser music volume, just change the number in

get_console():execute("snd_volume_music 1.")

by example if you want to play the music at half the volume, just have that line

get_console():execute("snd_volume_music 0.5")

Edited by: Sanctuary

Reply to thread
click to sign in and post

Only registered members can share their thoughts. So come on! Join the community today (totally free - or sign in with your social account on the right) and join in the conversation.