xNVSE / NVSE

New Vegas Script Extender (NVSE)
https://git.io/JfSAo
712 stars 56 forks source link

NVSE Couldn't Inject DLL #63

Closed NicolaiPizzaGuy closed 3 years ago

NicolaiPizzaGuy commented 3 years ago

Trying to install xNVSE on a fresh install of New Vegas (GOG edition) but running into an error when attempting to run the NVSE Loader. When I run the loader as admin the command prompt pops up as it normally would, but then I receive a "Couldn't Inject DLL" error. After this I'm able to successfully run the launcher, which launches New Vegas without issue, but NVSE isn't being detected as the "getnvseversion" command throws back:

"SCRIPTS: Script 'SysWindowCompileAndRun', line 1: Script command 'GetNVSEVersion' not found"

The game itself runs fine outside of this issue, but obviously I'm unable to install any mods that require NVSE to function properly.

I'm not using any mod organizers currently, just installing xNVSE manually. All the files are in the correct folder, I'm using a fresh install of New Vegas, and I'm running the NVSE Loader as admin so I'm at a loss for what the root of the problem is.

c6-dev commented 3 years ago

Try patching your game with 4GB patcher and using FalloutNV.exe to run the game. You shouldn't need to run anything as admin.

c6-dev commented 3 years ago

If that doesn't help, check your "Exploit Protection" settings in Windows 10 (type it in the search bar) - someone else was having the same problem and the setting "Force randomization of images (Mandatory ASLR)" was causing it.

NicolaiPizzaGuy commented 3 years ago

If that doesn't help, check your "Exploit Protection" settings in Windows 10 (type it in the search bar) - someone else was having the same problem and the setting "Force randomization of images (Mandatory ASLR)" was causing it.

This was the solution. Hopefully this documentation will help some other folks as I'd done a fair amount of trouble shooting prior to posting here and this was the first mention I found of the "Force randomization of images" issue.

Many thanks!

c6-dev commented 3 years ago

Glad you were able to fix it.

MohamedSaif44 commented 2 years ago

well it seems that's my fault,cause i made fallout.ini a read-only(can't remember why),and i think Nexus mod manager latest version need to modify it.something related to archive list.hope this helps that was a typical causation correlation fallacy.

anyway the error is solved by using the FalloutNV.exe then it naturally crash,then use xnvse and it works just fine.here is the log if you want to further investigate

nvse_loader.log

nvse loader 06020080 01D8DE5809857E3A procPath = H:\Fallout New Vegas\Fallout New Vegas\FalloutNV.exe launching: FalloutNV.exe (H:\Fallout New Vegas\Fallout New Vegas\FalloutNV.exe) dwSignature = FEEF04BD dwStrucVersion = 00010000 dwFileVersionMS = 00010004 dwFileVersionLS = 0000020D dwProductVersionMS = 00010004 dwProductVersionLS = 0000020D dwFileFlagsMask = 00000017 dwFileFlags = 00000000 dwFileOS = 00000004 dwFileType = 00000001 dwFileSubtype = 00000000 dwFileDateMS = 00000000 dwFileDateLS = 00000000 version = 000100040000020D using slow nogore check normal exe hook call addr = 00ECC46B load lib addr = 00FDF0B0 dll = H:\Fallout New Vegas\Fallout New Vegas\nvse_1_4.dll main thread id = 9096 remote memory = 000C0000 couldn't read memory (update winmain) couldn't init hook Couldn't inject DLL. terminating process