facebook

Welcome guest! You are not logged in on forum, so you may not have access to some features!
To solve this problem
log in or register new account.
>> NFS:SA Booster <<

Installing/Creating vehicle sound packs

Napisany przez Quindo, 10-06-2019, 23:51
Installing/Creating vehicle sound packs

Offline Quindo

#1
In last few months few community members showed interest in creating custom vehicle sounds modification, till last update creating such "mods" was a pitiful experience, not allowing them to easily adjust sounds for all vehicles, with no official support and having to rely on workarounds such as copying files on every server connect, etc. In latest update there was added basic official support for creating and using custom vehicles sounds, mod creators can easily replace not only engine sounds for every vehicle, but also stuff like turbo whistle and backfire sounds.

This post will be divided into 2 parts, first one is for mod users, with basic instructions on how to install those mods, and second one being a basic tutorial on how to create the sound packs.

Installing/using custom vehicle sound packs:
1. If you haven't already joined server after latest update, do it. It will create a folder called [ngui-mods] in <Your MTA Path>/mods/deathmatch/resources
2. Download a sound pack that you want to use, here's a link to example one made by Remolit: Sound Pack Link
3. Unpack the sound pack, inside it you should find a folder called carsounds, copy that entire folder to the [ngui-mods] directory from step 1.
4. Reconnect to server, if the pack has no problems, the vehicles affected by downloaded pack should have replaced sounds. If there are some problems with the pack, default sounds will be used.



Creating new sound packs:
As a mod creator you can change those aspects of sounds engine for every car:
  •  engine on sound - played when car is accelerating
  •  engine off sound - played when car is decelerating
  •  engine idle sound - played when car is standing still
  •  turbo flutter short
  •  turbo flutter long
  •  turbo whistle sound
  •  backfire sounds
  •  vehicle engine pitch multiplier
1. Exactly same step as in Installing tutorial above
2. In the [ngui-mods] folder from step 1 create new directory called carsounds, inside it create a file called config.xml and a new folder called files
3. Move the sound files that will be used by the pack to the files directory, supported formats are MP3, WAV, OGG, RIFF, MOD, XM, IT, S3M and PLS
4. Now comes the hard part, creating a configuration file for your mod, open the config.xml file created in step 2 and copy this inside:

Code:
<!-- Allowed parameters are:
    pitchMultiplier (0-5)
    idle - fileName
    on - fileName
    off - fileName
    fluttershort - fileName
    flutterlong - fileName
    turbo - fileName
    backfire - fileName  -->

<carsounds>

</carsounds>


5. Each vehicle that you want to be affected needs an entry inside the <carsounds> </carsounds> part of the file, example entry looks like this:


Code:
<!-- Primo-->
<car id="547" pitchMultiplier="1.0" on="engOn.mp3" off="engOff.mp3" idle="engIdle.mp3" flutterlong="fluttLong.mp3" fluttershort="fluttShort.mp3" turbo="turboWhistle.mp3" backfire="backfire1.mp3;backfire2.mp3" />


id parameter defines which car is affected by this entry, pitchMultiplier defines pitch that the sound files will be played with, and all the other parameters are names of sound files that will be used by that vehicle.
You can notice that backfire contains multiple files delimited by semicolon, that's because of the fact that backfire randomizes which sound will be played, you can specify multiple sound files here, and they will be choosen at random.
If some parameters are missing, the default sound files for those parameters will be used.

So resulting config.xml file looks like this:

Code:
<!-- Allowed parameters are:
    pitchMultiplier (0-5)
    idle - fileName
    on - fileName
    off - fileName
    fluttershort - fileName
    flutterlong - fileName
    turbo - fileName
    backfire - fileName  -->

<carsounds>
    <!-- Primo-->
    <car id="547" pitchMultiplier="1.0" on="engOn.mp3" off="engOff.mp3" idle="engIdle.mp3" flutterlong="fluttLong.mp3" fluttershort="fluttShort.mp3" turbo="turboWhistle.mp3" backfire="backfire1.mp3;backfire2.mp3" />
</carsounds>


List of all ids of vehicles on server:

Code:
--E CLASS
401 - Bravura
421 - Washington
546 - Intruder
547 - Primo
410 - Manana
419 - Futo
--D CLASS
585 - Emperor
540 - Vincent
526 - Fortune
436 - Previon
527 - Cadrona
589 - Club
483 - Kuruma
--C CLASS
496 - Blista Compact
405 - Sentinel
587 - Euros
565 - Flash
558 - Uranus
555 - Monroe
458 - Deluxo
--B CLASS
560 - Sultan
506 - Super GT
440 - ZR-130
559 - Jester
562 - Elegy
402 - Buffalo
434 - Mamba
529 - Beamer
--A CLASS
442 - Turismo
415 - Cheetah
541 - Bullet
429 - Banshee
480 - Comet
411 - Infernus
413 - Counthash
568 - Locust 69
--VINTAGE CLASS
575 - Broadway
545 - Hustler
474 - Hermes
499 - A-Type
--SUV CLASS
470 - Patriot
478 - Walton
579 - Huntley
525 - BeeJay XL
416 - Cartel Cruiser
535 - Kalahari
583 - Buggy
--MUSCLE CLASS
542 - Clover
603 - Phoenix
600 - Picador
475 - Sabre
439 - Stallion
549 - Tampa
438 - Dukes

6. To check if your modification works you can use /reloadcarsounds command, afterwards just go to garage and back. If you did everything right, the sounds should be working.
7. This tutorial is super basic, best way of checking how it works is to download example sound pack, and look inside.
[Image: Sj14yZE.gif]
Reply

Offline twiseles

#2
yeees
[Image: 1586317728_god-why1.PNG]
Reply

Offline syaan

#3
Thanks Quindo, good documentation, understandable Smile
[Image: OwTiKCs.png]
Reply

Offline alfa

#4
yoink
                                                
Reply

Offline Max59

#5
Woohoo finally!
[Image: Xy4G0aO.png]
Reply

Offline scaftz

#6
Vroom
Gotta love to change turbo whistle and backfire sounds. They are annoyingly loud.
Reply

Offline yauza

#7
i dont have [ngui-mods] folder, even if i connect to the server
Reply

Offline Remolit

#8
Then just create one...
Reply


Forum Jump:

Users browsing this thread:
1 Guest(s)