ATVO by Appgineering
Download
Read-only

Need a little help with Clubs and Numbers

7 posts 4,405 views Started 18 Nov 2019, 21:04
Showing 1–7 of 7 posts
Adam C.
Original poster

Is there away i can send this theme to someone on here and you take a peek. Been working on this for like 3 days and cant get it to work.. i have the numbers but it keeps just showing like i typed them out instead of the plaques and thing for club it just keeps showing Az

Nick Thissen Appgineering
Reply #1

If you can make a mostly empty theme with just the problematic widget I can take a quick look. Just try to replicate the issue in an example theme.

Emmanuel S.
Reply #2

How do you do with Australia/NZ club for showing flag in picture.

/ is not allow in name of file !

Nick Thissen Appgineering
Reply #3

Perhaps you can combine it with a simple script converter that removes any "/" characters (or anything else not allowed in a path). I believe the script converter runs first and the final dynamic path is made with the converted value.

Emmanuel S.
Reply #4

Ok, I think I'm not alone to have this problem, why iRacing put that !

Other things, I see pilots from Japan are indicated in iRacing but return club = -none- !!

Dwayne P.
Reply #5

Emmanuel S. wrote:
Ok, I think I'm not alone to have this problem, why iRacing put that !

Other things, I see pilots from Japan are indicated in iRacing but return club = -none- !!

Are you sure iRacing has clubs for Japanese drivers? If that's not the case, ATVO does not register clubs for those drivers.

Emmanuel S.
Reply #6
· edited

Yes I'm sure that the contry Japan is indicate in iRacing and if you watch in data explorer it is indicate - none - so I replace it by internationnal flag ... But it is iRacing wich send this information, ATVO I think just read this variable.

Other way, I decide to do a small script for Australia:

using System;
using ATVO.ThemesSDK;
using ATVO.ThemeEditor.ThemeModels;
using ATVO.ThemeEditor.Scripting.DotNET;

namespace Scripts
{
 public class SC_Country : IScript
 {
 public object Execute(ThemeContentItem item, object value, string parameter, ISimulation sim)
 {
 if (value == null)
 {
       return null;
 }
 // binding ..... club
 var pays = value.ToString();
 
 if (pays == "Australia/NZ")
 return "AustraliaNZ";
 else
 
 return pays;
 }
 }
}
Archive · Read-only

New replies have moved to Discord.