Frozen Field not working?

Discussion in 'Technical & Support' started by KingKenny04, Jan 17, 2016.

  1. Lazza

    Lazza Registered

    Joined:
    Oct 5, 2010
    Messages:
    12,346
    Likes Received:
    6,572
    Since the source code has now been released...

    Current CustomPluginVariables.JSON code (obviously you have to set Enabled to :1 for this to work):

    "StockCarRules.dll":{
    " Enabled":0,
    "AdjustFrozenOrder":25,
    "AdjustUntilYellowFlagState":4,
    "AllowFrozenAdjustments":1,
    "Logging":0,
    "LuckyDogFreePass":1
    },


    You have a threshold for bringing out the safety car; when this threshold is reached (someone spins etc) the game initiates a safety car period. The order is frozen, but if AllowFrozenAdjustments = 1 then the game will adjust the order if cars pass a car that is continuing to 'cause a yellow' (is very slow, spun, etc) - checked by comparing that car's 'yellow state' to an adjustment threshold.

    That adjustment threshold = the original safety car threshold x AdjustFrozenOrder (as a percentage). The default AdjustFrozenOrder of 25 means the adjustment threshold is 25% of the safety car threshold; if it takes a total yellow state of 3.0 to throw a yellow, a car with a current value exceeding (3.0 * 25% = 0.75) will be moved down the order as cars pass it. Lower values therefore make it more likely a slow/spun car will be moved down the order, while higher values will more likely let it recover and move to its original place in the order.

    This adjustment only happens while the current yellow flag state is less than AdjustUntilYellowFlagState. The default of 4 is "Pits Open", so once the pits are open to everyone the order will no longer be adjusted.

    Yellow flag states:

    // 0 None
    // 1 Pending
    // 2 Pits closed
    // 3 Pit lead lap
    // 4 Pits open
    // 5 Last lap
    // 6 Resume

    One more thing from the code: in yellow flag states below 2 there is a further 75% reduction in the frozen order adjustment threshold; in states below 3 there is a 25% reduction. From states 3 up the threshold is as described above.

    If having issues or wanting to report bugs, it would perhaps be helpful to set Logging to :1 and see what it's actually doing (log will be created in UserData\Log). If you can pinpoint where the game/code is doing the wrong thing it would help ISI a lot in fixing it.


    *But, also keep Chris' comments in here in mind; this stuff is being worked on:

    http://isiforums.net/f/showthread.php/29257-Files-missing-deleted-failed-verification
     

Share This Page