Report post

Are you sure you want to report the post shown below? This will send an email to the ATVO administrators. Please include a short reason for reporting.

Users reporting for no reason may be locked out.


Post

Posted by Nick Thissen
on
There are a lot of things going wrong unfortunately. I don't really know how you can get that error with this script, but let me give it a shot:

  • You are telling the script that the input value (called "value") is of type IEntity. Is it really? This is only the case if your data binding is bound to the "entity_obj" binding. If it is another value it may be a string (like the error is telling you), or a number, etc. What is your data binding set to?
  • Even if "value" is of type IEntity, you aren't using it at all. Instead you read the FuelLevelPct value straight from the sim. The variable 'result' is never used.
  • Note that FuelLevelPct is only the fuel level for your own car. You cannot get the fuel level of other cars in the session, iRacing does not output it to you.

Check this thread for more details: https://atvo.appgineering.com/Forum/Thread/91