Well... at least I tried

Well... at least I tried. The 0.1 version of NooseMod in LCPDFR, so far has reached the final steps. Most of the callouts and "extra plugins", including the method to change relationship, are working correctly. On the last post, Terrorist Pursuit callout is working with no problems.

Unfortunately, when the NooseMod callout is called in (forcibly using SHDN console), it instead CTD even though I already put in exceptions. 3 attempts.

Here's my logs.

Scripthookdotnet.log

2017-08-16 22:17:04 - Initializing ScriptHookDotNet v1.7.1.7 BETA (on GTA IV version 1.1.2.0 with C++ Hook version 0.5.1)
2017-08-16 22:17:36 - Direct3D device created!

2017-08-16 22:17:36 - SEARCHING FOR SCRIPTS...
2017-08-16 22:17:36 - Loading scripts in Assembly 'scripts\AISirens.net.dll' ...
2017-08-16 22:17:36 -  ...found script 'AISirens.net.AISirens'!
2017-08-16 22:17:36 - Loading scripts in Assembly 'scripts\Ambiance.net.dll' ...
2017-08-16 22:17:36 -  ...found script 'Ambiance'!
2017-08-16 22:17:36 - Loading scripts in Assembly 'scripts\CautiousDrivers.net.dll' ...
2017-08-16 22:17:36 -  ...found script 'CautiousDrivers.CautiousDriversScript'!
2017-08-16 22:17:36 - Loading scripts in Assembly 'scripts\DeadlyWrecks.net.dll' ...
2017-08-16 22:17:36 -  ...found script 'DeadlyWrecks.Main'!
2017-08-16 22:17:36 - Loading scripts in Assembly 'scripts\DirtNap.net.dll' ...
2017-08-16 22:17:36 -  ...found script 'DirtNap.net.DirtNap'!
2017-08-16 22:17:36 - Loading scripts in Assembly 'scripts\Door Ajar Chime.net.dll' ...
2017-08-16 22:17:36 -  ...found script 'Door_Ajar_Chime.Main'!
2017-08-16 22:17:36 - Loading scripts in Assembly 'scripts\DynamicHUD.net.dll' ...
2017-08-16 22:17:36 -  ...found script 'DynHUD'!
2017-08-16 22:17:36 - Loading scripts in Assembly 'scripts\EnemyAlert.net.dll' ...
2017-08-16 22:17:36 -  ...found script 'EnemyAlert'!
2017-08-16 22:17:36 - Loading scripts in Assembly 'scripts\FuelScript.net.dll' ...
2017-08-16 22:17:36 -  ...found script 'FuelScript.FuelScript'!
2017-08-16 22:17:36 - Loading scripts in Assembly 'scripts\GTAPolicingTools.net.dll' ...
2017-08-16 22:17:36 -  ...found script 'GTAPolicingTools.ANPR'!
2017-08-16 22:17:36 -  ...found script 'GTAPolicingTools.Core'!
2017-08-16 22:17:36 -  ...found script 'GTAPolicingTools.PursuitMenu'!
2017-08-16 22:17:36 -  ...found script 'GTAPolicingTools.Radar'!
2017-08-16 22:17:36 -  ...found script 'GTAPolicingTools.Spikestrip'!
2017-08-16 22:17:36 -  ...found script 'GTAPolicingTools.Spotlight'!
2017-08-16 22:17:36 -  ...found script 'GTAPolicingTools.Tools'!
2017-08-16 22:17:36 - Loading scripts in Assembly 'scripts\IVDashCamV2.net.dll' ...
2017-08-16 22:17:36 -  ...found script 'IVDashCamV2.Core'!
2017-08-16 22:17:36 -  ...found script 'IVDashCamV2.Extra'!
2017-08-16 22:17:36 - Loading scripts in Assembly 'scripts\LCPDFR Loader.net.dll' ...
2017-08-16 22:17:36 -  ...found script 'LCPDFR_Loader.Loader'!
2017-08-16 22:17:36 -  ...found script 'LCPDFR_Loader.PublicScript'!
2017-08-16 22:17:36 - Loading scripts in Assembly 'scripts\MemBiter_Gearbox.net.dll' ...
2017-08-16 22:17:36 -  ...found script 'MemBiter.IVMBGearbox'!
2017-08-16 22:17:36 - Loading scripts in Assembly 'scripts\PD2Blips.net.dll' ...
2017-08-16 22:17:36 -  ...found script 'PD2Blips.PD2BlipController'!
2017-08-16 22:17:36 - Loading scripts in Assembly 'scripts\RealRecoil.net.dll' ...
2017-08-16 22:17:36 -  ...found script 'RecoilController'!
2017-08-16 22:17:36 - Loading scripts in Assembly 'scripts\RPMGauge.net.dll' ...
2017-08-16 22:17:36 -  ...found script 'RPMGauge.Gauges'!
2017-08-16 22:17:36 - Loading scripts in Assembly 'scripts\Seat Belt Chime.net.dll' ...
2017-08-16 22:17:36 -  ...found script 'Seat_Belt_Chime.Main'!
2017-08-16 22:17:36 - Loading scripts in Assembly 'scripts\ThrowingKnife.net.dll' ...
2017-08-16 22:17:36 -  ...found script 'ThrowingKnife.net.ThrowingKnife'!
2017-08-16 22:17:36 - Loading scripts in Assembly 'scripts\vdH_K9script.net.dll' ...
2017-08-16 22:17:36 -  ...found script 'vdH.K9script'!
2017-08-16 22:17:36 - Loading scripts in Assembly 'scripts\vdH_MedicalExaminer.net.dll' ...
2017-08-16 22:17:36 -  ...found script 'vdH.MedicalExaminer'!
2017-08-16 22:17:36 - Loading scripts in Assembly 'scripts\vdH_PoliceHelper.net.dll' ...
2017-08-16 22:17:36 -  ...found script 'vdH.PHelper'!
2017-08-16 22:17:36 - Loading scripts in Assembly 'scripts\vdH_towService.net.dll' ...
2017-08-16 22:17:36 -  ...found script 'vdH.TowService'!
2017-08-16 22:17:36 - Loading dynamic scriptfile 'scripts\CQC.cs' ...
2017-08-16 22:17:36 -  ...found script 'CQC.Fight'!
2017-08-16 22:17:36 - Loading dynamic scriptfile 'scripts\DestroyEngine.cs' ...
2017-08-16 22:17:36 -  ...found script 'DestroyEngine'!
2017-08-16 22:17:36 - Loading dynamic scriptfile 'scripts\EquipGun.cs' ...
2017-08-16 22:17:36 -  ...found script 'TestScriptCS.EquipGun'!
2017-08-16 22:17:36 - Loading dynamic scriptfile 'scripts\RealReload.cs' ...
2017-08-16 22:17:36 -  ...found script 'RealReload'!
2017-08-16 22:17:36 - DONE! 34 valid scripts found!

