Log in to reply
 

Add On Vehicle No Audio?



  • I'm trying to add a vehicle. Added data for the new vehicle to vehicles.meta and handling.meta, shows up in game but not getting any engine or radio? Which file have I forgotten to edit?


  • MODERATOR

    @glennoconnell Audio data is in vehicles.meta as far as I am aware. The most common causes for no engine audio are the name being wrong in the setting, or the game not being fully up to date.



  • @LeeC2202 That's what I thought. Game is up to date so must be something wrong with vehicles.meta. Other vehicles work fine.

    The vehicle I'm trying to make add usually replaces the Granger. So I've copy and pasted the Granger entry from vehicles.meta and changed modelname/txdname/gamename/vehiclemakename to the new vehicle name.

    Notice anything wrong there?


  • MODERATOR

    @glennoconnell Those are pretty much the only ones I would expect to change if you are using the Granger's handling and sound.


  • MODERATOR

    @glennoconnell Oh, here's interesting... in the granger vehicles.meta section <audioNameHash /> it has no value.

    That's odd.



  • @LeeC2202 That's very common. I haven't looked into it yet (how the .exe loads the vehicles.meta) but I think if the audioNameHash item has no value, the vehicle will use the audio file that matches the model hash or something like that.
    Also, when you set the audio in-game to an invalid name (or empty name), it will also use the default sound even if you changed the audio before, so I think my theory seems promising :smile:


  • MODERATOR

    @Unknown-Modder But how does that work with an addon... which this thread is about, when that model hash is non-existent as far as the game is concerned?

    I must confess, I don't think I have seen an addon with an empty <audioNameHash /> ... I know all of the addons I have got have an entry in there.



  • @LeeC2202 Maybe it's a default sound of the vehicle class or something like that, I don't know. But that's what I'll try to find out when I have enough time on my hands :grinning:


  • MODERATOR

    @Unknown-Modder Or maybe the simple answer, is to just do what everyone else does with an addon and make sure there's a valid name in there. :\

    I presume at some point the OP will add more info... hopefully.



  • I'll walk you through exactly what I've done so far...

    • Vehicle I'm trying to add-on is the Yosemite by Dani02 (https://www.gta5-mods.com/vehicles/brute-yosemite) Instructions just say to replace the Granger ytf+ytd inside update\x64\dlcpacks\patchday2ng\dlc.rpf\x64\levels\gta5\vehicles.rpf. Extracted the model files and renamed them from granger.ytd etc. to yosemite.ytd etc.

    • So instead of adding the Yosemite files to that location, I've added them to a new DLC folder I have installed, from the Lower-End Car Variants [Standalone DLC] by TheAdmiester (https://www.gta5-mods.com/vehicles/lower-end-car-variants-standalone-dlc). DLC folder is called basecars. The DLC just contains 2 cars so thought I would add it to this DLC just to keep things clean and organized. This DLC folder is definitely installed correctly as the other vehicles included work perfectly. (I also tried adding it to another add on DLC folder I had with the exact same problem, no audio).

    • So I've added Yosemite ytd+ytfs to this vehicles folder inside the basecars dlc. I've then navigated to the included handling.meta for the DLC and added an entry for Yosemite alongside the 2 vehicles already included in the DLC. Literal copy and paste of the Granger handling as that is what it would have originally replaced, just changing the name Granger to Yosemite. I could have just used the Granger's handling but I do want to change the suspension slightly for the Yosemite.

    • Then navigated to Vehicles.meta for the DLC. Again just 2 vehicles inside the vehicles.meta file for this DLC. Copy and paste Granger data and change Granger references to Yosemite. Also the small bit of code that goes right at the bottom of vehicles.meta (parent? something like that). Only text I changed to Yosemite in vehicles.meta is modelname, txdname, handlingid, gamename and vehiclemakename. Also the small bit of code at the very bottom.

    And that's it. Basically just added the model files, added handling and added it to vehicles.meta. The vehicle is spawning and the handling is right so just weird theres no engine or radio. Wouldn't be something like adding an entry to carvariations or something?

    I'm not too bothered about it really, if it's a simple fix great! but if it's a lot of digging around and messing with loads of files then I can live without it!


  • MODERATOR

    @glennoconnell Did you not see what I posted about <audioNameHash /> up there? ^^^

    If you make an addon, you need to fill that value in with a valid vehicle name to get the sound from.



  • @LeeC2202 Oh okay. Got a bit confused by the discussion between you and Unknown-Modder. I'll try that and report back.


  • MODERATOR

    @LeeC2202 Yeah, all the vanilla vehicles' <audioNameHash>es are empty.
    @glennoconnell it should look like
    <audioNameHash>GRANGER</audioNameHash>



  • Yep it was the audionamehash! Thanks for the help all.


Log in to reply
 

Looks like your connection to GTA5-Mods.com Forums was lost, please wait while we try to reconnect.