panteror Posted September 28, 2015 Share Posted September 28, 2015 (edited) Hi, I built a custom xvm.fsb & xvm.fev with 3 custom alerts (6th sense, firealert, ammobay) for the new xvm 6.1.4.1 feature than I put in res/audio folder. Everything works with the following default sounds.xc /** * Extra sounds settings. * Настройки дополнительных звуков. */ { "sounds": { "sixthSense": "/xvm/xvm/sixthsense", "fireAlert": "/xvm/xvm/fireAlert", "ammoBay": "/xvm/xvm/ammoBay" } } My question is : if i want to remove sounds alerts, the following sounds.xc doesn't work, in game the 3 sounds alerts works again. /** * Extra sounds settings. * Настройки дополнительных звуков. */ { "sounds": { } } What I need to do in sounds.xc to remove the fire alert for example ? I don't want to built various xvm.fsb for each option ? Thank You Edited September 28, 2015 by panteror @ Quote Link to comment Short link Share on other sites More sharing options...
Yupi Posted September 28, 2015 Share Posted September 28, 2015 (edited) Have you tried "fireAlert": "", i'm not sure it proper way but it should work. @Helkar, @sirmax отсутствие прописанного звука не скажется негативно на производительности из-за обработки ошибки? Кажется тут надо опцию делать чтоб правильно отключать звуки) "fireAlert": "none", напр. Edited September 28, 2015 by TwoPizza @ Quote Link to comment Short link Share on other sites More sharing options...
panteror Posted September 28, 2015 Author Share Posted September 28, 2015 Have you tried "fireAlert": "", i'm not sure it proper way but it should work. @Helkar, @sirmax отсутствие прописанного звука не скажется негативно на производительности из-за обработки ошибки? Кажется тут надо опцию делать чтоб правильно отключать звуки) "fireAlert": "none", напр. My bad, why i didn't try this sooner. It works, thank you With this sounds.xc : no more sounds. /** * Extra sounds settings. * Настройки дополнительных звуков. */ { "sounds": { "sixthSense": "", "fireAlert": "", "ammoBay": "" } } @ Quote Link to comment Short link Share on other sites More sharing options...
Helkar Posted September 28, 2015 Share Posted September 28, 2015 (edited) Helkar, sirmax отсутствие прописанного звука не скажется негативно на производительности из-за обработки ошибки? Кажется тут надо опцию делать чтоб правильно отключать звуки) "fireAlert": "none", напр. i suggest conversation in english at this sub-forum. no, this will not cause an error: if soundId is not None and soundId != '': Sound(soundId).play() if the sound is not set, it will be omitted. thus, setting: "fireAlert": "", is a correct way, i think. Edited September 28, 2015 by Helkar @ Quote Link to comment Short link Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.