NOLFB - Disables LFB enabling DOS games to fallback to VESA 1.2 modes

Files, FAQs, and other things to help you get your games running before you start asking questions.

NOLFB - Disables LFB enabling DOS games to fallback to VESA 1.2 modes

Postby davidiwharper » 2002-9-28 @ 06:56

Well, we thought it would never happen - Ken Silverman had abandoned DOS game development, he said. But then he bought a computer pre-installed with Windows XP, and discovered that, surprise, surprise, VESA doesn't work.

So he has released a fix.

Here's the problem with VESA 2.0 running under Windows NT/2K/XP: The video card BIOS says the linear framebuffer exists, but when DOS applications try to set this video mode, the application exits with this error message: "DPMI_mapPhysicalToLinear() failed!". Most people never see this message because the screen is either black or jumbled at this point. I don't know why the call fails, but I have a workaround:

A TSR that patches the VESA driver by fooling DOS programs into thinking the VESA 2.0 linear framebuffer modes aren't supported. Run this in the CMD prompt before you start your DOS application. You can type "MEM /C" to see if it installed in memory correctly. To remove it from memory, just type 'exit' from the CMD shell


NOLFB will only fix DOS VESA 2.0 applications that have a fallback code that supports the segmented video modes (from VESA 1.2). If the application does not run in segmented video mode, then it will exit with a visible error message instead of a black or jumbled screen.
NOLFB does not add any new VESA modes to your computer! In fact it does just the opposite. If your graphics adapter does not support standard VESA modes (such as 640x480x8) in any DOS application, then this patch will not help you.
Here's a list of programs I've tested that are fixed by this patch (assuming the above conditions are true): Duke Nukem 3D, Shadow Warrior, most of the Build engine tools, 2Draw, and some demos on my website that are linked to my DOS VESA code: "VES2.H".
NOLFB will not do much in Win95/98/ME other than cause the framerates to decrease in games. Use at your own risk!


Searched the VOGONS forum as of 2-9-2005 for all games that use NOLFB, here it is:

Age of Rifles
Archimedean Dynasty
Death Rally
Duke Nukem 3D
Extreme Paintbrawl
Fantasy General
Grand Theft Auto (Required for 24bit, 8 bit works fine)
Mechwarrior 2
Mechwarrior 2 Mercenaries
Megarace 2
Mortal Kombat Trilogy
Need for Speed
Nemesis: The Wizardry Adventure
Redneck Rampage
Redneck Rampage Rides Again
Redneck Deer Huntin'
Shadow Warrior
Syndicate Wars
System Shock
TIE Fighter
Versailles 1685
Witchhaven 2: Blood Vengeance

2006-06-24 -- Added Grand Theft Auto.
2005-03-01 -- Added list of supported games from forum search
(1.43 KiB) Downloaded 1969 times
Last edited by davidiwharper on 2002-9-29 @ 15:21, edited 1 time in total.
Posts: 2
Joined: 2002-7-01 @ 07:04

Return to Deep Thought

Who is online

Users browsing this forum: No registered users and 1 guest