Hello,
I just recently had this issue come up. I have been playing LCPDFR for about a week straight and now this issue is coming up. I have tried troubleshooting this on my own, I have done everything that has been posted about this issue on the Forums (DirectX, both Redist, Uninstalled and reinstalled a clean version of GTA IV, manually installed LCPDFR, used the automatic install, etc), but I still am unable to get LCPDFR to load, which is a shame as I love this mod.
I'll try to post as much information as I have. Also, I am unable to get any LCPDFR logs to come. I have this working on Episodes from Liberty City, but I want this on GTA IV.
AdvancedHookLog
Log started on: 21:19:41 7-28-2014
------------------------
[INFO - 21:19:41] Gameversion - 1.0.7.0
[INFO - 21:19:41] AdvancedHookInit 0.3 (C) 2013 LMS - Initialized
[INFO - 21:19:41] Attaching hooks...
[INFO - 21:19:41] CPools::InstallHooks: Hooking CPool__Initialize
[INFO - 21:19:41] CPools::InstallHooks: Hooking CPedFactory
[INFO - 21:19:41] Data unprotected
[INFO - 21:19:41] Game patched
[INFO - 21:19:41] Xlive protections disabled
[INFO - 21:19:41] Disabling network connection check
[INFO - 21:19:41] Spawning patcher thread
[INFO - 21:19:41] Patching files
[INFO - 21:19:52] Disabling loading screens
[INFO - 21:19:52] Increasing size of "PtrNode Single" pool from 8 to 10
[INFO - 21:19:52] Increasing size of "PtrNode Double" pool from 16 to 20
[INFO - 21:19:52] Increasing size of "Building" pool from 112 to 132
[INFO - 21:19:52] CPool__Initialize: Size: 132 - Name: Building - EntrySize: 32000
ASI Log
// -- GTA IV ASI LOADER LOG -- //
//-- (C) Alexander Blade 2008 -- //
C:WINDOWSsystem32dsound.dll is loaded, address 0x6DDE0000
Hooking dsound proc named "DirectSoundCreate"
"DirectSoundCreate" hooked, address 0x6DDFC95A
Hooking dsound proc named "DirectSoundEnumerateA"
"DirectSoundEnumerateA" hooked, address 0x6DE33C04
Hooking dsound proc named "DirectSoundEnumerateW"
"DirectSoundEnumerateW" hooked, address 0x6DDECB30
Hooking dsound proc named "DllCanUnloadNow"
"DllCanUnloadNow" hooked, address 0x6DDFEB54
Hooking dsound proc named "DllGetClassObject"
"DllGetClassObject" hooked, address 0x6DDE7D17
Hooking dsound proc named "DirectSoundCaptureCreate"
"DirectSoundCaptureCreate" hooked, address 0x6DE33B2C
Hooking dsound proc named "DirectSoundCaptureEnumerateA"
"DirectSoundCaptureEnumerateA" hooked, address 0x6DE33BE7
Hooking dsound proc named "DirectSoundCaptureEnumerateW"
"DirectSoundCaptureEnumerateW" hooked, address 0x6DDEDADA
Hooking dsound proc named "GetDeviceID"
"GetDeviceID" hooked, address 0x6DDED12D
Hooking dsound proc named "DirectSoundFullDuplexCreate"
"DirectSoundFullDuplexCreate" hooked, address 0x6DE33C21
Hooking dsound proc named "DirectSoundCreate8"
"DirectSoundCreate8" hooked, address 0x6DDED404
Hooking dsound proc named "DirectSoundCaptureCreate8"
"DirectSoundCaptureCreate8" hooked, address 0x6DE25BF6
Loading ASI C:Program Files (x86)SteamsteamappscommonGrand Theft Auto IVGTAIVAdvancedHookInit.asi
ASI loaded : C:Program Files (x86)SteamsteamappscommonGrand Theft Auto IVGTAIVAdvancedHookInit.asi, Address 0x6D5A0000
Loading ASI C:Program Files (x86)SteamsteamappscommonGrand Theft Auto IVGTAIVELS.asi
ASI loaded : C:Program Files (x86)SteamsteamappscommonGrand Theft Auto IVGTAIVELS.asi, Address 0x5B910000
Loading ASI C:Program Files (x86)SteamsteamappscommonGrand Theft Auto IVGTAIVScriptHookDotNet.asi
ASI loaded : C:Program Files (x86)SteamsteamappscommonGrand Theft Auto IVGTAIVScriptHookDotNet.asi, Address 0x5B350000
ScriptHook Log
Log start: Mon Jul 28 21:19:41 2014
-----------------------------------------------
[INFO] GTA IV Script Hook 0.5.1 - (C) 2009, Aru - Initialized
[INFO] Process base address: 0xac0000
[INFO] Auto detecting game version
[INFO] Using game version 1.0.7
[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] [ScriptHookDotNet] Thread started
[INFO] [ScriptHookDotNet] Thread killed
[INFO] [EmergencyLightingSystem] Thread killed
[INFO] [AdvScriptThread] Thread killed
[INFO] Script Hook - Shutdown
ScriptHookDotNet Log
2014-07-28 21:19:41 - Initializing ScriptHookDotNet v1.7.1.7 BETA (on GTA IV version 1.0.7.0 with C++ Hook version 0.5.1)
2014-07-28 21:20:18 - Direct3D device created!
2014-07-28 21:20:19 - SEARCHING FOR SCRIPTS...
2014-07-28 21:20:19 - Loading scripts in Assembly 'pluginsWoutersCallouts.net.dll' ...
2014-07-28 21:20:19 - Loading scripts in Assembly 'scriptsLCPDFR Loader.net.dll' ...
2014-07-28 21:20:19 - ...found script 'LCPDFR_Loader.Loader'!
2014-07-28 21:20:19 - ...found script 'LCPDFR_Loader.PublicScript'!
2014-07-28 21:20:19 - DONE! 2 valid scripts found!
2014-07-28 21:20:19 - STARTING SCRIPTS...
2014-07-28 21:20:19 - INFO: Phone number checks are not available!
2014-07-28 21:20:19 - ...successfully started script 'LCPDFR_Loader.PublicScript'!
2014-07-28 21:20:19 - ...successfully started script 'LCPDFR_Loader.Loader'!
2014-07-28 21:20:19 - Error during Tick in script 'LCPDFR_Loader.Loader':
System.IO.IOException: The process cannot access the file 'C:Program Files (x86)SteamsteamappscommonGrand Theft Auto IVGTAIVLCPD First Response.dll' because it is being used by another process.
at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
at System.IO.FileStream.Init(String path, FileMode mode, FileAccess access, Int32 rights, Boolean useRights, FileShare share, Int32 bufferSize, FileOptions options, SECURITY_ATTRIBUTES secAttrs, String msgPath, Boolean bFromProxy, Boolean useLongPath, Boolean checkHost)
at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share)
at LCPDFR_Loader.Test.LoadFile(String path)
at LCPDFR_Loader.Test.LoadAssembly()
at LCPDFR_Loader.Loader.Load()
at LCPDFR_Loader.Loader.Loader_Tick(Object sender, EventArgs e)
at GTA.Script.TryTick()
at GTA.Script.DoTick()
at GTA.ScriptThread.OnTick()
2014-07-28 21:20:29 - Direct3D device lost!
2014-07-28 21:20:29 - SCRIPTS TERMINATED!
Folder contents and the diagnostics together
I went through all the asi files and removed them one at a time so I only had one and still got the same error.
Diagnostics run on Advanced mode (after I removed ELS v8's scripts)
I've been working on this all day and would like to get this to work.
Thank you for your assistance! :)