qiangqiang101 / PremiumDeluxeMotorsport.NET

Premium Deluxe Motorsport Car Shop Mod for Grand Theft Auto V
6 stars 3 forks source link

[BUG] Unable to resolve API version 2.10.13 (ScriptHookVDotNet 3.0.4) #2

Closed bernhardberger closed 3 years ago

bernhardberger commented 3 years ago

There seems to be an API version mismatch with the latest ScriptHookVDotNet (3.0.4):

ScriptHookVDotNet.log:

[16:51:42] [DEBUG] Loading API from .\ScriptHookVDotNet2.dll ...
[16:51:42] [DEBUG] Loading API from .\ScriptHookVDotNet3.dll ...
[16:51:42] [DEBUG] Loading scripts from C:\Program Files\Rockstar Games\Grand Theft Auto V\scripts ...
[16:51:42] [DEBUG] Loading assembly BennysOriginalMotorworks.dll ...
[16:51:42] [WARNING] Unable to resolve API version 2.10.13.
[16:51:42] [WARNING] Unable to resolve API version 2.10.13.
[16:51:42] [WARNING] Unable to resolve API version 2.10.13.
[16:51:42] [WARNING] Unable to resolve API version 2.10.13.
[16:51:42] [WARNING] Unable to resolve API version 2.10.13.
[16:51:42] [DEBUG] Loading assembly HelperSPA.dll ...
[16:51:42] [INFO] Found 1 script(s) in HelperSPA.dll resolved to API 2.10.12.
[16:51:42] [DEBUG] Loading assembly iFruitAddon.dll ...
[16:51:42] [INFO] Found 0 script(s) in iFruitAddon.dll.
[16:51:42] [DEBUG] Loading assembly INMNativeUI.dll ...
[16:51:42] [INFO] Found 1 script(s) in INMNativeUI.dll resolved to API 2.10.12.
[16:51:42] [DEBUG] Loading assembly Metadata.dll ...
[16:51:42] [INFO] Found 0 script(s) in Metadata.dll.
[16:51:42] [DEBUG] Loading assembly MosleyAutoService.dll ...
[16:51:43] [WARNING] Unable to resolve API version 2.10.13.
[16:51:43] [WARNING] Unable to resolve API version 2.10.13.
[16:51:43] [WARNING] Unable to resolve API version 2.10.13.
[16:51:43] [WARNING] Unable to resolve API version 2.10.13.
[16:51:43] [WARNING] Unable to resolve API version 2.10.13.
[16:51:43] [DEBUG] Loading assembly PDMCD4.dll ...
[16:51:43] [WARNING] Unable to resolve API version 2.10.13.
[16:51:43] [WARNING] Unable to resolve API version 2.10.13.
[16:51:43] [WARNING] Unable to resolve API version 2.10.13.
[16:51:43] [WARNING] Unable to resolve API version 2.10.13.
[16:51:43] [WARNING] Unable to resolve API version 2.10.13.
[16:51:43] [WARNING] Unable to resolve API version 2.10.13.
[16:51:43] [DEBUG] Loading assembly SinglePlayerApartment.dll ...
[16:51:43] [INFO] Found 10 script(s) in SinglePlayerApartment.dll resolved to API 2.10.12.
[16:51:43] [DEBUG] Loading assembly MdiTabControl.dll ...
[16:51:43] [INFO] Found 0 script(s) in MdiTabControl.dll.
[16:51:43] [DEBUG] Instantiating script SPAHelper.SPAHelper ...
[16:51:43] [INFO] Started script SPAHelper.SPAHelper.
[16:51:43] [DEBUG] Instantiating script INMNativeUI.BigMessageThread ...
[16:51:43] [INFO] Started script INMNativeUI.BigMessageThread.
[16:51:43] [DEBUG] Instantiating script SinglePlayerApartment.ApartmentsHandler ...
[16:51:44] [INFO] Started script SinglePlayerApartment.ApartmentsHandler.
[16:51:44] [DEBUG] Instantiating script SinglePlayerApartment.Brain ...
[16:51:44] [INFO] Started script SinglePlayerApartment.Brain.
[16:51:44] [DEBUG] Instantiating script SinglePlayerApartment.Mechanic ...
[16:51:45] [INFO] Started script SinglePlayerApartment.Mechanic.
[16:51:45] [DEBUG] Instantiating script SinglePlayerApartment.Phone ...
[16:51:45] [WARNING] Resolving API version 0.0.0.
[16:51:45] [INFO] Started script SinglePlayerApartment.Phone.
[16:51:45] [DEBUG] Instantiating script SinglePlayerApartment.SinglePlayerApartment ...
[16:51:48] [INFO] Started script SinglePlayerApartment.SinglePlayerApartment.
[16:51:48] [DEBUG] Instantiating script SinglePlayerApartment.SixCarGarage ...
[16:51:48] [INFO] Started script SinglePlayerApartment.SixCarGarage.
[16:51:48] [DEBUG] Instantiating script SinglePlayerApartment.TenCarGarage ...
[16:51:48] [INFO] Started script SinglePlayerApartment.TenCarGarage.
[16:51:48] [DEBUG] Instantiating script SinglePlayerApartment.Wardrobe ...
[16:51:48] [INFO] Started script SinglePlayerApartment.Wardrobe.
[16:51:48] [DEBUG] Instantiating script SinglePlayerApartment.Website ...
[16:51:48] [INFO] Started script SinglePlayerApartment.Website.
[16:51:48] [DEBUG] Instantiating script SinglePlayerApartment.Z ...
[16:51:48] [INFO] Started script SinglePlayerApartment.Z.
qiangqiang101 commented 3 years ago

