Jump to content
Korean Random

How config sounds.xc with new alerts fire, ammobay... ?


Recommended Posts

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 by panteror
Link to comment
Short link
Share on other sites

Have you tried

"fireAlert": "",

i'm not sure it proper way but it should work.


@Helkar@sirmax отсутствие прописанного звука не скажется негативно на производительности из-за обработки ошибки? Кажется тут надо опцию делать чтоб правильно отключать звуки) "fireAlert": "none", напр.

Edited by TwoPizza
Link to comment
Short link
Share on other sites

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": ""
  }
}
Link to comment
Short link
Share on other sites

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 by Helkar
Link to comment
Short link
Share on other sites

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...