VOGONS


First post, by Vivid Warthog

User metadata
Rank Newbie
Rank
Newbie

Hello!

Some time ago I've made a patch for Lethal Weapon (Ocean, 1992) that makes the game playable with BOTH sound effects and music at the same time and with plain MT-32, by moving the sound effects to SB.
It also includes some fixes for bugs that hang the game on newer machines.
In the process, I think I've also accidentally broke some checksums checking code, so unfortunately the game now works on DosBox and win 98 dos-box.

I've found the patch and the source while browsing through the old HDD so I packaged it, added readme and decided to release it here, for anyone interested. I still think the game is awesome 😎

+==============================================================================+
| |
| L E T H A L W E A P O N - E N H A N C E D P A T C H |
| |
+==============================================================================+
Game ......... : Lethal Weapon Patch ........ : LWPATCH v1.0
Publisher .... : Ocean Software (1992) Release date . : 20/11/2026
Platform ..... : PC / MS-DOS Patcher size . : 12,608 bytes
Patched by ... : Vivid Warthog Needs ........ : original LETHAL.EXE

--[ WHAT IS IT ]--------------------------------------------------------------

The original game can only be played with either music or sound effects,
which is a bit sad for an action game from 1992.
Furthermore, the effects require LAPC-I/CM-32L, which an MT-32 doesn't have
and if the game is played with MT-32, the sound effects play wrong samples.

LWPATCH makes the game play the effects on the Sound Blaster instead
(rendered with Munt's CM-32L emulation), so the game can finally be played
with BOTH music and sound effects on MT-32/SB setup, and fixes a few annoying
bugs on the way:

* Adds sound effects on the Sound Blaster, music stays on the MT-32/LAPC-I
* Fixes the LAPC-I/MT-32 driver SysEx pacing: no more "MIDI BUFFER OVERFLOW"
on older MT-32s
* Fixes the music being stopped twice on every tune change, which flooded
the MT-32 with minutes of controller resets (the black screen hang)
* Runs in a Windows 9x DOS box

--[ REQUIREMENTS ]------------------------------------------------------------

Patching ..... : DOS 3.0+, 300 KB free conventional memory, 3.8 MB free
disk space and the ORIGINAL LETHAL.EXE from any install
SB effects ... : Sound Blaster with DSP 2.00+, BLASTER variable set
(A, I and D) and LWSFX.DAT in the game directory
with XMS .... : 22 kHz effects, about 210 KB of free XMS
without XMS . : 8 kHz effects in conventional memory, about 629 KB
free before starting the game (the game alone needs
554 KB)

Without the SB stuff, or with too little memory, the game simply falls
back to its own MIDI effects (music OR effects, as in the original).
The patched game needs 7 KB more conventional memory than the original.

--[ INSTALLATION ]------------------------------------------------------------

1. Copy LWPATCH.COM into the game directory
2. Type LWPATCH and hit ENTER
(or point it at the file: LWPATCH C:\GAMES\LETHAL\LETHAL.EXE)
3. Copy LWSFX.DAT from this package next to LETHAL.EXE for the Sound
Blaster effects (the LWSFX.DAT from older builds won't work)
4. Play!

Your original is kept as LETHAL.BAK. An existing LETHAL.BAK gets
OVERWRITTEN, so move it away first if it's the only copy you have.
To go back: DEL LETHAL.EXE, then REN LETHAL.BAK LETHAL.EXE

--[ IF SOMETHING GOES WRONG ]-------------------------------------------------

"the file is already patched" .... nothing to do, go play
…Show last 31 lines
  "not an original LETHAL.EXE" ..... wrong file or wrong version
"packed code failed its CRC" ..... your LETHAL.EXE is damaged,
reinstall from the original disks
"not enough memory" .............. free some conventional memory
"write error (disk full?)" ....... free up 3.8 MB and try again

On any error the original file is left untouched.

--[ TECH CORNER ]-------------------------------------------------------------

Full sources in SRC\ (Open Watcom C):
wcl -bcl=com -0 -os -fe=LWPATCH.COM src/LWPATCH.C

--[ THANKS ]------------------------------------------------------------------

Ocean Software for the game, and the Munt project for the MT-32/CM-32L
emulator used to record the effects.

Knowledge sources:
* DOSBox, src/gui/midi.cpp: the MT-32 SysEx delays used by the driver fix
* "RNC header, revised", RomHacking.net document 631
* Simon Tatham's dernc RNC decoder from Jon Skeet's Dungeon Keeper
utilities, as kept in CorsixTH (libs/rnc/rnc.cpp)
* "RNC ProPack" on MultimediaWiki and "Rob Northern Compression" on
ModdingWiki
* Creative's Sound Blaster Series Hardware Programming Guide, the XMS 3.0
spec, Ralf Brown's Interrupt List and the OSDev wiki (DMA, PIC)

---- -= Vivid Warthog =- ----