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.

AdvancedHook.dll problem

Featured Replies

EDIT: Rewriting post, new problem..

 

Okay, so now the game crashes after start-up and it says that the problem module is AdvancedHook.dll.

I'm on EFLC 1.1.2.0 with the following additional mods:

ELS V8

Vdh PoliceHelper

Vdh TowingService

Simple Native Trainer

IVDashCam 2

-

If you really really need my system specs I'll add them to this post, but I don't think my specs are related to this problem.

 

 

Logs: (PLEASE NOTE THAT THE ONLY RELEVANT LOGS ARE THE ONES AFTER 9:12 PM, THE EARLIER PROBLEMS ARE FIXED)

AdvancedHook.log:

Log started on: 21:14:48 6-1-2014

 ------------------------
 [iNFO - 21:14:48] Gameversion - 1.1.2.0
 [iNFO - 21:14:48] Data unprotected
 [iNFO - 21:14:48] Game patched
 [iNFO - 21:14:48] Xlive protections disabled
 [iNFO - 21:14:48] AdvancedHook 0.29 © 2010-2014 LMS - Initialized
 [iNFO - 21:14:48] E-Mail: lms@lcpdfr.com
 [iNFO - 21:14:48] Permission granted for LCPDFR only
 [iNFO - 21:14:48] Thanks to listener, aru and #iv-modding
 [iNFO - 21:14:48] Attaching exception handler...
 [iNFO - 21:14:48] Exception handler attached
 [iNFO - 21:14:48] Patching game functions...
 [iNFO - 21:14:48] New instance created: ELS
 [iNFO - 21:16:40] An exception occured
 [iNFO - 21:16:40] 
 Process: FFCD0000 
 
 Address: 70CF576B (Faulting module: C:Program Files (x86)SteamsteamappscommonGrand Theft Auto IV Episodes from Liberty CityEFLCEFLC.exe)
  
 Code: C0000005
 
 Registerdump - EAX: 0 EBP: 6335FDA4 EBX: 320 ECX: DFC EDI: 1 EDX: DFB EIP: 70CF576B ESI: 302 ESP: 6335FDA0

 
LCPDFR.log:

 ------------------------
[iNFO - 8:54:55 PM] [Log] Started
[iNFO - 8:54:55 PM] [Main] Main: Initializing...
[iNFO - 8:54:55 PM] [Main] Main: LCPDFR Engine © 2011-2013 LMS
[iNFO - 8:54:55 PM] [Main] Main: DO NOT USE THIS WITHOUT PERMISSION. YOU MAY NOT SHARE, MODIFY OR DECOMPILE THIS FILE.
[ERROR - 8:54:56 PM] [] System.FieldAccessException: Attempt by method 'freval_187..ctor()' to access field 'GTA.base.HandleObject.pHandle' failed.
   at freval_187..ctor()
   at LCPD_First_Response.Engine.Main.eval_fr4()
   at LCPD_First_Response.Engine.Main.fr3()
------------------------
[iNFO - 8:57:08 PM] [Log] Started
[iNFO - 8:57:08 PM] [Main] Main: Initializing...
[iNFO - 8:57:08 PM] [Main] Main: LCPDFR Engine © 2011-2013 LMS
[iNFO - 8:57:08 PM] [Main] Main: DO NOT USE THIS WITHOUT PERMISSION. YOU MAY NOT SHARE, MODIFY OR DECOMPILE THIS FILE.
[ERROR - 8:57:08 PM] [] System.FieldAccessException: Attempt by method 'freval_187..ctor()' to access field 'GTA.base.HandleObject.pHandle' failed.
   at freval_187..ctor()
   at LCPD_First_Response.Engine.Main.eval_fr4()
   at LCPD_First_Response.Engine.Main.fr3()
