VOGONS

Common searches


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

Topic actions

  • This topic is locked. You cannot reply or edit posts.

First post, by davidiwharper

User metadata
Rank Newbie
Rank
Newbie

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

NOTES: […]
Show full quote

NOTES:

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!

(from http://www.advsys.net/ken/build.htm)

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

Age of Rifles
Archimedean Dynasty
Blood
Constructor
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
NAM/Napalm
Need for Speed
Nemesis: The Wizardry Adventure
Powerslave
Redneck Rampage
Redneck Rampage Rides Again
Redneck Deer Huntin'
Shadow Warrior
Syndicate Wars
System Shock
TekWar
TIE Fighter
Toonstruck
Versailles 1685
Witchhaven
Witchhaven 2: Blood Vengeance
WWII GI

2006-06-24 -- Added Grand Theft Auto.
2005-03-01 -- Added list of supported games from forum search

Attachments

  • Filename
    nolfb.zip
    File size
    1.43 KiB
    Downloads
    2318 downloads
    File license
    Fair use/fair dealing exception
Last edited by davidiwharper on 2002-09-29, 15:21. Edited 1 time in total.