Jump to content

AchilleX

Members
  • Posts

    52
  • 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

Everything posted by AchilleX

  1. You need EUP 8.3 or the payed EUP 9.3/9.4.
  2. “LSPD pack”? Do you mean “FIB Police Pack”?
  3. As you can see, my plugin is not directly responsible for the crash. The problem seems to be creating a new thread.
  4. Is RageNativeUI.dll v.1.8.2 in your main game folder?
  5. From the log I see a lot of other plugins. When it crashes, does any RagePluginHook window appear? Does it let you generate a crash report?
  6. I see a lot of exceptions that my plugin has nothing to do with. Does that still happen without other plugins?
  7. Thanks for your opinion! Yes, you’re right. The convoy callout will change. That's what I'll be working on, along with a new callout
  8. Did you update the FIB HRT Callouts folder (the one with the outfits)? Please post here your RagePluginHook.log If for you it is the same, just play the original one . I'm not forcing anyone to play this.
  9. So happens also when my plugin is the only one in the plugin and plugin/LSPDFR folders? (except obvliusly for LSPD First Response.dll) Have you installed EUP 9.3?
  10. Are all hooks/mods/plugin up to date? Also drivers/updates? Does still happen without any other plugin?
  11. Yes, I was right. This seems something related to memory corruption. Does this still happen if you accept the callout when you are already near the location (Vespucci Helipad)?
  12. There is no information in the log you posted. You should generate a crash report and tell me the Stack Trace. For what I can see, seems something caused by Rage…
  13. Premise: this callout pack does not aim to be realistic at all. But I would not call my Bank Robbery callout a "little bank robbery": the robbers are extremely armed and are holding people hostage. That is why the HostageRescueTeam of the FIB intervenes.
  14. Sorry, I don't understand your request. Can you rephrase the sentence?
  15. The dictionary is used to make a single blip for every vehicle, even if there are two or more peds inside it. I did not know that there is a implicit cast to bool for Entities, thanks. But isn't removing an element from a list while iterating it something that should not be done? Maybe it is better to do foreach (Blip blip in blips.ToList())
  16. It always worked like that from the first release, I think an exception occurred. Please let me now if it happens again!
  17. Yes, I have to extra check it when I manage all the blips. I tried this code running in the Process method // Have to clear the dictionary foreach (Blip blip in vehicleHashMap.Values) if (blip?.Exists() ?? false) blip.Delete(); vehicleHashMap.Clear(); // Check each blip foreach (Blip blip in blips ?? Enumerable.Empty<Blip>()) { // Check if the blips exists (and it is not null) if (blip?.Exists() ?? false) { // Get ped the blip is attached to Ped attachedPed = blip.Entity as Ped; // If it is null or non existent, delete the blip if (attachedPed == null || !attachedPed.Exists()) blip.Delete(); // If it exists else { // If the ped is dead, delete the blip if (attachedPed.IsDead) blip.Delete(); // If it is alive else { // If it is in a vehicle, add a blip with scale 1.0f to the vehicle if (attachedPed.IsInAnyVehicle(false)) { // Hide the ped's blip blip.Alpha = 0f; Vehicle currentPedVehicle = attachedPed.CurrentVehicle; // Just to be sure if (currentPedVehicle == null || !currentPedVehicle.Exists()) continue; // If the vehicle is already in the dictionary, continue if (vehicleHashMap.ContainsKey(currentPedVehicle)) continue; // Else, add the blip else vehicleHashMap.Add(currentPedVehicle, currentPedVehicle.AttachBlip()); } // If it is not in a vehicle, show the blip and set the scale to 0.75f else { blip.Alpha = 1f; blip.Scale = 0.75f; } } } } } where List<Blip> blips; Dictionary<Vehicle, Blip> vehicleHashMap; with 40 peds, and yes the impact in the performance is noticeable. Note that I did not implement the distance from the Player fade out/fade in and I did not copy the color and the sprite of the ped's blip to the vehicle blip. This code could be run in a GameFiber that yields for 100ms, for example, but still AI Blips would be better. The concept of an AI Blip is better, but because _GET_AI_BLIP and other natives do not work the actual implementation is not. But maybe someone knows how to make them work
  18. You have to check each tick: If the blip exists, If the entity exists. If not, delete the blip, If the entity is alive. If not, delete the blip, If the entity is on foot, scale the blip to 0.75f, If the entity is in a vehicle, attach the blip to the vehicle (with scale 1.0f), If the entity is in a vehicle and there are other peds in the vehicle, make sure to not attach another blip to the vehicle, If the entity is far away, fade out the blip, null-checking the data structure, the blip, the entity and the vehicle. There are lots of calls to natives. The complexity should be O(n) (fixing the problem of the single blip attached to the vehicle with an hash map, for example), but having to do it every tick is not something I would call neat . AI Blips are way better, but I don’t understand why the natives involved with them are so broken!
  19. Sorry but that is not useful at all (I've already checked them before posting this). The first link just repeats the code I wrote: Ped ped = new Ped(); NativeFunction.Natives.SET_PED_HAS_AI_BLIP(ped, true); // If the argument hasCone is setted to false, the blip won't be created for some reasons NativeFunction.Natives.SET_PED_AI_BLIP_HAS_CONE(ped, false); And the second native did not work for me. And even if it did, I still can't change the sprite or the size.
  20. Hi guys. Let's say I'm coding a callout and I want to attach a blip to a Ped. What I do is simply Ped ped = new Ped(); Blip pedBlip = ped.AttachBlip(); // or new Blip(ped) but this notation has drawbacks: The blip will always show up, even if the entity is far away (a simple solutions is SET_BLIP_AS_SHORT_RANGE, but still the blip will always be displayed on the map); If the ped enters a vehicle, the blip won't manually change size; If I want the blip to disappear if the ped dies, I have to manually check in the Process method if the entity has died. When the blips are not one but, for example, 40 this method can easily lead to bad performances and throw exceptions. The best solutions to these problems is given by AI Blips: they change size when the ped enters a vehicle, if there are two or more peds in a vehicle a single blip will be displayed and the blip will disappear if the ped dies or is deleted. The problem is that AI Blips are not so easy to use . The correct way to create an AI Blip (without the blue vision cone) is: Ped ped = new Ped(); NativeFunction.Natives.SET_PED_HAS_AI_BLIP(ped, true); // If the argument hasCone is setted to false, the blip won't be created for some reasons NativeFunction.Natives.SET_PED_AI_BLIP_HAS_CONE(ped, false); and this solves the problems that I have pointed out. But let's assume that I want to attach an AI Blip to a friendly ped or a cop: I don't want a red blip but a Police blip. What I do is: NativeFunction.CallByHash<int>(0xFCFACD0DB9D7A57D, ped, (int)BlipSprite.Police); // _SET_PED_AI_BLIP_SPRITE(ped, 3) but this does not work! There is also a native Blip _GET_AI_BLIP(Ped ped) // 0x56176892826A4FE8 0xCA52CF43 b323 that I assume returns a int32 (an handle to the blip), and can be used to modify the scale, color, ecc.. using the natives for normal blips. The problem is that this native always returns 0 (same thing with her sister _GET_AI_BLIP_2), and so it is useless! So my question is: is there a way to properly change the AI Blip? For now, an AI Blip is only useful with enemies (or, more generally, peds that you want to be displayed with a red blip) but not for friends or cops. Addendum: _SET_PED_AI_BLIP_SPRITE appears to be working if used inside a loop (for example the Process method). But still, this can lead to troubles!
  21. A yellow blip should show up, obviously. There is a review here with a linked video that shows how Escort the VIP should work out. Maybe an exception occurred (never happened during my testing): please post here your RagePluginHook.log
  22. Yes. You can manually modify every custom outfit if needed. Just read the README.txt
  23. Thanks for the feedback. I’m going to investigate it tomorrow! EDIT @Officerporci No issues from my side. The log you posted is not very helpful, are you using a lot of other scripts for LSPDFR? Maybe there are a lot of RelationshipsGroups and when my script tries to load a new RelationshipGroup, the game crashes. Please let me know if without the other plugins for LSPDFR the game still crashes.
  24. Wow! Thanks! Now i'll try it. I was using Cheat Engine to find something similar and I found a byte that was modified by the function with offset 0xF7D0F8, but I did not manage to call it successfully. Never tought I could do something like this! EDIT Working!
  25. Version 1.2.2.0

    70,595 downloads

    Crazy and original callouts for LSPDFR.
×
×
  • Create New...