Log in to reply
 

[HELP] [DNSPY] Can you guys help me with these?



  • Any of you got dnSpy? I need a hand here with some stuff:
    Let's start off with this... download this mod and look at it's .dll file in dnSpy (the transmission whine file, not the other one). So what this mod does is that for one of the addon BMW M3 GTRs, it'll play a gear whine sound, just like in NFS Most Wanted and NFS Carbon. I have another BMW M3 GTR addon, though, and I'm trying to change it so that this mod actually does it to my other mod rather than the one it currently does it with. So here's the original car it's suppose to work with, and here's the one I'm wanting it to use instead.
    Now, I noticed that I found a line of code that looks for "M3E46" in the script. I tried to change this instead to "m3gtr" (the spawn name of the other car), and that didn't work. Is there something I'm missing here?

    Here's my second issue, and this one should hopefully be much simpler. Look at the .dll file of this mod. This mod adds in working windshield wipers for cars. What I'm trying to do to this one is turn off the sounds it makes when the wipers move, because it's obnoxious. Something I'd like to point out is that most of the code seems to look at the ticks of things of opening and closing bay doors or something like that, and I'm trying to figure out what this is supposed to really be, and if this is where the sound comes from. I've basically assumed that in GTA V when a vehicle (maybe like an aircraft) has bay doors, it'll automatically play the sounds for that, and basically cars with wipers have these bay doors, and the script just constantly opens and closes them, which also plays the sound.

    Is this a little too complicated?

    *Just a heads up, I'm not planning in any way to post these on the mod site, this is just for personal use.



  • The Windshield Wipers script doesn't play any sound, so it must be a sound that is played by opening the bomb bay doors. The vehicle mods which use this script probably add a custom sound to GTA V they use for the sound.

    You can change the model the Whine script uses by:

    • Extract M3GTRWhine.dll, irrKlang.NET4.dll, and ScriptHookVDotNet2.dll to the same folder.
    • Open M3GTRWhine.dll in dnSpy.
    • Navigate to M3GTRWhine > M3GTRWhine.dll > M3GTRWhine > Main.
    • Right-click private void OnTick(...) then click Edit Method.
    • Change "M3E46" to "M3GTR".
    • Click Compile.
    • Click File > Save Module... > OK.


  • The problem though is that when I do M3GTR, it doesn't work. I haven't tested it on the other mod yet though, to see if it works with that. Have you tested this yourself? Here's my screenshot.
    http://prntscr.com/odthm5

    Also, do you know if there's a way to get rid of the wiper sound if those vehicles have individual sounds?



  • I have not tested it myself, and I don't know what the problem could be. Did you make sure to replace the old DLL in the scripts folder with the new DLL?

    I just noticed that the change-log for Windscreen Wipers says this:

    v1.6
    - Removed Sound due to Smuggler's Run DLC added sound to Bomb Bay Doors 
    

    So looks like you used to be able to change the sound, because the mod played it, but now it doesn't. To change the sound I think you would have to change GTA V's bomb bay door opening sound via OpenIV. I would not know where to look for that.



  • @Jitnaught said in [HELP] [DNSPY] Can you guys help me with these?:

    I just noticed that the change-log for Windscreen Wipers says this:

    v1.6
    - Removed Sound due to Smuggler's Run DLC added sound to Bomb Bay Doors 
    

    So looks like you used to be able to change the sound, because the mod played it, but now it doesn't. To change the sound I think you would have to change GTA V's bomb bay door opening sound via OpenIV. I would not know where to look for that.

    I don't know, either. Also yeah I replaced the .DLL file. I'm not really sure, it may be possible it's not its spawn name it's looking for, perhaps it's something else... but what?



  • @mrwallace888 If that is the name you use to spawn the vehicle normally (like in a trainer), then yes that is correct name.



  • Yeah well it doesn't work. I'm not even sure if it works with the original vehicle.


Log in to reply
 

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