Jump to content
The latest updated version of RAGE Plugin Hook, required to play LSPDFR, can be found inside the LSPDFR download. It is not currently available on the RAGE Plugin Hook website.

Bug report : world cleanup conflicts with ambient events


Recommended Posts

Spoiler

 

 

 

Spoiler

Running ambient events will cause a crash if Player ignore the event and refresh the world before the ambient event is engine cleaned up by LSPDFR.
The reason is that there is no callout-stopping pendent-method for Ambient events.
Call-outs would be just as problematic, but the method Functions.StopCurrentCallout(); avoids the crash
A function StopCurrentAmbientEvent(); would be sufficient to avoid the crash
Crash:

[1/11/2024 7:12:13 AM.831]
Player invoke
Functions.StopCurrentCallout();//lspdfr crash when callout cleanup attemps to remove default-blips                                        
foreach (Blip b in World.GetAllBlips())//blip clean up
         if (b) b.Delete();

:
[1/11/2024 7:15:53 AM.234] LSPD First Response: [TRACE] Aborting EvadeCopsInVehicle: TaskEvadeCopsAdvInVehicle still active
:
[1/11/2024 7:23:47 AM.379] LSPD First Response: [TRACE] Aborting EvadeCops: Freeing suspect
[1/11/2024 7:23:47 AM.379] LSPD First Response: [TRACE] Aborting EvadeCopsInVehicle: Aborting main task
[1/11/2024 7:23:47 AM.379] LSPD First Response: [TRACE] TaskEvadeCopsAdvInVehicle::OnAbort
[1/11/2024 7:23:47 AM.384] LSPD First Response:
[1/11/2024 7:23:47 AM.384] LSPD First Response: ==============================
[1/11/2024 7:23:47 AM.384] LSPD First Response: UNHANDLED EXCEPTION DURING GAME FIBER TICK
[1/11/2024 7:23:47 AM.384] LSPD First Response: ------------------------------
[1/11/2024 7:23:47 AM.384] LSPD First Response: Origin: Game fiber "<UNNAMED THREAD>".
[1/11/2024 7:23:47 AM.384] LSPD First Response: ------------------------------
[1/11/2024 7:23:47 AM.384] LSPD First Response: Exception type: Rage.Exceptions.InvalidHandleableException
[1/11/2024 7:23:47 AM.384] LSPD First Response: Exception message: Operation is not valid because the specified  Rage.Blip is invalid.

 

See my plugin here:
https://www.youtube.com/watch?v=peqSXuTfIyY

Let me know if you find it interesting.
Best Regards.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.



×
×
  • Create New...