Jump to content
Acc3ssViolation

Vehicle Effects - Custom Sound Effects support added!

38 posts in this topic Last Reply

Highlighted Posts

Posted:
Last Online:  
 

I understand, but I hope one day somebody will try to take up this huge task...

Share this post


Link to post
Share on other sites
  • Original Poster
  • Posted:
    Last Online:  
     

    Changes!

    Made several changes to the mod recently, figured it would be useful to list them here:

    Added fallback option for effects

    If an effect can't be found the mod now looks for a fallback effect before spitting out an error. Fallbacks can be specified just like replacements and base effects. Using "None" as a fallback doesn't do anything but no error is shown. "Remove" removes the existing effect if it's a fallback for a replacement. Fallbacks are always logged in output_log for debugging purposes.

    Active mod directories are searched for definitions

    In case you want to bundle some definitions or provide a definition for an asset that isn't your own you can now include them in a mod. Just put it in the main directory of a mod and you're good to go. Errors relating to missing vehicles are not shown, although this can be changed in the options menu.

    Plugins!

    It's now possible to create your own effects in a mod for use with Vehicle Effects. Check the GitHub page for an example.

     

    • Like 2

    Share this post


    Link to post
    Share on other sites
  • Original Poster
  • Posted:
    Last Online:  
     

    Editor!

    Added an editor to make things easier.
    It currently supports all features except for custom multi effects, so those will have to be done by hand in the xml for now.

    XEkrTxN.jpg

    The xml will be saved to the "Vehicle Effects" folder inside the game's addons folder, the same place where your local assets and mods are stored. It defaults to saving the xml in a subfolder with the same name as the package name/workshop id.

    IMPORTANT: I recommend that you subscribe to your workshop item, load it in the asset editor and then create the effects config. This way the asset names in the config are guaranteed to be correct.
    You can still edit the xml before including it in the workshop upload to fix the names but this is easier.
     

    • Like 8

    Share this post


    Link to post
    Share on other sites
  • Original Poster
  • Posted:
    Last Online:  
     

    Custom Sound Effects!

    It's been a while since the last proper update to Vehicle Effects. Recently a couple of people asked how to add custom sound effects to their vehicle assets. This is possible by making a mod like Extra Vehicle Effects that creates the effects, but let's be honest, that's a bit too much work for some simple sounds. So Vehicle Effects 1.7 now supports the creation of sound effects via config files. All you need to do is get your sound file, make an xml file, type in some stuff and put it all in your mod's or asset's folder. Here's the file the mod itself now uses to create most of its sound effects:

    Spoiler
    
    <?xml version="1.0" encoding="utf-8" ?>
    <SoundEffectsDefinition>
      <Effects>
        <SoundEffect 
          name="Steam Train Movement"
          base="Train Movement"
          file="sounds/steam-engine-a3-moving.ogg"
          type="EngineSoundEffect"
          volume="0.7"
          />
        <SoundEffect
          name="Diesel Train Movement"
          base="Train Movement"
          file="sounds/diesel-engine-sd45-moving.ogg"
          type="EngineSoundEffect"
          />
        <SoundEffect
          name="Rolling Train Movement"
          base="Train Movement"
          file="sounds/rolling-stock-moving.ogg"
          type="EngineSoundEffect"
          volume="0.8"
          />
        <SoundEffect
          name="Train Bell"
          base="Train Movement"
          file="sounds/train-bell.ogg"
          volume="0.8"
          pitch="1.0"
          loop="true"
          randomtime="false"
          />
        <SoundEffect
         name="Train Horn"
         base="Train Movement"
         file="sounds/train-horn-loop.ogg"
         fadelength="0.18"
         volume="0.7"
         pitch="1.0"
         loop="true"
         randomtime="false"
          />
        <SoundEffect
         name="Train Whistle"
         base="Train Movement"
         file="sounds/train-whistle.ogg"
         fadelength="0.4"
         volume="0.7"
         pitch="1.4"
         loop="true"
         randomtime="false"
          />
      </Effects>
    </SoundEffectsDefinition>

     

    As you can see it's pretty simple to add new sounds. Check this Steam Workshop discussion page for some more detailed info on how to use it.

    • Like 5

    Share this post


    Link to post
    Share on other sites
    Posted:
    Last Online:  
     

    That's good news since I wanted to start updating my assets again (and do some research on propeller driven planes probably - I got some plan...) :)

    • Like 1

    Share this post


    Link to post
    Share on other sites

    Sign In or register to comment...

    To comment in reply, you must be a community member

    Sign In  

    Already have an account? Sign in here.

    Sign In Now

    Create an Account  

    Sign up to join our friendly community. It's easy!  

    Register a New Account


    ×

    Thank You for the Continued Support!

    Simtropolis depends on donations to fund site maintenance costs.
    Without your support, we just would not be in our 24th year online!  You really help make this a great community. *:thumb:

    But we still need your support to stay online. If you're able to, please consider a donation to help us stay up and running. This helps sustain a platform where we can share our community creations for years to come.

    Make a Donation, Get a Gift!

    Expand your city with the best from the Simtropolis Exchange.
    Make a Donation and get one or all three discs today!

    STEX Collections

    By way of a "Thank You" gift, we'd like to send you our STEX Collector's DVD. It's some of the best buildings, lots, maps and mods collected for you over the years. Check out the STEX Collections for more info.

    Each donation helps keep Simtropolis online, open and free!

    Thank you for reading and enjoy the site!

    More About STEX Collections