Behind DromEd and ShockEd: The tools that made Thief and System Shock
Behind DromEd and ShockEd: The tools that made Thief and System Shock Designer and programmer Marc LeBlanc explains the history of Looking Glass Studios' DromEd and ShockEd game engines. In recent years, retrospectives of classic games have been well received at GDC, but there have been very few stories about classic game tools. This series of articles will attempt to fill that gap, by interviewing key people who were instrumental in the history of game development tools. The first four articles in this series have featured John Romero (about the TEd Editor), Tim Sweeney (about the Unreal Editor), Chris Norden (on tools for the original Deus Ex), and the team behind the NetImmerse / Gamebryo engine. This time, I have the great pleasure of speaking with Marc LeBlanc who played a key role in the technology behind both of the classic Looking Glass game series Thief and System Shock, as well as their editors DromEd and ShockEd. Early Days and Looking Glass Origins David: Thanks for taking the time to talk to me, Marc! Let’s start with how you got started making games and what led you to Looking Glass. Marc: My first chance to make a game as an amateur was around 1980, on a school Apple II in sixth grade. 14 kids in the whole school were allowed to use it. One of my first questions was: "Can we make our own games?" I would stay after school typing BASIC code as fast as I could. One of my first questions was: "Can we make our own games?" In high school I had my own PC and Commodore 64. I was a real admirer of Infocom... those guys were my heroes. I followed them to MIT, where I met the founding core of Looking Glass. I lived down the hall from Doug Church, James Fleming, and John Maira. Also on our hall was Paul Shawcross. Paul ran a D&D game with some folks from the hall and some from his high school. One of those players had an uncle named Paul Neurath, that's how Paul met Doug Church, which led to the creation of Looking Glass. Paul would later go on to work at the White House in Science and Space Policy and under Obama was the one who officially responded to the petition to build a Death Star. Doug Church left MIT early to join forces with Paul Neurath and create Blue Sky Productions, founded in 1990. He hired his hall friends, James, John, and Dan Schmidt, and they made Ultima Underworld. In 1992, Blue Sky merged with Lerner Research and was rebranded as Looking Glass. I had a personal connection to Ultima Underworld: I went in and asked them to give me a compiler because I wanted to fix the auto-map, because it didn't show differences in elevation. My fixes may have shipped in Underworld 2. I joined as programmer and level designer and did the ice caves in Ultima Underworld 2. I was an engineer at Looking Glass on System Shock. I started part-time on Underworld 2, and I was full-time on System Shock. Then, I took a break to finish my master's thesis. I also worked briefly on Flight Unlimited and Terra Nova. I was probably the only engineer on Thief: The Dark Project for a little while, then I helped carry it through to completion, with brief stints on System Shock 2 and Thief 2. Toward the end I was tech lead on what was going to be Thief 3 and a new toolset, all native Windows, networking from the ground up. In a way, we were building our Unreal... but the company went under before we could do anything with it. Paul and Doug felt they had been burned by their ambition because Ultima Underworld had a year head start on Wolfenstein, but Wolfenstein had better reception due to being a simpler game. So for the next game they were looking to make something simpler that emphasized the 3D and didn’t have as many RPG mechanics like stats and conversations. The Beginning of Thief David: So what led to Thief's concept? Marc: It started as a pitch called Dark Camelot. It was a reverse Arthur and Round Table. It was a dystopian world where King Arthur is the bad guy, using the excuse of the Quest for the Holy Grail to keep the peasants under his thumb. The Round Table knights were all his lackeys, and they had corporate sponsors... they were like NASCAR drivers. You played as Mordred, fighting your way to the top. When we pitched it to marketing, they rejected it... but, they did keep the swords. Images via MobyGames (Author’s Note: You can watch the original Dark Camelot trailer here.) Dark Camelot became Dark Project. They made promo materials titled "the Dark Project is coming" before settling on Thief. In Europe, the game shipped as Dark Project. Many Europeans can't pronounce the English "th" sound, and in translation "Thief" loses its romantic Robin Hood connotations. The German title was "Dark Project: Der Meisterdieb" (Master Thief). As for the DromEd name, that traces back to how Dark Camelot was truncated to "dark camel," so the editor was named after the dromedary camel. cam.cfg is short for camel.cfg, the main game config file. We didn't want to make a big sprawling RPG like Elder Scrolls. We were looking for the "blue corner" of the action RPG ocean, not just a shooter. Paul said "Hey, why don't we make a game where you're a thief?". There was still some sword fighting… but the thief framing stuck. Paul said "Hey, why don't we make a game where you're a thief?" Dark Engine compared to Quake, and Unreal The Dark Engine tech is roughly contemporary with Quake. Sean Barrett built the renderer. Quake's renderer was built on a precomputed PVS: convex polyhedral cells each with a list of all other cells that could be seen from it, optimizing culling. Our tool was similar to the CSG constructive solid geometry model in Quake—additive/subtractive—but our approach was unique: It was based on media rather than addition and subtraction. Unreal had a similar subtractive CSG model. Thief's tool is contemporary with it. Actually, Tim Sweeney and the Unreal guys visited Looking Glass and suggested using Unreal's engine, but Looking Glass declined. Image via MobyGames The game needed really well-defined shadows for stealth gameplay: pre-baking lighting was required because of the era's tech constraints. Sean originally wanted deformable terrain as the engine's defining feature, then shifted to light-and-shadow focus for Thief, requiring pre-baked lighting. Just to put this all into context, remember that the minimum spec for Thief was lower than an iPhone 1. Just to put this all into context, remember that the minimum spec for Thief was lower than an iPhone 1. Interfacing with DromEd David: Tell me a bit more about the DromEd interface and how it works. Marc: The fundamental interface has four views, rendered view, top, right, front. The camera is shown as a small purple icon. The layout could also be changed. There are four brush types: terrain, area, room, and flow. Area brushes are a grouping/organizational mechanism, you could highlight/toggle them on-off. Room brushes are game-semantic: they marked a volume as a named room, used for AI, auto-mapping, scripting. Flow brushes set areas for water flow direction. We transitioned to Windows 95 before finishing the tool. All Windows-specific dialogs were in a DLL so the game build could discard them and run in DOS with a "padded cell." In the DOS version there were no menus at the top, just a command line where you had to know arcane command sequences like typing "portalize." Typing "help" showed a list of all commands. Portalize is the thing that rebuilds the actual rendering geometry from the brushes. On a big level it was a real step; designers built brushes, then portalized, then looked around... a much slower iteration loop. We had 8-bit palettized textures and possibly an 8-bit back buffer and limited ability to do lights. Colored lights didn't come until Thief 2 and System Shock 2. The Object System, Grandfather of ECS David: Tell me about the object system. Marc: Our object system was the great granddaddy of ECS which is what Unity is moving towards and what games like Overwatch use. I gave a talk on this at Riot; I want to give it externally. (Author's note: The talk is now on YouTube.) An object is just an ID with no mandatory properties. There's an inheritance tree from top down; "object" at top, then "physical" etc. Crates were under "barrel" in the hierarchy; the creature hierarchy has "undead" as a major category with properties. We used SourceSafe but couldn't merge… we had a physical hardware version control system where each level had a physical object, an action figure with a name tag, like "Bafford's Manor." To edit a level you had to find the person who had that physical object. The object hierarchy file's token was a Nerf football shaped like a brain. Whenever you wanted to change this database of stuff, you had to get the brain. The object hierarchy file's token was a Nerf football shaped like a brain. Whenever you wanted to change this database of stuff, you had to get the brain. Textures had a separate hierarchy: individual texture files had archetypes in the object hierarchy so inheritance could be used to specify gameplay properties of textures, like a metal grid texture: what things can attach to it, what sound it makes. The Act/React System: Ken Levine's Vision David: What about the Act/React system? Marc: That was a system originally conceived by Ken Levine, you can sort of see later versions of it in his games. Objects could be sources of stimuli like fire stimulus. The entire combat system was done through Act/React where each phenomenon was a stimulus with different propagation models. Act/React was a system originally conceived by Ken Levine, you can sort of see later versions of it in his games. Hitting someone with a weapon produced bash stim, slash stim, or poke stim. A water arrow in Thief was a contact source of water stimulus. Stimuli had life cycles: pulse interval, intensity growth/decay over time, number of firings. Objects had a list of sources and stimuli called "receptrons". For example: when hit by fire with no minimum/maximum, response was "damage object", damage me, source equals whatever caused the fire stim. You could multiply stimulus intensity, add to it, or you could add meta properties like "stunned". The weakness of this was that the system didn't contemplate rendering at all. It wasn’t like I'd create a stimulus and a particle system would automatically appear to show a radius with a falloff. It was totally invisible when you made it, and you had to find some other way to show it. Doom wouldn't do any of that. You would have to hand-code a barrel that blows up after it was hit by a certain amount of damage. DromEd and ShockEd: One and the Same David: What's the difference between DromEd and ShockEd? Marc: There originally was no difference between DromEd and ShockEd. Game logic ran in a DLL. On Thief we were constantly compiling the System Shock code and with a config file change we could be playing Shock instead of Thief. We had a multi-game engine that could runtime switch games. System Shock 2 wanted more native 3D hardware rendering support. We added 16-bit texturing and colored lights, dropping software rendering. The Shock engine was capable of things the Thief engine was never going to be capable of. The [System Shock 2] engine was capable of things the Thief engine was never going to be capable of. ShockEd was basically the version of DromEd that was built to the updated version of the engine, which Thief 2 ended up using. So the Thief 2 DromEd is essentially ShockEd. Changing cam.cfg from "game dark" to "game shock" would give you System Shock. Menschenverachtung, Monochrome, Murders David: Tell me about the German version of System Shock. Marc: Menschenverachtung, disdain for human life, was a guideline from the German government for System Shock. Instead of making a new version, we wrote a script on level load that deleted all severed limbs and turned red blood to green blood, or deleted blood that couldn't be turned green. But if you went into the config file and changed menchveracht=0 to menchveracht=1 it would turn back to the US version. David: What was the debugging workflow like? Marc: To debug, devs ran the game full screen and had the debugger on a monochrome monitor, everyone at Looking Glass working on Thief had a monochrome monitor. The iteration cycle was about 5 minutes. The workflow was: decide code to write, run game, gather data using editor, write code, test. We used aggressive logging with multiple log channels, with the ability to enable/capture specific log channels at runtime. Image by Alx via Adobe Stock. David: Were there any funny or unexpected AI behaviors? Marc: There was a murder shout bug: an AI would see its own dead body and shout "There's been a murder! Everybody come!" People were like "why is he saying that instead of his normal death line?" That was what we were into at Looking Glass: making a realistic simulation/toolbox. In our hearts, we always wanted to make as a rich simulation as possible. There was a murder shout bug: an AI would see its own dead body and shout "There's been a murder! Everybody come!" The Mod Community: Model Train Enthusiasts of Gaming David: I understand that the mod community for Looking Glass games is really active? Marc: "Through the Looking Glass" is the Looking Glass fan site. DromEd Discord is accessible via TTLG. Someone reverse-engineered the binary level file format for Thief, wrote a Perl library to generate levels via scripts for procedural generation. Someone else wrote a de-compiler turning binary levels back into Perl, distributed communities used this as version control, decompile, then textual merge. There is still an active community on Discord. 20 years later, like something out of a Neal Stephenson novel. There are better tools to make games with, but these enthusiasts are the modern equivalent of model train enthusiasts. Advice for Tools Programmers David: What advice do you have for tools programmers? Marc: Personally, I'm a big fan of using other people's tools. The last thing you want to do is write "undo". Mod existing tools or make exporters. I've used Photoshop as a level editor for 2D/top-down game prototypes. I've used Excel for grid-based levels. I like Google Sheets plugins too. Look at the old tools and see what has come before. You will improve upon it almost certainly but it’s good to understand why people were doing what they were doing. Also, you have to embrace the UI paradigms of today: You're going to need dockable windows… you're going to need to have all of that industry standard stuff. Also, you have to embrace the UI paradigms of today: You're going to need dockable windows… you're going to need to have all of that industry standard stuff. Don't be afraid to let people write code. Give people command line interfaces and let them write scripts. Err on the side of giving people power. Make the thing that makes people stretch a little bit. If you have to rein it in later, that's fine. David: This has been really great. Thank you so much! Marc: All right. Thank you! Read more about:
~11 min read · 2602 words