Jump to content

AmbientAICallouts 0.9.7.3

First fully automatic Ambient Emergency System for LSPDFR. You’re not the only cop in San Andreas.
   (40 reviews)

10 Screenshots

AmbientAICallouts for LSPDFR

Copyright (C) 2021 ziipzaaapM16A4. All rights reserved.

Any unauthorized modification, reverse engineering, or distribution (including re-uploading of any kind) is strictly prohibited.

PLEASE DO NOT  POST A NEGATIVE REVIEW WITHOUT ADDRESSING THE ISSUE AS A COMMENT ON THIS PAGE.

FOR ANY SUPPORT RELATED ISSUES, PLEASE POST A COMMENT ON THIS PAGE.

 

Join our Discord --->   here

Need Help? Open a support ticket --->   here (discord support channel link)

Want Early Access? Become a Patreon! --->   here


Update is still in progress. yeah i know its almost a 2 year now.  Currently reworking all AiCallouts

 

AAIC Banner

 

Feature/Function:

- AmbientResponse system wich triggers AiCallouts.

- Get police scanner feedback.

--> Units get their own call sign. Less redundancy.

- AiCallouts can turn into LSPDFR Callouts.

- 4 AiCallouts included.

- 4 LSPDFR Callouts included. ==> execution only by AiCallout

- AiCallout API & documentation. Create your own AiCallouts.

--> reload AiCallouts without reloading LSPDFR.

- GrammarPolice Support: no interruption by Dispatch

- Heli Assistance Support: Helicopter responding to AiCallouts.

- RejectedCalloutAI 

--> If you don't take the call, AI has to Respond

- The Unit will respond to the location of the call you denied.

 

 

 

Here is a List of all development demos & other videos:

Spoiler

https://www.youtube.com/watch?v=BMPmnLqKzmE - GTA V : LSPDFR - AmbientAICallouts Plugin demo
https://streamable.com/r58x7h - AAIC - Crime Fighting - development demo 2

https://streamable.com/xk4ey6 - AAIC - RejectedCalloutAI - development demo 3

https://streamable.com/81ehq7- AAIC - Crime Prankcall - development demo 4

https://streamable.com/0c15t2 - AAIC - Crime MVA - development demo 5

https://streamable.com/0xxwc6 - AAIC - Crime Shooting - development demo 6

https://streamable.com/mbpbx3 - AAIC - Heli Assistance support - development demo 7

https://www.youtube.com/watch?v=y6O7oll1BN4 - AmbientAICallouts - Teaser

 

 

 

How to Use:

- Automatic separate AmbientResponse System which triggers AiCallouts.
- The AI will call for Backup if they need you. It will be shown as a LSPDFR Callout.
(you have to be available for calls)
- Attach yourself to an AiCallout

      simply use GrammarPolice and tell dispatch "show me responding in addition"

      or by pressing CTRL + X (can be changed in .ini)

- Console Commands for...

    StartRandomAiCallout => Forcing an random AiCallout,
    StartAiCallout AiCalloutName => Forcing an specific AiCallout,

    AbortAllRunningAiCallouts => Aborting/Cleaning up all AiCallout,

    AbortAiCallout FiberNumber => Aborting/Cleanup an specific AiCallout,  

    ReloadAmbientAICalloutSettings => Reloading AmbientAiCallout Settings,
    ReloadAiCalloutPlugins => Reloading the AiCallout dll's from /plugins/LSPDFR/AAIC

 

 

Installation:

Paste everything into your main Grand Theft Auto V folder.

Except for the READ_ME.

 

Requirements:

LSPD First Response.dll
RagePluginHook.dll

 

Recommended Addon:

Grammar Police V1.4.1.3

Heli Assistance V2.2.1

 


API and Documentation:

Create your own AiCallout. We provide a textual and visual documentation and template to easily create an AiCallout.

