proTyres

Apps proTyres 2.0.0

Login or Register an account to download this content
Thanks for your feedback, all CSP related tyre behavior might not work correct since it probably need some adaption in code depending how it's done.

Display of the temperature would of course be possible but will require a new display mode. I have no direct plans to update app at the moment but it's not impossible in future. However at least in vanilla AC, these values do leave some wishes when it comes to realistic behavior.
 
That is room for improvements when it comes to explanation of features, and the pictures looks very bad in dark theme as well. At the moment there is no plans for any update, but it might happen in the future.
Hi Jens Roos
I made a white background
 

Attachments

  • pro_01.png
    pro_01.png
    60.1 KB · Views: 137
  • pro_04.png
    pro_04.png
    177.5 KB · Views: 147
  • pro_05.png
    pro_05.png
    119.4 KB · Views: 124
  • pro_06.png
    pro_06.png
    40 KB · Views: 115
  • pro_07.png
    pro_07.png
    46.5 KB · Views: 120
  • pro_08.png
    pro_08.png
    100 KB · Views: 110
  • pro_09.png
    pro_09.png
    84.4 KB · Views: 133
@Jens Roos here's a UI Folder that has credentials for content manager, feel free to add it to your App and change tags. I've included what I seemed to fit so Users can see who did the App and which Version etc. I've also added you to Origin Icons so we can see your Icon next to the App
 
Hi everyone, I'm having an issue with this: I'm working on a car mod so it doesn't have a data.acd file yet.
ProTyres will fail to load the values, giving this error:
proTyres: CURVE: content/cars/wip_car/data/_not_set_
proTyres: WEAR: content/cars/wip_car/data/_not_set_
proTyres: ERROR processing tyre compound data from settings, ini or lut files

Tyres.ini file have references to the compounds value for temperatures and wear, so I don't know what to do now, since I also got the same problem on the older version 1.5.5. Also, the game calculates the values just fine. Is there something I have to set up manually somewhere?

EDIT1: it's something that has to do with my mod itself inside the tyres.ini file, I'll update again when I figure out what it is.

EDIT2: no it's not fault of my mod.
I've found a bug: it will fail to load the curves and thus to work, if PRESSURE_IDEAL is not an integer value, but decimal. I had it to 16.5. With 16 it works fine. @Jens Roos I think it's not a hard fix, if it is then I can live with it. Thanks anyway.
 
Last edited:
I would guess a conflict with another app, sometimes python in AC seems to share resources.
One common case is the DRS app, in that case copy sim_info.py from protyres to the other app,
it's backwards compatible.

Otherwise please post or pm me your log and py_log files.
Hi. I have the same issue but it did not get fixed when I copied the files. Can you help me please?
 
@Jens Roos Sorry we got here,
-while I suggested adding acd reading,
-when using the last update of this python app: https://www.overtake.gg/downloads/live-telemetry.31666/
-... then ProTyres will not load with this error (could not find how to fix at a glance):
Code:
proTyres: ERROR Importing libraries: No module named 'lib.proTyres_def'
[proTyres: error] Traceback (most recent call last):
  File "apps/python/proTyres\proTyres.py", line 248, in <module>
ImportError: No module named 'lib.proTyres_def'

(long traceback..and finally)

UnicodeDecodeError: 'utf-8' codec can't decode byte 0xed in position 1702: invalid continuation byte
 
I tested and 1.7.0 can't co-exist, 1.6.1 works fine (tested in standard AC).
Sometimes different versions of some files can't co-exist in the same python session,
however replacing the shared file makes no difference in this case.

Maybe XuCrUtZ can hint any major change that could have any impact.
 
@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
Code:
    pf = "{:.0f}"
with
Code:
    pf = "{:.1f}"

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
Code:
    except:
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
 
Last edited:
Back
Top