------------------------
[iNFO - 9:12:28 PM] [Log] Started
[iNFO - 9:12:28 PM] [Main] Main: Initializing...
[iNFO - 9:12:28 PM] [Main] Main: LCPDFR Engine © 2011-2013 LMS
[iNFO - 9:12:28 PM] [Main] Main: DO NOT USE THIS WITHOUT PERMISSION. YOU MAY NOT SHARE, MODIFY OR DECOMPILE THIS FILE.
[iNFO - 9:12:28 PM] [PluginManager] Initialize: Loading custom plugins
[WARNING - 9:12:28 PM] [settings] ReadSettings: Invalid entry 
[iNFO - 9:12:28 PM] [settings] ReadSettings: Suspect transporter POLICE
[iNFO - 9:12:28 PM] [settings] ReadSettings: Suspect transporter POLICE2
[iNFO - 9:12:28 PM] [settings] ReadSettings: Suspect transporter PSTOCKADE
[WARNING - 9:12:28 PM] [settings] ReadSettings: Invalid entry 
[WARNING - 9:12:28 PM] [settingsFile] GetValue: Value not found: DisableCameraFocusOnWorldEvents (Main)
[WARNING - 9:12:28 PM] [settingsFile] GetValue: Value not found: DisableSuspectTransportCutscene (Main)
[WARNING - 9:12:28 PM] [settingsFile] GetValue: Value not found: DisableRandomPoliceChatter (Main)
[WARNING - 9:12:28 PM] [settingsFile] GetValue: Value not found: PreloadAllModels (Main)
[WARNING - 9:12:28 PM] [settingsFile] GetValue: Value not found: Language (Main)
[WARNING - 9:12:28 PM] [settingsFile] GetValue: Value not found: ClientPort (Networking)
[WARNING - 9:12:28 PM] [settingsFile] GetValue: Value not found: AbortSuspectTransportCutscene (KeybindingsController)
[WARNING - 9:12:28 PM] [settingsFile] GetValue: Value not found: AbortSuspectTransportCutsceneModifierKey (KeybindingsController)
[WARNING - 9:12:28 PM] [settingsFile] GetValue: Value not found: AbortSuspectTransportCutscene (Keybindings)
[WARNING - 9:12:28 PM] [settingsFile] GetValue: Value not found: AbortSuspectTransportCutsceneModifierKey (Keybindings)
[WARNING - 9:12:28 PM] [settingsFile] GetValue: Value not found: RequestRoadblock (KeybindingsController)
[WARNING - 9:12:28 PM] [settingsFile] GetValue: Value not found: RequestRoadblockModifierKey (KeybindingsController)
[WARNING - 9:12:28 PM] [settingsFile] GetValue: Value not found: RequestRoadblock (Keybindings)
[WARNING - 9:12:28 PM] [settingsFile] GetValue: Value not found: RequestRoadblockModifierKey (Keybindings)
[iNFO - 9:12:28 PM] [Plugin.Main] Changing language to en-US
[iNFO - 9:12:28 PM] [Main] Main: Initializing done
[iNFO - 21:12:28] [serverCommunication] InitializeConnection: Internet connection available
[iNFO - 21:12:31] [serverCommunication] InitializeConnection: Public IP Address is: 83.252.156.165
[iNFO - 21:12:35] [serverCommunication] InitializeConnection: Connected to the LCPDFR server
[iNFO - 21:12:35] [NetworkManager] NetworkManager: In network session: False Is host: False
[iNFO - 21:12:35] [Authentication] Authentication: Server available, using online authentication
[ERROR - 21:12:36] [Authentication] Authentication: Error 0x320
[ERROR - 21:12:36] [Authentication] Authentication: Authentication failed
[iNFO - 21:12:36] [Authentication] Authentication: Failed to authenticate
[iNFO - 9:12:43 PM] [Plugin.Main] Running LCPD First Response LCPDFR 1.0b 2011-2014 LMS (1.0.5178.33429) 3/6/2014 6:34:18 PM
[iNFO - 9:12:43 PM] [Plugin.Main] Copyright © 2010-2014, G17 Media, www.lcpdfr.com
[iNFO - 21:12:43] [updateCheck] DoUpdateCheck: Checking for updates
[iNFO - 21:12:44] [updateCheck] DoUpdateCheck: No updates available
------------------------
[iNFO - 9:15:34 PM] [Log] Started
[iNFO - 9:15:34 PM] [Main] Main: Initializing...
[iNFO - 9:15:34 PM] [Main] Main: LCPDFR Engine © 2011-2013 LMS
[iNFO - 9:15:34 PM] [Main] Main: DO NOT USE THIS WITHOUT PERMISSION. YOU MAY NOT SHARE, MODIFY OR DECOMPILE THIS FILE.
[iNFO - 9:15:35 PM] [PluginManager] Initialize: Loading custom plugins
[WARNING - 9:15:35 PM] [settings] ReadSettings: Invalid entry 
[iNFO - 9:15:35 PM] [settings] ReadSettings: Suspect transporter POLICE
[iNFO - 9:15:35 PM] [settings] ReadSettings: Suspect transporter POLICE2
[iNFO - 9:15:35 PM] [settings] ReadSettings: Suspect transporter PSTOCKADE
[WARNING - 9:15:35 PM] [settings] ReadSettings: Invalid entry 
[WARNING - 9:15:35 PM] [settingsFile] GetValue: Value not found: DisableCameraFocusOnWorldEvents (Main)
[WARNING - 9:15:35 PM] [settingsFile] GetValue: Value not found: DisableSuspectTransportCutscene (Main)
[WARNING - 9:15:35 PM] [settingsFile] GetValue: Value not found: DisableRandomPoliceChatter (Main)
[WARNING - 9:15:35 PM] [settingsFile] GetValue: Value not found: PreloadAllModels (Main)
[WARNING - 9:15:35 PM] [settingsFile] GetValue: Value not found: Language (Main)
[WARNING - 9:15:35 PM] [settingsFile] GetValue: Value not found: ClientPort (Networking)
[WARNING - 9:15:35 PM] [settingsFile] GetValue: Value not found: AbortSuspectTransportCutscene (KeybindingsController)
[WARNING - 9:15:35 PM] [settingsFile] GetValue: Value not found: AbortSuspectTransportCutsceneModifierKey (KeybindingsController)
[WARNING - 9:15:35 PM] [settingsFile] GetValue: Value not found: AbortSuspectTransportCutscene (Keybindings)
[WARNING - 9:15:35 PM] [settingsFile] GetValue: Value not found: AbortSuspectTransportCutsceneModifierKey (Keybindings)
[WARNING - 9:15:35 PM] [settingsFile] GetValue: Value not found: RequestRoadblock (KeybindingsController)
[WARNING - 9:15:35 PM] [settingsFile] GetValue: Value not found: RequestRoadblockModifierKey (KeybindingsController)
[WARNING - 9:15:35 PM] [settingsFile] GetValue: Value not found: RequestRoadblock (Keybindings)
[WARNING - 9:15:35 PM] [settingsFile] GetValue: Value not found: RequestRoadblockModifierKey (Keybindings)
[iNFO - 9:15:35 PM] [Plugin.Main] Changing language to en-US
[iNFO - 9:15:35 PM] [Main] Main: Initializing done
[iNFO - 21:15:35] [serverCommunication] InitializeConnection: Internet connection available
[iNFO - 21:15:35] [serverCommunication] InitializeConnection: Public IP Address is: 83.252.156.165
[iNFO - 21:15:39] [NetworkManager] NetworkManager: In network session: False Is host: False
[iNFO - 21:15:37] [serverCommunication] InitializeConnection: Connected to the LCPDFR server
[iNFO - 21:15:39] [Authentication] Authentication: Server available, using online authentication
[ERROR - 21:15:41] [Authentication] Authentication: Error 0x320
[ERROR - 21:15:41] [Authentication] Authentication: Authentication failed
[iNFO - 21:15:41] [Authentication] Authentication: Failed to authenticate

 

