@Jens Roos
First of all, thanks a lot for this useful app!
I fell into the same trap as
@Piereligio Mods when driving the Porsche 911 3.8 by Singer: the ideal pressure for front is 37.5 psi, so I got the "proTyres: ERROR processing tyre compound data from settings, ini or lut files" error message.
For whoever might encounter the same issue here is a quick (and probably dirty) fix:
in file C:\Program Files (x86)\Steam\steamapps\common\assettocorsa\apps\python\proTyres\lib\proTyres_lib.python\proTyres\lib\proTyres_lib.py
replace lines 115 & 116
Code:
tyre.IdealPressure[0] = int(setup.tyre.get(f+idx, "PRESSURE_IDEAL")[0:3])
tyre.IdealPressure[1] = int(setup.tyre.get(r+idx, "PRESSURE_IDEAL")[0:3])
with the following lines
Code:
tyre.IdealPressure[0] = float(setup.tyre.get(f+idx, "PRESSURE_IDEAL"))
tyre.IdealPressure[1] = float(setup.tyre.get(r+idx, "PRESSURE_IDEAL"))
This will solve the error (37.5 is a floating point number, not an integer).
I may be missing something as I don't see why the number of characters returned was limited (by [0:3])...
Also if one wants to display the ideal pressure in the top part of the display while in the pits with one decimal digit, the file
C:\Program Files (x86)\Steam\steamapps\common\assettocorsa\apps\python\proTyres\lib\proTyres_lib.python\proTyres\proTyres.py must be dited:
replace line 1093
with
Please note that I have not performed extensive testing: I just checked that the "fix" works with cars where the pressure is an integer (ie. 35 psi) or a decimal number (ie. 37.5 psi).
Something that could have made troubleshooting easier:
replace lines like
with 2 lines
Code:
except Exception as e:
ptLog("proTyres: Exception raised! "+str(e),True)
This is not a magic bullet, but will help anyway.
Hope this helps