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

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

  1. whitmore

    whitmore Registered

    Joined:
    Feb 26, 2012
    Messages:
    552
    Likes Received:
    142
    OK will go look for the point wav. Since I have copied Num_xxx files change place now working. Is the max detail the level of detail I set in the game? In other words if game is set to spotter detail full then ini file needs max detail 4.

    Am I right in saying any sound file I want to hear that is inside the MAS file has to be copied out to the spotter sound directory?
     
  2. TIG_green

    TIG_green Registered

    Joined:
    Jul 21, 2012
    Messages:
    3,038
    Likes Received:
    44
    Not directly related to this even though I quoted you, but could you send me your modified files, because you seem to know how these things work? :)

    @Gerald: Is it possible to have all the messages on or off by default and then define by values 1 (enabled) and 0 (disabled) if you want to have them? Kinda like in player.json
     
  3. Gerald Jacobson

    Gerald Jacobson Registered

    Joined:
    Jan 26, 2013
    Messages:
    827
    Likes Received:
    18
    MaxDetailLevel is defined in the Spotter.ini (the rF2 number of event is not used, as i'm not sure is it intended by ISI to do the same thing)
    Yes you need to have all file in the spotter sounds directory. I do not use directly sound from rF2
     
  4. Gerald Jacobson

    Gerald Jacobson Registered

    Joined:
    Jan 26, 2013
    Messages:
    827
    Likes Received:
    18
    ok
     
  5. GauchoRS

    GauchoRS Registered

    Joined:
    Nov 23, 2011
    Messages:
    471
    Likes Received:
    9
    During race I would like to ask my race engineer about actual position. Something like
    ``yes, you are leading the race``or ``you are leading the race, but keep an eye on the car behind, he is very fast``
    ``you are second, come on, keep pushing``
    ``third place, you can still reach the two in front``
    ``you are on fourth place, keep fighting for the podium``
    ``fifth place, good work so far``
    ``currently on six, you can do more, come on``
    ``still on seventh place, its possible to advance, mix three, mix three``
    ``we are running on eigth, you must attack, use overtake button``
    ``nine, nineth position, there is a lot of work to do``
    ``your on tenth, only tenth, keep pushing, do your best``
    (first to tenth, in the mid field, last, much behind the field)

    I would like to trigger it with a question on speech recognition and get the answer from your spotter.
    What do you thing about it ?

    (first to tenth, in the mid field, last, much behind the field)
    -
     
  6. Gerald Jacobson

    Gerald Jacobson Registered

    Joined:
    Jan 26, 2013
    Messages:
    827
    Likes Received:
    18
    yes, you can already achieve this kind of thing. On which part do you need help ? All ?
     
    Last edited by a moderator: Sep 19, 2014
  7. Rik

    Rik Registered

    Joined:
    Oct 5, 2010
    Messages:
    1,174
    Likes Received:
    9
    when you press the demand for the pit stop.
    rfactor can check if they are free or busy?
    because very useful for the pit stop would be from race engineer :
    the pit stop is busy. stopped at the next round.
     
  8. GauchoRS

    GauchoRS Registered

    Joined:
    Nov 23, 2011
    Messages:
    471
    Likes Received:
    9
    mmmh .. first of all, you should speak the messages (to have the same voice as for the other messages)

    and than ... I dont know the name of the ``Events``, which I can use (is there a complete list of provided events ?)
    I am thinking you must add some code in the .dll ??

    I do admit, I am still a bit confused with the software archicture.
     
  9. Gerald Jacobson

    Gerald Jacobson Registered

    Joined:
    Jan 26, 2013
    Messages:
    827
    Likes Received:
    18
    No, i can't have this info via the Plugin API
     
  10. Gerald Jacobson

    Gerald Jacobson Registered

    Joined:
    Jan 26, 2013
    Messages:
    827
    Likes Received:
    18
    No, no need of dll update. You need to create a new event, new sounds, and a new rule and shortcut.

    If you want, i will soon release a new version where i will put a message each time your place change in Qualifying and Race. So you will be able to reuse a huge part of my work on this to achieve what you want.
     
  11. GauchoRS

    GauchoRS Registered

    Joined:
    Nov 23, 2011
    Messages:
    471
    Likes Received:
    9
    ok, thats fantastic! I am really impressed by your working and dedication
     
  12. Gerald Jacobson

    Gerald Jacobson Registered

    Joined:
    Jan 26, 2013
    Messages:
    827
    Likes Received:
    18
    V1.0 Available

    - Fix bug when finish messages wasn't played
    - Add a global "enable" parameter in the spotter.ini (<FORCE>There is no reason to disable the spotter.</FORCE>)
    - Add an "Enable" parameter for each rule, to ease disabling of one rule
    - Add 34 new sounds (detail)
    - Add 11 new Inputs (detail)
    - Add a Rule.25 tell you place when you reach S3 (if different that your place in last S3) - (in qualifying & race) -> Event=MyPlace
    - Add a Rule.26 who tell you when another driver enter pit (in race) -> Event=AnyCarPitIn
    - Add a Rule.27 who tell you when another driver is DNF or DQ (in race) -> Event=AnyCarFinished
     
    Last edited by a moderator: Sep 20, 2014
  13. alpha-bravo

    alpha-bravo Registered

    Joined:
    Dec 22, 2012
    Messages:
    1,374
    Likes Received:
    31
    A new build and now the 1.0 Spotter plugin ensure a exciting weekend :)
    Thaaaaaannnnk you Gerald !!!
     
  14. hexagramme

    hexagramme Registered

    Joined:
    May 25, 2013
    Messages:
    4,245
    Likes Received:
    194
    Downloaded and installed the 1.0 version, and now I don't have sound at in the sim???
    Uninstalled the plugin, still no sound??

    Edit:
    Restarted Win7 still no sound at all in the sim.
    As soon as the plugin was loaded the first time all sound cut out. Crazy crazy stuff..!

    Played around with sound levels like suggested earlier, still no sound.
    Can't believe this!

    Edit 2:
    Well I guess I'll have to try and reinstall rF2 to see if that can make the sound come back...

    Edit 3:
    Reinstalling the "core" of the lite installer over my rF2 folder didn't help either.
    What could be the cause of the plugin to completely kill the sound like that??

    Edit 4:
    Tried installing the entire lite installer (core + data) over the top of my old install. Still no sound.
    So the sim's sound is apparently completely broken now. Any ideas?
     
    Last edited by a moderator: Sep 20, 2014
  15. DONKaly

    DONKaly Registered

    Joined:
    Apr 12, 2014
    Messages:
    5
    Likes Received:
    0
    Thanks for your work. Thank you very much for sharing.
     
  16. steeve

    steeve Registered

    Joined:
    Jan 9, 2012
    Messages:
    87
    Likes Received:
    0
    Read you, I think I have the same problem, here's a picture of my mixer volume. Once the plugin is spotter rf2 display in the volume of RF2 is down for no reason in windows

    View attachment 14301
     
  17. Gerald Jacobson

    Gerald Jacobson Registered

    Joined:
    Jan 26, 2013
    Messages:
    827
    Likes Received:
    18
    Be sure your rF2 spotter volume in rF2 audio setting is not at 0%

    I will check to find the source of the issue. Sorry for the inconvenience. Don't know why everyone does not have the same behavior/issue
     
    Last edited by a moderator: Sep 20, 2014
  18. hexagramme

    hexagramme Registered

    Joined:
    May 25, 2013
    Messages:
    4,245
    Likes Received:
    194
    Good catch. I had the same thing when I opened up the mixer while running rF2.
    Didn't make any difference when I turned up the rF2 volume bar though...

    I don't have the Spotter installed anymore so it shouldn't make a difference, right?
    But I just set the spotter volume to 100 in the sim menu and still no sound.
     
  19. steeve

    steeve Registered

    Joined:
    Jan 9, 2012
    Messages:
    87
    Likes Received:
    0
    Spotter volume set to 50 or 100 does not matter. This is the general volume RF2 which fall only in windows but not other program like Teamspeak.


    EDIT : I just remove the plugin spotter.dll x64 plugin folder, I launched RF2 and no problems with sound.
    I handed the dll and again the general sounds that fall alone.
    If it can give a clue ..
     
    Last edited by a moderator: Sep 20, 2014
  20. hexagramme

    hexagramme Registered

    Joined:
    May 25, 2013
    Messages:
    4,245
    Likes Received:
    194
    This is I do not understand?

    I have completely removed anything that has to do with the Spotter plug-in, both from the 32bit plug-in folder, the 64bit plugin folder and the Spotter folder inside the "player" folder.
     

Share This Page