AI fuel stop in dedicated server setup ?

Discussion in 'General Discussion' started by ceecee, Oct 28, 2015.

  1. ceecee

    ceecee Registered

    Joined:
    Jan 10, 2012
    Messages:
    691
    Likes Received:
    286
    Hi redapg,
    Thanks for the data, did not manage to get to the game, still working here :-(
    Will find a gap this week to test and report what I find , hope to have it working for our Friday race night.
    We are still on rF1 but the F1 season ends this weekend and then I want to be ready to make the change to rF2.
     
  2. RoboCAT10

    RoboCAT10 Registered

    Joined:
    Oct 18, 2014
    Messages:
    639
    Likes Received:
    114
    It's interesting because I want the opposite of what you want ; which is for the AI to experience tyre wear but only stop when they need to refuel. Perhaps we can help each other out here if we find a solution, :)
     
  3. ceecee

    ceecee Registered

    Joined:
    Jan 10, 2012
    Messages:
    691
    Likes Received:
    286
    Hi RoboCAT10 and redapg
    I tried :

    FuelRange=(135, 1.0, 1.0)
    FuelSetting=135
    NumPitstopsRange=(0, 1, 4)
    NumPitstopsSetting=1
    Pitstop1Range=(135, 1.0, 1.0)
    Pitstop1Setting=135
    Pitstop2Range=(135, 1.0, 1.0)
    Pitstop2Setting=135
    Pitstop3Range=(135, 1.0, 1.0)
    Pitstop3Setting=135

    and then :

    FuelRange=(135, 1.0, 1.0)
    FuelSetting=135
    NumPitstopsRange=(0, 1, 4)
    NumPitstopsSetting=1
    Pitstop1Range=(0.0, 1.0, 1.0)
    Pitstop1Setting=0
    Pitstop2Range=(0.0, 1.0, 1.0)
    Pitstop2Setting=0
    Pitstop3Range=(0.0, 1.0, 1.0)
    Pitstop3Setting=0

    but no go, the AI still started the race with around 55% fuel and changed tyres and refueled around lap 10 and 11.
    I read somewhere (but cannot find it back) of making a setup and having to push it to each individual AI before starting the race.
    I will try to find it back and post.
    Yeah RoboCAT10, working together on this is definitely a good idea.
    I remember how long it took me to get rF1 AI to pit 2 times and then could not get it back to one stop afterwards :)
    Winter I want to try set up a DEDI server with the expected new APEX GT3 and try run a 6 hour race in 45 mins with multiple pitstops !
    But this problem to be solved first.
     
    Last edited by a moderator: Nov 24, 2015
  4. redapg

    redapg Registered

    Joined:
    Jan 16, 2012
    Messages:
    3,958
    Likes Received:
    2,808
    You didn't try NumPitstopsSetting=0?

    BTW, in which way do you edit the Mod?

    Is it an existing one, where the original Mod and your modification are installed together in the same game- installation?
    Did you rename files, to avoid e.g. to have 2 HDV files with the same name but different content?
    Do you test in DevMode or do you package a rfcmp and test in game/on server?
    ....
    There can be a lot of possibilities why your changes seem to have no affect.
    But hard to find out from here, without having all your files.

    EDIT to use the "Fixed Setups" Option on the Dedicated Server, the Setup must be present in the correct ..\UserData\player\Settings\[Trackname] folder and also noticed in the FavoriteAndFixedSetups.gal file. If you check "Fixed Setups" in the Server-Console then, it should be used by all, also the AI.

    And as long as you define the NumPitstopsSetting= entry with a value higher than 0, the AI will do a Pitstop anyway, even if they have enough startingfuel loaded, because you tell them to do it, if you use 1 or 2....
     
    Last edited by a moderator: Nov 25, 2015
  5. ceecee

    ceecee Registered

    Joined:
    Jan 10, 2012
    Messages:
    691
    Likes Received:
    286
    Hi redapg,

    I did not try NumPitstopsSetting=0 because I thought that they would not pit at all, for tyres that is.
    The Mod I am using is F1 2015_Rf2_public-v2.2.rfcmp from HJK_Modding.
    I cannot unMAS the mod so have been editing the MAS file in the Installeer/Vehicles folder of rF2.
    Then I repackage the Mod and put it on the server, copying the Installeer/Vehicles MAS to the clients along with the rFMod file.
    Seriously, I have worked this out myself because info on rFactor2 is very very difficult to find.
    I have no idea how to use DevMode or what it does exactly due to lack of info.
    But your info about Fixed Setups is very interesting and will try it tomorrow.
    Regards,
    Jerry
     
  6. redapg

    redapg Registered

    Joined:
    Jan 16, 2012
    Messages:
    3,958
    Likes Received:
    2,808
    One problem can be that, if you or someone else has the original mod installed and also your edited one and you didn't make some needed changes to avoid problems with that configuration, you can get no changes in the AI behaviour although you have changed things in the HDV file of your edited mod.
    As mentioned before it starts with the fact that you have eventually 2 files with same file and different content (if you didn't change file names).
    Or if the "Classes" entries from your edited version are still the same as the original cars have.
    In that case it can happen that all cars, original and your ones are together in the Opponents list, because they use the same filter (Class). Then it can happen (if you e.g. did change the HDV file name from your version and the "link" to it in your veh files) that some of the selected opponent cars use your and other others use the original physics.
    Or if you use the same team names and Descriptions in your veh files....
    Or..

    And because of the NumPitstopsSetting=0, as said before, as long as you use 1 or 2 or 3, the AI will stop (and i fear also refuel) in any case, don't matters what you have set for the Pitstops 1-3.
    Because of that, i've said before that you would have to test if they stop for tires without filling fuel, if it's set to 0.

    And the DevMode is meant to try things out, set things up,....it gives you the possibility to change things quickly, without to have to package and install it, after you've made a change.
    In DevMode you have the same file/folder-structure as rF1 had.
     
  7. ceecee

    ceecee Registered

    Joined:
    Jan 10, 2012
    Messages:
    691
    Likes Received:
    286
    Thanks redapg,
    Will try this out Sunday.
    But I do not seem to find (not even Google) this box/button ?

    use the "Fixed Setups" Option on the Dedicated Server

    so I cannot enable the fixed setup.
    I have saved a setup file to the server so should be ready.
     
  8. redapg

    redapg Registered

    Joined:
    Jan 16, 2012
    Messages:
    3,958
    Likes Received:
    2,808
    I use the Formula Renault 3.5 on Silverstone GP as an example.
    If you are in Single player and did create a setup that you want to use as "fixed setup" later, save it and click on the button "ASSIGN".
    The Setup should show up as "Default:" now, as shown on the Screenshot.
    This is necessary to create the needed entry in the FavoriteAndFixedSetups.gal file, which looks like this then:
    AutoLoadEntry
    {
    Track="SilverstoneGPLayout"
    Classes="FR3.5_2014"
    Session=10 // not currently used
    File="H:\rFactor2\UserData\player\Settings\Silverstonegplayout\F35_for_fixed_setups.svm"
    }

    This entry causes that the FR3.5_2014 uses the Setup file F35_for_fixed_setups.svm as fixed Setup, if you check the Box "Fixed Setups" in the Dedicated Server UI:

    If you use the rF2 Installation where you did these steps for the Dedicated Server, you just have to create your vmod with the F3.5 on Silverstone GP, start the Dedicated Server Creation, check "Fixed Setups", make your settings and that it.
    The F3.5 will use your F35_for_fixed_setups.svm setup on Silverstone GP.

    If you use another rF2 Installation, copy the FavoriteAndFixedSetups.gal and F35_for_fixed_setups.svm file and paste it into the according folders of the profile that the Dedicated Server uses.
    The procedure is always the same, and if you e.g. want to use a few more tracks, just create a setup for each track, assign it, and so on...
    And also if you want to use different cars.....

    But it's always necessary to have the Setups files in the correct trackfolders and a FavoriteAndFixedSetups.gal with the matching entries, indside of the profile-folder that the Dedicated Server uses, to make the fixed Setups work.

    I hope i didn't forget a thing and this will help you a little bit.

    [​IMG]
     
  9. ceecee

    ceecee Registered

    Joined:
    Jan 10, 2012
    Messages:
    691
    Likes Received:
    286
    Hi redapg,
    Thanks for taking the time to make this reply.
    I did not think of going to Single Player first, I will check this later today after the GP.
    I made the setup in my client and copied this to the server in \player\Settings\YasMarina
    However in making the vMod with MAS2, I do not find a Box "Fixed Setups" in the Dedicated Server UI box in the Dedi Server console.
    In your screenshot I do see a AI Setupbutton though.
    Also I knew nothing of the needed entry in the FavoriteAndFixedSetups.gal file.
    Starting to feel like a bit of a noob now !
    Regards,
     
  10. redapg

    redapg Registered

    Joined:
    Jan 16, 2012
    Messages:
    3,958
    Likes Received:
    2,808
    I've added 2 Links in my Signature: How To Use fixed Setups --- Use fixed Upgrades, maybe that helps you.
     
  11. ceecee

    ceecee Registered

    Joined:
    Jan 10, 2012
    Messages:
    691
    Likes Received:
    286
    Thanks for the links redapg,

    I will try this out this week when I have a gap.
    I have now found the Fixed setups box.
    Regards !
     
  12. RoboCAT10

    RoboCAT10 Registered

    Joined:
    Oct 18, 2014
    Messages:
    639
    Likes Received:
    114

    Hey mate, just wondering if you have had time to test this and did it work out?
     
  13. ceecee

    ceecee Registered

    Joined:
    Jan 10, 2012
    Messages:
    691
    Likes Received:
    286
    Hi redapg,

    No time yet, all these constant Windows 10 Updates are keeping me busy with my clients.
    Will have to try Thursday night in order to have it up for Friday nights racing.
    Will get back to you on this !
     
  14. redapg

    redapg Registered

    Joined:
    Jan 16, 2012
    Messages:
    3,958
    Likes Received:
    2,808

    The last Post before this one was from RoboCAT10 not from me. ;)
     
  15. ceecee

    ceecee Registered

    Joined:
    Jan 10, 2012
    Messages:
    691
    Likes Received:
    286
    Sorry redapg,
    Time for more sleep I think :)
     
  16. Philip00

    Philip00 Member

    Joined:
    Jan 19, 2012
    Messages:
    116
    Likes Received:
    48
    Hey Guys,

    I am also struglling to prevent AI to refuel in a race. I tried with diffrent HDV setup
    1.
    FuelRange=(1.0, 1.0, 150)
    FuelSetting=64
    NumPitstopsRange=(0, 1, 4)
    NumPitstopsSetting=3
    Pitstop1Range=(1.0, 1.0, 150)
    Pitstop1Setting=0
    Pitstop2Range=(1.0, 1.0, 150)
    Pitstop2Setting=0
    Pitstop3Range=(1.0, 1.0, 150)
    Pitstop3Setting=0
    2.
    FuelRange=(1.0, 1.0, 150)
    FuelSetting=64
    NumPitstopsRange=(0, 1, 4)
    NumPitstopsSetting=0
    Pitstop1Range=(1.0, 1.0, 150)
    Pitstop1Setting=0
    Pitstop2Range=(1.0, 1.0, 150)
    Pitstop2Setting=0
    Pitstop3Range=(1.0, 1.0, 150)
    Pitstop3Setting=0

    In both case the AI while changing the tires refuel as well.

    Can somebody help me how to prevent the AI from refuelling?

    Thanks in advance,

    Philip
     
  17. redapg

    redapg Registered

    Joined:
    Jan 16, 2012
    Messages:
    3,958
    Likes Received:
    2,808
    It's just something that you can try, i haven't tested it and maybe there is something hardcoded, that makes it impossible to prevent the AI refueling.
    What happens if you use this HDV Entry:
    FuelRange=(1.0, 1.0, 150)
    FuelSetting=64
    NumPitstopsRange=(0, 0, 0)
    NumPitstopsSetting=0


    without the Pitstop 1-2-3 Entries
     
  18. Philip00

    Philip00 Member

    Joined:
    Jan 19, 2012
    Messages:
    116
    Likes Received:
    48
    Tried that and I even tried this
    FuelRange=(1.0, 1.0, 195)
    FuelSetting=64
    NumPitstopsRange=(0, 0, 0)
    NumPitstopsSetting=0
    Pitstop1Range=(1.0, 1.0, 0)
    Pitstop1Setting=0
    Pitstop2Range=(1.0, 1.0, 0)
    Pitstop2Setting=0
    Pitstop3Range=(1.0, 1.0, 0)
    Pitstop3Setting=0

    But still according the RF2Analyzer they refuelled.

    Do you have any other idea?
     
  19. Philip00

    Philip00 Member

    Joined:
    Jan 19, 2012
    Messages:
    116
    Likes Received:
    48
    I have a solution:

    FuelRange=(1.0, 1.0, 195)
    FuelSetting=64
    NumPitstopsRange=(0, 0, 0)
    NumPitstopsSetting=0
    Pitstop1Range=(0, 0, 0)
    Pitstop1Setting=0
    Pitstop2Range=(0, 0, 0)
    Pitstop2Setting=0
    Pitstop3Range=(0, 0, 0)
    Pitstop3Setting=0

    and also change the following in pit menu:

    Fuel = 0

    With this the AI wont refuel but goes for tire change
     
    redapg likes this.

Share This Page