ScripthookDotNet

2014-06-01 21:14:48 - Initializing ScriptHookDotNet v1.7.1.7 BETA (on GTA IV version 1.1.2.0 with C++ Hook version 0.5.1)
2014-06-01 21:15:31 - Direct3D device created!
 
2014-06-01 21:15:31 - SEARCHING FOR SCRIPTS...
2014-06-01 21:15:31 - Loading scripts in Assembly 'scriptsIVDashCamV2.net.dll' ...
2014-06-01 21:15:31 -  ...found script 'IVDashCamV2.Core'!
2014-06-01 21:15:31 -  ...found script 'IVDashCamV2.Extra'!
2014-06-01 21:15:31 - Loading scripts in Assembly 'scriptsLCPDFR Loader.net.dll' ...
2014-06-01 21:15:31 -  ...found script 'LCPDFR_Loader.Loader'!
2014-06-01 21:15:31 -  ...found script 'LCPDFR_Loader.PublicScript'!
2014-06-01 21:15:31 - Loading scripts in Assembly 'scriptsvdH_PoliceHelper.net.dll' ...
2014-06-01 21:15:31 -  ...found script 'vdH.PHelper'!
2014-06-01 21:15:31 - Loading scripts in Assembly 'scriptsvdH_towService.net.dll' ...
2014-06-01 21:15:31 -  ...found script 'vdH.TowService'!
2014-06-01 21:15:31 - DONE! 6 valid scripts found!
 
