This one bugged me some time ago when I made a table of all the stats of each car in S1 using imperial values. On every single car, the power to weight ratio I was calculating was different from what LFS showed. However, when I calculated the power to weight ratio with metric values, I always got the same numbers as LFS.
Today, I think I finally figured it out. As it is currently programmed, LFS seems to do the following (for the sake of ease of explanation, consider that W/kg = kW/metric ton):
-divide power in kW by mass in metric tons to get kW/metric ton
-convert this value to HP to get HP per imperial ton (note the lack of a mass conversion)
This really jumped out at me when I selected the XF GTi and put the driver in the car in the garage. What you end up with is a car that weighs 1010 kg with a power output of 90 kW, and thus a power to weight ratio of 89 kW/metric ton. What you also get is a car that weighs 2226 lbs and makes 120 HP. Then you look at the imperial power to weight and it says 121 HP/imperial ton. Oops.
Clearly 2226 lbs is not an imperial ton, and as you can see, both ratios have approximately the same value as the power output of the car. This lead me to my aforementioned conclusion that the imperial ratio is found by simply applying a kW to HP conversion to to the kW/metric ton value and calling it HP/imperial ton, when it is really HP/metric ton.
Not a huge bug but certainly one that has bothered me for a while. Hopefully it should be a pretty quick fix.
Today, I think I finally figured it out. As it is currently programmed, LFS seems to do the following (for the sake of ease of explanation, consider that W/kg = kW/metric ton):
-divide power in kW by mass in metric tons to get kW/metric ton
-convert this value to HP to get HP per imperial ton (note the lack of a mass conversion)
This really jumped out at me when I selected the XF GTi and put the driver in the car in the garage. What you end up with is a car that weighs 1010 kg with a power output of 90 kW, and thus a power to weight ratio of 89 kW/metric ton. What you also get is a car that weighs 2226 lbs and makes 120 HP. Then you look at the imperial power to weight and it says 121 HP/imperial ton. Oops.
Clearly 2226 lbs is not an imperial ton, and as you can see, both ratios have approximately the same value as the power output of the car. This lead me to my aforementioned conclusion that the imperial ratio is found by simply applying a kW to HP conversion to to the kW/metric ton value and calling it HP/imperial ton, when it is really HP/metric ton.
Not a huge bug but certainly one that has bothered me for a while. Hopefully it should be a pretty quick fix.