rFactor 2 Online Tools by Chris “redapg”

Discussion in 'Modding' started by Slow Motion, Oct 11, 2016.

  1. redapg

    redapg Registered

    Joined:
    Jan 16, 2012
    Messages:
    4,418
    Likes Received:
    3,320
    Hello Pales, thank you very much for reporting the Problem, i will check it right now. :)
    And
    is in Work already.
     
    Pales likes this.
  2. Pales

    Pales Registered

    Joined:
    May 9, 2017
    Messages:
    442
    Likes Received:
    433
    Thanks, Chris. You're a god! :)
     
  3. redapg

    redapg Registered

    Joined:
    Jan 16, 2012
    Messages:
    4,418
    Likes Received:
    3,320
    No God, really not. :D
    The Problem is fixed.
    The current State of the SFX->JSON Tool is shown below.
    If you want, i can upload it already and you can make some Tests. :)

    [​IMG]
     
  4. Pales

    Pales Registered

    Joined:
    May 9, 2017
    Messages:
    442
    Likes Received:
    433
    This is absolutely fantastic, mate. I would be more than happy to assist in bug finding. It is the very least that I can do given all your support. All of these new additions being supported will be invaluable.
     
    redapg likes this.
  5. redapg

    redapg Registered

    Joined:
    Jan 16, 2012
    Messages:
    4,418
    Likes Received:
    3,320
    @Pales The new Version is online. I've made only a quick Test and it should work.
    I have also fixed a 2nd Button on the top left of the Site, with that you can download the new JSON File, without to have to scroll to the Bottom, where the fixed Download Button is.
     
    ThomasJohansen, Pales and Emery like this.
  6. redapg

    redapg Registered

    Joined:
    Jan 16, 2012
    Messages:
    4,418
    Likes Received:
    3,320
    I've added some more Sound Settings, like Wind Sound for Example.
    Only Differential Sounds and some Collision Sounds are left to be added as it seems.
    The updated Script is online.
     
  7. redapg

    redapg Registered

    Joined:
    Jan 16, 2012
    Messages:
    4,418
    Likes Received:
    3,320
    The current last Version of the Sound SFX to JSON Converter is online (Screenshot below).
    One of the Things that i don't understand, is the "handling" of Collision Sounds Inside and Outside.
    Maybe i have the Patience to make some Tests with it...

    [​IMG]
     
  8. redapg

    redapg Registered

    Joined:
    Jan 16, 2012
    Messages:
    4,418
    Likes Received:
    3,320
    Just as an Information: because the old SFX to JSON Converter Tool generated some wrong Sound File Path Entries, depending on the Formatting of the uploaded SFX File, i replaced it with the new Version now, without the Option to use the old or the new Version.
    But as before, you can directly download the new generated Sound JSON File, without to have to change a Setting.
    And as always: PLEASE report Problems. :)
     
  9. Pales

    Pales Registered

    Joined:
    May 9, 2017
    Messages:
    442
    Likes Received:
    433
    Hi Chris,

    Sorry to be the bearer of bad news, but I tested this again today and there are still some teething issues. If I start to modify the values for tyre scrub, wind, it seems to start with a "," rather than a value.

    For example:

    "key": "transmissionRPM",
    "value": [[10,0,0],[0,0.7,0.2],[0,0.8,0.2],[0,0.7,0.2],[0,0.6,0.2],[0,0.6,0],[,0.5,0.2]] (bracket at the front again)
    "value": [[0,0,0],[0,1,0],[,2,0]] (bracket starting at the front)

    I also had another issue earlier with a misplaced bracket. It always seems to be at the very bottom where it fails to enclose correctly.
     
  10. Pales

    Pales Registered

    Joined:
    May 9, 2017
    Messages:
    442
    Likes Received:
    433
  11. redapg

    redapg Registered

    Joined:
    Jan 16, 2012
    Messages:
    4,418
    Likes Received:
    3,320
    I asked for reporting Problems. :)

    That there is no 1st Number in the square Brackets, will probably be caused by missing, Transmission related, Lines in the uploaded SFX File.
    I did notice that already and it doesn't seem to cause any Problems.
    But it should not appear for the Wind and Tire Scrub Entries.
    Please upload the SFX File with that it happens.

    I know and i have to check the whole Structure.
    There are much too many Brackets in the Sound JSON File. :D
    But it doesn't causes an Error while it's loading and also the Sounds get played properly as it seems.
     
    Pales likes this.
  12. redapg

    redapg Registered

    Joined:
    Jan 16, 2012
    Messages:
    4,418
    Likes Received:
    3,320
    I've found the Reason for the Problem with the Bracket Count, but it's not fixed and online yet, because i have to rewrite some Code in my Script.
    I will do it in the next Days, when i have a bit more Time.
     
    davehenrie likes this.
  13. redapg

    redapg Registered

    Joined:
    Jan 16, 2012
    Messages:
    4,418
    Likes Received:
    3,320
    .... i did it now already, because i will not have much Time the next 3 Days.
    I also did add a new Checkbox, to display the also new added Settings for Wiper Sounds in Cockpit View.
    In the Section where you can set the Sound File Name for it, if you have a Wiper Sound File already, you can also play and download a Wiper Sound, that i did make a few Years ago, when the Wiper Sound was introduced, to test if it works, if you have none.
    The Sound is not perfect, but sounds like a wiping Wiper. :)


    The "Problem", where no Number is shown, when the searched Entries are not available in the uploaded SFX File, is still there.
    But i think, that the JSON Format simply handles it as 0, because i get no Error Message when a Sound JSON File, with an Entry, in that a Value is empty, gets loaded in the DevMode.

    And the Structure and Number of the Brackets is correct now.

    The updated Site is online.
     
  14. redapg

    redapg Registered

    Joined:
    Jan 16, 2012
    Messages:
    4,418
    Likes Received:
    3,320
    Just as an Information.
    Due to a Request from @Nicola59 (thank you for Testing it :)) , i did add a new Tool, with that you can ectract the Data of

    TotalMass
    TotalInertiaStandard
    RingMass
    RingInertiaStandard

    to paste it into the Physics Spreadsheet Tire Tab.

    It is called Extract TGM Tire Data and paste it into the Physics Spreadsheet

    The "Problem", if you create new Physics with the Spreadsheet, is, that you have to enter proper Values into the Cells of these Values.
    If they doesn't match the highest Values of the used TGM Files, the Car will not load properly.
    This especially helps, if you use more than 1 Compund for the Tires.

    To get proper Data, you must upload front and rear Tires separately.
    The Tool will extract the Data from all front and all rear Tire Files and uses only the highest of them, that can be copied in the Tool and pasted into the Spreadsheet then.
    If you have Problems, please report here.
     
  15. Nicola59

    Nicola59 Registered

    Joined:
    Dec 5, 2014
    Messages:
    168
    Likes Received:
    190
    Thank You Chris:)
     
    Nick9320 and redapg like this.
  16. redapg

    redapg Registered

    Joined:
    Jan 16, 2012
    Messages:
    4,418
    Likes Received:
    3,320
    Just as an Information: i will switch the php Version on the Online Tools Server from 7.4 to 8.2 in a few Minutes.

    So the Tools will be offline for 10 Minutes (i guess).

    Due to this Change, i had to rewrite a lot of Code in my php Scripts, because they didn't work with Version 8.2 anymore.
    And because it already happened in the Past, that the same php Versions seem to work a bit differently on my local Server (xampp), where i test all Scripts, it can happen that Things don't work as before.

    If you notice something not working correct anymore, please inform me here, that i can try to fix it.

    Thank you :)
     
    philrob, elgagon, Corti and 3 others like this.
  17. Pales

    Pales Registered

    Joined:
    May 9, 2017
    Messages:
    442
    Likes Received:
    433
    Does anyone know if it is possible to play a sound from the car based on the activation of DRS? I am hoping it is supported as an event in the new sound engine but I wouldn't know what event label to use.

    I had a look at the sound debugger but could not see an event for DRS, so not sure if I can fake it any other way.
     
    Last edited: Jul 8, 2024
    Nick9320 likes this.
  18. Nicola59

    Nicola59 Registered

    Joined:
    Dec 5, 2014
    Messages:
    168
    Likes Received:
    190
    Hello, Chris
    For me it's no more working the Tyre editor ( first tool ). When I load a TGM, and then i select, for example, a different rim size, or any other size for the tgm, then, the tool never gives me the download. There is alwyas the general grey mask, but not the option with the download file.
    Thank You
    Nic
     
    Nick9320 and redapg like this.
  19. redapg

    redapg Registered

    Joined:
    Jan 16, 2012
    Messages:
    4,418
    Likes Received:
    3,320
    Hello Nicola,
    thank you for reporting.
    It's a strange One, i will check it Tomorrow and until it's fixed, i'll deactivate the Tool. :)
     
    Nicola59 likes this.
  20. redapg

    redapg Registered

    Joined:
    Jan 16, 2012
    Messages:
    4,418
    Likes Received:
    3,320
    Hello @Nicola59 ,
    The Tool is online again and should be fixed.
    I say "should", because it was a really strange Problem and hard to fix, because it worked without any Problems in the php 7.4 Version.
    And it seems as if the negative Sign - gets handled very differently in php 8.
    Please try it out and report, if you still have Problems. :)
     
    Nick9320 likes this.

Share This Page