SOLVED Fuel capacity

Discussion in 'Hosting Help' started by DanRZ, May 8, 2023.

  1. DanRZ

    DanRZ Registered

    Joined:
    Aug 22, 2021
    Messages:
    724
    Likes Received:
    222
    Hello, i managed to use fixed setups on my dedidacted server.
    I tried to control fuel, and i can only set "starting fuel" locked by setup and with FreeSettings value.
    But drivers can still refuel in pits with higher values.

    Is there a way to set the maximum capacity of the reservoir at refuel ?

    The only way i found to almost do it is to increase fuel consumption factor
    but that is not very simple to "adapt".

    Example :
    90 L for 40 laps, with a factor 2 i get 90 L for 20 laps.
    And then i can make sure everybody will have to refuel once on 30 laps race.

    I would have prefered to block fuel capacity at 45 L ... lowering the delay in pits.

    Any suggestions ?
     
  2. Lazza

    Lazza Registered

    Joined:
    Oct 5, 2010
    Messages:
    12,389
    Likes Received:
    6,602
    You need to make a vehicle upgrade that changes the fuel settings in the HDV. The rfm can't do that.
     
    Matt21 and DanRZ like this.
  3. DanRZ

    DanRZ Registered

    Joined:
    Aug 22, 2021
    Messages:
    724
    Likes Received:
    222
    Thanks ... I was hoping for a simplier way ...
    I can make an Upgrade ini file ? Where do i find the values to set ?
    Any example somewhere ?
     
  4. Lazza

    Lazza Registered

    Joined:
    Oct 5, 2010
    Messages:
    12,389
    Likes Received:
    6,602
    DanRZ likes this.
  5. DanRZ

    DanRZ Registered

    Joined:
    Aug 22, 2021
    Messages:
    724
    Likes Received:
    222
    Found it on redapg tools too : http://meetme.bplaced.net/rF2_onlineTools/rF2GGeninfo/special_generator.php

    40 L, begining at 10 and with 1 L steps ... if i did it well ...

    HDV=
    HDV=[GENERAL]
    HDV=FuelRange=(0, 0, 31)
    HDV=FuelSpecial=(0,10," L",10)
    HDV=FuelSpecial=(1,11," L",11)
    HDV=FuelSpecial=(2,12," L",12)
    HDV=FuelSpecial=(3,13," L",13)
    HDV=FuelSpecial=(4,14," L",14)
    HDV=FuelSpecial=(5,15," L",15)
    HDV=FuelSpecial=(6,16," L",16)
    HDV=FuelSpecial=(7,17," L",17)
    HDV=FuelSpecial=(8,18," L",18)
    HDV=FuelSpecial=(9,19," L",19)
    HDV=FuelSpecial=(10,20," L",20)
    HDV=FuelSpecial=(11,21," L",21)
    HDV=FuelSpecial=(12,22," L",22)
    HDV=FuelSpecial=(13,23," L",23)
    HDV=FuelSpecial=(14,24," L",24)
    HDV=FuelSpecial=(15,25," L",25)
    HDV=FuelSpecial=(16,26," L",26)
    HDV=FuelSpecial=(17,27," L",27)
    HDV=FuelSpecial=(18,28," L",28)
    HDV=FuelSpecial=(19,29," L",29)
    HDV=FuelSpecial=(20,30," L",30)
    HDV=FuelSpecial=(21,31," L",31)
    HDV=FuelSpecial=(22,32," L",32)
    HDV=FuelSpecial=(23,33," L",33)
    HDV=FuelSpecial=(24,34," L",34)
    HDV=FuelSpecial=(25,35," L",35)
    HDV=FuelSpecial=(26,36," L",36)
    HDV=FuelSpecial=(27,37," L",37)
    HDV=FuelSpecial=(28,38," L",38)
    HDV=FuelSpecial=(29,39," L",39)
    HDV=FuelSpecial=(30,40," L",40)
    HDV=FuelSetting=30
     
  6. Lazza

    Lazza Registered

    Joined:
    Oct 5, 2010
    Messages:
    12,389
    Likes Received:
    6,602
    Yeah, that'll work. The Special entries are probably overkill in that case but that's fine, it'll do the job.
     
    DanRZ likes this.
  7. DanRZ

    DanRZ Registered

    Joined:
    Aug 22, 2021
    Messages:
    724
    Likes Received:
    222
    I can remove the FuelSpecial lines ?
     
  8. redapg

    redapg Registered

    Joined:
    Jan 16, 2012
    Messages:
    4,008
    Likes Received:
    2,876
    Yes.
    And if you want to prevent refueling, you should also use these Entries
    HDV=
    HDV=[GENERAL]
    HDV=NumPitstopsRange=(0, 1, 0)
    HDV=NumPitstopsSetting=0

    that normally should work.
     
    DanRZ likes this.
  9. DanRZ

    DanRZ Registered

    Joined:
    Aug 22, 2021
    Messages:
    724
    Likes Received:
    222
    Thanks. It looks like i need to keep specials to start at something like 10L and not zero.
     
  10. DanRZ

    DanRZ Registered

    Joined:
    Aug 22, 2021
    Messages:
    724
    Likes Received:
    222
    And do i need the empty line : HDV=

    Here is the final file with two fuel capacities at the end :
     

    Attached Files:

    Last edited: May 9, 2023
  11. Lazza

    Lazza Registered

    Joined:
    Oct 5, 2010
    Messages:
    12,389
    Likes Received:
    6,602
    HDV=FuelRange=(10, 1, 31)

    Will do it.

    *

    HDV= at the start/end isn't bad practice. You need that line whenever you change between sections in the HDV, so you don't need it all if that's all you're doing but if you forget it when also trying to change something in [PITMENU], for example, it won't work.
     
  12. redapg

    redapg Registered

    Joined:
    Jan 16, 2012
    Messages:
    4,008
    Likes Received:
    2,876
    As @Lazza has said already, some Update Overwrites don't work without the empty HDV= Line.
    Also the Engine is one of them.
    At least that was how it works in the Past and i doubt, that it was changed until now. ;)
     
    DanRZ likes this.
  13. DanRZ

    DanRZ Registered

    Joined:
    Aug 22, 2021
    Messages:
    724
    Likes Received:
    222
    How can i get the full list of HDV parameters ... I can't find the ones in [PITMENU].

    I only found this one :

    [PITMENU]
    SingleTireTime=7 // Time it takes to change a single tire during pitstop - must add this value otherwise previous tire change timings are bugged.
     
  14. redapg

    redapg Registered

    Joined:
    Jan 16, 2012
    Messages:
    4,008
    Likes Received:
    2,876
    The DevMode Skip Barber is the first Choice.
     
  15. DanRZ

    DanRZ Registered

    Joined:
    Aug 22, 2021
    Messages:
    724
    Likes Received:
    222
    What do you mean by that ?
    Launch rF2 in DevMode and open something ?
     
  16. redapg

    redapg Registered

    Joined:
    Jan 16, 2012
    Messages:
    4,008
    Likes Received:
    2,876
    What do you mean? :)
    I mean, that, if you open the HDV File from the DevMode Skip Barber,
    Folder: ..\rFactor 2\ModDev\Vehicles\SkipBarber
    you can see all (high probably) possible Entries in the [PITMENU] Section, that are displayed in the Game Menu too.

    Or what do you mean with "the full list of HDV parameters"?
     
    DanRZ likes this.
  17. DanRZ

    DanRZ Registered

    Joined:
    Aug 22, 2021
    Messages:
    724
    Likes Received:
    222
    I never used ModDev and i'm actually only having a dedicated server.
    I will check the files you mentionned when getting back to my gaming PC.

    I mean to get all the possibilities to use in upgrade files, so all usable sections and parameters.
     
  18. redapg

    redapg Registered

    Joined:
    Jan 16, 2012
    Messages:
    4,008
    Likes Received:
    2,876
    In Case that you want a List of ALL possible HDV Settings, the Skip Barber will not have them, especially some new Ones, like Push to Pass are missing.
    And you, of course, can use every HDV Entry in an Upgrade.ini.
    Additionally, you can also use Cockpitinfo.ini Entries (with cpit=...) and, if you use the SFX Sound File, all Entries from that (with sfx=...) in Upgrade.ini Files too.
     
    DanRZ likes this.
  19. DanRZ

    DanRZ Registered

    Joined:
    Aug 22, 2021
    Messages:
    724
    Likes Received:
    222
    So, I just need to find a reference car to list the parameters and use them in another car.

    Thanks ;)
     
  20. Lazza

    Lazza Registered

    Joined:
    Oct 5, 2010
    Messages:
    12,389
    Likes Received:
    6,602
    The skip barber is the reference car.
     
    DanRZ likes this.

Share This Page