Assetto Corsa PC Mods General DiscussionPC 

  • Thread starter Thread starter daan
  • 152,684 comments
  • 47,327,616 views
@sab001 and @ninezeroniner

here's an example script to force the wastegate/turboboost at optimal value for a Porsche 935 AI. It looks like this , so you can edit it for different cars.


if car.index == 0 then return end -- car#0 being the player's one, let's avoid it to let the player decides

ac.setTurboWastegate(0, 0.85, false) -- 0 being the turbo index (first one), 0.85 being the wastegate value, same as in engine.ini, and "false" being the adjustable activation.

ac.setTurboWastegate(1, 0.85, false) -- same idea, for the second turbo.

ac.debug("turbo_script", "ACTIVE car#" .. car.index) -- a debug that would appear in luadebug to check the script is active
ac.debug("turbo_boost", car.turboBoost) -- the debug to show the turbo boost value.
ac.debug("engine_life", car.engineLifeLeft) --a debug to make sure the Ai isn't destroying the engine

Now, i got those values from the engine.ini file :

Capture d'écran 2026-02-16 132610.webp

Having the wastegate @0.85 and 2 turbos, IF understand this correctly, we end up with a turboboost of 1.7. The engine would take damage @ a turboboost of 1.75, so with these values in the script the AI should be safe.


You could experiment and see if the AI can handle some engine damage thru the race and adapt the ac.setTurboWastegate depending on your needs, see if it goes faster with higher values.

Using this technique you can also copy the script to different cars and adapt it depending on their respective engine and turbo values.


To activate it and see if it works : select the Porsche 935, unpack its data using Content Manager, copy the script into the data folder, and pack the data again. I read somewhere you could delete the acd and edit real time but i haven't tried yet. (EDIT : tested, it works, so you can edit the wastegate value real time if you unpack the data and delete the acd).

Ingame, opening the luadebug, each car should have the script running, showing the amount of turbo boost real time, the engine life left and if the script is active :

Capture d'écran 2026-02-16 133424.webp



I don't know if adding a script in the car data would create an error online, so either use AC Car Tuner to create a car copy first or remember to delete the script if it creates online rejections.

I'll dig into this at some point and see if you could create specific setups for the AI using the same technique.

Edit : cached the read values so it doesn't leak memory. I added all the damages so it's easy to see in the debug to spot pace issues.
 

Attachments

Last edited:
@Tetri: What do I name the script that I put in the data folder?
"script.lua" 😅 (although i wonder if you could name it whatever you want Nope!you can't. The documentation says to use "script", so i'd stick with it). I uploaded a better version, the first one was leaking memory. Not enough to crash your gpu, but let's keep things
super light.


Capture d'écran 2026-02-16 143734.webp
 
Last edited:
Anyone had this - can’t make a shot in CM showroom - get this error - cant remember when it started and what changed. Tried with different CSP versions but no difference.View attachment 1513490
Hi, can't help you on the subject due to lack of sufficient knowlegde on this. But I see the RSS GT-MX, right? Is it good (compared to F302 and/or Ceky's)? Worth the purchase (Or do I know the answer already since this one originates from RSS)?
 
I've set it up. But everyone else keeps driving at full throttle, even though I've set it to 30%. Most of the time, the AI doesn't even pull into the pit lane, it just keeps going. Only when I'm actually in my spot are they all suddenly there. Is this a CSP bug?
Could be. I'm on 0.3.0p212. The ai do perform the cool down lap, but not at the throttle % I've chosen...seemed to be way faster, but they do enter their pit box and stop, then wait for me to enter your pit box before the race results display instantly at that point.
 
Last edited:
Damn, wish I had some of these videos sooner. I got things way off. I see Lesmo and Ascari have wider kerbs with no carpet\concrete runoff area (whatever they are called) anymore. The sand goes right up against the kerbs now.

I'm not sure I have it in me to try and fix things. It's such a frustrating process because I don't know what i'm doing. I'll spend an hour or more in Blender doing what I think is right only to find out I screwed up something once I load it in the game and have to start over.
I'm glad they were helpful; Monza in winter is truly depressing. 😅
You're already doing a great job for the community. If you enjoy it and it doesn't stress you out, don't give up. Sooner or later, everything will become easier. And I'm telling you this as someone who modding other games for many years, even destroying a marriage (but maybe that was a good thing 🫢), so now my rule is "if it stresses you out, forget it, do something else, think about having fun, your time is precious." If, on the other hand, you don't have to give up anything else in your life, keep at it and don't give up. You're talented,boy! 💪😉

Necroing about safety from a couple of post ago! Here something about safety copy/paste, from X4fab Patreonsite, how small it looks who knows it can be helpfully:

Sadly, it looks like we’re starting to see some bad-faith modders in the community. So, I thought I’d make a small post with a few recommendations, and work on making CSP a bit safer.

First of all, please keep an eye on the type of content you’re installing, and if you’re not using Content Manager to install a mod (or if it’s being installed as a generic mod), glance through the files to see what actually is being added. If it’s something like a new car, or something else contained within the “content” folder, it’s perfectly safe. But if a mod adds anything to “apps”, “extension”, “launcher”, “plugins”, “server” or “system”, or if it includes any DLL (or EXE for you to run), such a mod can, potentially, do anything it wants on your system, so please check those mods thoroughly. Especially if it’s a stolen mod: those are sometimes repacked by third parties, so some of the files might be edited.

