[REL] Crew Chief v4.5 with rFactor 2 support

Discussion in 'Other' started by The Iron Wolf, Feb 1, 2017.

  1. Alex72

    Alex72 Registered

    Joined:
    Dec 27, 2016
    Messages:
    1,317
    Likes Received:
    992
    That was my first thought hahaha! :D I was gonna tell Iron that "hey dont forget a swearing version!".
     
  2. Louis

    Louis Registered

    Joined:
    Dec 27, 2016
    Messages:
    1,379
    Likes Received:
    840
    I don´t know if it was adressed before or is just me but everytime i update crewchief i loose the shortcut in Windows 10 task bar
     
  3. The Iron Wolf

    The Iron Wolf Registered

    Joined:
    Feb 20, 2016
    Messages:
    984
    Likes Received:
    984
    Louis likes this.
  4. Louis

    Louis Registered

    Joined:
    Dec 27, 2016
    Messages:
    1,379
    Likes Received:
    840
  5. Louis

    Louis Registered

    Joined:
    Dec 27, 2016
    Messages:
    1,379
    Likes Received:
    840
    Sorry, I think i didnt understand. If i create the shortcut as you said i wont loose the shortcut anymore when updating?
     
  6. The Iron Wolf

    The Iron Wolf Registered

    Joined:
    Feb 20, 2016
    Messages:
    984
    Likes Received:
    984
    Yes. The shortuct you are losing is a special shortcut managed by installer and we don't control what happens on update. But if you create your own shortcut and drop it into start menu, it will stay.
     
    Louis likes this.
  7. Louis

    Louis Registered

    Joined:
    Dec 27, 2016
    Messages:
    1,379
    Likes Received:
    840
    Worked as intended with the new update. Thanks again
     
    The Iron Wolf likes this.
  8. The Iron Wolf

    The Iron Wolf Registered

    Joined:
    Feb 20, 2016
    Messages:
    984
    Likes Received:
    984
    New version of the Crew Chief includes new rFactor 2 specific features. Basically, CC now has access to Message Center and track Pitlane Speed Limit data.

    However, those features are off by default, because:

    * Data is extracted by using unofficial means, not via rF2 Internals API. Since that is not supported, use this functionality at your own risk. It could potentially crash rF2, corrupting .json files, especially after game updates. I suggest having your .json files backed up. You've been warned :)

    * Only English Message Center strings are recognized, if you are using another UI language, some functionality may not work.

    To enable:
    * Start Crew Chief in rF2 mode and allow it to update rF2 plugin.
    * Start rF2 and exit the game (this will update CustomPluginVariables.json).
    * set EnableDirectMemoryAccess: 1 in CustomPluginVariables.json
    * if you want message center features, MC needs to enabled. I only tested "Message Center Detail":3 in player.json.

    Here's how SM plugin configuration should look like (space before " Enabled" is required):

    "rFactor2SharedMemoryMapPlugin64.dll":{
    " Enabled":1,
    "DebugISIInternals":0,
    "DebugOutputLevel":0,
    "DedicatedServerMapGlobally":0,
    "EnableDirectMemoryAccess":1,
    "EnableStockCarRulesPlugin":0
    }

    Recognized MC messages:
    "Crew Is Ready For Pitstop"
    "Headlights Are Now Required"
    "Stop/Go Penalty: Cut Track"
    "Stop/Go Penalty: Speeding In Pitlane"
    "Drive-Thru Penalty: Speeding In Pitlane"
    "Stop/Go Penalty: False Start"
    "Stop/Go Penalty: Exiting Pits Under Red"
    "Stop/Go Penalty: Illegally Passed Before Green"
    "Disqualified: Driving In Dark Without Headlights"
    "Disqualified: N Laps"
    "Enter Pits To Avoid Exceeding Lap Allowance"
    "Wrong Way"
    "Warning: Driving Too Slow"


    Pitlane Speed Limit
    CC will announce speed limit on pitlane approach (CC tries to guess that you approach pitlane, it won't always work on all tracks). Also, there's new voice command to ask about pitlane speed:

    what's the pitlane speed limit
    what's the pit speed limit
    pit speed limit


    CC will consider tracks with Speed limit above 200kph as having no speed limit.

    Next steps:
    • I'll be adding more messages as I catch them.
    • I'll try making Stock Car Rules plugin work in both offline and online sessions.
    • Will see if it is possible to calculate optimal tire/brake temperatures based on static curves for currently selected car/tires/upgrade.

    Big thanks:

    Jim (@mr_belowski) for recording a lot of new sounds
    Morten (@Sparten) our CCMC colleague for his technical expertise and code contributions that made this feature possible
    @Nibo for a lot of work he put in testing this stuff and collecting traces
     
    Last edited: Jan 30, 2019
    Hazi, AlexNordic, Ernie and 4 others like this.
  9. mesfigas

    mesfigas Registered

    Joined:
    Oct 15, 2015
    Messages:
    1,722
    Likes Received:
    830
  10. mesfigas

    mesfigas Registered

    Joined:
    Oct 15, 2015
    Messages:
    1,722
    Likes Received:
    830
    should i add those lines to json file ?
    Recognized MC messages:
    "Crew Is Ready For Pitstop"
    "Headlights Are Now Required"
    "Stop/Go Penalty: Cut Track"
    "Stop/Go Penalty: Speeding In Pitlane"
    "Drive-Thru Penalty: Speeding In Pitlane"
    "Stop/Go Penalty: False Start"
    "Stop/Go Penalty: Exiting Pits Under Red"
    "Stop/Go Penalty: Illegally Passed Before Green"
    "Disqualified: Driving In Dark Without Headlights"
    "Disqualified: N Laps"
    "Enter Pits To Avoid Exceeding Lap Allowance"
    "Wrong Way"
    "Warning: Driving Too Slow"
     
  11. JimmyT

    JimmyT Registered

    Joined:
    Jan 16, 2012
    Messages:
    924
    Likes Received:
    578
    Wow, CC just gets better all the time. You gentlemen are fantastic.
     
    pkelly and The Iron Wolf like this.
  12. The Iron Wolf

    The Iron Wolf Registered

    Joined:
    Feb 20, 2016
    Messages:
    984
    Likes Received:
    984
    No, this is just a list of Message Center messages CC will recognize in current version.
     
  13. mesfigas

    mesfigas Registered

    Joined:
    Oct 15, 2015
    Messages:
    1,722
    Likes Received:
    830
  14. davehenrie

    davehenrie Registered

    Joined:
    Jul 6, 2016
    Messages:
    7,479
    Likes Received:
    4,393
    "Warning: Driving Too Slow"

    Was that a custom message just for me??????
     
    JimmyT likes this.
  15. The Iron Wolf

    The Iron Wolf Registered

    Joined:
    Feb 20, 2016
    Messages:
    984
    Likes Received:
    984
    My fav was "Wrong way" :) I imagine guests who test rig will be surprised Chief knows where they're going :D
     
  16. JimmyT

    JimmyT Registered

    Joined:
    Jan 16, 2012
    Messages:
    924
    Likes Received:
    578
    Oh I think it catches a lot of us :p
     
  17. JimmyT

    JimmyT Registered

    Joined:
    Jan 16, 2012
    Messages:
    924
    Likes Received:
    578
    Well, I have had a run with the new info and it seems to be OK here in single player offline.
    Thanks again to CC team for the great plugin :cool::cool:
     
    The Iron Wolf likes this.
  18. The Iron Wolf

    The Iron Wolf Registered

    Joined:
    Feb 20, 2016
    Messages:
    984
    Likes Received:
    984
    Thanks for reporting this, I had to do some last minute changes to plugin, good to know stuff did not explode :)
     
    JimmyT likes this.
  19. Akela_DE

    Akela_DE Registered

    Joined:
    Jan 23, 2018
    Messages:
    389
    Likes Received:
    268
    hm, i have some problems with CC. CC is liying to me like you're first when i am 8th, front left puncture without a puncture, tires are hot when they are just warm, brakes to hot when they are on 300°, and more. A lot of little errors.
    what should i do ?
     
  20. The Iron Wolf

    The Iron Wolf Registered

    Joined:
    Feb 20, 2016
    Messages:
    984
    Likes Received:
    984
    Most of things you mention are related to vehicle class mappings.
    http://thecrewchief.org/showthread.php?27-Customizing-Car-Classes
    Also see: http://thecrewchief.org/showthread.php?28-F-a-q
    False front left puncture - no idea, that's what we announce when game sends us data that tire is flat.
     

Share This Page