DoujinStars
D.Nuzzo
D.Nuzzo

patreon


App Update: AI Pit Stop App V3.1

v3.1:

Comments

I was able to solve the issue with the half tank refueling after each pit stop by removing the line physics.resetCarState(i, 0.5). This seems to have been setting the fuel to a default level automatically. Greetings! :)

Benny89

Hi Nuzzi, I really like the idea of the app, but there's something wrong with it. When I launch a week end and start the race, some cars gets stuck on the grid after lights out and block all the other cars. I tried this app with the Race Project cars.

Raradlabo18

Hi again, I noticed that the AI ​​that is in the pits waits until everyone in the pit lane has passed. Even if they are just driving into the pits. A stop like that can easily take 30 seconds. This is not the case with the "normal" vanilla refueling stops in the game. Is there a solution? :)

Benny89

Keep in mind that Fuel Consumption modifier in CM doesn't work, so mitigating this issue only by the code in my opinion will be very hard - there already is PreventAiFuelStop function but it works if there are less than 7.5 liters in the tank. 2007 cars pitted when they had between 50-60. You may try in that direction but it will be very tricky, see 100 liters setting. Anyway good luck, if I run into any problems I'll report back!

anonvonpolen

Awesome investigating! I'll see if I can make some additions to the code! Thanks :)

D.Nuzzo

OK, it seems that the problem lies in the combination of AC AI pit strategy (yes it exists...) when in Race mode, and the size of VRC 2007 fuel tanks. As the 2007 cars have capacity of 110L, when running 32 lap race via Race mode, AC plans two pit stops resulting in cars going to the pits around lap 11-12 - even if code to fill the tanks to the max is placed in lua file. The way to fix it is to unpack the data files of both 2007 cars and editing the fuel tank size in car.ini. I tested with 148 L, the capacity of 2023 cars, and it worked as AI came to the pits as planned with Pit App - to note, I have a special part of code (please Nuzzi don't kill me :/ ) filling the AI tanks to around 140 L so AC strategies are ignored.

anonvonpolen

Hey Nuzzi, a small update - I looked into the log.txt and when the cars pit earlier, the following message is logged: "STINT IS OVER FOR CAR: 3 REQUESTING PIT STOP, FUEL:40.8 FUELLAPS: 42.9" Which is weird, as the cars are fully fuelled and the consumption is set in CM to x0.25. Nifty52, if you have the same problem, could you check your log if it has the same message? I don't know what generates that message by the way, checked all game files via search function in Visual Studio Code and the Kunos forums too, nothing came up, so it may be in the core sim. EDIT: Setting fuel consumption to x0 and filling tanks of all AI cars to 100L changes nothing. Checking if the apps have something to do.

anonvonpolen

Ah, I see, make a custom grid. My question was more, is it permanent? I understand the "at the moment" and that's fine, the question was more of "is there an immovable roadblock" or "I just haven't figured out the solution yet".

X90

Hi yeah Ive been pondering different ways to implementing when AI drivers choose to do their stops too! I may look into an app where they pit based upon their tyre wear etc. I wonder how EA F1 games calculate race strats 🤔👍🏼

D.Nuzzo

So for the AI cars yes at the moment however you (the player) can drive the CSP version!

D.Nuzzo

I'm having no luck with the VRC Formula NA 1999, which came out before they had different versions of cars. Just adding to the pile of information. :)

Nifty52

Is the RSS/VRC CSP version incompatibility a sure thing? Pretty much every RSS car now has CSP functions, and all the most recent VRC cars. That would be a massive shame if it's permanently incompatible.

X90

Oh, so if it's with a lap count then I'll continue trying to fix it. If I find something I'll tell ya

anonvonpolen

Hi, thanks for the info! Only a few RSS and VRC cars have both a normal and CSP version, so the VRC 2007 will be fine as it solely has a normal version. There appears to be a rare bug with lap count that some users get when using some specific combinations. I haven't been able to reproduce the bug to fix it yet but will continue to look into it! :)

D.Nuzzo

Asking here since I'm trying to troubleshoot a bug - Nuzzi, what do you mean by "This app does not work with CSP versions of VRC & RSS cars"? As far as I know [and checked by downloading the car from VRC site], there is just one version of VRC 2007 cars (F07 and MC22), yet something still causes the cars to go to the pits much earlier than planned (like, L11 instead of L16 with -2/+2 setting) and be stuck in a "pit loop". Extended physics are off yet no change in behavior. This problem does not occur with RSS Formula 2 V8 cars, they pit as intended and there is no loop problem. Do you have any idea what could cause this? Of your apps I have Blue Flag, Clear Stopped AI, Flag Controller, Pit (obviously), Yellow Flag and DRS. Other than that it's only Pure, Setup Exchange and 2024 Leaderboard (all lua).

anonvonpolen

Thank you for such great apps! These have given ol' AC a brand new life. I wanted to ask if it's possible to have the option of instead of saying pit at lap 'X', with a +/- of 'Y' number of laps. To say, make at least one stop to switch compounds (or maybe the compound switch could an option) and box when the tyres are below 'Z'%. Just a though, feel free to tell me it's a dumb idea :)

Fernando

I see I see. Well It just made me shock when one of the cars used the pits at the pit entry at Circuit Gilles-Villeneuve XD

Hoodie-Kun ch Monarch-EN

Hi, this is natural for the app. Unfortunately, it wasn't possible to make them exactly use their pit boxes. Assetto Corsa would make them get stuck.

D.Nuzzo

Hi Nuzzi, I am kind of confused why the Cars come into pit and then they stop at where their pits are not supposed to be like they are one pit box away from their real pit box.

Hoodie-Kun ch Monarch-EN

Hi glad you are enjoying the app and thanks for the feedback, I will take a look into this!

D.Nuzzo

Hi Nuzzi, first of all, thank you for the great work on the PitStop app for Assetto Corsa. I've encountered an issue, the problem is that after a pit stop, the AI cars return to the track with the fuel tank half full, regardless of how much fuel they had before. This results in unnatural fuel consumption and negatively impacts race strategy. I've noticed this issue particularly with the Formula RSS VR, ACFL, and several other car mods. I believe the issue might be addressed by tweaking the app. Perhaps the PreventAiFuelStop() function could be expanded to ensure that no additional fuel is added during the pit stop. Alternatively, the fuel level could be set to the same value the car had before the stop to avoid the sudden half-full tank issue. A possible approach could be modifying the current PreventAiFuelStop() function to ensure the car leaves the pits with the same fuel level it had before, or adding an option to the app that completely prevents refueling during pit stops, so race strategies remain unaffected. I hope these suggestions are helpful and am happy to discuss further. Thanks again for the great work on the app! Best regards

Benny89

The app was missing a button. Just a minor bug fix haha

D.Nuzzo

Can you just explain what this consists of please 😅😅

Noé.G


More Creators