[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,276
    Likes Received:
    957
    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:
    838
    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 Member

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

    Louis Registered

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

    Louis Registered

    Joined:
    Dec 27, 2016
    Messages:
    1,379
    Likes Received:
    838
    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 Member

    Joined:
    Feb 20, 2016
    Messages:
    964
    Likes Received:
    909
    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:
    838
    Worked as intended with the new update. Thanks again
     
    The Iron Wolf likes this.
  8. The Iron Wolf

    The Iron Wolf Member

    Joined:
    Feb 20, 2016
    Messages:
    964
    Likes Received:
    909
    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,326
    Likes Received:
    668
  10. mesfigas

    mesfigas Registered

    Joined:
    Oct 15, 2015
    Messages:
    1,326
    Likes Received:
    668
    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:
    765
    Likes Received:
    470
    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 Member

    Joined:
    Feb 20, 2016
    Messages:
    964
    Likes Received:
    909
    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,326
    Likes Received:
    668
  14. davehenrie

    davehenrie Registered

    Joined:
    Jul 6, 2016
    Messages:
    2,960
    Likes Received:
    1,691
    "Warning: Driving Too Slow"

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

    The Iron Wolf Member

    Joined:
    Feb 20, 2016
    Messages:
    964
    Likes Received:
    909
    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:
    765
    Likes Received:
    470
    Oh I think it catches a lot of us :p
     
  17. JimmyT

    JimmyT Registered

    Joined:
    Jan 16, 2012
    Messages:
    765
    Likes Received:
    470
    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 Member

    Joined:
    Feb 20, 2016
    Messages:
    964
    Likes Received:
    909
    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:
    370
    Likes Received:
    252
    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 Member

    Joined:
    Feb 20, 2016
    Messages:
    964
    Likes Received:
    909
    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