update your SHVDN to the the latest https://github.com/crosire/scripthookvdotnet/releases/tag/v3.0.4

bernhardberger commented 3 years ago

It already is the latest 3.0.4 version. I just re-downloaded it to be sure.

// Edit: I've filed an issue in the SHVN repo. Seems like they bundled an old version..? I first thought maybe you had referenced an API version that didn't exist as I couldn'd find a release above 2.0.10, but I've just seen the NuGet package for 2.0.13 so it's probably on their end..

I've also seen bug reports in other gta5mods that throw the same warning after updating to 3.0.4..

qiangqiang101 commented 3 years ago

SHVDN updated the requirements few release ago, did you install the latest requirements?

C++ ScriptHook by Alexander Blade .NET Framework ≥ 4.8 Visual C++ Redistributable for Visual Studio 2019 x64

qiangqiang101 commented 3 years ago

and you need to copy the latest ScriptHookVDotNet2.dll to your GTA 5 directory as well

bernhardberger commented 3 years ago

Yeah, all requirements were already installed and I copied all 3 .dlls into the GTA5 directory.

Is there any way you could verify that the mod (released version on gta5mods) is working with 3.0.4 (binary from the releases page)?

My suspicion is that the v2.0.13 wasn't bundled with the 3.0.4 release and I also can't compile it myself as I don't have a VS license anymore..

qiangqiang101 commented 3 years ago

I'm using 3.0.4 in my reference and game

bernhardberger commented 3 years ago

Actually downloaded from the releases page or self-compiled?

qiangqiang101 commented 3 years ago

release page

bernhardberger commented 3 years ago

Very, very strange issue.. Do you know of another source to get a compiled V2 binary other than the github release page?

qiangqiang101 commented 3 years ago

https://ci.appveyor.com/project/crosire/scripthookvdotnet/build/artifacts

bernhardberger commented 3 years ago

Can be closed. I think 3rd time is a charm. I however checked the assembly versions before downloading it a 3rd time and both the old file and the newly downloaded file said 2.10.13... no idea what was the matter with it. Can be closed.

Thanks for your support!