Skip to content
AppgineeringAppgineering
Shop
Read-only8 posts · 4,748 views · Started 02 Apr 2021, 18:36

How to make it change row number for start grid

Archived: discussion moved to DiscordDiscord
Griffin T.Original poster
#1

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

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

Nick ThissenAppgineering
#4

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

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

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

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

This thread is archived.

New replies have moved to Discord.

Continue on Discord