ScriptHookVDotNet - Failed to reload scripts, directory is missing.
Hi, I'm running the latest GTA V (version 1.0.1604.1 on Steam) and I updated OpenIV, ScriptHookV, ScriptHookVDotNet, ...
NativeUI Library 1.9.1
LUA Plugin for Script Hook V
Here are the logs:
asiloader.log on pastebin https://pastebin.com/Dbr2P6UQ
ScriptHookV.log on pastebin https://pastebin.com/wFWp2mpY
ScriptHookVDotNet2.log on imgur https://i.imgur.com/RrIez5K.jpg
What also might matter is,
I do not have GTA V installed on my SSD card (C:) Not enough memory for the game.
(C:\Program Files (x86)\Steam\SteamApps\common\Grand Theft Auto V)
I have GTA V installed on a secondary HHD card (D:)
(D:\SteamLibrary\steamapps\common\Grand Theft Auto V)
What I tried:
For some reason any mod that comes as a .dll file that go into the 'scripts' folder doesn't seem to work for me ingame. I've been going at it for 2 days without success.
All mods installed with OpenIV that reside in the 'mods' folder load and function fine ingame.
Other mods that come as .asi files that reside in the root Grand Theft Auto V directory load and function fine ingame as well. Have a look at these pictures.
Notice the Bodyguard mod, Simple Trainer mod. They work fine ingame!
But whatever mod that has to be loaded using ScriptHookVDotNet2 doesn't work and I don't know why.
All these don't load.
Here's the ScriptHookVDotNet2.log file which has an ERROR.
Directory missing while the 'scripts' folder is in place.
Should I notify the author of ScriptHookVDotNet2? @crosire
All Microsoft related stuff is up to date as well.
No drifting or giving a weapon to a ped, if you get my drift, while the other mods work fine.
Any suggestions? Why isn't it finding the 'scripts' directory? Thank you.
I managed to fix the issue! It pertains to what @Reyser (Moderator) posted on the ScriptHookV page. "Sometimes the script files are blocked by Windows to "protect" your system, thing that fucks some script mods until they're unblocked."
The problem was that despite the fact I did Unblock files that I downloaded, for some reason Windows 7 blocked them again as soon as I start GTA V!? (Microsoft Windows 7 Home Premium)
So. The only way to go around this problem is to simply Unbock the downloaded Zip file you download BEFORE you extract any files. Right-click the zip file you download, click Properties, and at the bottom of the General tab click Unblock. That's it. Extract files. Install mod properly.
As you can see from the pictures, I the ScriptHookVDotNet.asi now keeps the Unblocked state.
Glad I got it working! All mods work now.
No more [ERROR] Failed to reload scripts because directory is missing.
[16:14:12] [DEBUG] Created script domain 'ScriptDomain_71ECD7D0' with v2.10.9.
[16:14:12] [DEBUG] Loading scripts from 'D:\SteamLibrary\steamapps\common\Grand Theft Auto V\scripts' into script domain 'ScriptDomain_71ECD7D0' ...
[16:14:12] [INFO] Loading assembly 'DriftOnDemand.dll' ...
[16:14:12] [DEBUG] Found 1 script(s) in 'DriftOnDemand.dll'.
[16:14:12] [INFO] Loading assembly 'GiveYourWeaponsToOthers.dll' ...
[16:14:12] [DEBUG] Found 1 script(s) in 'GiveYourWeaponsToOthers.dll'.
I didn know Windows would re-block a file again. Had I known... Hope this helps someone!
To Enable or Disable Downloaded Files from being Blocked using a REG file (Option 2)
I hope it's OK to post a link. If not, go ahead and delete the post.
I think lots of people just download and extract files, install mods for the first time, and then notice their mods don't work ingame due to Windows blocking downloaded files. It probably is not such a big problem when files of a gta5-mod are blocked. But when something like ScriptHookVDotNet is blocked, nothing loads.
Conclusion: Unblock zip files before extracting the files within it. Or have Windows never block downloaded files to begin with.
so ive been having this issue for a few days, ive done the above and stopped it from being blocked. All was well... yet the next day im back to square 1??? all of the errors come up and its by sheer luck this this awful game actually opens.. any ideas? ive re downloaded all the files that come up in errors as well as "unblocked" everything editing the local group policy, yet it all comes back.. and my scripthookdotnet file goes back to saying "failed to reload scripts bc the directory is missing."
SHVDotNet 2.10.9 may not always work and you may have to roll back to 2.10.8 or 2.10.7
I’m still having this issue. Is it because I moved Steam to my SD card?
@xFrosts Did you ever fix it? I’m having the same issue.
I'm having this issue but when I go into the games files there actually is no scripts folder so the error is 100% correct, there is no script folder for it to load. I have no idea what happened since I just played it last week and it was working fine, now suddenly my scripts folder is gone. Does anyone know what I can do?
@SwiftReal You are neither running the latest game version, not the latest SripitHookVDotNET.
@meimeiriver the topics 2 years old, was probably latest version at the time