Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Only NativeUI managed to load #43

Open
abaybektursun opened this issue Sep 10, 2019 · 9 comments
Open

Only NativeUI managed to load #43

abaybektursun opened this issue Sep 10, 2019 · 9 comments

Comments

@abaybektursun
Copy link

I have built everything and setup a DB and created the tables.
When looking into ScriptHookVDotNet2.log I see:

[20:33:54] [DEBUG] Starting 1 script(s) ...

and that one script is NativeUI:

[20:33:53] [DEBUG] Found 1 script(s) in 'NativeUI.dll'.

The managed part of the tool does not seem to work. Nothing in the database.
Have been struggling with this for days @barcharcraz @krosaen @IanKirwan please help
I am going to post logs below.

@abaybektursun
Copy link
Author

ScriptHookVDotNet2.log

[20:33:52] [DEBUG] Created script domain 'ScriptDomain_6527884A' with v2.10.10.
[20:33:52] [DEBUG] Loading scripts from 'D:\Steam\steamapps\common\Grand Theft Auto V\scripts' into script domain 'ScriptDomain_6527884A' ...
[20:33:52] [INFO] Loading assembly 'AWSSDK.dll' ...
[20:33:53] [DEBUG] Found 0 script(s) in 'AWSSDK.dll'.
[20:33:53] [INFO] Loading assembly 'BitMiracle.LibTiff.NET.dll' ...
[20:33:53] [DEBUG] Found 0 script(s) in 'BitMiracle.LibTiff.NET.dll'.
[20:33:53] [INFO] Loading assembly 'gdal_csharp.dll' ...
[20:33:53] [DEBUG] Found 0 script(s) in 'gdal_csharp.dll'.
[20:33:53] [INFO] Loading assembly 'GTAVisionExport.dll' ...
[20:33:53] [DEBUG] Found 0 script(s) in 'GTAVisionExport.dll'.
[20:33:53] [INFO] Loading assembly 'GTAVisionUtils.dll' ...
[20:33:53] [DEBUG] Found 0 script(s) in 'GTAVisionUtils.dll'.
[20:33:53] [INFO] Loading assembly 'INIFileParser.dll' ...
[20:33:53] [DEBUG] Found 0 script(s) in 'INIFileParser.dll'.
[20:33:53] [INFO] Loading assembly 'MathNet.Numerics.dll' ...
[20:33:53] [DEBUG] Found 0 script(s) in 'MathNet.Numerics.dll'.
[20:33:53] [INFO] Loading assembly 'Microsoft.Extensions.DependencyInjection.Abstractions.dll' ...
[20:33:53] [DEBUG] Found 0 script(s) in 'Microsoft.Extensions.DependencyInjection.Abstractions.dll'.
[20:33:53] [INFO] Loading assembly 'Microsoft.Extensions.Logging.Abstractions.dll' ...
[20:33:53] [DEBUG] Found 0 script(s) in 'Microsoft.Extensions.Logging.Abstractions.dll'.
[20:33:53] [INFO] Loading assembly 'Microsoft.Extensions.Logging.dll' ...
[20:33:53] [DEBUG] Found 0 script(s) in 'Microsoft.Extensions.Logging.dll'.
[20:33:53] [INFO] Loading assembly 'NativeUI.dll' ...
[20:33:53] [DEBUG] Found 1 script(s) in 'NativeUI.dll'.
[20:33:53] [INFO] Loading assembly 'Npgsql.dll' ...
[20:33:53] [DEBUG] Found 0 script(s) in 'Npgsql.dll'.
[20:33:53] [INFO] Loading assembly 'ogr_csharp.dll' ...
[20:33:53] [DEBUG] Found 0 script(s) in 'ogr_csharp.dll'.
[20:33:53] [INFO] Loading assembly 'osr_csharp.dll' ...
[20:33:53] [DEBUG] Found 0 script(s) in 'osr_csharp.dll'.
[20:33:53] [WARNING] Skipped assembly 'ScriptHookVDotNet2.dll'. Please remove it from the directory.
[20:33:53] [INFO] Loading assembly 'SharpDX.dll' ...
[20:33:53] [DEBUG] Found 0 script(s) in 'SharpDX.dll'.
[20:33:53] [INFO] Loading assembly 'SharpDX.Mathematics.dll' ...
[20:33:53] [DEBUG] Found 0 script(s) in 'SharpDX.Mathematics.dll'.
[20:33:53] [INFO] Loading assembly 'System.Threading.Tasks.Extensions.dll' ...
[20:33:53] [DEBUG] Found 0 script(s) in 'System.Threading.Tasks.Extensions.dll'.
[20:33:53] [INFO] Loading assembly 'VAutodrive.dll' ...
[20:33:54] [DEBUG] Found 0 script(s) in 'VAutodrive.dll'.
[20:33:54] [INFO] Loading assembly 'VCommonFunctions.dll' ...
[20:33:54] [DEBUG] Found 0 script(s) in 'VCommonFunctions.dll'.
[20:33:54] [INFO] Loading assembly 'YamlDotNet.dll' ...
[20:33:54] [DEBUG] Found 0 script(s) in 'YamlDotNet.dll'.
[20:33:54] [DEBUG] Starting 1 script(s) ...
[20:33:54] [DEBUG] Instantiating script 'NativeUI.BigMessageThread' in script domain 'ScriptDomain_6527884A' ...
[20:33:54] [DEBUG] Started script 'NativeUI.BigMessageThread'.

@abaybektursun
Copy link
Author

ScriptHookV.log

