Home Creators Posts Import Register Favorites Logout

Content

CHAPTER 146: Code Complete, the Immortal Hen, and the Number

The Witcher reached code complete on November 15, 2009.

George compiled the final version at eight at night on a Sunday. Team Witcher had gone home. The office was empty except for George and Lena, who was on the floor above mixing the last audio tracks for Skellige with her headphones on and the concentration of someone who didn't know it was Sunday because the days of the week were a concept Lena respected approximately.

George put on the headphones. He opened the game. And he started playing from the beginning as he had done with Los Santos two years earlier: with no debug, no performance counters, without the eye of a director looking for problems. As a player.

The opening cinematic: Geralt riding down a road in the rain. The drops striking his armor with the sound Lena had recorded letting water fall on a metal plate in the Townsend Street studio. The wind moving the mane of Roach, his mare. The six notes of Geralt's theme played by the gadulka over the drone of the gusli.

He played Act 1 in Vizima and Velen. He investigated the disappearances. He talked with Yennefer for the first time: the London actress made George straighten up in his chair as if Yennefer were in the room, with the authority of a voice that took attention instead of asking for it. He fought a striga in a Velen cemetery in the rain with the alchemy system prepared: Specter oil on the silver sword, Cat potion to see in the dark, Dancing Star bomb ready. The rain fell on the striga and on Geralt and on the cemetery headstones and the water shader made the puddles reflect the moonbeams that filtered through the clouds, and George thought the Velen cemetery in the rain was the most beautiful and most terrifying scene NGS had produced.

He reached the Bloody Baron quest at hour 12. He played it through for the second time. He cried for the second time. The empty chair was still the empty chair.

* * *

Gwent almost didn't exist.

George added it three weeks before code complete, which led to a conversation with Claire that Claire later described as "one of the top five moments where George made me doubt his sanity."

"You're adding a card game inside the game three weeks before finishing?" Claire said in the voice she reserved for the moments where incredulity competed with resignation and resignation won by a narrow margin.

"It's a simple card game. The rules fit on one screen. The cards are art assets Marcus can produce in a week. I'll program the game logic myself in a weekend."

"And if it has bugs?"

"Tomás tests it in the same QA pass. It's an independent system. It doesn't affect anything else."

Claire didn't argue. Because George was right: Gwent was a contained system that could be added without risk to the rest of the game. And because Claire had learned that when George added something late with the certainty that it was necessary, it was usually the feature that defined the experience.

George designed Gwent in a weekend. It was a simplified version of the Gwent George had imagined, one that captured the essence: two players with decks of cards representing military units, placed in three rows, melee, ranged, siege, with the objective of having more total strength than the opponent in two of three rounds. What made Gwent addictive was the collection before the complexity. The cards were found all over the Continent: in shops, as quest rewards, bought from NPCs, won in matches against other NPC players. The player who wanted to complete his deck had to talk to every NPC in the game, which turned Gwent into an incentive to explore the world as well as a minigame.

Marcus drew 120 cards in five days. Each card was a miniature illustration of a character, a creature, or a unit from the Witcher universe. It was a miniature art gallery the player collected like stamps. George programmed the logic in 48 hours. Torres wrote 30 lines of dialogue for the NPCs who played Gwent: challenges, taunts, laments of defeat, and the phrase the player was going to hear hundreds of times: "A round of Gwent?"

* * *

George finished his complete playthrough on Tuesday at three in the morning. Fifty hours.

He had cried with the baron. He had gotten lost in Velen three times because the fog of the weather system was so dense that it disoriented not only the character but the player behind the controller, which was exactly what George wanted although the third time he got lost he began to question whether maybe the fog was a little too dense. He had fished in Skellige for an hour without advancing the story because the fishing system Elena had implemented as an optional activity was relaxing in a way the rest of the game wasn't, and George needed the rest after Velen. He had played Gwent with every NPC who offered a match and had lost to a blacksmith in Oxenfurt three times before beating him.

The Witcher worked. Not just as code. As experience. As world. As a story the player lived instead of read. Every decision weighed. Every character mattered. Every zone felt like a real place where real people lived lives that didn't depend on the player observing them.

* * *

Tomás began QA on the first of December with eight testers.

A semi-open-world RPG with significant narrative branching meant that each player decision created a different world state. If the player saved NPC A in Act 1, NPC A appeared in Act 2. If he didn't save him, another NPC took his place. Multiplied by 40 main quests and 60 side quests, the possible world states numbered in the thousands. The branching bugs were the hardest to find because they required playing specific sequences of decisions to reproduce them.

Tomás organized the testers in pairs: each pair played the same quests but made opposite decisions, so that between them they covered the main branches. 180 critical bugs in two months. The first: if the player killed a bandit NPC in Velen who was the contact for a side quest in Vizima, the quest stayed in a state of "waiting for contact" indefinitely. George added a backup NPC system: if the main NPC of a quest died before the quest activated, an alternate NPC took his place.

The second: the decisions of Act 1 sometimes weren't registered in Act 2. The world-state save system had a buffer of 500 boolean variables that tracked each decision. Sometimes the buffer overflowed in long games because the player had made more than 500 minor decisions. George expanded the buffer to 2,000 and added compression for the minor decisions.

But the most memorable bug was the hen.

