Dynamic Background for carid and driver_country

Posts: 1
Hello guys,

first of all I want to apologize for, if this question is already in this forum.
I was working on a theme and wanted to make a dynamic background in a Label-Layer for carid and driver-country. I set up in "Background" the dynamic Background-path with "countries/{0}.png" while I had made a countries-folder with numbered pngs for the countries. But somehow the created png will not show up. Same problem with setting up the carid dynamic background.

I didnt found a YT-tutorial for this case, but there is one tutorial with about 1:14hours, where this function is mentioned but not shown how it works.

So maybe, hopefully, somebody know the issue and have a result for that.

Thanks in advance.

Jens
Posts: 785
Some things to double check:
  • Did you actually define a binding for the dynamic image?
  • The "carid" binding is probably not what you want - it gives the iRacing ID of the car, has nothing to do with the driver or their country. Probably you want something related to the driver instead? Most likely you want customer id or car number ("carnum").
  • Double check the spelling of the folder path
  • Make sure the 'countries' folder is under the right place: in your theme folder under Content/Images/... Or specify a full path, either way works.
Posts: 785
And sometimes helpful: you can also put the same binding as text at the same time. Then you can double check that the value of the binding is actually what you expect and if there is actually an image with that name.
Posts: 62
Sorry to hijack this question, but it's sort of related (or at least could be of interest to anyone using dynamic images)

. Is it possible to add a wildcard to the background path?

Here's why I'm asking:

I'm using dynamic images to pull in the track map for the race intro. I have the list of iRacing track IDs, but those aren't human readable in the folder. I'd like to be able to browse the folder and immediately know which one is VIR, for example.

Is it possible to define 'tracks/{0}*.png as the dynamic path

and then name my file

2-VIR.png

?

If that's currently not possible, is it a relatively straight-forward feature request? would be super useful :)

-Jeremy
Posts: 49
If you know the exact name that is pulled instead of id you can do name as well

Say
track 003 is VIR 1
track 003 is VIR 2
Just examples
Then in the binding make it track name instead of track id
Name the images the exact name that atvo would call for said track

Each track and config have a specific name
Link below is a old version for irtvo might give you a good starting place and ids keep in mind it is several years old and was for irtvo
Track id
Posts: 62
Thanks Jason!

I either totally missed that, or just assumed that binding to name would not allow me to get the to the specific track variation .. i will try this.... thanks!!!