Build 982 Knockout Qualifying

Discussion in 'General Discussion' started by Lazza, Jul 1, 2015.

  1. MarcG

    MarcG Registered

    Joined:
    Oct 4, 2010
    Messages:
    6,854
    Likes Received:
    2,234
    Cool thanks Lazza, hopefully you or someone well look into it one day :)
     
  2. GCCRacer

    GCCRacer Banned

    Joined:
    Dec 12, 2012
    Messages:
    1,317
    Likes Received:
    2
    Hi all,

    Is there any documentation somewhere on how to set this up?

    I get the syntax, but is it enough to put it in the JSON file to activate? Do we need to do something in the rFM? What do I set in the Q parameters for the race session?
     
  3. Lazza

    Lazza Registered

    Joined:
    Oct 5, 2010
    Messages:
    12,382
    Likes Received:
    6,600
    The plugin should override any qual settings, so just set it up how you want and it should take care of it.
     
  4. GCCRacer

    GCCRacer Banned

    Joined:
    Dec 12, 2012
    Messages:
    1,317
    Likes Received:
    2
    Thanks Lazza!

    Would be nice if this could be in specific rFMs. So to get automatic different Q rules for different series...
     
  5. GCCRacer

    GCCRacer Banned

    Joined:
    Dec 12, 2012
    Messages:
    1,317
    Likes Received:
    2
    I might be a bit stupid, but it's not working for me... in fact the game keeps rewriting the file back to the original content.

    I put:

    Code:
     "KnockoutQualifying.dll":{
        " Enabled":1,
        "NumQualSessions":3,
        "Total1Session1Minutes":18,
        "Total1Session1Scored":22,
        "Total1Session2Minutes":15,
        "Total1Session2Scored":16,
        "Total1Session3Minutes":12,
        "Total1Session3Scored":10
      }
    But then I get my standard 30min/20lap Q session. I'm using exactly 22 cars (21 AI + myself).

    Anyone has an idea? Syntax error somewhere? Do I need to set something in game UI or RFM?
     
    Last edited by a moderator: Sep 18, 2015
  6. lagg

    lagg Registered

    Joined:
    Oct 1, 2012
    Messages:
    3,043
    Likes Received:
    1,958
    If you want 3 qualy sessions then you have to modify this parameters:
    Total1Session3Minutes:18
    Total1Session3Scored:22
    Total2Session3Minutes:15
    Total2Session3Scored:16
    Total3Session3Minutes:12
    Total3Session3Scored:10

    Enviado desde mi E2003 mediante Tapatalk
     
  7. redapg

    redapg Registered

    Joined:
    Jan 16, 2012
    Messages:
    4,008
    Likes Received:
    2,875
    I would say you have to use "Total3Session..." instead of "Total1Session..." in all lines.
     
  8. GCCRacer

    GCCRacer Banned

    Joined:
    Dec 12, 2012
    Messages:
    1,317
    Likes Received:
    2
    I tried all permutations... Total3, Total1, and Total1 to Total3 increasing...

    As you said in the Technical Thread


    This changes something, I then get Q1 to Q3, but in Q1 already only 8 cars on grid, the others locked out, and with 30min time (what is set in GUI, not in the file).

    Frankly, sometimes rFactor2 is like getting teeth pulled... I have no energy for this undocumented crap. Every test closing game, changing files, loading game, loading track...

    Since there are people who seem to have had it working in a F1 style setup, maybe they can tell me exactly what they did. But the implementation is crap anyway - because changing race/car series means editing two files manually by hand? This stuff should be in rFM, then you can change it by vMod...
     
  9. lagg

    lagg Registered

    Joined:
    Oct 1, 2012
    Messages:
    3,043
    Likes Received:
    1,958
    This is my CustomPluginVariable.json and works for me.
    We race two Qs.
    Q1
    • 15 minutes.
    • 30 pilots.
    Q2
    • 8 minutes.
    • 12 pilots
    I've changed the parameters in bold letters.
    This works in the build 998.
    Code:
    {
      "KnockoutQualifying.dll":{
        [B]"Enabled":1,
        "FixedNumberScored":1,
        "NumQualSessions":2,[/B]
        "TimedLapRequired":1,
        "Total1Session1Minutes":0,
        "Total1Session1Scored":43,
        [B]"Total2Session1Minutes":15,
        "Total2Session1Scored":30,
        "Total2Session2Minutes":8,
        "Total2Session2Scored":12,[/B]
        "Total3Session1Minutes":0,
        "Total3Session1Scored":43,
        "Total3Session2Minutes":0,
        "Total3Session2Scored":24,
        "Total3Session3Minutes":0,
        "Total3Session3Scored":12,
        "Total4Session1Minutes":0,
        "Total4Session1Scored":43,
        "Total4Session2Minutes":0,
        "Total4Session2Scored":36,
        "Total4Session3Minutes":0,
        "Total4Session3Scored":24,
        "Total4Session4Minutes":0,
        "Total4Session4Scored":12
      },
      "StockCarRules.dll":{
        " Enabled":0,
        "AdjustFrozenOrder":25,
        "Logging":0
      },
      "TrackIR_rF2_Plugin.dll":{
        " Enabled":1
      }
    }
     
  10. Lazza

    Lazza Registered

    Joined:
    Oct 5, 2010
    Messages:
    12,382
    Likes Received:
    6,600
    Having it in the customvariables JSON file means you can change it per race, without needing to fiddle with rfms. It should just be that file you need to change.

    When you set it up in a logical way (the one you pasted above makes no sense) paste it and your results here and I'm sure someone can help you, or confirm if something isn't right. If you don't have the energy don't worry about it.
     
  11. Lazza

    Lazza Registered

    Joined:
    Oct 5, 2010
    Messages:
    12,382
    Likes Received:
    6,600
    Just tried this offline, no changes to player.JSON or rfm or anything else, and it produced 3 qual sessions as expected.

    Code:
      "KnockoutQualifying.dll":{
        " Enabled":1,
        "FixedNumberScored":1,
        "NumQualSessions":3,
        "TimedLapRequired":1,
        "Total1Session1Minutes":0,
        "Total1Session1Scored":43,
        "Total2Session1Minutes":0,
        "Total2Session1Scored":43,
        "Total2Session2Minutes":0,
        "Total2Session2Scored":12,
        "Total3Session1Minutes":18,
        "Total3Session1Scored":22,
        "Total3Session2Minutes":15,
        "Total3Session2Scored":16,
        "Total3Session3Minutes":12,
        "Total3Session3Scored":10,
        "Total4Session1Minutes":0,
        "Total4Session1Scored":43,
        "Total4Session2Minutes":0,
        "Total4Session2Scored":36,
        "Total4Session3Minutes":0,
        "Total4Session3Scored":24,
        "Total4Session4Minutes":0,
        "Total4Session4Scored":12
      },
    
    Note that I've set NumQualSessions to 3, and adjusted the "Total3..." settings to suit. It ignores all the Total1, Total2, and Total4 settings because I've told it to do 3 sessions. It overrides whatever number of sessions you have set elsewhere, so you only need to edit this file.
     
  12. redapg

    redapg Registered

    Joined:
    Jan 16, 2012
    Messages:
    4,008
    Likes Received:
    2,875
    Unfortunately a sad truth in rFactor, since it was released a lot of years ago: Almost NO Documentation
     
  13. MarcG

    MarcG Registered

    Joined:
    Oct 4, 2010
    Messages:
    6,854
    Likes Received:
    2,234
    I wouldn't go that far, more like "Very little Documentation", there's a few tutorials in PDF here for example:
    http://rfactor.net/web/rf2/devscorner/

    It's always been the the way of rFactor series - trial by error, some can handle that and work with it, others can't!
     
  14. redapg

    redapg Registered

    Joined:
    Jan 16, 2012
    Messages:
    4,008
    Likes Received:
    2,875
    Almost NO ~= Very little ;)

    What can be so difficult to add just a few sentences to a new feature, that exactly explain how to use it?

    You can not expect that a "normal" video-game user, e.g. in this Knockout-rule case, starts to fiddle around with editing files without having any information about how to edit it.
     
  15. MarcG

    MarcG Registered

    Joined:
    Oct 4, 2010
    Messages:
    6,854
    Likes Received:
    2,234
    I've been there before with ISI many years ago about it, I came to realise that they do it their way and no amount of moaning about their approach will change things unfortunately. Personally I'd love it if they explained some of the Changelog additions instead of the one liners we get with no information on how to make things work, but alas I've learned to accept the way they are and just get on with it myself (Trial & Error).
    But I can totally understand how frustrating it is from an end users point of view at times when the answer could be so simple and clear.

    Edit: sometimes a Changelog has a one liner that makes sense of course, that does happen!
     
  16. redapg

    redapg Registered

    Joined:
    Jan 16, 2012
    Messages:
    4,008
    Likes Received:
    2,875
    I'm also one of the people who started with rFactor in 2005 and don't know how many hours i spent with the "popular" trial and error method.
    But what i know is, that with a better documentation, i could have spend ~95% of that time with racing. :)
     
  17. Lazza

    Lazza Registered

    Joined:
    Oct 5, 2010
    Messages:
    12,382
    Likes Received:
    6,600
    I can't disagree, but I think it's also important to keep things in context. The changes I've made above were logical changes, when I first opened up and saw those settings I was confused for a minute until I thought about it and realised what it meant. Having understood it (or thinking I did), I changed those settings and bingo - it works. A lot of stuff isn't that hard, and comments would avoid having to work it out, yes, but if you aren't willing to put something in...
     
  18. MarcG

    MarcG Registered

    Joined:
    Oct 4, 2010
    Messages:
    6,854
    Likes Received:
    2,234
    yeah I was referring to more general things not specifically this Qualifying item, as I said some things are plain and simple but others not so much, but totally agree you need to have the patience to put the time in and figure stuff out.....that's just the way it is :)
     
  19. Lazza

    Lazza Registered

    Joined:
    Oct 5, 2010
    Messages:
    12,382
    Likes Received:
    6,600
    Understood :)

    No doubt there are things that could be explained better, more promptly, and it would actually help sell the modding platform as well.
     
  20. MarcG

    MarcG Registered

    Joined:
    Oct 4, 2010
    Messages:
    6,854
    Likes Received:
    2,234
    Anyway back to subject, having got Man Flu (therefore unable to concentrate on The Mountain!) I've decided to look at a possible Top Ten Shoot Out myself, but immediately see an issue:

    "KnockoutQualifying.dll":{
    " Enabled":0,
    "FixedNumberScored":0,
    "NumQualSessions":0,
    "TimedLapRequired":1,

    I'd need the bottom part for the Second Session of "Qualifying" (The shoot out) but not for the first Session, I'll have a play and report back.
     

Share This Page