Skip to content

Could not load file or assembly 'JoystickLibrarySharp.DLL' #3

@ThreeDeeJay

Description

@ThreeDeeJay

I'm getting the following error in ScriptHookVDotNet.log:

[02:21:39] [DEBUG] Loading API from .\ScriptHookVDotNet2.dll ...
[02:21:39] [DEBUG] Loading API from .\ScriptHookVDotNet3.dll ...
[02:21:39] [DEBUG] Loading scripts from Grand Theft Auto V\scripts ...
[02:21:39] [DEBUG] Loading assembly FlightStick.dll ...
[02:21:39] [ERROR] Failed to load assembly FlightStick.dll: System.IO.FileNotFoundException: Could not load file or assembly 'JoystickLibrarySharp.DLL' or one of its dependencies. The specified module could not be found.
File name: 'JoystickLibrarySharp.DLL'


[02:21:39] [DEBUG] Loading assembly JoystickLibrarySharp.dll ...
[02:21:39] [ERROR] Unable to load JoystickLibrarySharp.dll: System.IO.FileNotFoundException: Could not load file or assembly 'JoystickLibrarySharp.DLL' or one of its dependencies. The specified module could not be found.
File name: 'JoystickLibrarySharp.DLL'
   at System.Reflection.RuntimeAssembly._nLoad(AssemblyName fileName, String codeBase, Evidence assemblySecurity, RuntimeAssembly locationHint, StackCrawlMark& stackMark, IntPtr pPrivHostBinder, Boolean throwOnFileNotFound, Boolean forIntrospection, Boolean suppressSecurityChecks)
   at System.Reflection.RuntimeAssembly.InternalLoadAssemblyName(AssemblyName assemblyRef, Evidence assemblySecurity, RuntimeAssembly reqAssembly, StackCrawlMark& stackMark, IntPtr pPrivHostBinder, Boolean throwOnFileNotFound, Boolean forIntrospection, Boolean suppressSecurityChecks)
   at System.Reflection.RuntimeAssembly.InternalLoadFrom(String assemblyFile, Evidence securityEvidence, Byte[] hashValue, AssemblyHashAlgorithm hashAlgorithm, Boolean forIntrospection, Boolean suppressSecurityChecks, StackCrawlMark& stackMark)
   at System.Reflection.Assembly.LoadFrom(String assemblyFile)
   at SHVDN.ScriptDomain.LoadScriptsFromAssembly(String filename)

I'm using game version 1.0.2699.16 for VR/3D and steering wheel mod support.
ScriptHookV and ScriptHookV.NET and other mods are installed and working properly.

I noticed FlightStick.dll is 32-bit. Is that right?
Because both the game and JoystickLibrarySharp.dll are 64-bit, which I would've imagined would be incompatible with FlighStick.dll, so I even tried renaming its extension to .asi and copying both to the root folder and no dice.
Image
I also tried compiling a x64 DLL but it refuses to since it's not a valid configuration in the project file, so I'm not sure what I might be missing. 🤔

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions