AI Limit 1.7.1

Disable AI (temporarily) based on distance to the player and user defined bot limit within that distance. Only the closest bots (distance wise) are enabled based on a max value you set in bepinex config.

Compatibility

Should work with spt-aki 3.5.4 and above with the newest versions



Installation


1. Download the file and unzip it into your SPT-AKI folder.

2. Verify that your Spt-aki/Bepinex/Plugins folder now has a dvize.AILimit.dll file in it.



Using the Plugin

1. Press the F12 Key to bring up the Bepinex Plugin Config Menu (At any point in the Tarkov game)

2. Configure the Bot Limit and the Distance to your cpu needs.

3. Click anywhere off screen

4. Profit.


How is this different from AI Disabler (thanks Nexus4880)'s mod?

For instance, i could set the AI Distance limit to 400 and the bot limit to 5.

Within that max distance of 400, my version will only enable the closest 5 bots.

Once you kill the bots close to you, it could activate bots up to your maximum much further away.

  • Version 1.7.1

    SPT 3.8.0


    Forgot to add a setting for ground zero. Thanks kickyflips

  • Version 1.7.0

    SPT 3.8.0


    Updated to allow map bot distance changes even in-raid instead of having to wait for next raid.

  • Version 1.6.2

    Updated to only search for changes in bots after the set number of in "Delay frames before recheck" bots setting.

    Basically will check if any new bots have spawned and calculate distances and sorting after every 300 frames by default (AI Limit used to do this every frame).


    Performance improvement of about 10 fps to old version of ai limit (according to one tester)

  • Version 1.6.1

    Updated for SPT 3.7.1 (just in case)


    i think last version worked fine but whatever

  • Version 1.6.0

    Build for 3.7.0 release.


    should have fixed it not working on next raid (i think).

  • Version 1.5.0

    Build for SPT 3.6.0 and 3.6.1 Only

  • Version 1.4.9

    SPT 3.5.8 and 3.5.7


    Added clearing the AI decision queue before disabling


    (hopefully helps with stutters when re-enabling and garbled sound).

  • Version 1.4.8

    1. Fixed the issue with bots moving passed the set distance limit. Thanks Nooky and Xantri!
    2. Fixed the issue with the location being detected wrong. Thanks Xantri
    3. Adjusted the default Factory limit to 60m
  • Version 1.4.7

    Test version of AI Limit that will support AI Mods like SAIN and Big Brain.

    1. It actually disables the gameobject so if a bot is 'disabled' they will not be visible in game. - you will have to figure out your magic number but remember that the closest X number of bots within your set distance will always be visible. You don't want too high of a number, but you don't want too low of a distance number either :). A bot that is re-enabled will cause some stuttering.
    2. Now has distances you can set per map and changing the settings need to be done prior to raid (probably)
  • Version 1.4.6

    Rebuild for 3.5.7


    No other changes at this time.

  • expand your AI LIMIT Distances Further :

    I use 400.

  • so if i use Ultra high bot count

    and i want still to have a lot of bots near me

    what settings should i use?


    THANKS ALOT <3

    • If you use custom spawn mod. Make them spawn close to you and set that distance as ai limit distance.

    • just using donuts

  • Does this support Ground Zero map in 3.8?

  • I notice high fps drops on client side using this mode, tho server load isnt increase much. Why it maybe so? Also I opened your solution in VS2022 and have a lot errors in it, how do I modify, rebuild it for myself? Thank you!

  • I have this weird issue:

    I tried setting the AILimit to 0 and found out, that ALL bots are now invisible. I don't know if it's a mod conflict or not, but when I set it to 1 and stand in between what should be multiple bots, they start flickering in and out as these bots get disabled one after another for moving away from me.

    Are there known mod conflicts?
    I have installed: Boops Quest API

    SAIN

    DrakiaXYZ Waypoints
    dvize.Donuts

    DrakiaXYZ Big Brain

    skwizzy Looting Bots

    • That is normal behavior, don't set it to zero. it should be set at a reasonable distance they should be viewable per map

    • Oh, I meant the Bot Limit set to 0, not the distance. I took a break from SPTarkov for a while, but I vividly remember that when I set the Bot Limit to 0, that they would just stand still and not act at all. Now they just turn invisible

    • It had to be done that way because at one point it wasn't working with SAIN. now sain has it built in so it doesn''t matter.. In any case, don't worry because its normal now.

    • Ah, now I understand. I was thinking I messed something up during the installation. Thank you for the quick response

  • how to set it up correctly? and another question, does he just take out the enemies or turn off their brain?

  • First, thx a lot for the mod. I wonder what the mod does to AI that are ouside of the range? Do these still spawn but are they frozen and only enabled when you get close enough them? Ie do still 20 bots spawn on certain maps, but only a part is activated becasuse they are withiin range?

  • Small question. Let's say that my game runs at a steady 60 FPS and my recheck delay is set to 300. Does that mean that every 5 seconds the game will loop through all the bots and reactive or deactivate them based on the distance? Or do the "frames" mean something else in this context?

    • Thats exactly what it means. It will loop through all bots again after x amount of frames to determine whether or not to reactivate or deactivate bots.


      It then puts this into a disabled list where it constantly disables those bots but skips all of the other checks until we recheck after x amount of frames.

      Heart 1
    • Great, thanks for clarifying!

    • Forgot to mention that unity is 60 fps internally for its game update cycle.... regardless of what your fps is rendering at. theres a separate fixedupdate that i think you were worried about where if you were fps were to vary..

    • Ahh, yes, that's what I was unsure about. I haven't really worked with Unity much, so I didn't know about that. Thanks!

  • Just tried some raids in different maps and definetely there's a big increase in performance.


    Sadly, mods like Swag + Donuts don't seem to be 100% compatible. Anything outside the AI radius seems to make the raid almost dead.

    • Yeah, you'll have to tweak it to fit your system. I mean thats the point though about disabling ai outside the radius.. so you get performance :)

  • Hi, first thanks for the mod it makes the game absolutely playable on streets - the only map where probably because of the navmesh if I were to guess the performance is awful.


    That being said I do have a specific question - can this mod be used specifically with looting bots [not questing bots - that mod is highly problematic to say the least] so just looting bots?


    Also am I getting the settings right?: the distance is the max hard cap distance up to which bots can be active - and the number limits the max number of active bots within that distance.

    • it should be able to be used with looting bots, but it will obviously limit the range they are active.


      yes you got the settings right

    • I use this mod along with Looting bots, Better Spawns Plus, SAIN and Waypoints. No issues at all. Works really well together.


      You definitely will need to do some tweaking to get everything working the way you want though.

  • Sorry for the stupid question, what is the max number of meters in this mod?

    • should be whatever the map size is. .. so basically as far as you want

  • Is this compatible with SWAG, SAIN, Questing/Looting Bots and Waypoints by Drax? I feel like it wouldnt be but I have to check lol. If this was compatible a guy could really get some crazy raids going. Thanks!

    • not with questing looting bots, that has ai limit built in.


      compatible with everything else though

      Thumbs Up 1
  • Hi Props, can I port your mod to another project (StayInTarkov)? I notice you don't have a license so I want to make sure that's cool by you.

  • I think it isn't working after first raid again with the 3.7.1 version, I am unsure if it will work ii raid but during my second raid when I set distance to 1 an PMC run passed me from at least 10 meter away, and it was stuttering again, still I really appreciate it as it really helps my game become smooth again

  • Is it possible to turn on the mod for a specific map only?
    I only need this mod for Streets because there are just too many bots, especially when Kaban spawns.
    I set the distance to 2000 for the rest of the maps and I think they work fine, but sometimes there is one bot near me that is frozen.

    • eh, i'll think about it but it doesn't seem like a priority to me since you have a working alternative right now. You could set a value like 3000 and have no problem

      Thumbs Up 1
  • Thanks again. Works like magic.

    Thumbs Up 1
  • So theoretically is it possible to set the AI limit to 0 and just hard stop all the bots from doing anything?

  • can i port your mod to sns.oddba.cn ? I love your mod so much,and i want to share this mod to others

    • yes feel free.

  • With swag should i disable the despawn tab in swag, or does this mod work regardless?

  • Hi

    When I install this mod. My game gets stuck on the initial loading screen and wont go into the menu, Any ideas?

    • Are you using this on the right spt version?

      The latest 1.6.0 version of this mod only works on spt 3.7.0


      Also, are you sure its this mod? I would check your logs to see what errors you have.

  • Does this mean u can have 100+ bots spawning?

    i want to make tarkov battle royale with tons of bots

    • your pc would explode first and tear a hole in the time-space continuum. you might find your self in actual tarkov after you destroyed the earth and its all because you wanted to play a BR... everyone would hate you and be like, "look its that asshole who wanted to play tarkov BR and turned earth into starfield"...


      don't do it..

      Happy 5 Heart 2
    • i have legit the best pc lol and rtx 5000 series is coming out this year

      Thinking 1
    • The GPU won't be what holds you back from running a 100-bot map.

  • how can i increase the bots ? and respawn them

  • Also having issues with it not working after first raid, first time I used It I got very nice fps boost. After than it does nothing, I tried enabling and disabling the plugin after the raid, still nothing.

    • i have a fixed version i think for 3.7.0 (whenever that comes out).

      i don't have 3.6.1 installed on my local so probably no fix until then.

    • do you have any other solutions lol, I cant play the game because the performance is too poor with the ai, and im not going to reduce ai because then im just walking around doing nothing.

    • Would be good to know if there is any other possible solution

    • agreed 3.7.0 could be a while from now and this mods utility is too good not to have

  • Im also experiencing the mod stop working after 1 raid tested with bot debug and can see bots above my set distance away still moving and a noticeable difference in FPS on raid after 1st

  • Is there any way to stop the bots from becoming invisible at distance? It's extremely hard to spot them in Woods and Shoreline (anywhere dark or woods area actually)

    Also even when I set the active bot limit to 1, multiple bots are active from the start of the round, as I can hear different guns start shooting as soon as the bots load in.


    The mod works well otherwise

  • For me it only works on the first raid. I Tested it puting 1 bot and 0 distance. I can see some weapons flying and activating when i come closer. But only in the first Raid. After that the mod does nothing.

  • I have SAIN and SWAG, I can confirm the mod works, at least for some time. At one point during the raid fps just drops like it does without this mod (Idk if it's relavent but I think I usually run into a group of pmc around that point), afterwards enable/disable the mod changes nothing. It's like the mod suddenly failed after some time in the raid. Wonder if this has some kind of conflict with SAIN.

  • It works well, thank you. My game doesn't freeze now in the beginning of the raid.

    Happy 1
  • There is something not right with this mod. Bots at a distance don't seem to activate when I get closer or even spawn. I was on Lighthouse and approached the Rogue Base and there is absolutely no AI whatsoever. I gave this a try previously and what would happen is the AI's guns would be floating there and would snap to you and fire a burst (with no projectiles) then just stop.


    Im using:


    Drakia XYZ

    SAIN + Big Brain

    Realism

  • When using this mod, I can hear hundreds of bullets whizzing past my ears. Have any of these bugs been reported? I couldn't find the exact test case. But few users in the community say they experienced the symptoms when using this mod.

    • I think thats even without this mod.