ATVO by Appgineering
Download
Read-only

How to make it change row number for start grid

8 posts 4,748 views Started 02 Apr 2021, 18:36
Showing 1–8 of 8 posts
Griffin T.
Original poster

I'm trying to make a start grid with 2 driver's each row but as it goes to the next row driver it still says row 1 so im wondering how to fix it

Nick Thissen Appgineering
Reply #1

What do you use to bind the row number? Do we provide a data binding for it (I don't remember)?

Nick Thissen Appgineering
Reply #3

The only thing I can find related to row is the "pace_row" data binding which indicates which row is assigned during a pace / caution lap. It will only give 0 or 1 meaning left or right. Perhaps you can use pace_line instead, but I think it starts at 0 instead of 1. You'd need a script to add 1 to it. Or you can just use a script to use startposition/2 for the row (and round accordingly).

Nick Thissen Appgineering
Reply #4

The name of pace_row and pace_line is confusing and I am now wondering if we messed up their naming. But I am pretty sure they come straight from iRacing with the same name. I'll check it out tomorrow.

Nick Thissen Appgineering
Reply #5

Also, these pace bindings are meant for mid race caution laps I think. They may work for a rolling start as well but I would not count on them being correct for standing starts.

Nick Thissen Appgineering
Reply #7

Use this as the converter script for a binding on e.g. startposition, or position or whatever you want to use.

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

namespace Scripts
{
	public class RowConverter : IScript
	{
		public object Execute(ThemeContentItem item, object value, string parameter, ISimulation sim)
		{	
			if (value is int pos)
				return (pos+1)/2;
			
			return "";
		}
	}
}
Archive · Read-only

New replies have moved to Discord.