[REL] rF2 Spotter Plugin

Discussion in 'Other' started by Gerald Jacobson, Oct 17, 2014.

  1. Je suis Luis

    Je suis Luis Banned

    Joined:
    Jan 21, 2015
    Messages:
    328
    Likes Received:
    0
    Man... you are awesome. I was thinking in doing what GSCRacer told to or just disable this feature.

    Many thanks. Will try asap.

    edit: worked perfectly, thanks again
     
    Last edited by a moderator: Jan 23, 2015
  2. GCCRacer

    GCCRacer Banned

    Joined:
    Dec 12, 2012
    Messages:
    1,317
    Likes Received:
    2
    Wow, cool as heck edit. Exactly what was needed.

    I think if we want to geek out there's a "driver in front of you" and "driver behind you" WAV available for those two pit stops...
     
  3. Juergen-BY

    Juergen-BY Registered

    Joined:
    Jun 16, 2012
    Messages:
    3,089
    Likes Received:
    440
    This would be really great! I added a line on the track with a little bump to recognize the DRS Sector :D
     
  4. Jeferson Richart

    Jeferson Richart Registered

    Joined:
    Oct 23, 2013
    Messages:
    174
    Likes Received:
    34


    ;)
     
  5. Je suis Luis

    Je suis Luis Banned

    Joined:
    Jan 21, 2015
    Messages:
    328
    Likes Received:
    0
    My contribution to brazilian Ayrton Senna fans:
    https://www.dropbox.com/s/uykorja0yezvmdq/race_winner_pTc.wav?dl=0

    Just save this file over race_winner_pTc from sjbaraki sounds (make a copy of the original if you dont like the result)
    In this folder: C:\Users\yourname\Documents\rFactor2\UserData\player\Spotter\Sounds\EN_ENGINEER
     
  6. sjbaraki

    sjbaraki Registered

    Joined:
    Dec 18, 2014
    Messages:
    18
    Likes Received:
    0
    This is AMAZING
     
  7. Je suis Luis

    Je suis Luis Banned

    Joined:
    Jan 21, 2015
    Messages:
    328
    Likes Received:
    0
    :)

    Need some adjustments yet. Tested now (f1 x Clios, invulnerable, 5 laps just to be sure lol) and is playing a little late. I will put tomorrow a bigger file option to play for longer time. Awesome to make a victory lap back to the pits. I´m wondering in a "real" race online with mp4 mod. I will cry lol
     
  8. Je suis Luis

    Je suis Luis Banned

    Joined:
    Jan 21, 2015
    Messages:
    328
    Likes Received:
    0
    Changed the file. Now it has 01 minute e 49 seconds and should start just when cross the finish line. Plenty time to do victory lap (at interlagos at least) swearing and cursing :)

    https://www.dropbox.com/s/uykorja0yezvmdq/race_winner_pTc.wav?dl=0

    Make a copy of the original so you can change back if dont like the result.
    Drop in this path:
    C:\Users\yourname\Documents\rFactor2\UserData\play er\Spotter\Sounds\EN_ENGINEER
     
    Last edited by a moderator: Jan 24, 2015
  9. Juergen-BY

    Juergen-BY Registered

    Joined:
    Jun 16, 2012
    Messages:
    3,089
    Likes Received:
    440
  10. Je suis Luis

    Je suis Luis Banned

    Joined:
    Jan 21, 2015
    Messages:
    328
    Likes Received:
    0
    ahaha cool, thanks. Will use that instead :)) I thought only Brazilians are familiar with this sound :p
     
  11. GCCRacer

    GCCRacer Banned

    Joined:
    Dec 12, 2012
    Messages:
    1,317
    Likes Received:
    2
    Jeferson, would you have the skill to make the pit-in say "The driver in front of you" or "the driver behind you"? like we get for "is faster than you by XY seconds"...?
     
  12. Jeferson Richart

    Jeferson Richart Registered

    Joined:
    Oct 23, 2013
    Messages:
    174
    Likes Received:
    34

    Like this?


    DefaultRules.ini

    [Rule.26]
    Trigger=PitIn
    Event=AnyCarPitIn
    Input1=MyEvent
    Input2=PlaceAtPitTrigger
    Input3=Place



    DefaultEvents.ini

    Event=AnyCarPitIn
    {
    // Event properties (note that these are not applied if this event is played by another event)
    Detail=2
    Spacing=0.0
    Priority=1
    Probability=1.0
    TTL=15.0
    Break=0.25

    // Repeat until duration ends
    Repeat=Off
    Duration=0.0

    // Volume can be set before individual Files if necessary
    Volume=1.0

    Variable=Session {
    Value=10,13 {
    Variable=Input1
    {
    Value=0 {
    Variable=Input2
    {
    Value=1 {
    File=driver_at.wav
    PlayEvent=PlaceNum
    File=going_to_pit.wav
    }
    }
    Variable=Substract,Input3,Input2
    {
    Value=1 {
    Variable=Input2
    {
    Value>1 {
    File=driver_next.wav
    File=going_to_pit.wav
    }
    Value=-1 {
    Variable=Input2
    {
    Value>1 {
    File=driver_previous.wav
    File=going_to_pit.wav
    }
    }
    }
    }
    }
    }
    }
    }
    }
     
  13. Jeferson Richart

    Jeferson Richart Registered

    Joined:
    Oct 23, 2013
    Messages:
    174
    Likes Received:
    34
    Last edited by a moderator: Jan 26, 2015
  14. GCCRacer

    GCCRacer Banned

    Joined:
    Dec 12, 2012
    Messages:
    1,317
    Likes Received:
    2
    Jeferson, that's perfect! Need to test but I'm sure you nailed it. However, might there be too few closing brackets (14 open vs 12 closing)

    That way it's much more direct association than "driver in pos X".
     
    Last edited by a moderator: Jan 26, 2015
  15. Jeferson Richart

    Jeferson Richart Registered

    Joined:
    Oct 23, 2013
    Messages:
    174
    Likes Received:
    34
    You are right. The correct is:

    DefaultRules.ini

    [Rule.26]
    Trigger=PitIn
    Event=AnyCarPitIn
    Input1=MyEvent
    Input2=PlaceAtPitTrigger
    Input3=Place



    DefaultEvents.ini

    Event=AnyCarPitIn
    {
    // Event properties (note that these are not applied if this event is played by another event)
    Detail=2
    Spacing=0.0
    Priority=1
    Probability=1.0
    TTL=15.0
    Break=0.25

    // Repeat until duration ends
    Repeat=Off
    Duration=0.0

    // Volume can be set before individual Files if necessary
    Volume=1.0

    Variable=Session {
    Value=10,13 {
    Variable=Input1
    {
    Value=0 {
    Variable=Input2
    {
    Value=1 {
    File=driver_at.wav
    PlayEvent=PlaceNum
    File=going_to_pit.wav
    }
    }
    Variable=Substract,Input3,Input2
    {
    Value=1 {
    Variable=Input2
    {
    Value>1 {
    File=driver_next.wav
    File=going_to_pit.wav
    }
    }
    }

    Value=-1 {
    Variable=Input2
    {
    Value>1 {
    File=driver_previous.wav
    File=going_to_pit.wav
    }
    }
    }
    }
    }
    }
    }
    }
    }
     
  16. GCCRacer

    GCCRacer Banned

    Joined:
    Dec 12, 2012
    Messages:
    1,317
    Likes Received:
    2
    Thanks a bunch!

    I haven't really understood the logic and syntax here, otherwise I would have tried to help myself.

    This new pitscript is brilliant because it's really only the relevant opponents you get told about.


    Edit: Tested and appears to be working, though the "driver behind you" I've yet to hear.
     
    Last edited by a moderator: Jan 26, 2015
  17. Jeferson Richart

    Jeferson Richart Registered

    Joined:
    Oct 23, 2013
    Messages:
    174
    Likes Received:
    34
    If you do not want to hear about the driver behind you, remove this part:



    Value=-1 {
    Variable=Input2
    {
    Value>1 {
    File=driver_previous.wav
    File=going_to_pit.wav
    }
    }
    }
     
  18. Juergen-BY

    Juergen-BY Registered

    Joined:
    Jun 16, 2012
    Messages:
    3,089
    Likes Received:
    440
    Thanks Jeferson, nice script.
     
  19. GCCRacer

    GCCRacer Banned

    Joined:
    Dec 12, 2012
    Messages:
    1,317
    Likes Received:
    2
    Nah Jeferson, I meant I haven't heard it being used.
     
  20. Juergen-BY

    Juergen-BY Registered

    Joined:
    Jun 16, 2012
    Messages:
    3,089
    Likes Received:
    440
    Seems not working?

    //Edit: Now it`s working, i used "," instead of "."
     

Share This Page