FALLOUT NEW VEGAS
4GB Fallout New Vegas Updated by MonochromeWench - Hendricks266 - Roy Batty
New Vegas » Utilities
Added: 21/02/2014 - 03:14AM
Updated: 16/02/2015 - 11:03AM

7,954 Endorsements

1.9 Latest version

105,510 Unique D/Ls

165,594 Total D/Ls

527,843 Total Views

Uploaded by RoyBatterian

Description

Last updated at 11:03, 16 Feb 2015 Uploaded at 3:14, 21 Feb 2014

By MonochromeWench, Hendricks266, Roy Batty

Thank you all for 3000+ Endorsements

Description


FNV4GB is a tool to load Fallout New Vegas with the Large Address Aware executable flag set so the entire 4GB Virtual Memory Address Space can be used by the game. This is useful when using lots of Mods and Texture Packs.

Why use this tool, when there are 4GB patch tools and PE Editors you might ask? Well the Steam envelope for the FalloutNV.exe does not tolerate any tampering and will error out if you modify it that way, so this tool was created by MonochromeWench to get around that limitation.


Installation


It is recommended to copy the FNV4GB.exe and fnv4gb_helper.dll to the New Vegas installation directory. Doing so will allow the tool to work with ENB, SweetFX, FXAA injector and other such utilties with a minimum of hassle. However it is not necessary (YMMV).

Create a shortcut to FNV4GB.exe and place it on your desktop, pin it to your taskbar, or copy it to your quick launch bar.


Usage


First, make sure you have launched the game with the default launcher AT LEAST ONCE after setting up your graphics options or the program will NOT function properly.

Make sure Steam is running. Then run FNV4GB.exe as Administrator to launch the game.

FNV4GB will automatically load and execute NVSE if detected.


Command Line Reference


FNV4GB.exe [-exe string] [-laaexe string] [-SteamAppID number] [-nolaa] [-extradll string [-extradll string [...]]]

-exe filename (The games original executable)

* If not an absolute path FNV4GB will look for the executable in the Fallout New Vegas directory using paths that should be in the registry.

* Default is FalloutNV.exe

* This allows using the program with other exe's not supported by default.

-laaexe filename (The executable created by the loader that has the LAA flag set)

*** This must NOT be the same file as the original executable! ***

* If this contains an absolute path the file will be created using that exact path.

* If the path starts with . the exe will be created relative to the directory containing FNV4GB.

* Otherwise it will be created relative to the original executable.

* Default is to use the original's name and create it in a directory called 'exes', in the directory containing FNV4GB.exe.

-SteamAppId ID (The SteamAppId ID to use. Default is 22380 for Fallout New Vegas)