With the original Assetto Corsa, there are plenty of ways a mod could add its own logic. Apart from obvious stuff like including its own version of Reshade DLL or adding a new Python app, they could also alter launcher logic, add a new AC plugin, adjust one of JS files loaded by the original launcher, swap Python libraries (either standard or AC ones). And, to be clear, the original Python apps of Assetto Corsa can do anything they want. If anything, they can do a whole lot more compared to Lua apps, but those also have pretty much no limits. And when it comes to this type of thing, if a script can as much as simply save a file somewhere within the Assetto Corsa folder, that’s already more than enough to compromise data files.

Now, Custom Shaders Patch adds a lot of other types of scripts for all sorts of tasks. Ever since adding script support to Content Manager (which allowed us to have much nicer, if static, weather conditions back in the day), I was always fascinated by how much flexibility can be achieved with a simple Lua script. But, the way the whole thing is currently set, those scripts aren’t a weaker alternative to Lua apps. If anything, Lua apps are the weak ones, with delayed loading, and sometimes loading skipped altogether. A specialized script — such as Pure (a great WeatherFX style by Peter Boese) — loads first, and has full access to your file system and other processes! So, all the scripts you’re installing explicitly (with CM warning you about potential dangers), and going to CSP settings to enable explicitly — including post-processing scripts, GamepadFX scripts and more — all can do pretty much anything. That’s how Pure can edit configs and load extensions, how Curved Monitor filter can export settings, it allows for Mobile GamepadFX script to exchange data with the phone, or for Wooting keyboard script to read analog values from those keyboards. It also allows for traffic mode to load missing assets, and more.

There are only three exceptions: car scripts (both regular and physics), track scripts and, of course, online scripts. Those are the scripts you might not be aware of installing, and they are fully sandboxed and can’t really do anything like saving files.

In the next update, I’ll add something for CSP to ask each time before starting a new script with full files access, and something for scripts to opt-out of that access. But even with that addition, I ask you to still be cautious — a malicious mod could always find a way to circumvent some of these protections, like replacing a config of another mod changing its behavior in a potentially threatening way. Using Content Manager to install mods and keeping an eye on its warnings should be enough though.

For extra safety, I’m also going to add some settings for blocking out scripts entirely, and maybe something that would prevent sandboxed scripts from accessing the internet (although, that might break some things like Android Auto or online scripts).

If it is illegal to post this, let me know then I will delete it! Please moderators do not ban me, think it's safety first?
Being anxious about these things, I checked all the .dll files present in the indicated folders, the only suspects are the ones below, do you have them too?

dll.webp


Instead, as far as .exe files are concerned, these are the ones I found, even here if anyone notices something suspicious, I think it could be useful for everyone to share this information:

exe1.webp

exe2.webp

exe3.webp
 
Stats from Steam today:

Most played racing sims (simultaneous users).

1. Assetto Corsa 18.959
2. F1 25: 9704
3. Le Mans Ultimate: 8540
4. Assetto Corsa Competizione: 4816
5. Assetto Corsa EVO: 3146
6. Automobilista 2: 1922
7. Assetto Corsa Rally: 991
8,. iRacing: 940
9. F1 24: 759
10. EA Sports WRC: 694

AC1 is on top of this list, every single day with a huge margin.

Of course sims can't compete against titles like GTA but on the pure sim list AC is on top and doesn't seem to be going anywhere.

 
Stats from Steam today:

Most played racing sims (simultaneous users).

1. Assetto Corsa 18.959
2. F1 25: 9704
3. Le Mans Ultimate: 8540
4. Assetto Corsa Competizione: 4816
5. Assetto Corsa EVO: 3146
6. Automobilista 2: 1922
7. Assetto Corsa Rally: 991
8,. iRacing: 940
9. F1 24: 759
10. EA Sports WRC: 694

AC1 is on top of this list, every single day with a huge margin.

Of course sims can't compete against titles like GTA but on the pure sim list AC is on top and doesn't seem to be going anywhere.

Checking the full list, it surprised me that RFactor 2's all-time peak wouldn't even make it top5 in this list. I see it recommended so often that I thought it'd be a lot more popular.
 
I was learning about [CustomEmissive] and decided to fix (and share) the light bulbs not glowing on Indianapolis Motor Speedway 2.0 by damone13x.
Install the track
Install Indianapolis GP facelift extension 0.96 by BoBaHK
Install Indianapolis (damone13x) shader overhaul and night lights 4.3 by Rainmaker

Replace the ext_config.ini (remove ".txt")

NOTE: the code I've added at the end of Rainmaker's ext_config.ini is from CrisT86. I only added a couple of [CustomEmissive] sections and some other little twicks.

All credits go to damone13x, BoBaHK, Rainmaker and CrisT86
 

Attachments

Stats from Steam today:

Most played racing sims (simultaneous users).

1. Assetto Corsa 18.959
2. F1 25: 9704
3. Le Mans Ultimate: 8540
4. Assetto Corsa Competizione: 4816
5. Assetto Corsa EVO: 3146
6. Automobilista 2: 1922
7. Assetto Corsa Rally: 991
8,. iRacing: 940
9. F1 24: 759
10. EA Sports WRC: 694

AC1 is on top of this list, every single day with a huge margin.

Of course sims can't compete against titles like GTA but on the pure sim list AC is on top and doesn't seem to be going anywhere.

iRacing is much more than that, as this is only the one who start the game thru Steam and not the iRacing launcher
 
Sharing a mod? Host it on GTPlanet Downloads. Free, public hosting for files up to 10GB in size.
Back