I modded the fuel usage app that you can get over here:
http://www.assettocorsa.net/forum/in...el-usage.3910/
V1.27 Demo Video (updates since V1.19)
V1.19 Demo Video
The primary reason for the mod was to support fuel loads greater than 99 liters, but then I added some INI options to add new features, like comparing last laps fuel usage to the average, setting the background opacity, etc. The V1.19 is an attempt to adjust the app even more to be relevant for endurance racing. It can now calculate fuel to add on your next pit-stop as well as show your last laps fuel consumption compared to the average fuel consumption.
Also, the app should never suggest more fuel than you would need to complete the race (plus the specified overage).
From the INI:
;Set Values to 1 to turn them on, 0 to turn them off, unless otherwise specified.
;background toggles showing background.
;backgroundOpacity is a float, but only 1 digit of precision (0.1, 0.2, etc). 0.0 to 1.0 are valid.
;HideIcon hides AC icon.
;backgroundBorder toggles the app border being on or off.
;showBlinking toggles blinking at the start of a lap.
;acceptableOverage is the amount of extra liters used on the last lap deemed "acceptable" (blinks yellow). Default value is 0.05, but anything like 0.01, 0.1, or 0.2 should be fine.
;gui_scaling scales the size of the whole app by whatever floating point number you specify. 1.0 is the default.
;lapsOverage is the amount of extra laps to automatically add to the caculation of how much fuel to add. 1.0 is the default. Any float greater than 0.0 is acceptable.
;lastLapsFuelDelay is the amount of time in milliseconds to "blink" the last laps fuel consumption and laps remaining at that fuel rate. 5000 is the default.
;showBlueFlag enables/disables showing blue flag info on the mini window background. Default is 1 to show Blue Flags, set to 0 to disable
;blueFlagMin is the gap, in seconds, when the blue flag is at the full brightness. default is 0.25.
;blueFlagMax is the gap, in seconds, when the blue flag just starts to become visible. must be larger than blueFlagMin. default is 2.0.
;miniShowsLaptime enables/disables showing laptime info in the mini window. Default is 0, set to 1 to enable
;if a car is driving slower than yellowSpeedTrigger (KMH) they are always considered an imminent threat. default is 20.0.
;if a car is closer than yellowDistanceMax ahead (meters) they may be considered a threat. must be larger than yellowDistanceMin. default is 400.0.
;any car closer than yellowDistanceMin may be at the maximum threat level. default is 50.0.
;yellowMult * your average speed at every Position on Track sets the minimum acceptable speed. any car ahead driving slower then AVG_SPEED * yellowMult starts to become a threat. default is 0.7
;setupTipsWidth is the width of the setup tips window. Default is 570
;setupTipsHeight is the height of the setup tips window. Default is 690
[SETTINGS]
background = 1
backgroundopacity = 0.0
hideicon = 1
backgroundborder = 0
showblinking = 1
acceptableoverage = 0.05
gui_scaling = 1.00
lapstocalculate = 13
lapsoverage = 1.00
lastlapsfueldelay = 5000
blueflagmin = 0.25
blueflagmax = 2.00
showblueflag = 1
minishowslaptime = 1
yellowspeedtrigger = 20.0
yellowdistancemax = 400.0
yellowdistancemin = 50.0
yellowmult = 0.7
setuptipswidth = 570
setuptipsheight = 690
V1.17 forces two decimal places on some of the labels and writes to the screen every tenth of a second.
V1.18 removes the app title and adds a gui_scaling option to the INI
V1.19 added ability to calculate liters to add at the next pitstop. streamlined some feature and removed others to reduce complexity.
V1.20 bug fixes
V1.21 added "Fuel Usage Mini", which only shows data when you're in the pits, for several seconds after crossing start/finish, or when there are less than 2.25 laps of fuel remaining. Below is the "Mini" display shown above the full app.
V1.22 uniquely named sim_info library
V1.23 added estimated time remaining window
V1.24 added blue flag info to the mini window, and a "setup tips" windows, which is especially useful in VR.
V1.25 added blue flag INI options
V1.26 VR framerate improvements
V1.27 yellow flag logic
V1.28 setup tips window width and height in the INI
V1.29 includes some missing icons
If you have any questions or ideas for improvements please let me know.
If you've found this content informative and/or helpful please consider donating, which helps to ensure more quality content like this in the future: https://paypal.me/Esotic/5
http://www.assettocorsa.net/forum/in...el-usage.3910/
V1.27 Demo Video (updates since V1.19)
V1.19 Demo Video
The primary reason for the mod was to support fuel loads greater than 99 liters, but then I added some INI options to add new features, like comparing last laps fuel usage to the average, setting the background opacity, etc. The V1.19 is an attempt to adjust the app even more to be relevant for endurance racing. It can now calculate fuel to add on your next pit-stop as well as show your last laps fuel consumption compared to the average fuel consumption.
Also, the app should never suggest more fuel than you would need to complete the race (plus the specified overage).
From the INI:
;Set Values to 1 to turn them on, 0 to turn them off, unless otherwise specified.
;background toggles showing background.
;backgroundOpacity is a float, but only 1 digit of precision (0.1, 0.2, etc). 0.0 to 1.0 are valid.
;HideIcon hides AC icon.
;backgroundBorder toggles the app border being on or off.
;showBlinking toggles blinking at the start of a lap.
;acceptableOverage is the amount of extra liters used on the last lap deemed "acceptable" (blinks yellow). Default value is 0.05, but anything like 0.01, 0.1, or 0.2 should be fine.
;gui_scaling scales the size of the whole app by whatever floating point number you specify. 1.0 is the default.
;lapsOverage is the amount of extra laps to automatically add to the caculation of how much fuel to add. 1.0 is the default. Any float greater than 0.0 is acceptable.
;lastLapsFuelDelay is the amount of time in milliseconds to "blink" the last laps fuel consumption and laps remaining at that fuel rate. 5000 is the default.
;showBlueFlag enables/disables showing blue flag info on the mini window background. Default is 1 to show Blue Flags, set to 0 to disable
;blueFlagMin is the gap, in seconds, when the blue flag is at the full brightness. default is 0.25.
;blueFlagMax is the gap, in seconds, when the blue flag just starts to become visible. must be larger than blueFlagMin. default is 2.0.
;miniShowsLaptime enables/disables showing laptime info in the mini window. Default is 0, set to 1 to enable
;if a car is driving slower than yellowSpeedTrigger (KMH) they are always considered an imminent threat. default is 20.0.
;if a car is closer than yellowDistanceMax ahead (meters) they may be considered a threat. must be larger than yellowDistanceMin. default is 400.0.
;any car closer than yellowDistanceMin may be at the maximum threat level. default is 50.0.
;yellowMult * your average speed at every Position on Track sets the minimum acceptable speed. any car ahead driving slower then AVG_SPEED * yellowMult starts to become a threat. default is 0.7
;setupTipsWidth is the width of the setup tips window. Default is 570
;setupTipsHeight is the height of the setup tips window. Default is 690
[SETTINGS]
background = 1
backgroundopacity = 0.0
hideicon = 1
backgroundborder = 0
showblinking = 1
acceptableoverage = 0.05
gui_scaling = 1.00
lapstocalculate = 13
lapsoverage = 1.00
lastlapsfueldelay = 5000
blueflagmin = 0.25
blueflagmax = 2.00
showblueflag = 1
minishowslaptime = 1
yellowspeedtrigger = 20.0
yellowdistancemax = 400.0
yellowdistancemin = 50.0
yellowmult = 0.7
setuptipswidth = 570
setuptipsheight = 690
V1.17 forces two decimal places on some of the labels and writes to the screen every tenth of a second.
V1.18 removes the app title and adds a gui_scaling option to the INI
V1.19 added ability to calculate liters to add at the next pitstop. streamlined some feature and removed others to reduce complexity.
V1.20 bug fixes
V1.21 added "Fuel Usage Mini", which only shows data when you're in the pits, for several seconds after crossing start/finish, or when there are less than 2.25 laps of fuel remaining. Below is the "Mini" display shown above the full app.
V1.22 uniquely named sim_info library
V1.23 added estimated time remaining window
V1.24 added blue flag info to the mini window, and a "setup tips" windows, which is especially useful in VR.
V1.25 added blue flag INI options
V1.26 VR framerate improvements
V1.27 yellow flag logic
V1.28 setup tips window width and height in the INI
V1.29 includes some missing icons
If you have any questions or ideas for improvements please let me know.
If you've found this content informative and/or helpful please consider donating, which helps to ensure more quality content like this in the future: https://paypal.me/Esotic/5