Vehicle Info v1.0 FS22
Vehicle Info v1.0 FS22
This mod shows you additional info about your vehicles like distance traveled in Km, fuel consumption or motor temperature.
Info is displayed in a small HUD next to the speedometer
Values are displayed for all times and for trips (it can be reset)
You can switch fuel consumption between l/h and l/100km (saved as global in xml config file)
Mod creates xml config file in your game folder where you can change many options
You can resize HUD (you can toggle between 4 sizes or set the size manually in xml config file)
You can move HUD on your screen
You can enable/disable F1 help (saved as global in xml config file)
All controls can be set in your Input bindings
You can activate/deactivate mod functions for a current vehicle or as global (these setting is saved in xml config file and will be loaded for each vehicle in all savegame or MP only for you)
Controls:
KEY_lalt KEY_r – reset current trip (distance traveled and fuel consumption)
KEY_lalt KEY_f – switch fuel consumption (l/h or l/100km)
KEY_lctrl KEY_KP_plus – resize HUD
KEY_lctrl KEY_KP_minus – show / hide F1 help controls
KEY_lalt KEY_KP_4 / 6 – move HUD left / right
KEY_lalt KEY_KP_8 / 5 – move HUD up / down
KEY_lalt KEY_v – turn on / off mod functions for current vehicle (not show in F1 menu)
KEY_lctrl KEY_lalt KEY_v – turn on / off mod functions global – for all vehicles (not show in F1 menu)
If you find any errors or issues, let me know in a comment and I will fix them in the next version.
Credits:kenny456
its not saving so its restart every time
New error after the FS22 1.3.1 update:
2022-03-18 09:15 Error: Running LUA method ‘draw’.
C:/Users/myname/Documents/My Games/FarmingSimulator2022/mods/FS22_VehicleInfo/vehicleInfo.lua:618: bad argument #2 to ‘format’ (number expected, got nil)
And is there a way to save the numbers? I tried to deactivate and reactivate the mod and the numbers reset on all my vehicles.
And in the future, is it possible to have an option to just show the total distance on each vehicle? Like a small box or number that can fit in the hud. I really just want the total distance on each vehicle.
Keep up the good work 🙂
put this in front of the line 618
if spec.fuelCurrent2 == nil or spec.fuelCurrent2 == 0 then
spec.fuelCurrent2 = spec.fuelCurrent
end
Imperial measurements would be a nice option for those of us across the pond…