[WIP] Race Engineer (Spotter) plugin for rFactor 2

Discussion in 'Other' started by cosimo, Mar 19, 2014.

  1. Gerald Jacobson

    Gerald Jacobson Registered

    Joined:
    Jan 26, 2013
    Messages:
    827
    Likes Received:
    18
    Version 0.9 Available

    • 5 Inputs allowed instead of 3 (Input1, Input2, Input3, Input4, Input5)
    • Add the following variable
      --- LastLaptime : Your last laptime
      --- Wear : The average wear of tyres (0=completly worn, 1=full health)
      --- WearMin : The wear of the more worn tyre (0=completly worn, 1=full health)
      --- WearMax : The wear of the less worm tyre (0=completly worn, 1=full health)
      --- WearGap : WearMax - WearMin (0=perfect worm balance, 1=fully unbalanced)
    • Add 2 new rules / events
      --- WornTyre : 2 new sounds base on v:tireWorm and v:tireVeryWorm (Watch out, your tyres are starting to wear out. / You don't have any grip left on your tyres, be very careful)
      --- WornGap : 2 new sound base on v:tireWearBalanced (All tyres are wearing equally / Warning, tyres worn is unbalanced)
    • Add a new Variable
      --- EventTag : it is a double value where you can store any value (this value is stored in the event itself - the one who have been triggered)
    • Add a new Command
      --- EventTag : set EventTag to a given double value (look the two new event to see an example of usage)


    PS: The next version will be the 1.0 (i should add shortcut using joystick buttons)
     
  2. expdom

    expdom Registered

    Joined:
    Oct 6, 2010
    Messages:
    27
    Likes Received:
    0
    Installed V0.9 and lost all sounds. Not only spotter, all....
     
    Last edited by a moderator: Sep 18, 2014
  3. jerrymcc

    jerrymcc Registered

    Joined:
    Oct 5, 2010
    Messages:
    160
    Likes Received:
    35
    OK, looks great but I can't get it to work. Put the appropriate dll's in the their bin32 or bin64 folders, and the spotter folder in the /player folder.

    But it doesn't seem to work. Am I missing something simple? (using 0.8 version atm)

    Does it conflict with the trackmap plugin? Don't know why it should.

    Glad to see it in rF2 ... really miss the rF1 spotter ... but isn't working.

    Thanks for any suggestions
     
  4. MOD43

    MOD43 Registered

    Joined:
    Nov 4, 2011
    Messages:
    118
    Likes Received:
    0
    Version 9 works well for me
     
  5. GauchoRS

    GauchoRS Registered

    Joined:
    Nov 23, 2011
    Messages:
    471
    Likes Received:
    9
    V.9 works well for me (I am using trackmap plugin as well - 32 bit version)

    I had that ``all sound cut off`` with V.8 once, when I skipped formation lap. After rF2 restart it worked without problems and never happened again.

    I did not hear winner message (P1 and P2)
     
  6. expdom

    expdom Registered

    Joined:
    Oct 6, 2010
    Messages:
    27
    Likes Received:
    0
    I have been using all versions since very first without problems (64 bit).

    Installed V9, got in cockpit, had sounds up to when plugin was loaded and then all sounds were cut off. Restarting game and /or Win (7) did not solve it.

    Only other plugin I have installed is DeltaBest.

    Disabling / enabling plugins did not solve it either. Playing with sound settings didn't help either....

    Sounds play without glitches in all other games including rF1
     
  7. Gerald Jacobson

    Gerald Jacobson Registered

    Joined:
    Jan 26, 2013
    Messages:
    827
    Likes Received:
    18
    Very strange as i did nothing around sounds in v0.9
    I will make tests.
     
  8. Gerald Jacobson

    Gerald Jacobson Registered

    Joined:
    Jan 26, 2013
    Messages:
    827
    Likes Received:
    18
    What is the volume level of the spotter in rf2 settings.
     
  9. expdom

    expdom Registered

    Joined:
    Oct 6, 2010
    Messages:
    27
    Likes Received:
    0
    Spotter Volume set at 100%, all other sounds at 100% except for opponent at 70% and tires at 140%. Number of sound effects at 32.

    Cheers.

    Psd.: thanks for looking into it
     
  10. GauchoRS

    GauchoRS Registered

    Joined:
    Nov 23, 2011
    Messages:
    471
    Likes Received:
    9
    as I had the sound problem with v.8, ISI spotter was OFF and spotter sound was set to 0%.
    I remember, that I moved spotter sound to 100% than and after rF2 restart all worked fine again.
     
  11. Gerald Jacobson

    Gerald Jacobson Registered

    Joined:
    Jan 26, 2013
    Messages:
    827
    Likes Received:
    18
    Ues because dince v0.8 i take the rf2 spotter volume into account (in addition to volume in the event file)
     
  12. Gerald Jacobson

    Gerald Jacobson Registered

    Joined:
    Jan 26, 2013
    Messages:
    827
    Likes Received:
    18
    v0.9.1 Available
    - Found the reason why sometimes some/all messages stoped to be played (now it is fixed)
     
  13. alpha-bravo

    alpha-bravo Registered

    Joined:
    Dec 22, 2012
    Messages:
    1,374
    Likes Received:
    31
    :cool: great :)

    edit: Gerald many thanks for your open mind and for listening to the community feedback. It is really a pleasure to use your plugins and to follow the WIP !
     
    Last edited by a moderator: Sep 18, 2014
  14. whitmore

    whitmore Registered

    Joined:
    Feb 26, 2012
    Messages:
    552
    Likes Received:
    142
    If these are the sessions
    The Session type, from 0 to 13.

    0=test day, 1=practice1 ..., 5=qual1, ..., 9=warmup, 10=race1..., 13=race3
    What do I use for race 2? 12???
     
  15. expdom

    expdom Registered

    Joined:
    Oct 6, 2010
    Messages:
    27
    Likes Received:
    0
    Got my sound problems sorted out now..

    Played with sound settings a bit, spotter detail changed to full, went into game and..... nothing. Exited, went back into Developers Module and it had sound. Exited back into game and sounds were back.

    Weird..

    Going to try version 9.1 and check.

    Edit.: Version 9.1 working nicely
     
    Last edited by a moderator: Sep 18, 2014
  16. whitmore

    whitmore Registered

    Joined:
    Feb 26, 2012
    Messages:
    552
    Likes Received:
    142
    9.1 sounds working ok for me 64 bit. Some messages seem to not be working . I am using standard event and rules ini files.

    What is correct way to code an event to have it play in all sessions?

    In race mode in a 5 lap race did not hear these messages .

    [Rule.2]
    Trigger=NewSelfBestLap
    Event=SelfBestLap

    [Rule.12]
    Trigger=Finished
    Event=Finished
    Input1=FinishStatus
    Input2=Place
    Input3=15

    The line below is the line in the default finished event ini. Input 3 looks a bit odd? Should it be "total number of cars in the race"

    Event=Finished // Input1 = FinishStatus, Input2=Place , Input3=Input3=last plat to get point

    Also in the events ini file are these two line together
    // Tells player when he have not enough fuel to finish the session
    Event=StartRace // Input1 = NumberOfStartLight, Input2 = CurrentStartLight

    It would appear to me that the description does not meet the event?

    In trying to get the lap time event working I have included both the hundredth & Tenth events but left as default hundredth.

    I copied lap_time.wav out of the mas file into the spotter sounds EN directory and set the event to work on trigger S3.

    At the end of each lap I get the voice that says "that was a" but followed by 5 ding sounds. It does not announce the time. Help please.
     
    Last edited by a moderator: Sep 19, 2014
  17. Gerald Jacobson

    Gerald Jacobson Registered

    Joined:
    Jan 26, 2013
    Messages:
    827
    Likes Received:
    18
    11. As 13 is in fact race4. Will correct the wiki
     
  18. Gerald Jacobson

    Gerald Jacobson Registered

    Joined:
    Jan 26, 2013
    Messages:
    827
    Likes Received:
    18
    Rule.2
    If you look at the event you will see that it is played only in practice and qualif.

    Rule.22
    Input3 is to know which message to play. In point or not in points.

    StartRace event.
    Yes the comment is a copy paste of another event.

    Laptime
    The bips mean that the sound files are not found. Did you copy all NUM_xxx files?
     
  19. whitmore

    whitmore Registered

    Joined:
    Feb 26, 2012
    Messages:
    552
    Likes Received:
    142
    Thanks for the help Gerald. As you identified I had missed copying the NUM_XXX files.

    Now getting lap time and just one ding sound. Is on default hundreth

    Getting the Place and MyPlaceChange events message to work is also a problem for me. any tips for them.

    Was trying to set trigger as S3 to have message announce position at the end of each lap and another rule to also tell me when I either advance or lose a place during a lap.

    I see it is part of the default events.ini but when I tried to make rules I failed.

    Appreciate your work great stuff mate.
     
  20. Gerald Jacobson

    Gerald Jacobson Registered

    Joined:
    Jan 26, 2013
    Messages:
    827
    Likes Received:
    18
    The change place event have a detail level upper than the one by default in the spotter.ini. if you want hear it be sure the detail of an event is lower or equals to the maxDetailLevel defined in the spotter.ini

    For the last ding. I think you forgot point.wav
     

Share This Page