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,008
    Likes Received:
    2,875
    Hello Dave, the Power Output is american HP. :)
     
  2. davehenrie

    davehenrie Registered

    Joined:
    Jul 6, 2016
    Messages:
    7,481
    Likes Received:
    4,395
    Thanks!!!!
     
  3. redapg

    redapg Registered

    Joined:
    Jan 16, 2012
    Messages:
    4,008
    Likes Received:
    2,875
    I have noticed, that there still seem to be some Problems in some Scripts, caused by the Switch from php 5 to 7.
    So please, if you generate a File with one of the Tools and it doesn't work properly, inform me here or by sending a Mail (Mail Adress from the Tools main Site).
    You can also make a kind of a "quick Check", when you search for N/A in that File.
    That is one of the Indicators, that something went wrong.
    My Problem is, that it sometimes seem to work and sometimes not and i can not test all possible Configurations of uploaded Files.
    And i also can not write the Scripts in a Way, that they detect all wrong Entries in uploaded Files automatically.
    So a Misfunction can be caused by wrong formatted uploaded Files and also by a php Problem in a Script.
    Merry Christmas to all of you!
    Chris
     
    svictor, Emery, Corti and 5 others like this.
  4. atomed

    atomed Member

    Joined:
    Jul 9, 2019
    Messages:
    1,338
    Likes Received:
    1,349
    Have a great Christmas you too Chris.
     
    redapg and Gilles Benoit like this.
  5. redapg

    redapg Registered

    Joined:
    Jan 16, 2012
    Messages:
    4,008
    Likes Received:
    2,875
    I think that everybody who uses the DevMode knows it.
    You get an Error Message, when VisGroups Entries are in Conflict with CollTarget=True and/or HatTarget=True.
    That can be very annoying, even if you only have to hit Enter to continue.
    So i did write a small php Script that removes the VisGroups Entries.
    Now i thought that it maybe could be useful for others too and did add it to my Online Tools.
    It's called
    Remove VisGroups Entries from SCN Files, that cause a Conflict with CollTarget or HATTarget=True Entries
    and it currently removes VisGroups Entries with the Numbers 36 and 38.
    If you find more Numbers that cause that Conflict, please inform me here. :)
     
    Corti, FuNK!, philrob and 1 other person like this.
  6. lagg

    lagg Registered

    Joined:
    Oct 1, 2012
    Messages:
    3,043
    Likes Received:
    1,958
    Thant you very much
    I suppose that only removes the visgroups of the instances that have CollTarget=True and/or HatTarget=True
    Right?
     
    Corti and redapg like this.
  7. philrob

    philrob Registered

    Joined:
    Jan 12, 2012
    Messages:
    572
    Likes Received:
    1,205
    great idea Chris, they really are annoying .
    so thank you
    phil
     
    redapg likes this.
  8. redapg

    redapg Registered

    Joined:
    Jan 16, 2012
    Messages:
    4,008
    Likes Received:
    2,875
    Yes and you get the affected Instances displayed, before you can press the Button to remove them.
     
    Corti, lagg and Gilles Benoit like this.
  9. lagg

    lagg Registered

    Joined:
    Oct 1, 2012
    Messages:
    3,043
    Likes Received:
    1,958
    Fantastic, as always :)
     
    redapg likes this.
  10. redapg

    redapg Registered

    Joined:
    Jan 16, 2012
    Messages:
    4,008
    Likes Received:
    2,875
    Coming from THIS Thread, i did add a new pdf Tutorial to my Online Tools Website, that describes, how a DLC Vehicle can be updated.
    It is linked at the Bottom of the Tools Site and the Name is :
    Update_a_DLC_Vehicle (<- direct Download Link)

    If you find something wrong in it, inform me here please. :)
    Thank you.
     
  11. atomed

    atomed Member

    Joined:
    Jul 9, 2019
    Messages:
    1,338
    Likes Received:
    1,349
    Thanks for sharing this. Now I only have to find out how to put a potato inside Detroit´s exhaust to slow it a little bit :D
     
    redapg likes this.
  12. philrob

    philrob Registered

    Joined:
    Jan 12, 2012
    Messages:
    572
    Likes Received:
    1,205
    Thanks Chris another great Tutorial, very much appreciated.
     
    redapg likes this.
  13. Manfredk2

    Manfredk2 Guest

    Bremsfallschirm-Bremsschirm-Rettungsschirm-3.jpg
     
    atomed likes this.
  14. atomed

    atomed Member

    Joined:
    Jul 9, 2019
    Messages:
    1,338
    Likes Received:
    1,349
    Lol, American technology to the rescue :p
     
  15. redapg

    redapg Registered

    Joined:
    Jan 16, 2012
    Messages:
    4,008
    Likes Received:
    2,875
    Important Information:
    @Juergen-BY did report (thanks for that :)), that he got a Problem with the Tire Editor Tool, where the Values from a commented/deactivated Line have been used, instead of the active Values.
    With commented/deactivated, i mean Lines, that start with // (i never know what is the best Term for that in english).
    I have checked the Script and have seen that i neither had included a Routine, that automatically removes such Lines from an uploaded File, that i had already implemented in some Scripts, nor a Hint on the first Site, that you have to remove all these Lines, in Files that you want to upload.
    I will recheck all Scripts in the next Days (/weeks), to at least ensure, that they all have the Hint included.

    So please, remove all commented out Lines, from the Files that you want to upload in one of the Tools. ;)

    For the ones, that are interested into the Way how the Values are taken from a File and what leads to the Problem, here is a short Explanation:
    In the most of the Cases, the Values in the Files have unique Names, like
    CGRightRange=(0.499,0.001,4)
    for Example.
    So i let the Script search for everything that is between CGRightRange=( and ).
    In that Way, i get the 3 Values that are inside of the Brackets, that i can separate by the Commas then.
    The Problem, when there are more Lines with the same Name, that are commented, it can happen, that the wrong Values are taken, when the commented Line is in front of the correct Line, because the first found Match gets taken from the Script.
     
    Last edited: Feb 16, 2022
  16. philrob

    philrob Registered

    Joined:
    Jan 12, 2012
    Messages:
    572
    Likes Received:
    1,205
    Thanks, Chris, for the explanation. I call // two forward slashes.
     
    Gilles Benoit and redapg like this.
  17. redapg

    redapg Registered

    Joined:
    Jan 16, 2012
    Messages:
    4,008
    Likes Received:
    2,875
    Thank you Rob, but it have meant how a Line gets called, that starts with 2 Slashes.
    I mean to remember, that there was a Discussion about it in the Past, where a User did say it is called
    a "commented" Line.
    But when i translate how i would call it in my Language (German), it would be "outcommented".
    So i'm not sure which Term is the correct one. :)

    It's a bit like with what you have written.
    As a German, i would call // only Slashes, not forward Slashes and \\, i would call Backslashes. :)
     
  18. Lazza

    Lazza Registered

    Joined:
    Oct 5, 2010
    Messages:
    12,382
    Likes Received:
    6,600
    Similar in English for the slashes, 'forward' is an optional specifier used in contexts it may not be clear (ie not anywhere outside of computing, basically)

    As a hobbyist programmer for ~20 years a line starting with // is 'commented', or 'commented out' especially when several options are available and you comment the ones you don't want to use. And as I just used 'comment' is kind of a verb, but very much only in this specific context (programming or .ini editing)


    I think I've spent too much time over the years fiddling with custom parsing of files and not enough building impressive things on top.
     
  19. philrob

    philrob Registered

    Joined:
    Jan 12, 2012
    Messages:
    572
    Likes Received:
    1,205
    Chris, i guess Commented out is the most used, at least in English.
    Phil
     
  20. redapg

    redapg Registered

    Joined:
    Jan 16, 2012
    Messages:
    4,008
    Likes Received:
    2,875
    Thanks @Lazza and @philrob
    So i guess i will use "commented out" or maybe "commented out/ deactivated" from now on, then. :)
     
    Reiche likes this.

Share This Page