The 2002 non-Steam build of Half-Life now runs at native resolution on Windows 11, with no title-bar scripts, window-size maths or hidden taskbar. It took one drop-in DLL and no changes to a single game file.
The problem
The WON build (hl.exe 1.1.x, from before Steam) still launches on Windows 11, but it doesn’t handle modern displays well. Fullscreen topped out at 4:3 resolutions. The workaround was OpenGL in a window, sized to the screen resolution divided by the Windows scaling factor, with an AutoHotkey script stripping the title bar and the taskbar hidden by hand. That’s a lot of ritual just to play a 26-year-old game.
What was actually broken
The engine (hw.dll) is an encrypted “blob” that hl.exe decrypts and maps itself, so the first step was decrypting it to see what the launcher and engine really do. Five separate problems turned up:
No DPI awareness. Windows enlarges and blurs non-aware apps at 125% or 150% scaling, which is where the “divide by scaling” maths came from.
A hard-coded mode list. Windowed and OpenGL resolutions come from a fixed table of eight sizes inside hl.exe, topping out at 1600×1200. The copy here had been hex-edited years ago to squeeze widescreen sizes into it.
A 4:3-only filter. Software fullscreen modes are only accepted at exactly 4:3 and at most 1024 pixels tall.
A 40 MB memory cap. The launcher caps the engine heap at 40 MB and silently drops any resolution whose framebuffer and surface cache won’t fit, which rules out 1440p and 4K even in OpenGL.
A sloppy argument parser. Switches are found with a plain substring search, so -w matches inside -window and reads the next word as the width. hl.exe -window -dev asks for a width of zero and falls back to the smallest mode.
The fix: one proxy DLL
hl.exe imports DirectDraw at startup, so a custom ddraw.dll dropped next to it loads before any window exists. It forwards every real DirectDraw call to the system DLL and fixes the rest in memory. Each code patch checks the exact bytes first, so nothing changes on a build it doesn’t recognise.
DPI aware. The process is marked per-monitor DPI aware, so the game sees real pixels.
A real mode list. The launcher’s eight-entry table is swapped for every resolution the monitor reports, native always included. That applies to OpenGL fullscreen as well as windowed.
More memory. The heap cap goes from 40 MB to 128 MB, so large resolutions survive the memory check.
Borderless by default. The game runs as a borderless window covering the monitor. Windows treats that as fullscreen, so the taskbar gets out of the way and alt-tab is instant. Anything smaller, like the fixed 640×480 menus, is centred on black.
Widescreen FOV. Half-Life stretches default_fov across the screen width, cutting off the top and bottom on widescreen. The DLL works out the matching value for the aspect ratio (106 at 16:9) and passes it on the command line.
The result is in the game’s own Video modes screen: on a 3:2 laptop, the list now runs all the way up to the panel’s native 2256×1504.
Where it stands
The game launches straight into native-resolution OpenGL with no scripts or manual window sizing, and the game files are untouched. Before it went near real hardware, everything was tested under Wine on Linux: menu, new game, ESC and back, sub-native resolutions and real fullscreen.
Download and install
Copy ddraw.dll and hlfix.ini from the zip into the Half-Life folder, next to hl.exe, and start the game as usual.
Remove any -window, -windowed, -width, -height, -w or -h switches from your shortcuts and .bat files. hlfix sets the window mode and resolution itself.
If you set “Override high DPI scaling” or other compatibility options on hl.exe’s Properties > Compatibility tab, turn them off.
Every setting is documented in hlfix.ini: WindowMode (borderless, fullscreen, windowed or default), Resolution (native, a fixed size such as 2560×1440, or game to use the in-game choice) and Fov (auto, off or a fixed number). Use the OpenGL renderer; software and Direct3D aren’t covered. To uninstall, delete the two files. The C source and build script are in the src folder.
The Anpiz IPC-D3B53W-S is a cheap Amazon dome camera that turns out to be a surprisingly capable piece of hardware once you replace the stock firmware with OpenIPC. Under the hood it runs a SigmaStar SSC377 (infinity6c) SoC with a SC4336P image sensor, capable of 2560×1440 at 30fps. Here’s everything you need to get it running.
Remove the clamp, reassemble, and power the camera on
The camera should come up on your network via DHCP within about 30 seconds. Set a root password in the Web UI, then ssh in as root.
Step 2 — Copy the IQ Tuning File
The stock firmware ships with a sensor-specific image quality binary (sc4336p_day.bin) that contains the color correction matrix, white balance tables, and gamma curves tuned for this exact sensor. Without it, colors look washed out and flat.
Extract the file from the original firmware (or download my copy here) and copy it to the camera. The easiest method if you only have SSH access (no SCP) is base64:
Then tell majestic to use it in /etc/majestic.yaml:
isp:
iqFile: /etc/sensors/sc4336p.bin
Step 3 — Fix the CMA Memory Allocation
Out of the box, OpenIPC only reserves 2MB of CMA memory for the video encoder. The SC4336P at 1920×1080 needs at least 6.2MB, which causes the encoder to fail silently and produce a solid pink image.
Increase the CMA reservation in the boot environment:
Step 4 — Configure the GPIO Pins (IR Filter and Light)
This was the most involved part of the setup. The stock firmware doesn’t document its GPIO assignments anywhere obvious, so finding the right pins required extracting and analysing the firmware.
The key was finding ko.sh — the kernel module startup script embedded in the squashfs of the original firmware — which explicitly exports and tests the ICR motor pins at boot.
The complete pin map for this camera:
Function
Interface
Pin/Channel
ICR filter — day coil
GPIO
11
ICR filter — night coil
GPIO
80
LED light
GPIO
13
IR LED (infrared light)
PWM
pwmchip0/pwm4
White light
PWM
pwmchip0/pwm0
Light sensor input
GPIO
23 (input)
Alarm input
GPIO
44 (input)
Alarm output
GPIO
61 (output)
The IR cut filter is a mechanical two-coil motor — it needs a brief pulse (~250ms) on one pin to switch to night position and a pulse on the other to return to day. Both pins sit at 0 between switches. The IR and white lights are PWM-controlled at a 50kHz period, not simple GPIO on/off.
Add the ICR pins to /etc/majestic.yaml:
nightMode:
irCutPin1: 11
irCutPin2: 80
irCutSingleInvert: false
lightMonitor: false # doesn't seem to work
lightSensorInvert: false
backlightPin: 13
You should hear a faint click each time as the filter moves.
The Pink Screen Mystery
During setup we ran into a solid pink image with no visible picture at all. It turned out to be two separate issues that happened to occur at the same time:
CMA too small — the encoder was failing silently (fixed by the cma=8M bootarg above)
Lens not fully seated — the lens barrel wasn’t screwed down flush to the sensor PCB, letting ambient light bleed in through the gap from behind and saturating the sensor pink
If you see a solid pink image, check both. The CMA fix is in the bootargs. The lens issue is mechanical — just unscrew the dome cover and tighten the lens down until it’s flush.
Step 5 — Automatic Day/Night Switching
OpenIPC’s built-in night mode appears to have a significant limitation on this camera: enabling lightMonitor: true (which uses image brightness to decide when to switch) disables all the night mode buttons in the web UI. And setting lightMonitor: false to get the buttons back means automatic switching stops working for some reason. You can’t have both at the same time. I hope I am wrong – if so, correct me!
But my workaround is to disable lightMonitor and handle automatic switching yourself with a cron script that uses sunrise/sunset times for your location. Save the following to /root/nightwatch.sh:
#!/bin/sh
LAT=40.0000
LON=-85.0000
STATE_FILE=/tmp/nightmode_state
CACHE=/tmp/sun_times
set_day() {
if [ "$(cat $STATE_FILE 2>/dev/null)" != "day" ]; then
echo "Switching to DAY mode"
curl -s "http://localhost/night?enabled=0" > /dev/null
echo 11 > /sys/class/gpio/export 2>/dev/null
echo 80 > /sys/class/gpio/export 2>/dev/null
echo out > /sys/class/gpio/gpio11/direction 2>/dev/null
echo out > /sys/class/gpio/gpio80/direction 2>/dev/null
echo 1 > /sys/class/gpio/gpio80/value
echo 0 > /sys/class/gpio/gpio11/value
usleep 250000
echo 0 > /sys/class/gpio/gpio11/value
echo 0 > /sys/class/gpio/gpio80/value
echo day > $STATE_FILE
else
echo "Already in DAY mode"
fi
}
set_night() {
if [ "$(cat $STATE_FILE 2>/dev/null)" != "night" ]; then
echo "Switching to NIGHT mode"
curl -s "http://localhost/night?enabled=1" > /dev/null
echo 11 > /sys/class/gpio/export 2>/dev/null
echo 80 > /sys/class/gpio/export 2>/dev/null
echo out > /sys/class/gpio/gpio11/direction 2>/dev/null
echo out > /sys/class/gpio/gpio80/direction 2>/dev/null
echo 1 > /sys/class/gpio/gpio11/value
echo 0 > /sys/class/gpio/gpio80/value
usleep 250000
echo 0 > /sys/class/gpio/gpio11/value
echo 0 > /sys/class/gpio/gpio80/value
echo night > $STATE_FILE
else
echo "Already in NIGHT mode"
fi
}
iso_to_ts() {
DT=$(echo $1 | sed 's/T/ /' | sed 's/+[0-9:]*$//' | sed 's/-[0-9][0-9]:[0-9][0-9]$//')
date -u -d "$DT" +%s
}
is_valid_ts() {
[ -n "$1" ] && echo "$1" | grep -q '^[0-9]*$'
}
CACHE_AGE=0
if [ -f $CACHE ]; then
CACHE_AGE=$(( $(date +%s) - $(date -r $CACHE +%s 2>/dev/null || echo 0) ))
fi
FORCE_FETCH=0
if [ ! -f $CACHE ] || [ $CACHE_AGE -gt 86400 ]; then
FORCE_FETCH=1
else
read SUNRISE_TS SUNSET_TS < $CACHE
if ! is_valid_ts "$SUNRISE_TS" || ! is_valid_ts "$SUNSET_TS"; then
echo "Bad cache detected, clearing"
rm -f $CACHE
FORCE_FETCH=1
else
echo "Cached: sunrise=$SUNRISE_TS sunset=$SUNSET_TS"
fi
fi
if [ "$FORCE_FETCH" = "1" ]; then
echo "Fetching sun times from API"
RESPONSE=$(curl -s "https://api.sunrise-sunset.org/json?lat=$LAT&lng=$LON&formatted=0")
SUNRISE=$(echo $RESPONSE | grep -o '"sunrise":"[^"]*"' | cut -d'"' -f4)
SUNSET=$(echo $RESPONSE | grep -o '"sunset":"[^"]*"' | cut -d'"' -f4)
SUNRISE_TS=$(iso_to_ts "$SUNRISE")
SUNSET_TS=$(iso_to_ts "$SUNSET")
if is_valid_ts "$SUNRISE_TS" && is_valid_ts "$SUNSET_TS"; then
echo "$SUNRISE_TS $SUNSET_TS" > $CACHE
echo "Fetched: sunrise=$SUNRISE_TS sunset=$SUNSET_TS"
else
echo "Failed to fetch valid sun times, defaulting to night"
set_night
exit 1
fi
fi
NOW=$(date +%s)
echo "Now=$NOW sunrise=$SUNRISE_TS sunset=$SUNSET_TS"
if [ "$NOW" -ge "$SUNRISE_TS" ] && [ "$NOW" -lt "$SUNSET_TS" ]; then
set_day
else
set_night
fi
Update LAT and LON for your location. Make it executable and add it to cron:
The script caches sunrise/sunset times for 24 hours (using the free sunrise-sunset.org API), only pulses the ICR motor when the state actually needs to change, and fails safely to night mode if the API is unreachable.
With this approach, set lightMonitor: false in majestic.yaml so the web UI buttons remain functional for manual overrides.
The Anpiz IPC-D3B53W-S is a solid candidate for OpenIPC. The hardware is capable, the sensor driver is already supported upstream, and once the IQ file, CMA, and GPIO pins are sorted it runs well. The main gotchas are the CMA allocation (easy fix), finding the correct ICR GPIO pins (GPIO 11 and 80, not obvious without digging into the original firmware), and making sure the lens is properly seated after reassembly.
Bringing old arcade machines back to life is part repair, part detective work. My latest project: a Star Trek: Voyager arcade cabinet that refused to boot because of a failed security device—the Dallas DS1991 iButton. With its internal battery long dead and no manufacturer support, the game only showed a bright red “Not Authorized” screen.
Following the Trail
The first clue was right in the binary: the “Not Authorized” string. Cross-referencing it in IDA Pro led me to the code path that displayed the failure message.
I noticed the message was triggered when a DWORD variable, ibok, was set to zero. Tracing it further, I saw that ibok was set by the return value of a function named verify_ib—the routine in charge of checking the iButton.
A Simple Fix
Instead of trying to emulate or repair the dead iButton, I decided to patch the function directly. The logic was straightforward:
If verify_ib returned 0 → fail, show red screen.
If verify_ib returned 1 → success, boot the game.
So I replaced the body of verify_ib with just two instructions:
mov eax, 1
ret
This forces the function to always succeed, no iButton required.
Back on the Bridge
With the patch applied, the game now boots cleanly and plays perfectly.
Sometimes arcade preservation isn’t about fixing hardware—it’s about understanding the software well enough to get it running again. In this case, a little reverse-engineering brought Voyager back online, ready to defend the Delta Quadrant once more.
I recently picked up a free HP ProBook 4540s from Facebook Marketplace. It was advertised as non-working — when plugged in, the caps lock light blinked and the fans spun at full speed, but no display, no POST.
First suspect? Bad RAM? I swapped sticks and slots — nothing.
Digging deeper, I found an obscure forum post suggesting BIOS corruption is somewhat common in this model laptop. That led me to discovering a BIOS dump on another site (after plenty of hunting). I used a CH341A programmer and SOIC8 clip to flash the BIOS chip directly. No luck with flashrom (kept hanging), so I busted out my trusty Windows XP VM and the Chinese flashing software.
The JVL Echo and Encore are touchscreen arcade machines with 100+ games that used to be found in bars and restaurants. Now they are part of a forgotten era of arcade gaming, largely replaced by cell phones. However, a home collectors market is emerging for those who want to play these machines for their nostalgia.
I recently had a customer bring in his Echo. He purchased it from a vendor, but the operator setup menu was locked with a PIN number that nobody knew. I was tasked with trying to recover and/or reset it. JVL support said the only solution was a new I/O board for $380 which I would then have to pass on to the customer, so I decided to try other means.
Performing a factory reset on the machine made no difference. The PIN number still persisted even after replacing the internal SD card with a fresh installation. I assumed the PIN number must be stored somewhere on the internal I/O board. Looking at the I/O board, I saw an EEPROM which I dumped using a ch341a, but within the dump there was nothing remarkable.
So, I resorted to poking around in the software itself. The JVL software runs on top of a stripped down version of Linux. Having experience already working on these machines, I knew there was a webserver running on port 88 that allowed access to operator setup, but I did not know if that also required a PIN or not. Turns out it does not, and I was able to recover the PIN remotely via my web browser.
Below is the method I used to recover the operator setup PIN:
I obtained a shell by booting into the game and pressing CTRL + ALT + F2 which dropped me to a console.
My original method (easier/better method is below): I plugged in an Ethernet cable and set up networking by running ifconfig eth0 10.0.3.5 and confirmed I could ping my router
I navigated my desktop PC web browser to http://10.0.3.5:88/setuphd/machine/standalone/setup/setupsystem.htm which brought up operator setup with no PIN check
I navigated to Access Control and clicked the button “Change Operator’s PIN”. For some reason, I was unable to change the PIN from this screen. The web server appeared to hang and I had to restart the machine. So I decided to focus my efforts on recovering the PIN.
The PIN was prepopulated in the setup but obfuscated like a password, so I resorted to some jQuery. I opened the browser console and entered this code to load the jQuery library: var jq = document.createElement('script'); jq.src = "https://ajax.googleapis.com/ajax/libs/jquery/3.5.1/jquery.min.js"; document.getElementsByTagName('head')[0].appendChild(jq);
Next, I ran this code to return the value of any password box: $('[type=password]').val(); which yielded output '2233'
I went to the physical machine and entered 2233 and I was into operator setup!
As these games transition ownership from commercial vendors to home users, it’s inevitable that more games will be purchased with locked operator setups. This was a fairly straightforward way of recovering a lost PIN on these JVL machines, and I’m glad I was able to help give this machine another life.
Update 7/8/25: The above can be simplified without the need to set up networking, jQuery, etc. The PIN is available in plain text via http://machine_ip:88/REQUEST/SetupAccess_GetOperator. A simple netcat console command on the machine itself will do the trick.
echo GET /REQUEST/SetupAccess_GetOperator | nc localhost 88
Broderbund’s The Playroom is an educational game designed for young children, originally released in the late 1980s and later updated for CD-ROM in 1996. It features a variety of interactive activities meant to teach basic skills like counting, spelling, and problem-solving. The game was part of a series that included The Treehouse and The Backyard, each offering engaging environments for early learning.
My dad installed this game on our computer when I was a child, and I played it often. Now with a son of my own who is becoming interested in computers, I wanted to play the game with him on a more modern PC than what I had in 1996.
Installing The Playroom on a modern Windows 11 PC presents some challenges, as the game was designed for much older operating systems. To get it running, I used otvdm, a lightweight compatibility layer that allows 16-bit Windows applications to run on 64-bit Windows. Installation worked smoothly, but when I tried to launch the game, I encountered an error stating that The Playroom MPC requires a 256-color video driver.
Of course, Windows 11 supports far more than 256 colors, but the game’s outdated compatibility check prevented it from running.
To bypass this limitation, I used IDA (Interactive Disassembler) to analyze the executable and locate the code responsible for the error message. I found a conditional jump instruction that triggered the message when the color depth check failed. By modifying just a single byte, I changed it to an unconditional jump, effectively skipping the check altogether.
In my version, I changed byte 0x285F9 from 74 to EB.
After this small patch, The Playroom launched successfully, proving that sometimes, a simple tweak can bring classic software back to life on modern hardware.
Golden Tee Live machines previously connected to the Internet/ITnet via a Sprint modem. The Sprint service was discontinued a few years ago. However, some older machines still have the modem soldered directly onto the I/O board. The modem attempts to connect to the Sprint towers during boot, but the connection is always unsuccessful. The result is a frustratingly long delay during startup as the game waits for a connection that will never happen.
The current solution has been to physically remove the modem by desoldering it from the I/O board. While effective, this approach comes with its own set of challenges. It requires disconnecting the I/O board and removing it from the machine, having soldering skills, and a fair amount of time to properly remove the component. For many, this can be a cumbersome process.
Fortunately, I’ve come up with an alternative solution that doesn’t require any soldering: a simple software fix that you can apply using just a thumb drive.
The Software Alternative: How It Works
Instead of physically removing the Sprint modem, we can trick the Golden Tee system into thinking the modem has already been removed. Golden Tee runs a Linux-based operating system, and one of the ways to disable the modem is by blacklisting the modem’s driver. By doing this, the game won’t try to load the Sprint modem driver during boot-up, and it will skip the long connection attempt to the now-defunct network.
I’ve created a script that you can load onto a USB thumb drive like an ordinary Golden Tee update. When you run the update, it adds the necessary “cp210x” (the modem driver) to the blacklist. This allows the system to boot more quickly, without waiting for the non-functional modem to connect.
Why You Should Consider This Solution
While desoldering the modem is a solution, it’s not always the easiest or safest option for the average arcade owner or operator. Removing a component from the I/O board requires a certain level of expertise with soldering equipment. Mistakes can easily lead to damaging the board, rendering the system unusable. For many users, this can be a daunting and risky task.
The software solution I’ve developed is a low-risk, hassle-free method that eliminates the need for soldering skills and disassembling the entire machine. It’s a much cleaner and safer solution that can be done in minutes with just a USB thumb drive and a few simple steps.
How to Create the USB Drive and Apply the Software Fix
Here’s how you can implement this solution in just a few easy steps:
1. Prepare Your USB Drive
First, you’ll need a USB thumb drive. It’s essential to format the drive as FAT32, which is the format that Golden Tee systems can read.
Steps to Format Your USB Drive in Windows:
Plug the USB drive into your computer.
Open File Explorer, right-click on your USB drive, and select Format.
In the format window, make sure to select FAT32 as the file system. (If your drive is larger than 32GB, FAT32 might not appear. You can use a third-party tool to format it to FAT32.)
Set the Allocation Unit Size to default (usually 4096 bytes).
Click Start, then confirm that you want to proceed with formatting.
Once downloaded, copy the file to the root of your FAT32-formatted USB drive.
Rename the file to update.bin
3. Load the Script onto Your Golden Tee Machine
Now that your USB drive is ready, it’s time to apply the update to your Golden Tee machine:
Safely eject the USB drive from your computer and plug it into one of the USB ports on the Golden Tee machine.
Power on the machine. The system should automatically detect the update file on the USB drive.
The process will run automatically, and once it’s complete, the game will reboot.
Remove the thumb drive.
4. Enjoy Faster Boot Times
Once the update is applied, your Golden Tee machine should boot much more quickly. The system will no longer wait for the non-functional modem to connect, and you’ll be able to jump straight into gameplay.