2017-08-16 22:17:36 - STARTING SCRIPTS...
2017-08-16 22:17:37 - INFO: Phone number checks are not available!
2017-08-16 22:17:37 -  ...successfully started script 'RealReload'!
2017-08-16 22:17:37 -  ...successfully started script 'DestroyEngine'!
2017-08-16 22:17:37 -  ...successfully started script 'vdH.TowService'!
2017-08-16 22:17:38 -  ...successfully started script 'vdH.MedicalExaminer'!
2017-08-16 22:17:38 -  ...successfully started script 'vdH.K9script'!
2017-08-16 22:17:38 -  ...successfully started script 'ThrowingKnife.net.ThrowingKnife'!
2017-08-16 22:17:38 -  ...successfully started script 'Seat_Belt_Chime.Main'!
2017-08-16 22:17:38 -  ...successfully started script 'RPMGauge.Gauges'!
2017-08-16 22:17:38 -  ...successfully started script 'RecoilController'!
2017-08-16 22:17:38 -  ...successfully started script 'PD2Blips.PD2BlipController'!
2017-08-16 22:17:38 -  ...successfully started script 'MemBiter.IVMBGearbox'!
2017-08-16 22:17:38 -  ...successfully started script 'LCPDFR_Loader.PublicScript'!
2017-08-16 22:17:38 -  ...successfully started script 'LCPDFR_Loader.Loader'!
2017-08-16 22:17:38 -  ...successfully started script 'IVDashCamV2.Extra'!
2017-08-16 22:17:38 -  ...successfully started script 'IVDashCamV2.Core'!
2017-08-16 22:17:38 -  ...successfully started script 'GTAPolicingTools.Tools'!
2017-08-16 22:17:38 -  ...successfully started script 'GTAPolicingTools.Spotlight'!
2017-08-16 22:17:38 -  ...successfully started script 'GTAPolicingTools.Spikestrip'!
2017-08-16 22:17:38 -  ...successfully started script 'GTAPolicingTools.Radar'!
2017-08-16 22:17:38 -  ...successfully started script 'GTAPolicingTools.PursuitMenu'!
2017-08-16 22:17:38 -  ...successfully started script 'GTAPolicingTools.Core'!
2017-08-16 22:17:38 -  ...successfully started script 'GTAPolicingTools.ANPR'!
2017-08-16 22:17:38 -  ...successfully started script 'FuelScript.FuelScript'!
2017-08-16 22:17:38 -  ...successfully started script 'EnemyAlert'!
2017-08-16 22:17:38 -  ...successfully started script 'DynHUD'!
2017-08-16 22:17:38 -  ...successfully started script 'Door_Ajar_Chime.Main'!
2017-08-16 22:17:38 -  ...successfully started script 'DirtNap.net.DirtNap'!
2017-08-16 22:17:38 -  ...successfully started script 'DeadlyWrecks.Main'!
2017-08-16 22:17:38 -  ...successfully started script 'CautiousDrivers.CautiousDriversScript'!
2017-08-16 22:17:40 -  ...successfully started script 'Ambiance'!
2017-08-16 22:17:40 -  ...successfully started script 'AISirens.net.AISirens'!
2017-08-16 22:17:41 -  ...successfully started script 'CQC.Fight'!
2017-08-16 22:17:43 -  ...successfully started script 'vdH.PHelper'!
2017-08-16 22:17:47 - Error in constructor of script 'TestScriptCS.EquipGun':
                      System.NullReferenceException: Object reference not set to an instance of an object.
                         at GTA.ScriptThread.LoadScriptNow()
