How to make it change row number for start grid

Posts: 11
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
Posts: 785
What do you use to bind the row number? Do we provide a data binding for it (I don't remember)?
Posts: 11
Yes it does but its doesn't work
Posts: 785
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).
Posts: 785
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.
Posts: 785
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.
Posts: 11
Could you give me a script for the startposition/2
Posts: 785
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 "";
}
}
}