ATVO by Appgineering
Download
Read-only

How to show manufacturer image beside the drivers standing?

15 posts 9,409 views Started 12 Nov 2018, 18:40
Showing 1–15 of 15 posts
Laflèche D.
Original poster
· edited

***** SOLVED *****

Hi everyone,

I want to thank you for opening that forum,
First of all i am not a coder, when u talk about script, sadly it's like chinese to me... but i managed to achieve a great overlay so far with the already
scripted function of the software...
Now, i am to the point my top 15 ticker on the left side is DONE, on our latest overlay (that wasn't build by me obviously) beside each drive of the top 15 the manufacturer image ( ford, ferrari, chevrolet ) show there... in ATVO i cannot find the way to do that.

So here is my question, does this really need a script to operate? if no, how can i trigger ATVO to know this driver, drive a chervrolet so show me the chevy icon.

Take note that i already have all manufacturer icons in a folder.

Thank you very much



Nick Thissen Appgineering
Reply #1

You do not need a script to make this work, just dynamic images should be enough.

All you need is to make your Label / SubWidget and go to Dynamic Background. There you can select a Data Binding that the dynamic background is going to bind to. For this, you select any property that somehow tells you which car it is. For example the car ID, or the car name, or more.

Next, you need to specify the Path which translates your property (e.g. car ID or car name) to a filepath, relative to your theme's Images folder. Put the {0} macro where the binding output should go.

For example, if you have cars with ID 1, 2 and 3 (no idea which those are but just an example), you would store the images for example in:
"(Your theme folder)/Content/Images/cars/1.png"
"(Your theme folder)/Content/Images/cars/2.png"
"(Your theme folder)/Content/Images/cars/3.png"

Then your Data Binding should be Car ID and your Path should be "cars/{0}.png"

To figure out which car IDs (or names) you have you can use the Data Explorer. Expand the followed/standing dataset and look for the car ID entry.

Laflèche D.
Reply #2
· edited

Wow Nick ! I really appreciate your help man ! Didn't expect you to answer that fast to a newbie!

I'll give a try and i should make a guide of everything i learn to do as a non-coder that would be helful for those who do not know visual code.

If i finish my overlay i'll try put that together, cause i know you have a lot of work!

Laflèche D.
Reply #3

Nick Thissen wrote:
You do not need a script to make this work, just dynamic images should be enough.

All you need is to make your Label / SubWidget and go to Dynamic Background. There you can select a Data Binding that the dynamic background is going to bind to. For this, you select any property that somehow tells you which car it is. For example the car ID, or the car name, or more.

Next, you need to specify the Path which translates your property (e.g. car ID or car name) to a filepath, relative to your theme's Images folder. Put the {0} macro where the binding output should go.

For example, if you have cars with ID 1, 2 and 3 (no idea which those are but just an example), you would store the images for example in:
"(Your theme folder)/Content/Images/cars/1.png"
"(Your theme folder)/Content/Images/cars/2.png"
"(Your theme folder)/Content/Images/cars/3.png"

Then your Data Binding should be Car ID and your Path should be "cars/{0}.png"

To figure out which car IDs (or names) you have you can use the Data Explorer. Expand the followed/standing dataset and look for the car ID entry.

here's what i have now... it seem logic to me what u said, everything seem okay but the image are not showing....
If you see something wrong let me know.

Thank you very much




Nick Thissen Appgineering
Reply #4

You must be connected to the sim (so iRacing must be running) and the editor must be in Debug mode ("Play" button) for any bindings (including dynamic images) to work. Maybe that's it?

Laflèche D.
Reply #5
· edited

Yeah everything is on and the sim is running...the debug mode (play button) also Well i'll try to figure this.... Thanks

Nick Thissen Appgineering
Reply #6

Try to put as Path something fixed like "cars/1.png". Does that work at least?

Laflèche D.
Reply #8

i think i know my mistake.... i'll keep u update if i am right.

Laflèche D.
Reply #9
· edited

Okay! Nick,

It's sometime hard to admit stupid mistake but as it could avoid those same mistake to other persons i think it is good to explain it.

When working on my project i saved backup file more than 1 time being afraid of loosing everything...
I didn't realized that i was working in another folder as ATVO copy all your files to prevent any loss for your backup, so at first i looked at
my default forlder:  /user/atvo/theme/images/cars but all files were moved to the backup folder : user/atvo/backup theme/images/cars ...as soon as i copied the folder cars in the backup images folder boom ! it worked !

Sorry for that but i really appreciate your help so now this issue is resolved!

So i will stop posting on this topic as this is resolved.


John A.
Reply #12

Hey Laflèche - Do you mind telling me where you got the manufacturer logos and ID's from? Or was this something you took the time to do?

Dwayne P.
Reply #13
· edited

John A. wrote:
Hey Laflèche - Do you mind telling me where you got the manufacturer logos and ID's from? Or was this something you took the time to do?

You can find the IDs on the website of iracing itself:

And for the logo's, just google em :)

John A.
Reply #14

Thanks. Although I knew that part of it. I just didn't know if there was something already compiled and available, and that's what I was asking.

Archive · Read-only

New replies have moved to Discord.