2017-08-16 22:18:52 - Error during Tick in script 'LCPDFR_Loader.PublicScript':
                      System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.IO.FileLoadException: Mixed mode assembly is built against version 'v1.1.4322' of the runtime and cannot be loaded in the 4.0 runtime without additional configuration information.
                         at NooseMod_LCPDFR.Callouts.NooseMod..ctor()
                         --- End of inner exception stack trace ---
                         at System.RuntimeTypeHandle.CreateInstance(RuntimeType type, Boolean publicOnly, Boolean noCheck, Boolean& canBeCached, RuntimeMethodHandleInternal& ctor, Boolean& bNeedSecurityCheck)
                         at System.RuntimeType.CreateInstanceSlow(Boolean publicOnly, Boolean skipCheckThis, Boolean fillCache, StackCrawlMark& stackMark)
                         at System.RuntimeType.CreateInstanceDefaultCtor(Boolean publicOnly, Boolean skipCheckThis, Boolean fillCache, StackCrawlMark& stackMark)
                         at System.Activator.CreateInstance(Type type, Boolean nonPublic)
                         at System.Activator.CreateInstance(Type type)
                         at ‮‌‫​‫‏‫‎‬‭​​‌​​‮‏‌‎​​‫‏‮​‮.‍‪‏‮‏‍‬‪‪‬‎‬‎‬‭‮‭‎‪‪‌‬‫‭‫‏‮(String ) in d:\GTA IV\LCPDFR\SVN\trunk\LCPD First Response\LCPDFR\Callouts\CalloutManager.cs:line 289
                         at LCPD_First_Response.LCPDFR.Main.TestCallout(ParameterCollection parameterCollection) in d:\GTA IV\LCPDFR\SVN\trunk\LCPD First Response\LCPDFR\Main.cs:line 644
                         at GTA.Script.ProcessBoundCommand(ConsoleEventArgs )
                         at GTA.Script.ProcessEvents()
                         at GTA.Script.DoTick()
                         at GTA.ScriptThread.OnTick()
2017-08-16 22:18:52 - Unhandled Exception: System.NullReferenceException: Object reference not set to an instance of an object.
                         at LCPD_First_Response.Engine.Scripting.Plugins.GameScript.Finalize() in d:\GTA IV\LCPDFR\SVN\trunk\LCPD First Response\Engine\Scripting\Plugins\GameScript.cs:line 32
2017-08-16 22:18:52 - CRASH!
2017-08-16 22:18:52 - Unhandled Exception: System.NullReferenceException: Object reference not set to an instance of an object.
                         at LCPD_First_Response.Engine.Scripting.Plugins.GameScript.Finalize() in d:\GTA IV\LCPDFR\SVN\trunk\LCPD First Response\Engine\Scripting\Plugins\GameScript.cs:line 32
2017-08-16 22:18:52 - CRASH!


LCPDFR.log

