Setting SC speed from plugin is not working

Discussion in 'Plugins' started by rigodon, Mar 3, 2021.

  1. rigodon

    rigodon Registered

    Joined:
    Dec 26, 2012
    Messages:
    218
    Likes Received:
    15
    Hi everybody, I'm trying to dynamically alter the SC speed once it's on track. I'm running this line:

    info.mSafetyCarSpeed=10;

    I know the parameter is expressed in m/s (that's roughly 36 Km/h). I also noticed you have to change it in every call to AccessTrackRules(), otherwise it's reset to RFM value. I'm displaying the value in the variable for debugging purposes, and it shows it's properly set, but SC keeps running at whatever speed has been set on RFM file.

    Has anybody tried this? Can you please help me?
     
    Last edited: Mar 3, 2021
  2. Gadget11

    Gadget11 Registered

    Joined:
    Jun 17, 2016
    Messages:
    82
    Likes Received:
    14
    sometimes windows takes a copy of an ini file and uses the copy instead

    search you hard drive for info.mSafetyCarSpeed=10;

    see if there is another local copy - I had this problem trying to reverse a FFB direction
     
  3. Lazza

    Lazza Registered

    Joined:
    Oct 5, 2010
    Messages:
    12,346
    Likes Received:
    6,572
    Gadget11 likes this.
  4. rigodon

    rigodon Registered

    Joined:
    Dec 26, 2012
    Messages:
    218
    Likes Received:
    15
    Thanks for help, I guess this is one of those bugs it's been around since rfactor days.
     
  5. Lazza

    Lazza Registered

    Joined:
    Oct 5, 2010
    Messages:
    12,346
    Likes Received:
    6,572
    I'm not sure if you're being facetious, but rFactor didn't offer any race-time ('rules') support for plugins. rFactor2, as in many areas, is about 80% of the way there but doesn't quite finish the job.
     
  6. rigodon

    rigodon Registered

    Joined:
    Dec 26, 2012
    Messages:
    218
    Likes Received:
    15
    Yes, I was joking, it was a way to say this game has bugs that have been there for years, and yes, that feeling of unfinished product is always there.
     

Share This Page