2014-06-01 21:15:31 - STARTING SCRIPTS...
2014-06-01 21:15:31 - INFO: Phone number checks are not available!
2014-06-01 21:15:31 -  ...successfully started script 'vdH.TowService'!
2014-06-01 21:15:32 -  ...successfully started script 'LCPDFR_Loader.PublicScript'!
2014-06-01 21:15:32 -  ...successfully started script 'LCPDFR_Loader.Loader'!
2014-06-01 21:15:34 - Error in constructor of script 'IVDashCamV2.Extra':
                      System.Net.WebException: The underlying connection was closed: An unexpected error occurred on a receive. ---> System.IO.IOException: Unable to read data from the transport connection: An existing connection was forcibly closed by the remote host. ---> System.Net.Sockets.SocketException: An existing connection was forcibly closed by the remote host
                         at System.Net.Sockets.Socket.Receive(Byte[] buffer, Int32 offset, Int32 size, SocketFlags socketFlags)
                         at System.Net.Sockets.NetworkStream.Read(Byte[] buffer, Int32 offset, Int32 size)
                         --- End of inner exception stack trace ---
                         at System.Net.Sockets.NetworkStream.Read(Byte[] buffer, Int32 offset, Int32 size)
                         at System.Net.PooledStream.Read(Byte[] buffer, Int32 offset, Int32 size)
                         at System.Net.Connection.SyncRead(HttpWebRequest request, Boolean userRetrievedStream, Boolean probeRead)
                         --- End of inner exception stack trace ---
                         at GTA.ScriptThread.LoadScriptNow()
2014-06-01 21:15:34 -  -> InnerException:
                      System.IO.IOException: Unable to read data from the transport connection: An existing connection was forcibly closed by the remote host. ---> System.Net.Sockets.SocketException: An existing connection was forcibly closed by the remote host
                         at System.Net.Sockets.Socket.Receive(Byte[] buffer, Int32 offset, Int32 size, SocketFlags socketFlags)
                         at System.Net.Sockets.NetworkStream.Read(Byte[] buffer, Int32 offset, Int32 size)
                         --- End of inner exception stack trace ---
                         at System.Net.Sockets.NetworkStream.Read(Byte[] buffer, Int32 offset, Int32 size)
                         at System.Net.PooledStream.Read(Byte[] buffer, Int32 offset, Int32 size)
                         at System.Net.Connection.SyncRead(HttpWebRequest request, Boolean userRetrievedStream, Boolean probeRead)
2014-06-01 21:15:34 -  -> InnerException:
                      System.Net.Sockets.SocketException (0x80004005): An existing connection was forcibly closed by the remote host
                         at System.Net.Sockets.Socket.Receive(Byte[] buffer, Int32 offset, Int32 size, SocketFlags socketFlags)
                         at System.Net.Sockets.NetworkStream.Read(Byte[] buffer, Int32 offset, Int32 size)
2014-06-01 21:15:34 -  ...successfully started script 'IVDashCamV2.Core'!
2014-06-01 21:15:36 -  ...successfully started script 'vdH.PHelper'!

 
Scripthook.log

