New Sound JSON Files

Discussion in 'Car Modding' started by redapg, Dec 29, 2022.

  1. EmperorOfFinland

    EmperorOfFinland Registered

    Joined:
    Jan 26, 2021
    Messages:
    502
    Likes Received:
    1,098
    I tested the tool and it worked as expected but it did not like the file structure i had so it would either copy rest of the vehicle correct but since i keep car sounds on different folder it means that it wil miss the Ferrari Folder for some reason but i was able to port a sound nicely in 10 minutes together nontheless. it does make stuff much faster now <3
     
    redapg likes this.
  2. redapg

    redapg Registered

    Joined:
    Jan 16, 2012
    Messages:
    4,008
    Likes Received:
    2,875
    What currently is on my short "todo" List:
    - add missing (if they are needed) Lines for Outside Engine, Turbo and more Sounds.
    - trying to find a Scheme, to automatically set some Volume Values (the Values from the SFX seem to be useless)
     
    Corti and davehenrie like this.
  3. Flipo

    Flipo Registered

    Joined:
    Dec 29, 2013
    Messages:
    92
    Likes Received:
    29
    Hello redapg, the tool works very well, but I have a question, now how do you update the _Upgrade file to put different types of sounds? you have to modify the line SFX= for another, maybe for JSON=?
    Thanks for this tool.

    UpgradeType="Engine Sounds"
    {
    UpgradeLevel="Engine Sounds Audi"
    {
    Description="Engine Sounds Audi"
    }
    UpgradeLevel="Engine Sounds Extras A"
    {
    Description="Engine Sounds option A"
    SFX=VS_INSIDE_POWER_ENGINE_1=3.50,DTM_Sounds_2023\URD_T5_idle_in.wav
    SFX=VS_INSIDE_POWER_ENGINE_2=3.80,DTM_Sounds_2023\URD_T5_2500_on_in.wav
    etc...
     
    redapg likes this.
  4. Lazza

    Lazza Registered

    Joined:
    Oct 5, 2010
    Messages:
    12,387
    Likes Received:
    6,602
    I don't think it's possible. You'd need to link to an entire file, and I don't think such an upgrade entry exists.
     
    redapg and Flipo like this.
  5. redapg

    redapg Registered

    Joined:
    Jan 16, 2012
    Messages:
    4,008
    Likes Received:
    2,875
    @Flipo Currently, i also don't think that it is possible, like @Lazza has said already.
    The JSON File is linked in the veh Files and there is no Upgrade Syntax like
    veh=Sounds=my_Sound.JSON
    But maybe there is a Way that it can be made possible by the Devs....
     
    Flipo likes this.
  6. doddynco

    doddynco Registered

    Joined:
    Dec 13, 2017
    Messages:
    574
    Likes Received:
    1,217
    It's possible to link a separate file for the engine via the HDV, so maybe it will work with the sound.json too, via the VEH... Long shot:

    UpgradeType="Engine Sounds"
    {
    UpgradeLevel="Engine Sounds Audi"
    {
    Description="Engine Sounds Audi"
    VEH=
    VEH=Sounds
    VEH=Sounds=Engine_Sounds_Audi_Standard.JSON
    }
    UpgradeLevel="Engine Sounds Extras A"
    {
    Description="Engine Sounds option A"
    VEH=
    VEH=Sounds
    VEH=Sounds=Engine_Sounds_Audi_Extra.JSON
    }
     
    Flipo likes this.
  7. Lazza

    Lazza Registered

    Joined:
    Oct 5, 2010
    Messages:
    12,387
    Likes Received:
    6,602
    @doddynco "Veh=" isn't a thing. The only place that appears in rF2 is in the temp setup file. The game has to provide an 'in' to change anything with upgrades, and it only provides that for a couple of the files. The engine file is linked from the HDV, hence you can change it; the sound file is 'above' the HDV, so you can't touch it.
     
    doddynco likes this.
  8. doddynco

    doddynco Registered

    Joined:
    Dec 13, 2017
    Messages:
    574
    Likes Received:
    1,217
    We could have a sound variable/key, which is set to an integer. The sound.json would read it like any other physics element, and use it as a variable. The difference is this 'physics' key is selectable in the upgrades menu e.g either (set) 0,1,2,3,4,5

    Actually this is possible now, except you'd have to use a switch like 'wiperstate' to switch between soundsets. Obviously in this specific case, you can't then also use that toggle for wipers, but it would be fine for an open wheel car. It's the same concept but we only want it to be selectable in upgrades.
     
    Last edited: Jan 1, 2023
  9. EmperorOfFinland

    EmperorOfFinland Registered

    Joined:
    Jan 26, 2021
    Messages:
    502
    Likes Received:
    1,098
    @redapg It seems the SFX converter does not work now as it hangs and does not process the needed file. Otherwise after porting 4-6 enginesounds it has been working pretty well for outputting the conversion values
     
  10. redapg

    redapg Registered

    Joined:
    Jan 16, 2012
    Messages:
    4,008
    Likes Received:
    2,875
    I've just tested it and it works quick as it did before.
    It is a free Webspace, so Problems can sometimes be caused by Maintenance Work at the Servers or that maybe at the exact same Time when you use a Tool, somebody else tries to create veh Icons from 6 huge png Files. :)
    Just wait a few Minutes and try again, in most Cases it works then.
     
  11. haunetal1990

    haunetal1990 Registered

    Joined:
    Jan 4, 2012
    Messages:
    163
    Likes Received:
    337
    hold my beer. That's very funny.
     
  12. redapg

    redapg Registered

    Joined:
    Jan 16, 2012
    Messages:
    4,008
    Likes Received:
    2,875
    Hello Markus, happy new Year.
    Enlighten me... what is so funny? :)
     
  13. haunetal1990

    haunetal1990 Registered

    Joined:
    Jan 4, 2012
    Messages:
    163
    Likes Received:
    337
    Happy new year
    It‘s funny that you can bring now sounds to the wiper. So more details for rFactor2. That‘s great.
     
    redapg likes this.
  14. redapg

    redapg Registered

    Joined:
    Jan 16, 2012
    Messages:
    4,008
    Likes Received:
    2,875
    But the Structure of the Sound JSON File is really hard to read with all these Braces ...
     
    haunetal1990 likes this.
  15. davehenrie

    davehenrie Registered

    Joined:
    Jul 6, 2016
    Messages:
    7,484
    Likes Received:
    4,397
    There was 'SUPPOSED' to be a big announcement about this. Fireworks, parades...you know..... BIG BIG NEWS! Window Wiper Blade sounds!!!! Must have got lost during the Holidays. :D
     
    Last edited: Jan 3, 2023
    haunetal1990 and redapg like this.
  16. EmperorOfFinland

    EmperorOfFinland Registered

    Joined:
    Jan 26, 2021
    Messages:
    502
    Likes Received:
    1,098
    The sound SFX converter is still broken as when i upload the file the other ui dissapears and there is only home button and no other text after it. and the webpage does nothing else after that. other things work normally. just not the SFX converter
     
  17. redapg

    redapg Registered

    Joined:
    Jan 16, 2012
    Messages:
    4,008
    Likes Received:
    2,875
    Still works here. :)
    Before you upload a File, clear the Browser Cache.
    If that doesn't help, please upload your SFX File, with that you have the Problem, here (rename sfx to txt).
     
  18. EmperorOfFinland

    EmperorOfFinland Registered

    Joined:
    Jan 26, 2021
    Messages:
    502
    Likes Received:
    1,098
    Here are them
     

    Attached Files:

  19. EmperorOfFinland

    EmperorOfFinland Registered

    Joined:
    Jan 26, 2021
    Messages:
    502
    Likes Received:
    1,098
    okay i figured it out. i know what causes the error.


    // power outside
    EngRPMPowerOutside=(0, 1100.00, 3950.00, 2100.00) // zero-based engine number, minimum RPM, maximum RPM, natural RPM at which sample was recorded
    EngRPMPowerOutside=(1, 3400.00, 5600.00, 3700.00)
    EngRPMPowerOutside=(2, 5300.00, 6950.00, 4800.00)
    EngRPMPowerOutside=(3, 6600.00, 11500.00, 7300.00)
    EngRPMPowerOutside=(4, 10950.00, 11900.00, 12132.00 )

    Here is a working code. the code on renault was like this.

    EngRPMPowerOutside=(0, 1.00 , 4170.00 , 2395.76 )
    EngRPMPowerOutside=(1, 2102 , 6300 , 3240.00 )
    EngRPMPowerOutside=(2, 4238 , 9576 , 5265.00 )
    EngRPMPowerOutside=(3, 7590 , 13100 , 7695.00 )
    EngRPMPowerOutside=(4, 13600 , 16500 , 10935.00 )

    The error was caused by the spaces infront of the ,
     
    Last edited: Jan 3, 2023
  20. EmperorOfFinland

    EmperorOfFinland Registered

    Joined:
    Jan 26, 2021
    Messages:
    502
    Likes Received:
    1,098
    Although the matra still has the error on itself and it does not have that specific error on itself.
     

Share This Page