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.

Error In Script Loader

Featured Replies

I'm new to modding GTA IV. I'm using LSPDFR and also vdH PoliceHelper plugin/add-on (i installed script hook 1.7.1.7 like it said in the video tutorial of vdH Police helper) the game with LSPDFR works perfectly without vdH PoliceHelper.

When loading up I get and error in script these are my log files, and yes its a legal copy of GTA IV. any help will be extremely appreciated.

[INFO - 3:18:29 PM] [Log] Started
[INFO - 3:18:29 PM] [Main] Main: Initializing...
[INFO - 3:18:29 PM] [Main] Main: LCPDFR Engine (C) 2011-2013 LMS
[INFO - 3:18:29 PM] [Main] Main: DO NOT USE THIS WITHOUT PERMISSION. YOU MAY NOT SHARE, MODIFY OR DECOMPILE THIS FILE.
[ERROR - 3:18:29 PM] [] System.FieldAccessException: Attempt by method '‭‬‏‏‌‭‭‭‎‪‌‬‎‭‮‮‭‌‏‌‫‌‮‪‮..ctor()' to access field 'GTA.base.HandleObject.pHandle' failed.
   at ‭‬‏‏‌‭‭‭‎‪‌‬‎‭‮‮‭‌‏‌‫‌‮‪‮..ctor() in d:\GTA IV\LCPDFR\SVN\trunk\LCPD First Response\Engine\Scripting\Entities\PoolUpdaterUnmanaged.cs:line 33
   at LCPD_First_Response.Engine.Main.‬‬‍‎‪‬‫‏‭‫‪‭‪‌‪‭‪‎‫‭‪‌‮() in d:\GTA IV\LCPDFR\SVN\trunk\LCPD First Response\Engine\Main.cs:line 162
   at LCPD_First_Response.Engine.Main.‎‏‌‌‬‏‎‍‏‮‬‎‌‭‮‏‪‎‪‌‮‭‭‫‬‍‌‎‮() in d:\GTA IV\LCPDFR\SVN\trunk\LCPD First Response\Engine\Main.cs:line 222

This log is for LCPDFR. You mention LSPDFR? Anyway: 

 

Hello there -- welcome to LCPDFR.com and thanks for trying out LCPDFR!

Please do the following: 

  • Make sure you aren't using a crack - We don't support cracks or people using pirated software
  • Update GTA IV to 1.0.7.0 (the latest version of the game, or 1.1.2.0 for EFLC) - These patches are needed.  
  • Make sure that you run the game as an administrator.
  • Make sure that your GTA IV root folder (and every subdirectory) is not set to "read-only"
  • Ensure that AdvancedHook.dll, ScriptHook.dll, ScriptHookDotNet.asi and Dsound.dll OR Xlive.dll are in the GTA IV ROOT folder
  • Ensure that there is a folder titled 'LCPDFR' in the ROOT GTA IV folder.
  • Check that all the above files exist, if they do not, reinstall LCPDFR with the MANUAL installation.
  • Ensure that you are using up to date versions of every LCPDFR dependency and LCPDFR itself.
  • Install these: https://www.microsoft.com/en-us/download/details.aspx?id=30653 , https://www.microsoft.com/en-us/download/details.aspx?id=30679 

In some cases, your issue is resolved after following the above steps. If it did help, please let everyone know in the topic that your issue is resolved. If you do have to post a topic, do the following;  

  • Give a clear, detailed description of the problem.
  • Explain any circumstances surrounding the problem.
  • State what solutions you have tried.
  • Post ALL relevant logs (LCPDFR.log, Scripthook.log, ScriptHookDotNet.log, AdvancedHook.log).
  • Include as much information as possible.
  • Post your system specifications.
  • Post what other mods you are using. This includes car and script mods.
  • Post a screenshot of your GTA IV or EFLC game directory. 

Please note that failure to follow these instructions may cause this thread to be closed.

Invenio, Investigatio, Imperium

  • Author

Woops sorry that was a typo, I have tried all of the things you listed above and it still doesn't work with the vdH PoliceHelper addon. 

 

ScriptHookDotNet logs...

 

2015-11-05 15:45:17 - Initializing ScriptHookDotNet v1.7.1.7 BETA (on GTA IV version 1.0.7.0 with C++ Hook version 0.5.1)
2015-11-05 15:46:04 - Direct3D device created!

2015-11-05 15:46:04 - SEARCHING FOR SCRIPTS...
2015-11-05 15:46:04 - Loading scripts in Assembly 'scripts\LCPDFR Loader.net.dll' ...
2015-11-05 15:46:04 -  ...found script 'LCPDFR_Loader.Loader'!
2015-11-05 15:46:04 -  ...found script 'LCPDFR_Loader.PublicScript'!
2015-11-05 15:46:04 - Loading scripts in Assembly 'scripts\vdH_PoliceHelper.net.dll' ...
2015-11-05 15:46:04 -  ...found script 'vdH.PHelper'!
2015-11-05 15:46:04 - DONE! 3 valid scripts found!

