Modding Help i made a door but i wanna disable the sound from it how?

Discussion in 'Starbound Modding' started by amirmiked12, Apr 3, 2017.

  1. amirmiked12

    amirmiked12 Parsec Taste Tester

    i made a door but i wanna remove its sound can someone help me?
    heres is the sound part in .object
    "sounds" : {
    "open" : {
    "pool" : [ "/sfx/objects/stonedoor_open_fast.ogg" ],
    "rangeMultiplier" : 0.5
    },
    "close" : {
    "pool" : [ "/sfx/objects/stonedoor_close_fast.ogg" ],
    "rangeMultiplier" : 0.5
    }
    what should i do or what should i delete?
     
  2. Nexus Of Chaos

    Nexus Of Chaos Parsec Taste Tester

    you can make a short sound clip with no sound and use that
     
    amirmiked12 likes this.
  3. amirmiked12

    amirmiked12 Parsec Taste Tester

    tnx
     
  4. bk3k

    bk3k Oxygen Tank

    Too much trouble when easier solutions are available.
    For full context, I believe this is the full thing.
    Code:
      "animationCustom" : {
        "sounds" : {
          "open" : {
            "pool" : [ "/sfx/objects/stonedoor_open_fast.ogg" ],
            "rangeMultiplier" : 0.5
          },
          "close" : {
            "pool" : [ "/sfx/objects/stonedoor_close_fast.ogg" ],
            "rangeMultiplier" : 0.5
          }
        }
      },
    
    Well there are a few options.
    1.
    Code:
      "animationCustom" : {
        "sounds" : {
          "open" :[ ],
          "close" : [ ]
        }
      },
    
    2.
    Code:
      "animationCustom" : {  },
    
    3.
    Code:
    
    
    Yep you can just delete "animationCustom" when you don't need to do anything with it.

    In which case it will use the values in your animation. I'll assume the animation you are using is /objects/wired/door/door.animation
    The relevant part being this.
    Code:
      "sounds" : {
        "open" : [],
        "close" : [],
        "locked" : [ "/sfx/interface/clickon_error.ogg" ]
      }
    
    You can of course use your own custom animation files, but when sound removal is all you need, this animation file doesn't feature any sounds by default. That's where "animationCustom" comes in - to basically over-ride whats in different parts of your animation file. They even went all fancy with sound pools instead of just a sound that's the same every time. In your case, you don't need/want it, so delete it.

    If you want to know a lot more things you can do with doors, I wrote this.
    http://steamcommunity.com/workshop/filedetails/discussion/729599895/343785574519843631/
    Probably a bit obsolete. Well for that matter the Automatic doors code as posted is also a bit obsolete.
     
    IHart and amirmiked12 like this.
  5. amirmiked12

    amirmiked12 Parsec Taste Tester

    wow tnx for all of this info.
    i appreciate it.
     

Share This Page