Skip to content
View in the app

A better way to browse. Learn more.

LCPDFR.com

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

[SOLVED] Changing CalloutProbabilty

Featured Replies

Is there a way around the fact that you can't change the CalloutProbability at runtime?

For example:

TimeBombFrequency = ini.ReadEnum<CalloutProbability>("General", "TimeBombFrequency", CalloutProbability.Medium);

This can work fine, but since it has to be pre-determined at compile time you can't use a variable for it.

Edited by khorio

  • Author

Well, my problem is the following; i randomize callouts and randomize if one should start or not. If not i just return false in OnBeforeCalloutDisplayed()

But everytime the callout pops up as "Calloutmessage missing" (while it shouldn't show anything since i return false), and everytime i get this error

[09/06/2016 17:58:51.210] LSPD First Response: Creating KControl
[09/06/2016 17:58:51.211] [TRACE] Callout created:  #1
[09/06/2016 17:58:51.218] [TRACE] Instance cleaned ( #1)
[09/06/2016 17:58:51.219] [TRACE] Ending already
[09/06/2016 17:58:51.221]    at System.Environment.GetStackTrace(Exception e, Boolean needFileInfo)
[09/06/2016 17:58:51.221]    at System.Environment.get_StackTrace()
[09/06/2016 17:58:51.221]    at LSPD_First_Response.Engine.BaseComponent.End() in E:\GTA V\LSPD First Response\LSPD First Response\Engine\BaseComponent.cs:line 34
[09/06/2016 17:58:51.221]    at LSPD_First_Response.Mod.Callouts.Callout.End() in E:\GTA V\LSPD First Response\LSPD First Response\Mod\Callouts\Callout.cs:line 194
[09/06/2016 17:58:51.221]    at LSPDFR_Khallouts.Callouts.KControl.OnBeforeCalloutDisplayed() in E:\_GTADEV\LSPDFR Khallouts\LSPDFR Khallouts\Callouts\KControl.cs:line 153
[09/06/2016 17:58:51.221]    at ?????????????????????????????????????????.?????????????????????????????????????????(Callout ) in E:\GTA V\LSPD First Response\LSPD First Response\Mod\Callouts\CalloutManager.cs:line 254
[09/06/2016 17:58:51.221]    at ?????????????????????????????????????????.?????????????????????????????????????????(Type ) in E:\GTA V\LSPD First Response\LSPD First Response\Mod\Callouts\CalloutManager.cs:line 237
[09/06/2016 17:58:51.221]    at ?????????????????????????????????????????.?????????????????????????????????????????() in E:\GTA V\LSPD First Response\LSPD First Response\Mod\Callouts\CalloutManager.cs:line 134
[09/06/2016 17:58:51.221]    at Rage.GameFiber.Main()
[09/06/2016 17:58:51.222]    at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
[09/06/2016 17:58:51.222]    at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
[09/06/2016 17:58:51.222]    at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
[09/06/2016 17:58:51.222]    at System.Threading.ThreadHelper.ThreadStart()

 

It looks like the crash is occurring in your plugin and not in lspdfr itself. Copy the pdb and the DLL generated by VS so your crash reports can tell you where it crashed instead of ????????

  • Author
6 minutes ago, ainesophaur said:

It looks like the crash is occurring in your plugin and not in lspdfr itself. Copy the pdb and the DLL generated by VS so your crash reports can tell you where it crashed instead of ????????

The pdb is there as well, thats all its showing

Edit: I've just commented out my entire procedure, so all that happens in OnBeforeCalloutDisplayed() is returning false, i get the same errors in the log and the callout stills comes on screen "calloutmessage missing" 

File didn't copy properly

Edited by khorio

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...

Recently Browsing 0

  • No registered users viewing this page.

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.