[INFO - 10:17:41 PM] [Log] Started
[INFO - 10:17:41 PM] [Main] Main: Initializing...
[INFO - 10:17:41 PM] [Main] Main: LCPDFR Engine (C) 2011-2013 LMS
[INFO - 10:17:41 PM] [Main] Main: DO NOT USE THIS WITHOUT PERMISSION. YOU MAY NOT SHARE, MODIFY OR DECOMPILE THIS FILE.
[INFO - 10:17:41 PM] [PluginManager] Initialize: Loading custom plugins
[WARNING - 10:17:41 PM] [Settings] ReadSettings: Invalid entry
[INFO - 10:17:41 PM] [Settings] ReadSettings: Suspect transporter POLICE
[INFO - 10:17:41 PM] [Settings] ReadSettings: Suspect transporter POLICE2
[INFO - 10:17:41 PM] [Settings] ReadSettings: Suspect transporter PSTOCKADE
[WARNING - 10:17:41 PM] [Settings] ReadSettings: Invalid option: POLICE3
[INFO - 10:17:41 PM] [Plugin.Main] Changing language to en-US
[INFO - 10:17:41 PM] [Plugin.Callouts+] Plugin detected version: 0.7.3.38
[INFO - 10:17:41 PM] [Plugin.Callouts+] Checking calloutsPlus.ini file...
[INFO - 10:17:41 PM] [Plugin.Callouts+] Reading keybinds from configuration file
[INFO - 10:17:41 PM] [Plugin.Callouts+] Plugin started
[INFO - 10:17:41 PM] [NooseMod Controller] NooseMod successfully loaded 8 missions into the list.
[INFO - 10:17:41 PM] [Plugin.NooseMod] Started
[INFO - 10:17:41 PM] [Plugin.NooseMod] Mission Stats Adapter details: Provider=Microsoft.Jet.OLEDB.4.0;Data Source=|DataDirectory|\LCPDFR\Plugins\NooseMod\Stats.mdb
[INFO - 10:17:41 PM] [Plugin.NooseMod] Server Version:  04.00.0000
[INFO - 10:17:41 PM] [Plugin.NooseMod] Overall Stats Adapter details: Provider=Microsoft.Jet.OLEDB.4.0;Data Source=|DataDirectory|\LCPDFR\Plugins\NooseMod\Stats.mdb
[INFO - 10:17:41 PM] [Plugin.NooseMod] Server Version:  04.00.0000
[INFO - 10:17:41 PM] [Plugin.NooseMod.RelationshipSwitcher] Relationship Switcher: Ready
[INFO - 10:17:41 PM] [Plugin.SecuricarThefts] Started
[INFO - 10:17:41 PM] [Plugin.Supervillains] Started
[INFO - 10:17:41 PM] [Plugin.TheWasteland] TheWasteland: initialized.
[INFO - 10:17:41 PM] [Plugin.WoutersCallouts] Started WoutersCallouts v1.1
[INFO - 10:17:41 PM] [Main] Main: Initializing done
[ERROR - 22.17.41] [PluginManager] Unhandled exception caught while processing plugin: SecuricarThefts. Plugin will no longer be executed.
[ERROR - 22.17.41] [Plugin.SecuricarThefts] System.NotImplementedException: The method or operation is not implemented.
   at SecuricarThefts.Main.Process() in c:\Users\USER\Documents\Visual Studio 2012\Projects\proyek_gta\SecuricarThefts\SecuricarThefts\Main.cs:line 79
   at .() in d:\GTA IV\LCPDFR\SVN\trunk\LCPD First Response\Engine\Scripting\Plugins\PluginManager.cs:line 158
[ERROR - 22.17.41] [ExceptionHandler]  SecuricarThefts.Main.Process() L_0006
 ‍‬‏‏‍‏​‭‏‏​‎‫‌‫‮‪‍‮‮‪‫‏‪‮.‌‪‫‫‏‮‍‫‎‭‍‮‫‏‭‏‮‬‏‭‍‎‍‍‬‫‌‮() L_0026
Error hash: A086E6EB33C9383CB6906046980162E991F310F2
[ERROR - 22.17.41] [Main] CRITICAL ERROR DURING MAINLOOP! REPORT THIS ISSUE AT LCPDFR.COM BY INCLUDING THIS LOGFILE.
[ERROR - 22.17.41] [] System.NotImplementedException: The method or operation is not implemented.
   at SecuricarThefts.Main.Finally() in c:\Users\USER\Documents\Visual Studio 2012\Projects\proyek_gta\SecuricarThefts\SecuricarThefts\Main.cs:line 87
   at .() in d:\GTA IV\LCPDFR\SVN\trunk\LCPD First Response\Engine\Scripting\Plugins\PluginManager.cs:line 169
   at LCPD_First_Response.Engine.Main.() in d:\GTA IV\LCPDFR\SVN\trunk\LCPD First Response\Engine\Main.cs:line 293
