SaneEngineer / OpenVHook

Open source script hook loader implementation for Grand Theft Auto V
GNU General Public License v2.0
47 stars 7 forks source link

Not working with Community Script Hook .NET #6

Closed LightThief99 closed 3 years ago

LightThief99 commented 4 years ago

Game crashes on load up. https://www.gta5-mods.com/tools/scripthookv-net This is needed to run any proper scripts in game such as bodyguards mods. Enhanced Trainer works so thats good! But as soon as I add the scripthook.net files the game cant load

tuffguy2 commented 4 years ago

fix please

SaneEngineer commented 4 years ago

Do you have the Visual Studio 2019 runtime installed? https://support.microsoft.com/en-us/help/2977003/the-latest-supported-visual-c-downloads

LightThief99 commented 4 years ago

Yep, I have that installed...
wait so it is suppose to work!? Idk what my problem could be

SaneEngineer commented 4 years ago

It works fine on my end, are you using windows 10?

LightThief99 commented 4 years ago

ye windows 10

SaneEngineer commented 4 years ago

Post your OpenHookV.log, asiloader.log, and ScriptHookVDotNet.log if it exists.

LightThief99 commented 4 years ago

I see this error in openhookv log:

[14:17:43] [Error] Error in nativeCall

I have native ui in scripts

LightThief99 commented 4 years ago

More details: Scripthookvdotnet: [14:17:43] [DEBUG] Created script domain 'ScriptDomain_624571CC' with v2.10.10. [14:17:43] [DEBUG] Loading scripts from 'D:\Program Files Data\Epic Games\GTA 5\GTAV\scripts' into script domain 'ScriptDomain_624571CC' ... [14:17:43] [INFO] Loading assembly 'NativeUI.dll' ... [14:17:43] [DEBUG] Found 1 script(s) in 'NativeUI.dll'. [14:17:43] [DEBUG] Starting 1 script(s) ... [14:17:43] [DEBUG] Instantiating script 'NativeUI.BigMessageThread' in script domain 'ScriptDomain_624571CC' ... [14:17:43] [DEBUG] Started script 'NativeUI.BigMessageThread'.

// GTA V ASI LOADER (build May 2 2015) // (C) Alexander Blade 2015 LIB: "C:\WINDOWS\system32\dinput8.dll" => 00007FF913090000 API: "DirectInput8Create" => 00007FF913098F80 API: "DllCanUnloadNow" => 00007FF9130A9EB0 API: "DllGetClassObject" => 00007FF9130A9F80 API: "DllRegisterServer" => 00007FF9130B3CB0 API: "DllUnregisterServer" => 00007FF9130B3F30 LOADER: Loading .asi plugins ASI: Loading "D:\Program Files Data\Epic Games\GTA 5\GTAV\CScenarioPoint-Patch.asi" "CScenarioPoint-Patch.asi" => 00007FF919640000 ASI: Loading "D:\Program Files Data\Epic Games\GTA 5\GTAV\EnhancedNativeTrainer.asi" "EnhancedNativeTrainer.asi" => 00007FF8D1F50000 ASI: Loading "D:\Program Files Data\Epic Games\GTA 5\GTAV\ScriptHookVDotNet.asi" "ScriptHookVDotNet.asi" => 00007FF911A40000 LOADER: Finished loading .asi plugins

Scripthook: [14:15:58] Registering script 'EnhancedNativeTrainer.asi' (0x00007FF8D25D5FF0) [14:15:58] Initializing... [14:15:58] Registering script 'ScriptHookVDotNet.asi' (0x00007FF911A41390) [14:16:00] Input hook attached: WndProc 0x00000000FFFF05B3 [14:16:00] Initializing ScriptEngine... [14:16:04] Game version #57 [14:16:04] Initializing Pools... [14:16:05] Pool Init Finished [14:16:05] Checking if game is ready... [14:16:06] Game ready [14:16:06] Registering script 'EnhancedNativeTrainer.asi' (0x00007FF8D25D5FF0) [14:16:06] Registering script 'ScriptHookVDotNet.asi' (0x00007FF911A41390) [14:16:06] Initialization finished [14:17:42] Launching script EnhancedNativeTrainer.asi [14:17:42] Launching script ScriptHookVDotNet.asi [14:17:42] [Error] Error in nativeCall [14:17:42] [Error] Error in nativeCall [14:17:42] [Error] Error in nativeCall [14:17:42] [Error] Error in nativeCall [14:17:42] [Error] Error in nativeCall [14:17:42] [Error] Error in nativeCall [14:17:42] [Error] Error in nativeCall [14:17:42] [Error] Error in nativeCall [14:17:42] [Error] Error in nativeCall [14:17:42] [Error] Error in nativeCall [14:17:42] [Error] Error in nativeCall [14:17:42] [Error] Error in nativeCall

SaneEngineer commented 4 years ago

Do you have ScriptHookVDotNet2.dll and ScriptHookVDotNet3.dll in your GTA V folder because I don't see them being called by script hook v .NET?

LightThief99 commented 4 years ago

Oh yea I remember trying to install an older version of dotnet to see if that helped it work... After you comment I just reinstalled with the newer version with net2 and net3 and same issue. The game loads into the house for 1 second and I see at the bottom left "enhanced initializing..." and then it just crashes after that 1 second in game. weird maybe I have to re install the whole game files but I doubt that would fix the issue if It works without dotnet files.

tuffguy2 commented 4 years ago

IM HAVING THE SAME PROBLEM

SaneEngineer commented 4 years ago

Can you post your logs when using the newer version?

LightThief99 commented 4 years ago

hey I appreciate the help! I have found a flawless version of scripthook for epic games by: RandomModder2020

https://mega.nz/folder/X84UwS7a#WoDgLYaQHNed-IX7ETStCA

Pinned comment from: https://www.gta5-mods.com/tools/script-hook-v

Thank you again for being the first to release one! <3

SaneEngineer commented 4 years ago

Should have been fixed with commit 09dfec418c189b747f73d734aea0f98e88175e66, but requires further testing to be certain.

SaneEngineer commented 3 years ago

I'm unable to replicate this issue and will close it for now.