2015-11-05 15:46:04 - STARTING SCRIPTS...
2015-11-05 15:46:04 - INFO: Phone number checks are not available!
2015-11-05 15:46:05 -  ...successfully started script 'vdH.PHelper'!
2015-11-05 15:46:05 -  ...successfully started script 'LCPDFR_Loader.PublicScript'!
2015-11-05 15:46:05 -  ...successfully started script 'LCPDFR_Loader.Loader'!
2015-11-05 15:46:06 - Error during Tick in script 'LCPDFR_Loader.Loader':
                      System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.NullReferenceException: Object reference not set to an instance of an object.
                         at LCPD_First_Response.Engine.Main.‎‏‌‌‬‏‎‍‏‮‬‎‌‭‮‏‪‎‪‌‮‭‭‫‬‍‌‎‮() in d:\GTA IV\LCPDFR\SVN\trunk\LCPD First Response\Engine\Main.cs:line 244
                         at LCPD_First_Response.Engine.Main.Main_Tick(Object sender, EventArgs e) in d:\GTA IV\LCPDFR\SVN\trunk\LCPD First Response\Engine\Main.cs:line 211
                         --- End of inner exception stack trace ---
                         at System.RuntimeMethodHandle.InvokeMethod(Object target, Object[] arguments, Signature sig, Boolean constructor)
                         at System.Reflection.RuntimeMethodInfo.UnsafeInvokeInternal(Object obj, Object[] parameters, Object[] arguments)
                         at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
                         at LCPDFR_Loader.Test.Tick(Object sender, EventArgs e)
                         at LCPDFR_Loader.Loader.Loader_Tick(Object sender, EventArgs e)
                         at GTA.Script.TryTick()
                         at GTA.Script.DoTick()
                         at GTA.ScriptThread.OnTick()
2015-11-05 15:46:22 - Direct3D device lost!
2015-11-05 15:46:22 - SCRIPTS TERMINATED!
 

AdvancedHook Logs...

 

Log started on: 15:46:5 11-5-2015
------------------------
[INFO - 15:46:5] Gameversion - 1.0.7.0
[INFO - 15:46:5] Data unprotected
[INFO - 15:46:5] Game patched
[INFO - 15:46:5] Xlive protections disabled
[INFO - 15:46:5] Improving ELS compatibility
[INFO - 15:46:5] AdvancedHook 0.38 (C) 2010-2015 LMS - Initialized
[INFO - 15:46:5] E-Mail: lms@lcpdfr.com
[INFO - 15:46:5] Permission granted for LCPDFR & ELS only
[INFO - 15:46:5] Thanks to listener, aru, #iv-modding and cp702
[INFO - 15:46:5] Attaching exception handler...
[INFO - 15:46:5] Exception handler attached
[INFO - 15:46:5] Patching game functions...
[INFO - 15:46:27] An exception occured
[INFO - 15:46:28] Minidump saved
[INFO - 15:46:28] Process: FFED0000
Address: 479346 (Faulting module: C:\Program Files (x86)\Steam\steamapps\common\Grand Theft Auto IV\GTAIV\GTAIV.exe loaded into process space at 2D0000 - function offset without PE header is: 1A8346)
Code: C0000005
Registerdump - EAX: 1 EBP: F83A480 EBX: 0 ECX: 99CBA4D0 EDI: 187CB84 EDX: 600045F EIP: 479346 ESI: 4 ESP: 1CBE7B8

 

ScriptHook logs... 

 

Log start: Thu Nov 05 15:45:17 2015
-----------------------------------------------
[INFO] GTA IV Script Hook 0.5.1 - (C) 2009, Aru - Initialized
[INFO] Process base address: 0x2d0000
[INFO] Auto detecting game version
[INFO] Using game version 1.0.7
[INFO] [ScriptHookDotNet] Thread started
[INFO] [AdvScriptThread] Thread started
[INFO] [AdvScriptThread] Thread killed
[INFO] [ScriptHookDotNet] Thread killed
[INFO] Script Hook - Shutdown

 

LCPDFR logs...

 

[INFO - 3:46:05 PM] [Log] Started
[INFO - 3:46:05 PM] [Main] Main: Initializing...
[INFO - 3:46:05 PM] [Main] Main: LCPDFR Engine (C) 2011-2013 LMS
[INFO - 3:46:05 PM] [Main] Main: DO NOT USE THIS WITHOUT PERMISSION. YOU MAY NOT SHARE, MODIFY OR DECOMPILE THIS FILE.
[ERROR - 3:46:06 PM] [] System.FieldAccessException: Attempt by method '‭‬‏‏‌‭‭‭‎‪‌‬‎‭‮‮‭‌‏‌‫‌‮‪‮..ctor()' to access field 'GTA.base.HandleObject.pHandle' failed.
   at ‭‬‏‏‌‭‭‭‎‪‌‬‎‭‮‮‭‌‏‌‫‌‮‪‮..ctor() in d:\GTA IV\LCPDFR\SVN\trunk\LCPD First Response\Engine\Scripting\Entities\PoolUpdaterUnmanaged.cs:line 33
   at LCPD_First_Response.Engine.Main.‬‬‍‎‪‬‫‏‭‫‪‭‪‌‪‭‪‎‫‭‪‌‮() in d:\GTA IV\LCPDFR\SVN\trunk\LCPD First Response\Engine\Main.cs:line 162
   at LCPD_First_Response.Engine.Main.‎‏‌‌‬‏‎‍‏‮‬‎‌‭‮‏‪‎‪‌‮‭‭‫‬‍‌‎‮() in d:\GTA IV\LCPDFR\SVN\trunk\LCPD First Response\Engine\Main.cs:line 222

Edited by ChrisDeUnicorn

This is a support topic.
Only reply here to offer help or assistance to ChrisDeUnicorn. Off-topic or "me too" replies will be removed.

Need support yourself? Make a new topic instead.

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

Similar Content

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.