Log start: Sun Jun 01 21:14:48 2014
-----------------------------------------------
[iNFO] GTA IV Script Hook 0.5.1 - © 2009, Aru - Initialized
[iNFO] Process base address: 0xd0000
[iNFO] Auto detecting game version
[iNFO] Using game version EFLC 1.1.2
[iNFO] Initiating: Luxart Emergency Lighting System (ELS) by Lt.Caine
[iNFO] (ELS) Script started: ELS V8.0 R-000
[iNFO] (ELS) Files - General information retrieved.
[iNFO] (ELS) Files - VMID [002] 'AMBULANCE',
[iNFO]       <ACTIVE> Using data from file: 'default_config'
[iNFO]       wrn_type: leds
[iNFO]       pri_type: leds
[iNFO]       sec_type: leds
[iNFO] (ELS) Files - VMID [027] 'FBI',
[iNFO]       <ACTIVE> Using data from file: 'default_config'
[iNFO]       wrn_type: leds
[iNFO]       pri_type: leds
[iNFO]       sec_type: leds
[iNFO] (ELS) Files - VMID [031] 'FIRETRUCK',
[iNFO]       <ACTIVE> Using data from file: 'default_config'
[iNFO]       wrn_type: leds
[iNFO]       pri_type: leds
[iNFO]       sec_type: leds
[iNFO] (ELS) Files - VMID [052] 'NOOSE',
[iNFO]       <ACTIVE> Using data from file: 'default_config'
[iNFO]       wrn_type: leds
[iNFO]       pri_type: leds
[iNFO]       sec_type: leds
[iNFO] (ELS) Files - VMID [063] 'POLICE',
[iNFO]       <ACTIVE> Using data from file: 'default_config'
[iNFO]       wrn_type: leds
[iNFO]       pri_type: leds
[iNFO]       sec_type: leds
[iNFO] (ELS) Files - VMID [064] 'POLICE2',
[iNFO]       <ACTIVE> Using data from file: 'default_config'
[iNFO]       wrn_type: leds
[iNFO]       pri_type: leds
[iNFO]       sec_type: leds
[iNFO] (ELS) Files - VMID [065] 'POLPATRIOT',
[iNFO]       <ACTIVE> Using data from file: 'default_config'
[iNFO]       wrn_type: leds
[iNFO]       pri_type: leds
[iNFO]       sec_type: leds
[iNFO] (ELS) Files - Vehicle information retrieved. Detected [7] ELS-enabled models.
[iNFO] [AdvScriptThread] Thread started
[iNFO] [EmergencyLightingSystem] Thread started
[iNFO] [simpleTrainer_TBOGT] Thread started
[iNFO] [scriptHookDotNet] Thread started
[WARN] [simpleTrainer_TBOGT] Thread instance is being deleted while still hooked
[iNFO] [simpleTrainer_TBOGT] Thread killed
[WARN] [EmergencyLightingSystem] Thread instance is being deleted while still hooked
[iNFO] [EmergencyLightingSystem] Thread killed
[WARN] [AdvScriptThread] Thread instance is being deleted while still hooked
[iNFO] [AdvScriptThread] Thread killed
[iNFO] Script Hook - Shutdown

 

 

 

 

 

 

Edited by Someone22

lovkal

Solved by cp702

The problem is with your advancedhook.dll file. You'll need to use the one that came with ELSv8, as it's optimized for both LCPDFR and ELS.

Edited by DanX

  • Solution

While that was likely the case with this topic (it does indeed use the old AH), it is no longer the case with 1.0c that you should use the ELS AdvancedHook. 1.0b came with AH 0.29, which did *not* support ELS; ELS support was added with AH 0.33 (which was the version packaged in ELS 8's download), but LCPDFR 1.0c requires (and contains) AdvancedHook 0.34 (the version packaged with LCPDFR 1.0c). If you have LCPDFR 1.0c, or any version in the future, use the copy of AdvancedHook that comes with your copy of LCPDFR.

  • Author

While that was likely the case with this topic (it does indeed use the old AH), it is no longer the case with 1.0c that you should use the ELS AdvancedHook. 1.0b came with AH 0.29, which did *not* support ELS; ELS support was added with AH 0.33 (which was the version packaged in ELS 8's download), but LCPDFR 1.0c requires (and contains) AdvancedHook 0.34 (the version packaged with LCPDFR 1.0c). If you have LCPDFR 1.0c, or any version in the future, use the copy of AdvancedHook that comes with your copy of LCPDFR.

 

 

The problem is with your advancedhook.dll file. You'll need to use the one that came with ELSv8, as it's optimized for both LCPDFR and ELS.

 

Thanks guys, it works.

The coffee tastes great by the way!

lovkal

  • 1 year later...
This is a support topic.
Only reply here to offer help or assistance to lovkal. 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...

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.