Jump to content

rican a55a551n

Members
  • Posts

    231
  • Joined

  • Last visited

 Content Type 

Forums

Gallery

Downloads

Tutorials

News Stories

Wiki

Community Guidelines

LSPDFR BOLO Series

GTA5 Native Database

GTA5 Native Parameters

Release Highlights

LSPDFR Mod Showcase

LML User Contributions

Posts posted by rican a55a551n

  1. So my games crashing after I updated it, I checked openiv to see if I need to update my folder and there's nothing. When I rename mods to _mods the game loads fine. I didn't add anything recently only updated the game. Is there anything I need to add for the last update to my mods folder? Usually after updating the game I would get a message in open iv if it needed an update. Ragepluginhook log isn't showing anything either.

    Just now, rican a55a551n said:

    So my games crashing after I updated it, I checked openiv to see if I need to update my folder and there's nothing. When I rename mods to _mods the game loads fine. I didn't add anything recently only updated the game. Is there anything I need to add for the last update to my mods folder? Usually after updating the game I would get a message in open iv if it needed an update. Ragepluginhook log isn't showing anything either.

    Or did something change in the update.rpf?

  2. 11 hours ago, UnknownBastion said:

    Remove ScriptHookV.dll and try again.

    do we know why this is causing an issue? ive never had this problem in the years ive been playing.

    10 minutes ago, rican a55a551n said:

    do we know why this is causing an issue? ive never had this problem in the years ive been playing.

    Wow I didn't realize how out dated my scripthook.net was.

    You are an angel  @UknownBastion.  Are you zenatae by chance?

  3. 4 hours ago, GTAbear said:

    You do have the template for a callout?

    If not it is very useful:

    Also the template:

    ...witch i cant find?!
    Maybe you have it?
    If not i can post it, but its not mine, so i dont know..
    Someone may have the link and posts it

    Thank you I've been watching so.e videos but they never explain the reason they type something in the code. I'm gonna check out the template you li ked thank you.

  4. 10 minutes ago, GTAbear said:

    😛 -me, but @Cyan is much more knowledge, and he is 100% correct. That 'code' is at best possible to regard as pseudo-code, it simple does not comply with the API at all, so all actual methods would have to be made, as a class-extension library, and from scratch.
    I think the AI attempt is interesting though, because it shows that noone making callouts for LSPD should feel threatened by chatGPT anytime soon 😛

     

    Lol well I got some studying to do I'd like to start making callouts. Recently got back into lspdfr and have fully customized my game, customized callouts would be nice. Appreciate your responses

  5. 45 minutes ago, Cyan said:

    that code contains a lot of AI dreamed garbage sadly, namespaces and code that simply does not exist.

    something like this?

     

    Spoiler

    using System;
    using System.Collections.Generic;
    using System.Linq;
    using System.Text;
    using System.Threading.Tasks;

    using LSPDFR;
    using LSPDFR.API.Events;
    using LSPDFR.API.Functions;
    using LSPDFR.Plugins.StopThePed;

    namespace LSPDFR.Plugins
    {
        public class K9NarcoticsOfficerPlugin : Plugin
        {
            public override void OnGameStart()
            {
                // Register for the "OnCalloutReceived" event.
                Events.OnCalloutReceived += OnCalloutReceived;

                // Register for the "OnStopThePed" event.
                Events.OnStopThePed += OnStopThePed;
            }

            private void OnCalloutReceived(Callout callout)
            {
                // If the callout is for a narcotics search, respond as a K9 narcotics officer.
                if (callout.Type == CalloutType.NarcoticsSearch)
                {
                    // Get the player's current vehicle.
                    Vehicle vehicle = Player.CurrentVehicle;

                    // If the player is not in a vehicle, spawn a K9 unit.
                    if (vehicle == null)
                    {
                        vehicle = SpawnVehicle("K9 Unit");
                    }

                    // Assign the player as the K9 unit's handler.
                    vehicle.SetHandler(Player);

                    // Accept the callout.
                    AcceptCallout(callout);
                }
            }

            private void OnStopThePed(Ped ped)
            {
                // If the ped is carrying drugs, search them with the K9 unit.
                if (ped.IsCarryingDrugs())
                {
                    // Get the player's K9 unit.
                    Vehicle vehicle = Player.CurrentVehicle;

                    // If the player is not in a vehicle, return.
                    if (vehicle == null)
                    {
                        return;
                    }

                    // Search the ped with the K9 unit.
                    vehicle.SearchPed(ped);
                }
            }

            private void SpawnVehicle(string model)
            {
                // Get the vehicle manager.
                VehicleManager vehicleManager = new VehicleManager();

                // Spawn the vehicle.
                vehicleManager.SpawnVehicle(model, Player.Position, Player.Heading);
            }
        }
    }
     

     

    47 minutes ago, Cyan said:

    that code contains a lot of AI dreamed garbage sadly, namespaces and code that simply does not exist.

    sorry about the response i thought you were the person who responded before

  6. 7 hours ago, GTAbear said:

    Well any complete c# library platform would be useable, but i use MSVisualStudio-community release (free version), and am pretty pleased with that.
    If you post the AI-code i will be happy to attempt to build it for you

    checked out the video, some pretty creative actions. i like the part that lets you take any vehicle. 

    I would appreciate it if you could give it a try for me.

     

    this is what i asked it to create

     

    can you make a callout pack for lspdfr that is written in C# that allows me to respond as a k9 police callouts included would be traffic stop back up, traffic stop drug search, missing person or any other callout you deem appropriate. id like it to spawn in random locations in san andreas and have random scenarios, outcomes and use the AI to generate more complex conversations and interactions between me and the other characters in the callout.

     

    this was the code i received 

     

    Spoiler

    using System;
    using System.Collections.Generic;
    using System.Linq;
    using System.Text;
    using System.Threading.Tasks;

    using LSPDFR;
    using LSPDFR.Callouts;
    using LSPDFR.Extensions;
    using LSPDFR.GUI;
    using LSPDFR.Hashes;
    using LSPDFR.Objects;
    using LSPDFR.Overrides;
    using LSPDFR.Util;

    namespace K9Callouts
    {
        public class K9Callouts : Script
        {
            public K9Callouts()
            {
                // Register callout events
                RegisterCallout("traffic_stop_backup", OnTrafficStopBackup);
                RegisterCallout("traffic_stop_drug_search", OnTrafficStopDrugSearch);
                RegisterCallout("missing_person", OnMissingPerson);

                // Initialize AI
                AI = new K9AI();
            }

            private void OnTrafficStopBackup(CalloutArgs args)
            {
                // Get the traffic stop ped
                Ped ped = args.Ped;

                // Get the traffic stop vehicle
                Vehicle vehicle = args.Vehicle;

                // Get the traffic stop location
                Vector3 location = args.Location;

                // Spawn the K9 unit
                SpawnK9Unit(location);

                // Tell the K9 unit to search the traffic stop vehicle
                AI.SearchVehicle(vehicle);
            }

            private void OnTrafficStopDrugSearch(CalloutArgs args)
            {
                // Get the traffic stop ped
                Ped ped = args.Ped;

                // Get the traffic stop vehicle
                Vehicle vehicle = args.Vehicle;

                // Get the traffic stop location
                Vector3 location = args.Location;

                // Spawn the K9 unit
                SpawnK9Unit(location);

                // Tell the K9 unit to search the traffic stop ped
                AI.SearchPed(ped);
            }

            private void OnMissingPerson(CalloutArgs args)
            {
                // Get the missing person ped
                Ped ped = args.Ped;

                // Get the missing person location
                Vector3 location = args.Location;

                // Spawn the K9 unit
                SpawnK9Unit(location);

                // Tell the K9 unit to search for the missing person
                AI.SearchForMissingPerson(ped);
            }

            private void SpawnK9Unit(Vector3 location)
            {
                // Create a new K9 unit ped
                Ped ped = CreatePed(Hash.K9, location, false, true);

                // Set the ped's outfit
                ped.SetOutfit(K9Outfit);

                // Set the ped's weapons
                ped.GiveWeapon(Hash.Knife, 1, false, false);

                // Set the ped's health
                ped.SetHealth(250);

                // Add the ped to the player's team
                ped.SetTeam(Player.Team);

                // Set the ped's objective
                AI.SetObjective(ped, location);
            }

            private K9AI AI;

            private static readonly Hash K9Outfit = Hash.ClothesMaleSP_CopK9;
        }
    }
     

    i really just want to play as a k9 officer but there's only one callout pack and im bored of it. I appreciate you giving it a go.

     

     

  7. 56 minutes ago, GTAbear said:

    You only have raw code -right
    The tool did not give you a dll (of cause not)
    So the raw code from the tool need to be build, and the resulting dll need to be installed in proper folder

    ill give it a watch, im really interested in seeing what ai can do. i would use visual studios to make the dll correct?

  8. I've been messing with BARD and openai trying to get it to make me a K9 backup callout pack that uses random dialog, when it does make the code and give me the instructions it has me installing it in folders and editing config files that don't exist. does anyone have experience with making their own callouts with ai that have any tips on how i should be asking it to create it?

  9. 2 hours ago, DrChilliPepper said:

    Hello I'm new to LSPDFR. I want a callout pack which has high speed chase, I have highway callouts but it doesn't work and shows code 4 disregard for some reason so I wanted some other callout which has high speed chase with supercars like Turismo, T20 or something similar. All I have right now are regular chases like money truck, stolen police vehicle and normal car chases

    There is a pack a pursuit callouts, I tried it and it's not too bad

  10. 32 minutes ago, Charlie686 said:

    That update shouldn't have caused any issues. Odd.

    To confirm, if you disable your mods folder by renaming it to _mods, it doesn't crash?

    Nope loads right up. My game has been stable for quite a while so I haven't messed around in open iv in over 2 weeks. Im going to try a new mods folder later today, hopefully it loads with a fresh one.

  11. 32 minutes ago, Charlie686 said:

    Your RPH log will not contain any information as to why your mods folder is crashing.

    When you updated your update.rpf, did you then re-add/edit any files such as your dlclist?

    First I tried launching with just the replaced update.rpf and it crashed. Then I replaced gameconfig, visualdatsettings vehicle meta and dlc list and it still crashed. Everything is up to date in my gta folder. I was playing yesterday no problem at 2pm my time. The update came at 330pm so I updated it and couldnt get it to load. Game launches no problem with _mods. This is the first update in a couple years I've had issues with. I'll try to make a new mods folder and install everything again. If that doesn't get it to load I'm at a lose. 

  12. So I know how to update the game and how to update mods folder. I've updated many times before this last update with no issue. Has anyone else who is experienced at getting the game updated had problems? I know it has something to do with my mods folder but I haven't touched it other than to update my update.rpf. I'm wondering if something that rockstar updated is being overwritten by the mods update.rpf in the mods folder but it's missing something. Any lspdfr veterans have an idea what it could be. I've read through my rage log and can see any errors.

  13. 16 minutes ago, eyespy900 said:

    Hello everyone, it’s been a few months since I played gta, however, I have tried to play and 1st problem I had was game version not supported, so I reverted to previous version, now when I try and launch it says please update the game, I am therefore going round and round. Help!!!.  Thank you in advance

    The game had an update 2 hours ago. Try to Verify you game files through steam and update your update folder in openiv .

  14. 3 hours ago, Thundercat18 said:

    So LSPDFR has been working fine for me for the last couple of days, however yesterday I installed EUP and since then, LSPDFR randomly crashes. Im not sure if it has to do with EUP or maybe something like Ultimate Backup because I cant understand the crash logs. But here is my most recent log form last night. ANY help would be very much appreciated! Thank You!

     

      RagePluginHook_17082021_035834.log 88.99 kB · 1 download

     

    3 hours ago, Thundercat18 said:

    So LSPDFR has been working fine for me for the last couple of days, however yesterday I installed EUP and since then, LSPDFR randomly crashes. Im not sure if it has to do with EUP or maybe something like Ultimate Backup because I cant understand the crash logs. But here is my most recent log form last night. ANY help would be very much appreciated! Thank You!

     

      RagePluginHook_17082021_035834.log 88.99 kB · 1 download

    I think you need the newest rageNativeUI. https://github.com/alexguirre/RAGENativeUI/releases

×
×
  • Create New...