In Vizima, there was a henhouse in front of the house of an NPC who gave a side quest. The quest required the NPC to give Geralt an egg as payment. The NPC went to the henhouse, took an egg from a hen, and gave it to Geralt. But if the player killed the hen before activating the quest, which was possible because the hens were destructible entities of the world, the NPC went to the henhouse, found no hen, couldn't obtain the egg, and stood in front of the empty henhouse staring into the void. Forever. The NPC had no state for "the hen is dead." It only had "go to the henhouse" and "give the egg." Without the hen, the loop broke.

Tomás reported the bug with the note: "The hen broke the game."

George added a respawn system for quest animals. If an animal needed for a quest died, it respawned the next time the player left the zone and returned. The Vizima hen became the immortal hen of The Witcher: it couldn't die permanently because the game needed it alive.

180 critical bugs in two months. Each with its story. But the hen was the one the team told at dinners for years.

* * *

Daniel ported The Witcher to the three platforms in February 2010.

PS3: 720p at 30fps with drops in Vizima when the 30 NPCs of the market piled up in the field of view. Daniel tried to optimize it but the PS3's Cell processor couldn't handle 30 NPCs with contextual AI in an open space without sweating. The drop to 25fps was visible but didn't break the experience. Xbox 360: 720p at a stable 30fps with a mandatory hard drive for texture streaming. PC on NG Store: 1080p at 60fps, the definitive version, with an exclusive side quest Elena designed as a monster contract with three resolutions and a unique item that affected the final fight.

Daniel no longer complained about the ports. Next-gen was manageable compared to PS2: more RAM, more power, more room to breathe. "Porting to PS3 is like moving into a small apartment," Daniel said. "Porting to PS2 was like living in a closet."

* * *

Sophie Chen had given George her phone number one Wednesday in March 2009 in the cafeteria of the UCSF Medical Center. George read the card again that night in March 2010, almost a year later, while he waited for the ports to start.

George had taken Margaret to her checkup because Richard had a dentist appointment and Margaret didn't drive. It was a legitimate excuse. George repeated it to himself three times in the car on the way to the hospital: it was a legitimate excuse. He was going to the hospital for Margaret. For Margaret, he told himself. Only for Margaret.

Margaret looked at him from the passenger seat with the expression of someone who knows exactly what George is telling himself and who finds the self-deception endearing.

Sophie was in the cardiology hallway. White coat. Ponytail. The usual shadows under her eyes. Margaret saw her first and greeted her with the familiarity of someone who talks to everyone in the hospital and who knew details about Sophie that George didn't know: that she lived in the Inner Sunset. That her favorite dish was the dim sum on Clement Street. That her parents had a restaurant on Clement Street.

Margaret introduced them formally even though they already knew each other.

"Sophie, this is my son George. The one I've told you about."

"You've told her about me?" George said with the alarm of a son who discovers his mother has been doing public relations without his consent.

"I tell her about everyone," Margaret said with the innocence of a woman who lies with the same naturalness with which she breathes.

Richard went in for the checkup. Margaret sat in the waiting room. And George and Sophie were left in the hallway again, as in the previous times, two people who had no reason to talk and who talked anyway.

Sophie suggested coffee. The hospital cafeteria was on the first floor: a space with Formica tables and vending machines that served a coffee Sophie described as "technically liquid." They sat. George ordered black coffee. Sophie ordered green tea.

They talked for twenty minutes. Sophie talked about the residency: 80 hours a week, 30-hour shifts, patients who got better and patients who didn't. George talked about his company: "we make software," he said, without specifying. He didn't want Sophie to look him up on Google. He didn't want Sophie to know he was George Hightower of New Game Studios. He wanted Sophie to know him as Margaret's son who did something with computers and drank bad coffee in hospitals.

"What kind of software?" Sophie asked.

"The kind people use to entertain themselves."

"Like games?"

George stopped. Sophie was looking at him with the eyes of someone who has asked an innocent question and doesn't know the question isn't innocent.

"Yes," George said. "Like games."

"The Tetris kind?"

George laughed. It was the first time he had laughed in the hospital. "Not exactly like Tetris. But in the same general family."

Sophie nodded without asking for more details. She did it because Sophie was the kind of person who respected the space of others: if George didn't want to talk about his work in detail, Sophie wasn't going to press.

They said goodbye when the intercom paged Sophie. She stood up. She took a card out of the pocket of her coat. She gave it to George.

"My number. In case your mother needs anything from the hospital."

George took the card. He looked at it. A name, a number, a title: "Sophie Chen, Cardiology Resident, UCSF."

"In case my mother needs anything," George repeated.

"Yes," Sophie said. "For your mother."

The two of them knew it wasn't for Margaret. The two of them decided not to say it. And George was left in the hospital cafeteria with a cold coffee and a card in his hand that weighed more than any review from any publication anywhere in the world. Because the reviews said what George did. The card said who George was to someone who didn't know what he did. And being known for who you are instead of for what you do was the purest form of being known.

George put the card in the pocket of his shirt. Next to his heart. It was the pocket closest to him, and sometimes the geographic coincidences of where you keep things tell truths that words don't tell.

The Witcher was finished. The hen was still alive. The ports were ready.

Next time he was going to call.

End of Chapter 146

Comments

No comments found for this post.