-nolaa (Don't set the LAA flag or unset it if it was already set in the original executable)

-nonvse (Disable attempting to load NVSE)

-extradll dllname (An extra dll to load into the laaexe process after its been created)

* This can be specified multiple times to load more than one dll.

Shortcut Target Box Examples


* This is an example to set the SteamAppId to the Russian/Czech/Polish version

"C:\Program Files (x86)\Steam\steamapps\common\Fallout New Vegas\FNV4GB.exe" -SteamAppId 22490

* This is an example to create the LAA executable in the current directory (below)

* Use this method if you want to use an ENB, SweetFX, or FXAA Injector

"C:\Program Files (x86)\Steam\steamapps\common\Fallout New Vegas\FNV4GB.exe" -laaexe .\FalloutNV4GB.exe

* This is an example to create the LAA executable in the exes folder with the Russian/Czech/Polish SteamAppId, and injecting x360ce's dll

"C:\Program Files (x86)\Steam\steamapps\common\Fallout New Vegas\FNV4GB.exe" -SteamAppId 22490 -extradll xinput1_3.dll

* Mod Organizer - The following is borrowed from the New Vegas STEP page. Thanks much to EssArrBee.

In the Executables menu type FNV 4GB Loader into the Title text box.
Next to the Binary text box, click [...], and navigate to the "...\Fallout New Vegas\" folder, select "fnv4gb.exe" and click [Open].
In the arguments text box type in; "-laaexe .\FalloutMO.exe", without quotations.
You can also add any other arguments you need into the same text box.
Click [Add], then [Close].


If you want to use fake fullscreen mode I recommend using

http://www.nexusmods.com/skyrim/mods/40706

It requires NVSE and manual installation


Troubleshooting


If you are using New Vegas Stutter Remover, you will need to edit the .ini for it and set

bFastExit = 1

The .ini is located in the Data\NVSE\Plugins folder with the .dll, after you have run the game at least once with it installed.

Your Fallout New Vegas may hang on exit if you do not do this.


History


1.9

Fixed typos with SteamAppId in command line switch and Environment Variable
Fixed Steam overlay News/Guides and Screenshot Manager by adding SteamGameId Environment Variable.

Removed console option. Will be restored on next rewrite as command line argument.

Removed unfinished code for passing command line args to FalloutNV.exe, using it resulted in FalloutNVLauncher being used always

1.8

Removed "Attach Debugger?" nag.
The console is now only enabled for exes labeled "console". If you want the old
style with a progress bar use the files in the noconsole folder.

1.7

Fixed an issue with the program exiting properly. Custom WinMain start up
procedure was not exiting cleanly on some systems due to never calling
ExitProcess on termination.

Fixed out of bounds access in helper dll.
Enabled console window by default.

1.6

Back ported Skyrim4GB to work with Fallout New Vegas. There are few difference between 1.6 and Skyrim4GB 1.5 other than code changes needed for Fallout New Vegas such executable name changes, registry path changes and other similar changes.

FNV4GB will write out a log file to ~\Documents\My Games\FalloutNV\FNV4GB.log

Skyrim4GB 1.5

Fixed at least one case that was causing people to get Access Denied error messages.
Changed the default laaexe to be '.\exes\TESV.exe' instead of 'TESV.exe.4gb'.
This is so people don't have issues with other programs detecting when Skyrim runs.

Updated the code so it wont fail if the original exe already had the LAA flag set as will apparently happen in the next Skyrim patch. If the LAA flag is already set, the loader will NOT create a modified executable. It will directly run the original exe without modifications while still injecting skse and extra dlls specified with -extradll.

Added -nolaa command line options. If the original exe didn't have the LAA flag the loader will directly load the original exe without modifications while still injecting other dlls. If the original exe had the LAA flag set, then a modified exe will be generated with the LAA flag unset and that will then be run by the loader.

Skyrim4GB 1.4

Generally cleaned up the code.

Rewrote how the helper dll is injected into the child process. Moved helper dll code out of DLLMain into its own function that gets called after the DLL has finished being loaded. I want to avoid the possibility of issues with the Windows DLL Loader Lock.

Skyrim4GB now accepts a variety of command line parameters to control what it does. See the Command Line Reference below for details.

Skyrim4GB 1.3

The loader now prints out details of what it is doing. It also now attempts to check if TESV.exe has been modified. If the exe is detected as modified it will tell you, instructing you to get Steam to validate the cache.

The loader will no longer wait for TESV.exe.4gb to exit before it exits itself.

The helper dll will now attempt to hook GetModuleFileNameA, if possible, to disguise what exe is actually loaded. If that hook fails it will fallback to the older CreateFileA hook.

Skyrim4GB 1.2

Skyrim4GB will attempt to load the SKSE loader (skse_steam_loader.dll).
Skyrim4GB no longer hooks GetTickCount().

Skyrim4GB 1.1

Made some code changes that 'may' improve things for some people. Now checks the Bethesda Softworks\Skyrim and Valve\Steam paths for the installation directory.

Also will now write out a log file to ~\Documents\My Games\Skyrim\Skyrim4GB.log that outputs some debugging information that may help track down why it doesn't work for some people.

Fallout4GB 1.2


Credits


MonochromeWench - Original Author
Hendricks266 - Bug Fixes
Roy Batty - Bug Fixes, Steam fixes


Recommended Mods


NMC's Texture Pack
NVInteriors
Vending Machines of the Wastes
Nuka-Cola Enhanced
YUP
Mod Configuration Menu
JIP CCC
FOV Slider

Project Nevada
Project Nevada Extra Options

A World Of Pain
A World Of Pain Balance and Cleanup
A World Of Pain Revisions

Frequently Asked Questions


1. Does this work with NVSE?
-----------------------------------
Can you read?

2. Does this work with ENB?
----------------------------------
Yes, it works with both the wrapper and injector version. Wrapper is recommended.

3. Why doesn't this work with my ENB or SweetFX?
---------------------------------------------------------------
You haven't read the documentation for this tool or for ENB or SweetFX.

4. My antivirus says this is a virus/trojan?
----------------------------------------------------
It is NOT a virus. Please post in the forum what antivirus you use and EXACTLY what it is being detected as. I can then submit the program for white-listing.

5. Does this tool work with FakeFullscreen?
-----------------------------------------------------
No, use the fake fullscreen mode of ENB if you need it.

6. This program deleted/ruined my game, blew up my computer, killed my cat, etc.
-------------------------------------------------------------------------------------------------------
No warranty is provided expressly or implied, use of this software is AT YOUR OWN RISK. P.S. No it didn't.

Legal and Licensing


FNV4GB is licensed under the terms of the GNU Lesser General Public License version 2.1. Read the included lgpl-2.1.txt for the terms. Source code is included with the package. Original binaries compiled using Microsoft Visual Studio 2010.