[ERROR - 22.17.41] [ExceptionHandler]  SecuricarThefts.Main.Finally() L_0006
 ‍‬‏‏‍‏​‭‏‏​‎‫‌‫‮‪‍‮‮‪‫‏‪‮.‌‪‫‫‏‮‍‫‎‭‍‮‫‏‭‏‮‬‏‭‍‎‍‍‬‫‌‮() L_0099
 LCPD_First_Response.Engine.Main.‌‪‫‫‏‮‍‫‎‭‍‮‫‏‭‏‮‬‏‭‍‎‍‍‬‫‌‮() L_00c9
Error hash: BE6CE69FCC80C5A847659D5618E85B3C6D0FF363
[INFO - 22.17.41] [ServerCommunication] InitializeConnection: Internet connection available
[INFO - 22.17.42] [ServerCommunication] InitializeConnection: Public IP Address is: 115.178.196.248
[INFO - 10:17:43 PM] [Plugin.Main] Running LCPD First Response LCPDFR 1.1 2011-2015 LMS (1.0.5552.34577) 3/15/2015 7:12:34 PM
[INFO - 10:17:43 PM] [Plugin.Main] Copyright © 2010-2015, G17 Media, www.lcpdfr.com
[INFO - 22.17.45] [ServerCommunication] InitializeConnection: Found configuration for the masterserver, going to use API server v2.legacy.os.g17media.net
[INFO - 22.17.45] [ServerCommunication] InitializeConnection: Establishing session with the LCPDFR server...
[INFO - 22.17.46] [ServerCommunication] GetSession: Got session ID of 3cf4a792-98d9-7045-1f64-e0f0cbe73ad0 from masterserver.
[WARNING - 22.17.47] [Stats] CollectSystemInformation: Failed to upload stats: The remote server returned an error: (404) Not Found.
[INFO - 10:17:47 PM] [NetworkManager] NetworkManager: In network session: False Is host: False
[INFO - 22.17.47] [Authentication] Authentication: Server available, using online authentication
[INFO - 22.17.49] [Authentication] PerformOnlineAuthentication: Lease renewed
[INFO - 22.17.49] [Authentication] Authentication: Authentication successful
[INFO - 22.17.49] [Authentication] Authentication: Logged in as "Naruto607"
[INFO - 10:18:43 PM] [Script.Ambient] Autosave is disabled
[INFO - 10:18:43 PM] [Plugin.SecuricarThefts] Callouts have been registered successfully
[INFO - 10:18:43 PM] [Plugin.TheWasteland] OnDutyStateChanged performed properly.


AdvancedHook.log

Log started on: 22:17:41 8-16-2017
------------------------
[INFO - 22:17:41] Gameversion - 1.1.2.0
[INFO - 22:17:41] XLiveLess present - skipping xlive changes
[INFO - 22:17:41] Improving ELS compatibility
[INFO - 22:17:41] AdvancedHook 0.38 (C) 2010-2015 LMS - Initialized
[INFO - 22:17:41] E-Mail: lms@lcpdfr.com
[INFO - 22:17:41] Permission granted for LCPDFR & ELS only
[INFO - 22:17:41] Thanks to listener, aru, #iv-modding and cp702
[INFO - 22:17:41] Attaching exception handler...
[INFO - 22:17:41] Exception handler attached
[INFO - 22:17:41] Patching game functions...
[INFO - 22:18:52] An exception occured
[INFO - 22:18:53] Minidump saved
[INFO - 22:18:53]
Process: E80000

Address: 7767C52E (Faulting module: C:\Windows\System32\wmpeffects.dll loaded into process space at 77630000 - function offset without PE header is: 4B52E)

Code: C0000005

Registerdump - EAX: 0 EBP: D88F5E8 EBX: 6EFFB088 ECX: 0 EDI: B35FF8 EDX: 6EB8D1CD EIP: 7767C52E ESI: D88F5F0 ESP: D88F5D4
 


To short, I gotta postpone the project until I found out the cause. ATM, the one that caused CTD was this (I should consider porting it to SHDN script if no solution found):
2017-08-16 22:18:52 - Error during Tick in script 'LCPDFR_Loader.PublicScript':
                      System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.IO.FileLoadException: Mixed mode assembly is built against version 'v1.1.4322' of the runtime and cannot be loaded in the 4.0 runtime without additional configuration information.
                         at NooseMod_LCPDFR.Callouts.NooseMod..ctor()
                         --- End of inner exception stack trace ---

Comments