Patching MechCommander's "left arm bug" for fun and profit
18 points
3 days ago
| 4 comments
| mhloppy.com
| HN
golden-face
1 minute ago
[-]
Great writeup! Vividly remember this being a thing especially in multiplayer. What was that janky match matching service, MSN something?

Also a really underrated game, the mechanics (line of sight over the horizon stuff) and isometric graphics were pretty cool for the time and it had a well developed story/campaign mode.

reply
pkhuong
14 minutes ago
[-]
If you need a compact byte -> bit lookup table on x86, consider using the memory form of the bit test (BT) instruction.
reply
derac
1 hour ago
[-]
This is cool, maybe "target left arm" implies that it's your left, when targetting them and you're facing each other. So, their right arm.
reply
derac
45 minutes ago
[-]
Btw, I recently did my first patches with ghidra. Is there any way to avoid jumping into a code cave by shifting all the instructions up then updating any statements referring to those memory locations? Seems like it should be simple enoigh in theory, but I didn't find an implementation on a cursory search. Could probably code up a plugin pretty easily.
reply
20k
40 minutes ago
[-]
Oh man this was my biggest pet peeve with mechcommander as a kid, thanks for fixing it!
reply