App Update: AI Pit Stop App 3.2
🕑 Added 2024-10-03 15:39:28 +0000 UTCUpdate Info:
v3.2:
Reduced pit stop slider max value in weekend races to 50. (There is now a USER VAR if you want this larger or smaller)
Partially Fixed AI stuck on grid at Weekend races starts. Now, a session restart will make all the AI that were stuck, fixed.
Comments
Adrian Kernen
Hi @ll. I have a Problem. I lost in Pit like 30 Seconds to the AI cars. Is there somewhere an option for an "minimal Stop Duration" for AI and for Player. This would make sense, so you can handle, everyone have to stay the same duration in pits. Like this is frustrating, coming in 2nd and after ai pitstops you're 20st and lost like 30 seconds.
No specific name
I am getting the issue of cars starting on the grid taking a turn and driving into the pit wall.
Alessio
that worked thanks a lot
Flavio Cardoso
yes, leave a space beetween 1 and, but the line above already has a space.
Alessio
driverLiveDistanceFromBox[i] < 60 and driverLiveTimeStationaryInPits[i] < 1 and (ac.getCar(i).lapCount + 1) > 1 thanks so that sgould be it now? do I need to leave a space between 1 and?
Flavio Cardoso
yes that´s the line, but it´s still wrong. Take out the quotation marks ".
Alessio
right ok so is this one isn't it? if driverLiveDistanceFromBox[i] < 60 and driverLiveTimeStationaryInPits[i] < 1 " and (ac.getCar(i).lapCount + 1) > 1"
Flavio Cardoso
No, that´s not line 539 of pit lua app, sorry. That´s line 544. Revert your change to the original file, otherwise will brake your app for good. As i said, some basic programing skills are needed.
Alessio
so that's how i did it on line 539 is that correct please? physics.setAISplineAbsoluteOffset(i, -4, true) "and (ac.getCar(i).lapCount + 1) > 1" " and (ac.getCar(i).lapCount + 1) > 1"
Flavio Cardoso
No, i cant share any file. Just the info above to help deal with the issue!
Alessio
Would you please be able to share the modified file with us?I have tried to add the condition to line 539 but for me none of the cars is moving at all from the grid,thanks
Flavio Cardoso
@Aaron Purnell: you have to edit the line 539 of the .lua file in any text editor and add the condition in the end of the line, but you will need some (basic) programing skills to know where to put that correctly. Otherwise you may brake something else :)
Adrian Kernen
You're a genius, that works! Cheers
Adrian Kernen
First of all, thanks for your great effort! But, this one with restarting the session didn't work for me, but I have to say, that the pit stop never worked in weekend races in my case. I don't know why, the AI stuck almost every time. Sadly for me this app is useless because of that. I hope in some further version it will work, i tried every new version and I will do it also in future, because if it works, that app is great. I use csp2.4preview. Cheers ADrian EDIT: The workaround from @ Flavio Cardoso works. Really happy about this.
D.Nuzzo
Hi, just ran a few tests and it worked OK. I'll do a few more over the next week and see if any issues popup :)
Aaron Purnell
I havent tried the new update yet but this was happening to me previously brother.. If you dont mind me asking where is this "line 539" ? I dont know too much about the innerworkings of AC. This is the one thing i need to work for my championships !!! lol Really appreciate any help my friend
Felipe Rojaz
I know this is not relevant, but when I am in practice sessions or hotlap and I restart the session, the DRS stops working. Could you check the DRS application please?
Alessio
Another great update thanks so much
Flavio Cardoso
Edit: Sorry to say but the "Ai Stuck" on weekend races is still there. I did a quick workaround on this, to not activate the function in lap one: (Line 539) put another condition: " and (ac.getCar(i).lapCount + 1) > 1" This is working ok to me until now. Thanks!