Learn from existing AiCallouts. OpenSource AiCallouts: https://github.com/ziipzaaapM16A4/Default-AiCallouts-Pack

Use the Template to jump right into development. All necessary and recommended are already there and with comments:
https://github.com/ziipzaaapM16A4/AiC_Example

 

 

 

Please don't forget to rate this plugin afterwards.

if you find a bug then give me the chance to take a look at it before posting a negative rating.

 

 

Attention: AAIC is penetrating the boundaries of GTA V's ability to manage/tasks objects in the GTA world objects. That doesn't mean that its likely to crash. It just means that if objects are to far from the player, GTA is more likely to prioritize things in the near. It can result in object not tasking things in the distance or GTA cleaning themselves up. This is one of the main reason why AiCallouts aborts themselves.
We do prevent crashes but we cannot prevent the abort of an AiCallout.

 

Known Issue:     Please open supportticket on our Discord if you encountered an Error.

- Most of the issues are object invalid errors but they should not crash. Just a bit log will come. 
- Sometimes if you are to far from an AiCallout the process will sleep until you're nearby due to rage not executing tasks to reduce resource usage. 

 

- With StopThePed you are unable to handle 2 Situations: a specific path of MVA and a specific path of the LSPDFR Callout OfficerRequiringAssistance.
  ==> due to not beeing able to LSPDFR Frisk a ped (when using STP) the "wait for frisk" will never end. => kinda fixed in the next version. Git reference
- HeliAssistance beeing taken away from the player due to AiCallout ending. => Can't fix this due to missing id system in Heli Assistance. API request has been send.

- Fighting: A stopped suspect won't disappear after time. hotfix coming soon. => Git reference
- ShotsFired: Ai will always call for Backup. hotfix out and online.  => Git reference

Edited by ziipzaaapM16A4
small details edited.


What's New in Version 0.9.7.3

Released

0.9.7.3: 
- fixed random units apearing and not moving when AiCallout has been canceled at Setup() part.
- Added Code 4 Notification when LSPDFR callout ends.
- Added HeliAssistance request probability in the .ini file. Decide yourself how often a Helicopter should get requested by dispatch.
- [fixed] AmbientResponse taking HeliAssistance Helicopter from Player when in use.
- [fixed] RejectedCalloutAI validity check to prevent crashes.
- [fixed] OfficerUnderFire: End(): crash.
- Reduced unnessesary error log when fibers aborts
- Vehicles will never be dismissed now. they will be non-persistent and disapear from itself after time.
- Added Heli request when AAIC-OfficerDown Callout.
- GrammarPolice status handler has been stabilized.
- Key Watcher has been changed.
- And many other big and small changes.
API:

- AiCallouts must now match the MinimumAiCalloutDistance and MaximumAiCalloutDistance

   to prevent beeing aborted by AmbientResponse.

- Added Code3 & Code2 Response difference. ResponseType can now be set in a AiCallout. 
  (Units will drive with lights and siren or normal) (take a look at Example_AiC online at GitHub.com for an Example)
- EnterAndDismiss() overload: can now only dismiss officers.
- EnterAndDismiss(): [fixed] can now dismiss even when original driver doesn't exist anymore and more other validity checks.
- EnterAndDismiss(): [fixed] unit not despawning when officers despawned before entering the vehicle.
- COM_OnScene(): the function which simply calls ai "OnScene" if possible has been fixed.
- IsAiTakingCare(): improved algorithm with probability in percent (take a look at AmbientAICallouts.ini)
Default-AiCallouts-Pack:
- ALL: callout distance self check added.

   Each Default-AiCallout has now its own distance self check to prevent beeing aborted by AmbientResponse due to invalid callout location.
- ALL: Reduced unnessesary error log when fibers aborts.
- Fighting: is now able to handle interaction by the player.
- Example_AiC: more comments and updated Example_AiC.cs
- [fixed] MVA: checking validity before calling LSPDFR functions to prevent crashes.
- Shotfired: Reduced task assignment for the GetInCoverTask.