// GTA V SCRIPT HOOK (build Sep  3 2017, v1.0.1180.2)
//     (C) Alexander Blade 2015-2017
[20:33:18] INIT: Started
[20:33:18] INIT: Success, game version is VER_1_0_372_2_STEAM
[20:33:18] INIT: Registering script 'DeepGTAV.asi' (0x00007FFB12CFDE90)
[20:33:18] INIT: Registering script 'NativeTrainer.asi' (0x00007FFB1C06A3C0)
[20:33:18] INIT: Registering script 'ScriptHookVDotNet.asi' (0x00007FFB2C601390)
[20:33:23] INIT: Pool 1 extended
[20:33:23] INIT: Pool 2 extended
[20:33:23] INIT: Pool 3 extended
[20:33:23] INIT: Pool 4 extended
[20:33:28] INIT: GtaThread collection size 164
[20:33:28] INIT: wnd proc 0x00000000FFFF0E73
[20:33:28] INIT: IDXGISwapChain 0x00007FFB361C0588 (0x00007FFB36134580)
[20:33:28] INIT: IDXGISwapChain set
[20:33:28] INIT: DX init started
[20:33:28] INIT: DX feature level B000
[20:33:28] INIT: DX init succeeded
[20:33:49] CORE: Requesting thread creation
[20:33:49] CORE: Creating threads
[20:33:52] CORE: Started control thread, id 30 active 1
[20:33:52] CORE: Started thread 'DeepGTAV.asi' (0x00007FFB12CFDE90), id 31 active 1
[20:33:52] CORE: Started thread 'NativeTrainer.asi' (0x00007FFB1C06A3C0), id 32 active 1
[20:33:52] CORE: Started thread 'ScriptHookVDotNet.asi' (0x00007FFB2C601390), id 33 active 1
[20:33:52] CORE: Launching main() for 'DeepGTAV.asi' (0x00007FFB12CFDE90), id 31
[20:33:52] CORE: Launching main() for 'NativeTrainer.asi' (0x00007FFB1C06A3C0), id 32
[20:33:52] CORE: Launching main() for 'ScriptHookVDotNet.asi' (0x00007FFB2C601390), id 33
[20:52:46] UNINIT: Unregistering script 'ScriptHookVDotNet.asi'
[20:52:46] UNINIT: Unregistering script 'NativeTrainer.asi'
[20:52:46] UNINIT: Unregistering script 'DeepGTAV.asi'

@abaybektursun
Copy link
Author

asiloader.log

// GTA V ASI LOADER (build May  2 2015)
//     (C) Alexander Blade 2015
LIB: "C:\WINDOWS\system32\dinput8.dll" => 00007FFB12F50000
API: "DirectInput8Create" => 00007FFB12F58F80
API: "DllCanUnloadNow" => 00007FFB12F69EB0
API: "DllGetClassObject" => 00007FFB12F69F80
API: "DllRegisterServer" => 00007FFB12F73CB0
API: "DllUnregisterServer" => 00007FFB12F73F30
LOADER: Loading *.asi plugins
ASI: Loading "D:\Steam\steamapps\common\Grand Theft Auto V\DeepGTAV.asi"
     "DeepGTAV.asi" => 00007FFB12CF0000
ASI: Loading "D:\Steam\steamapps\common\Grand Theft Auto V\GTAVisionNative.asi"
     "GTAVisionNative.asi" => 00007FFB35510000
ASI: Loading "D:\Steam\steamapps\common\Grand Theft Auto V\GTAVLauncherBypass.asi"
     "GTAVLauncherBypass.asi" => 00007FFB2F770000
ASI: Loading "D:\Steam\steamapps\common\Grand Theft Auto V\NativeTrainer.asi"
     "NativeTrainer.asi" => 00007FFB1C060000
ASI: Loading "D:\Steam\steamapps\common\Grand Theft Auto V\ScriptHookVDotNet.asi"
     "ScriptHookVDotNet.asi" => 00007FFB2C600000
LOADER: Finished loading *.asi plugins

@abaybektursun
Copy link
Author

GTANativePlugin.log

It's just

detected target change, someone else is screwing with our functions

repeated many times

@IanKirwan
Copy link
Contributor

@abaybektursun
It's been a while since I have worked with this code. You can ignore the 'detected target change' message I think. I used to get that when it worked just fine.
With the dot net stuff try leaving out the native trainer and deepgtav. I have definitely had issues with ASI's causing other ASI's not to work.
Hope this helps. if it doesnt, you're going to learn a lot solving it ;o)

@abaybektursun
Copy link
Author

Removing native trainer and deepgtav does not help. Any advice @barcharcraz @krosaen?

@IanKirwan
Copy link
Contributor

IanKirwan commented Sep 11, 2019

I'll have a look this weekend to see if I can get mine running again. Then I'll have an idea of things to check with you.

@abaybektursun
Copy link
Author

abaybektursun commented Sep 11, 2019

Thanks!

@IanKirwan
Copy link
Contributor

IanKirwan commented Sep 12, 2019

have you got your asi's in a 'scripts' folder?

In \Grand Theft Auto V\Scripts I have the following (dont need the debug files, not sure about the xml):
AWSSDK.dll BitMiracle.LibTiff.NET.dll gdal_csharp.dll GTAVisionExport.dll GTAVisionUtils.dll INIFileParser.dll MathNet.Numerics.dll Microsoft.Extensions.DependencyInjection.Abstractions.dll Microsoft.Extensions.Logging.Abstractions.dll Microsoft.Extensions.Logging.dll NativeUI.dll Npgsql.dll ogr_csharp.dll osr_csharp.dll SharpDX.dll SharpDX.Mathematics.dll System.Runtime.InteropServices.RuntimeInformation.dll System.Threading.Tasks.Extensions.dll VAutodrive.dll VCommonFunctions.dll YamlDotNet.dll GTAVision.ini

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants