Zum Inhalt springen
AppgineeringAppgineering
Shop
Schreibgeschützt7 Beiträge · 4,405 Aufrufe · Erstellt 18 Nov 2019, 21:04

Need a little help with Clubs and Numbers

Archiviert: Diskussion auf Discord verlagertDiscord
Adam C.Ursprünglicher Verfasser
#1

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 ThissenAppgineering
#2

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.

#3

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

/ is not allow in name of file !

Nick ThissenAppgineering
#4

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.

#5

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- !!

#6

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.

#7

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;
 }
 }
}

Dieser Thread ist archiviert.

Neue Antworten finden auf Discord statt.

Auf Discord weiterlesen