Menu Alt-Tab Crash Fix by stoker25
Oblivion » Patches
Added: 02/08/2017 - 10:21AM
Updated: 02/08/2017 - 10:38AM

16 Endorsements

1.1 Latest version

264 Unique D/Ls

355 Total D/Ls

2,552 Total Views

Uploaded by stoker25


Last updated at 10:38, 2 Aug 2017 Uploaded at 10:21, 2 Aug 2017

NOTE: Requires OBSE! Should be compatible with pretty much any other OBSE plugin (since I haven't seen any other plugin that also includes this fix), but if you have any problems please let me know!

NOTE2: For the stablest experience I recommend using this with ENBBoostOblivion Stutter RemoverEngineBugFixes and NVAC (NVAC is for New Vegas, but works with Oblivion too)

NOTE3: If you use Oblivion Reloaded this fix probably won't have any effect for you, OR changes/fixes a lot of things, which sadly seems to make Alt-Tabbing even more troublesome to the game... Of course they're doing great things for Oblivion, but improving alt-tab support probably isn't that high on their radar :P If I find anything out about the cause I'll be sure to let them know!

This fixes a crash when alt-tabbing while on a menu, I'd guess that it could possibly fix other alt-tab crashes in-game too but I'm not certain about that - I just know that it does definitely fix the main-menu crash for me (and others have confirmed it fixes crashes with alt-tabbing in ingame menus too) - but if your game suddenly feels more stable hopefully it helped in some way!

The crash seems to be caused when you alt-tab back into the game, for some reason it tries to look up the coordinates of the exterior cell you're in, obviously when you're on the main menu you're not in an exterior cell - but the game still tries to look up the coordinates regardless, causing a crash because you can't really look up coordinates for a NULL cell... (this happens because it calls a class function with a null class pointer, and then crashes when it tries to access the coordinate data from that pointer.)

This plugin simply replaces the functions that look up those coordinates with ones that check if the exterior cell is NULL first, and if so just returns 0,0 for the coordinates. Very simple fix, in fact you can take a look at the source code for it here: https://pastebin.com/f31sKiDU

AFAIK no other plugins include this fix, if you want to include it in your own plugins or mod compilations feel free, though I'd appreciate some attribution for finding it :)

To install you'll need OBSE, just put the AltTabFix.dll file into your Data/OBSE/Plugins/ folder. If a crash is prevented it'll log a message about it in the console.

Also I'm going to try and investigate any other Alt+Tab crashes I come across, watch this space for any updates :)

(1.1 update: small fix, nothing major, just updated a string I copy-pasted and forgot to change)