- ziipzaaapM16A4 Director and Main Programmer.
- Piero for his work on the additional radio voicelines and editing almost all audio files over and over again until i was happy.
- Chris Scribner aka ChrisComposes - second voice actor.
- audiopalette for editing voicelines of the first voice actor.
- Brian Watts aka ShadowsFate - first voice actor and initially getting me to the idea to have additional radio voicelines.
- Pumpk1in for being the longest Patreon and for his advice on how to modify audio files to the quality of GTA's original audiofiles.
- Palfy & Lenny for their continuous support in testing, moderating and discussing AAIC related things.
- TheUnit for his help in my first steps of this plugin and expanding the whole idea to a master project.

People from the LSPDFR Developer Discord who helped me with problems (tell me if i forgot somebody):
LMS
PNWParksFan
Vincentsgm
sloosecaboose
Rich
alexguirre
...much more i can't remember all of them...

The people i'm using their API:
- opus49 - Creator of GrammarPolice - Thanks for adding features to his API in Grammar Police so AAIC is not interrupting the player when using the radio.
- OJdoesIt - Creator of HeliAssistance. - Thanks for his features to control the on scene time individually for plugins.

Optimized for

  • GrammarPolice

    Interact with the dispatcher.
    opus49

    By opus49

    Updated

    • 595.6k
  • Heli Assistance - Observer Mode, Customizable Searchlight, More Features

    helicopter helicopter helicopter helicopter
    OJdoesIt

    By OJdoesIt

    Updated

    • 122.7k
  • You may also like

  • LSPD First Response

    The LSPD First Response modification
    G17 Media

    By G17 Media

    Updated

    • 16.6m
  • Emergency uniforms pack - Law & Order

    https://www.patreon.com/alex_ashfold
    Alex_Ashfold

    By Alex_Ashfold

    Updated

    • 3.8m
  • 686 Callouts

    20 callouts, providing immersive variation to your LSPDFR experience.
    Charlie686

    By Charlie686

    Updated

    • 425.5k
  • Emergency Lighting System

    Emergency Lighting System V brings one of the most popular modifications ever created for a GTA title (ELS-IV) to Grand Theft Auto V. ELS-V will add a whole new dimension to  your patrols. With a fresh look and many more features than its predecessor, it's also sure to brighten up your game and satisfy the emergency lighting enthusiast in anyone.   DESCRIPTION − ELS provides an alternate and incredibly in-depth way of controlling emergency vehicle lights and sounds. − ELS requires
    Lt.Caine

    By Lt.Caine

    Updated

    • 3.9m
  • UnitedCallouts (Robbery, Drugs, Burglary & More)

    UnitedCallouts adds over 20 new varied and realistic callouts with different locations, endings and possibilities.
    sEbi3

    By sEbi3

    Updated

    • 1.3m
  • SuperCallouts

    SuperCallouts - 37 new detailed and uniform callouts.
    SuperPyroManiac

    By SuperPyroManiac

    Updated

    • 1.3m
  • User Feedback

    Recommended Comments



    2 hours ago, jj4YYy said:

    Hey thank you so much for your great work!  I LOVE it!

     

    Unfortunately it crashes my game sometimes. Ill attach my Log file and I hope u get usefull information out of it.

    RagePluginHook.log 518.33 kB · 6 downloads

    Fixed! Thank you for reporting this.


    @jj4YYy
    UPDATE: References to this bug can be found here:
    Issue: https://github.com/ziipzaaapM16A4/Default-AiCallouts-Pack/issues/2
    Commit: https://github.com/ziipzaaapM16A4/Default-AiCallouts-Pack/commit/3056a302b37d13a0976349d8831c5d64c0d4d72b
    Fixed Version will be in the next release. If you cannot wait check out the "quick fix download" at my Discord Server --> Link

    Edited by ziipzaaapM16A4
    Link to comment
    Share on other sites

    Very buggy at the moment, I've attached a ragelog but of 3 sessions i have played with this so far I've encountered bugs in every one with this installed. First bug experience was where i turned up to officer under fire and everyone was just stood there (img attached), same session after that the radar remained enlarged (from where it initially gives you the callout details and area of the crime on the map), which I couldn't press z to shrink it down or anything so it just obstructed my RageShowMyLocation info. Second session i encountered a bug where no other callouts would spawn after i attended an AI callout and third session the plugin caused a complete LSPDFR crash (Ragelog attached). This crash was associated with the callout "person runs away after officers asked for ID" or something like that in the Grapeseed area. Such a good concept, but needs to be ironed out over coming weeks. 

    20201222141008_1.jpg

    RagePluginHook.log

    Link to comment
    Share on other sites

    Hey @ziipzaaapM16A4 its me.. again ^^ 

    I got another RPH.log for u.

    It happened serveral times and now it referes to ShotsFired EDIT: and MVA

    On patroling, on active traffic stop and on active callout.
    This time the game is still up but LSPDFR crash.

     

    Im not into dev. plugins so I can´t say more. Sorry
    Hope it helps again fixing issues 🙂

     

    EDIT: Maybe its important that I allready installed the MVA Quickfix

    RagePluginHook.log

    Edited by jj4YYy
    Link to comment
    Share on other sites

    30 minutes ago, SergeantConnerB said:

    Very buggy at the moment, I've attached a ragelog but of 3 sessions i have played with this so far I've encountered bugs in every one with this installed. First bug experience was where i turned up to officer under fire and everyone was just stood there (img attached), same session after that the radar remained enlarged (from where it initially gives you the callout details and area of the crime on the map), which I couldn't press z to shrink it down or anything so it just obstructed my RageShowMyLocation info. Second session i encountered a bug where no other callouts would spawn after i attended an AI callout and third session the plugin caused a complete LSPDFR crash (Ragelog attached). This crash was associated with the callout "person runs away after officers asked for ID" or something like that in the Grapeseed area. Such a good concept, but needs to be ironed out over coming weeks. 

     

     

    8 minutes ago, jj4YYy said:

    Hey @ziipzaaapM16A4 its me.. again ^^ 

    I got another RPH.log for u.

    It happened serveral times and now it referes to ShotsFired.

    On patroling, on active traffic stop and on active callout.
    This time the game is still up but LSPDFR crash.



    @SergeantConnerB 
    Thank you for your feedback. I can only tell for the last session because you just provided log from the last session.
     ==> Keep in mind that after each session the RagePluginHook.log will be overwritten by RPH.

    I can only help when i get the log and in cases there was no crash i need you to deliver a short clip with timestamp. 
     

    About the 3.Session: You indeed found a bug. Thank you for Reporting that.


    @jj4YYy You encountered the same issue.

    ------------------------------------------------------------------------- Solution --------------------------------------------------
    The bug occurs where i didn't check validity of the ped before executing the task and the ped results as is invalid
    A new Issue has been opened at the GitHub. I will fix this one right now.
    You can watch the progress of this fix here: https://github.com/ziipzaaapM16A4/Default-AiCallouts-Pack/issues/3
    Each fix will be posted at the Discord Server before going online at the LSPDFR page.

    Edited by ziipzaaapM16A4
    Link to comment
    Share on other sites

    lol it says its been out since July 28 lol.🤔 its new right? cause im confused on why its saying its been out since July 

    okay its new i saw first 30 mins do a video on this. ill check it out once i stop loseing textures lmao

    i also subscribed : )

    Link to comment
    Share on other sites

    Sometimes when I attach to a call and roll up on scene, there is just an empty cruiser with no officers in sight. Anyone else noticed an issue like this?

     

    I also get massive texture loss when near other units on a call, but I don't think that's related to this plugin specifically.

    Link to comment
    Share on other sites

    10 minutes ago, DesertFox17 said:

    Sometimes when I attach to a call and roll up on scene, there is just an empty cruiser with no officers in sight. Anyone else noticed an issue like this?

     

    I also get massive texture loss when near other units on a call, but I don't think that's related to this plugin specifically.


     

    I too notice that. I’m not sure if it’s a bug with this plug-in or not? Perhaps you can send your rage log via the discord ticket system on the server. 
     

    as for the texture loss, not sure I get them too. Not sure if it’s a model thing? 

    Edited by JBuzz826
    Link to comment
    Share on other sites

    Thats nice plugin, but need the fix crashs.

    I was arrested a suspect and  pressed Backup Menu (default police backup), and game crashes.

     

    -But concept is very good!

    Link to comment
    Share on other sites

    As a future suggestion, since this mod can program AI to go to a specific location: the cops that are called for a prisoner transport to actually go to the nearest station to drop the suspects(idk the easiest thing is to do the same as the player, basically navigate to the drop off point and despawn the suspects from the back) instead of responding to other callouts with the suspects in the back. Also I can see a lack of callouts outside the city, maybe add more locations around the world. Also the callout location's you have made, adding  a good parking spot for the AI cops responders would be great, could be any spot if it's not blocking traffic. And of course add the notepad prop when a cop npc is writing a ticket 😉

    Link to comment
    Share on other sites

    so out of the blue my game crashes when chosing a car and this is in my logs 

     

    [12/23/2020 10:12:06 PM.963] LSPD First Response: 
    [12/23/2020 10:12:06 PM.979] LSPD First Response: [FATAL] Forced termination
    [12/23/2020 10:12:06 PM.979] LSPD First Response: [TRACE] Released 0 entities from DefaultContentManager
    [12/23/2020 10:12:08 PM.759] LSPD First Response: [INFO] LSPDFR has shut down
    [12/23/2020 10:12:09 PM.875] LSPD First Response: [AmbientAICallouts] [AmbientResponse] ERROR: System.Threading.ThreadAbortException: Thread was being aborted.
    [12/23/2020 10:12:09 PM.875] at Rage.GameFiber.SleepThis(Int32 duration)
    [12/23/2020 10:12:09 PM.875] at Rage.GameFiber.Sleep(Int32 duration)
    [12/23/2020 10:12:09 PM.875] at AmbientAICallouts.Main.<>c.<Load_AmbientResponse>b__31_0() in D:\#UserData\Dokumente 2 - TB\Development\Visual Studio\Repos\AmbientAICallouts\src\AmbientAICallouts\Main.cs:line 152
    [12/23/2020 10:12:10 PM.093] LSPD First Response: All signs removed
    [12/23/2020 10:12:10 PM.269] LSPD First Response: UB All Police Partners are removed
    [12/23/2020 10:12:10 PM.528] LSPD First Response:

     

    any help?

    Link to comment
    Share on other sites

    7 hours ago, ericcelrosu said:

    As a future suggestion, since this mod can program AI to go to a specific location: the cops that are called for a prisoner transport to actually go to the nearest station to drop the suspects(idk the easiest thing is to do the same as the player, basically navigate to the drop off point and despawn the suspects from the back) instead of responding to other callouts with the suspects in the back. Also I can see a lack of callouts outside the city, maybe add more locations around the world. Also the callout location's you have made, adding  a good parking spot for the AI cops responders would be great, could be any spot if it's not blocking traffic. And of course add the notepad prop when a cop npc is writing a ticket 😉

    cant do what the callout actually does

     

    Link to comment
    Share on other sites


    Create an account or sign in to comment

    You need to be a member in order to leave a comment

    Create an account

    Sign up for a new account in our community. It's easy!

    Register a new account

    Sign in

    Already have an account? Sign in here.

    Sign In Now
    ×
    ×
    • Create New...