First post, by Vivid Warthog
Vivid Warthog
Offline
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.0Publisher .... : Ocean Software (1992) Release date . : 20/11/2026Platform ..... : PC / MS-DOS Patcher size . : 12,608 bytesPatched 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 haveand 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 playedwith BOTH music and sound effects on MT-32/SB setup, and fixes a few annoyingbugs 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 floodedthe 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 freedisk space and the ORIGINAL LETHAL.EXE from any installSB effects ... : Sound Blaster with DSP 2.00+, BLASTER variable set(A, I and D) and LWSFX.DAT in the game directorywith XMS .... : 22 kHz effects, about 210 KB of free XMSwithout XMS . : 8 kHz effects in conventional memory, about 629 KBfree before starting the game (the game alone needs554 KB)Without the SB stuff, or with too little memory, the game simply fallsback 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 directory2. 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 SoundBlaster effects (the LWSFX.DAT from older builds won't work)4. Play!Your original is kept as LETHAL.BAK. An existing LETHAL.BAK getsOVERWRITTEN, 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
"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 againOn 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-32Lemulator 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 Keeperutilities, as kept in CorsixTH (libs/rnc/rnc.cpp)* "RNC ProPack" on MultimediaWiki and "Rob Northern Compression" onModdingWiki* Creative's Sound Blaster Series Hardware Programming Guide, the XMS 3.0spec, Ralf Brown's Interrupt List and the OSDev wiki (DMA, PIC)---- -= Vivid Warthog =- ----