Home Creators Posts Import Register Favorites Logout

Content

CHAPTER 115: Code Complete

On February 12, 2007, George compiled Los Santos for the last time before QA.

It was the last compilation where new content was added. From this point on, the game was frozen: only bugs were fixed. No missions were added, no textures were changed, no balance was modified. What there was was what it was going to be.

Everything was there.

Six districts. Thirty-six square kilometers. Three thousand buildings Marcus and his team of ten artists had modeled and textured over fourteen months. Five hundred types of vehicles. Two hundred NPC models with their routines and their personalities and their ambient phrases.

Eighty main missions divided into three acts. Twenty-five from Act 1 in South Central. Thirty from Act 2 spread across the city. Twenty-five from Act 3 that culminated in End of the Line.

Forty secondary missions. Street races in each district. Taxi driver. Vigilante. Paramedic. Firefighter. Buyable properties that generated passive income. Girlfriends with relationship missions. Barbershops, clothing stores, gyms, restaurants.

Eight radio stations with a hundred licensed songs. Twelve thousand lines of voiced dialogue. The day/night cycle. The weather system. Gangs with territory. Police with wanted level. CJ's stat system. The customization.

And the easter eggs. George had hidden three around the city that only the NGS fans would find.

In a costume shop in Hollywood Hills, hanging on a mannequin in the back, an armor that looked suspiciously like Alucard's. If CJ bought it, it did nothing special. It was a ridiculous armor CJ could wear through the streets of Los Santos as if he were an eighteenth-century vampire in a city of the nineties.

In the bathroom of a gas station in the Industrial District, a poster stuck on the wall with a pixelated image of a child crying in a basement. Isaac. Only visible if the camera zoomed in on the poster in first person with the sniper rifle.

And in a park in Santa Monica, among the trees and the benches, a small stone statue that was the silhouette of the Knight from Hollow Knight. With no explanation. With no reference. Just a familiar silhouette for whoever recognized it.

Three previous games hidden in the fourth. Love letters to the players who had been there from the beginning.

* * *

George played Los Santos from beginning to end.

He started one Sunday at eight in the morning in the empty Townsend Street office. Alone. With headphones. With the intention of playing as a player and not as a director: without opening the level editor, without looking at the debug counters, without evaluating the framerate or the streaming or the LOD. Just playing.

The opening cutscene. The empty street at sunset. The plane. CJ looking out the window. The voice: "After five years on the East Coast, it was time to come home." Tenpenny on the corner with his smile that wasn't a smile. Sweet on the porch with his silent reproach. Grove Street.

George played Act 1. He chased the Balla on a bicycle. He did the first drive-by with Sweet. He got his hair cut with Ryder and killed Ballas on leaving the barbershop. He recovered blocks. He earned respect. He drove through South Central at five in the afternoon with Radio Los Santos playing and the streetlamps turning on and the smog tinting the sky orange.

He played Act 2. The ambush. Sweet arrested. CJ alone. He worked for Tenpenny. For Vinny in Hollywood. He chased motorcycles with OG Loc and laughed because OG Loc was ridiculous even when George knew exactly what he was going to say. He drove lowriders with César in East LA. He robbed banks with Catalina and wondered how such a simple AI could produce such a chaotic character.

He played Act 3. He confronted Ryder. He prepared the assault on the crack house. He went up the three floors. He listened to Big Smoke say that the neighborhood hadn't given him enough. He shot him. He escaped the burning building. He chased Tenpenny down the freeways with the city burning around him. He went back to Grove Street.

Thirty-five hours.

George took off the headphones at one in the morning on Tuesday. He had been awake for almost forty hours with breaks for coffee and for the sandwiches Claire had left him in the fridge with notes that said "EAT" in capitals.

On the screen, CJ was standing in front of his mother's house. Sweet, Kendl, and César on the porch. The Grove Street streetlamps lit. The mural of the dead young man visible in the background with the night lighting that left the edges of the portrait in shadow and the face in the amber light of the nearest streetlamp.

George looked at the screen and realized something that had happened to him with every previous game and that kept happening to him: during the last ten hours he had forgotten that he had made it. He had played Los Santos as a player. He had felt tension in the shootouts. He had felt satisfaction at recovering territory. He had felt Big Smoke's betrayal as a personal blow even though he himself had written the betrayal.

It was the test he always looked for. If the director of the game could forget that he was the director, the game worked.

Los Santos worked.

* * *

Tomás opened the red notebook the first day of March and started to break the world George had built.

QA of an open world was exponentially more complex than QA of any previous NGS game. In Castlevania, the player followed a predetermined route through connected rooms. In Isaac, each run was procedural but contained within a floor. In Hollow Knight, the map was interconnected but the zones were static. In Los Santos, the player could go anywhere at any time doing anything with any vehicle.

The combinations were infinite. And the bugs hid in the combinations no one had tried.

Tomás organized his team of five QA by districts. Each tester was responsible for a district and traveled it exhaustively: walking, driving, shooting, interacting with every NPC, entering every building, testing every mission, and trying to break every system in every possible way.

The first bug appeared the first hour. A car that collided with a streetlight at high speed went flying instead of stopping. The physics system calculated the force of the impact correctly but the contact point was badly calibrated for the streetlights, which were thin objects with a narrow hitbox. The force was applied at an angle that launched the car upward instead of backward. Tomás reported it as "cars that fly when crashing into streetlights."

George fixed it in an hour by adjusting the contact point of the streetlights. It was a simple fix. The next ones weren't.

Bug 34: an NPC that walked down the sidewalk disappeared when crossing the border between two streaming chunks. The new chunk didn't spawn the NPC because the NPC wasn't from the new chunk, and the old chunk unloaded it because the NPC was no longer in its territory. The NPC evaporated before the player's eyes like a ghost.

Bug 67: if the player killed an NPC that was the contact of a mission before activating the mission, the mission became impossible to complete. The mission trigger looked for the NPC, didn't find it, and waited indefinitely. George added a forced-respawn system for mission NPCs: if the NPC died outside its mission, it respawned in its original position the next time the player moved far enough away.

Bug 112: the wanted level didn't reset inside certain interiors. The player committed a crime, entered a clothing store, and the cops followed him inside and shot at him while he was trying on pants. George added a safe-zone flag to the commercial interiors that reduced the wanted level to zero on entering. It was an unrealistic but playable solution.

Bug 178: during the rain of the weather system, the water accumulated visually on the ground but the puddles had no vehicle physics collision. The cars drove over the puddles as if they were dry asphalt. Daniel added a friction modifier for the puddle tiles: -15% traction, enough for the cars to slide slightly without being uncontrollable.

Bug 203: the day/night cycle froze if the player paused the game during an hour transition. The cycle timer stopped with the pause but the sky dome gradient didn't, which produced a sky that was between two states and that stayed that way permanently. George resynchronized the gradient with the timer on resuming.

Two hundred fifty-three critical bugs in six weeks. Each one with its own story of how Tomás found it and how George or Daniel fixed it. Some were one-line fixes. Others required rewriting entire systems. All of them were the price of building a world the player could inhabit freely: each freedom created an opportunity for something to go wrong.

* * *

Daniel ported Los Santos to PS2 with the same mix of resignation and pride an engineer feels when he squeezes the last drop of performance out of a machine that has already given everything it had.

The PS2 was six years old. Its Emotion Engine processor, which had been revolutionary in the year 2000, was now an antique compared to the PCs of 2007. But the PS2 had an installed base of more than a hundred million consoles. It was where most of the players were going to play Los Santos. And Daniel was going to make sure that the experience, though reduced, was worthy.

Draw distance: 800 meters with fog. Beyond that, the impostors blurred into the haze of the atmosphere.

Simultaneous NPCs: 150. A third of the PC version. The South Central streets that on PC had 30 pedestrians had 10 on PS2. George adjusted the spawn routines so the NPCs concentrated near the player: at 20 meters there were people. At 50, the street was empty. The player never saw the empty street because the camera didn't reach that far with the PS2 draw distance.

Textures compressed to 50%. The asphalt lost the fine cracks. The murals lost Lobo's ghost layers. The building facades lost the nineties film grain. Everything looked softer, blurrier, like a version of Los Santos seen without glasses.

No dynamic shadows. The shadow maps consumed too much GPU. Daniel replaced them with precalculated static shadows that didn't move with the sun: a building had the same shadow at eight in the morning as at five in the afternoon. It was incorrect. But it was invisible to the 90% of players who didn't notice the direction of the shadows.

The PS2 version ran at 25 fps with drops to 20 in dense zones like Downtown and during chases with many vehicles. They weren't the stable 30 George would have wanted. But it was playable. And "playable" was the word Daniel used as a minimum standard for each port: if the game could be played without the framerate ruining the experience, the port was ready.

"This is the last game I port to PS2," Daniel said the day he delivered the gold master of the PS2 version.

"Are you sure?"

"The console gave everything it could give. Los Santos on PS2 is a miracle of optimization. But it's a miracle that can't be repeated. The next game needs next-gen."

George nodded. The PS3 had been on the market for months. The Xbox 360 for a year. The PS2 generation was ending. And Los Santos was going to be the last swan song: the game that proved you could make a 3D open world on six-year-old hardware, and the game that proved the future needed new hardware.

* * *

The Xbox version was what Daniel called "the sweet spot": better than PS2, worse than PC, and with an advantage no other platform had.

Draw distance of 1,200 meters. 300 NPCs. Textures at 75%. Shadow maps at 512x512. And an internal hard drive that eliminated the DVD loading times. On Xbox, Los Santos was continuous in a way it wasn't on PS2: the transitions between districts were instantaneous, without the half-second hitch the PS2's DVD produced when reading chunks from the disc.

The PC version was the definitive one. Everything at maximum. Draw distance of 2,000 meters. 500 NPCs. Uncompressed textures. Shadow maps at 1024x1024 with 16-sample PCF. Bloom, fog, color grading with the LUTs at full resolution. The Santa Monica water shader with four sinusoidal waves and dynamic reflection.

And the PC version was the one that would be sold on NG Store with an incentive George had planned from the beginning: a ninth exclusive radio station.

Lena curated it. It was called NG Radio and was an eclectic station with songs that didn't fit into any of the eight main stations: an experimental jazz track, a folk song from Bosnia that Lena included as a personal nod, a cut of electronic ambient, and four indie songs Lena had discovered on the NG Store forums and whose artists had given her permission to use in exchange for visibility. It was the station for those looking for something different. And it only existed in the NG Store version.

"Why exclusive to NG Store?" Elena asked.

"Because the best version of the game has to be in our store," George said. "If the player can buy the same version on NG Store and at retail, he has no reason to choose NG Store. But if the NG Store version has something the retail one doesn't, the player who wants the complete experience comes to us."

It was the logic of the Trojan horse taken a step further: the game attracted players to the platform, and the superior version incentivized them to choose the platform over retail.

* * *

The gold masters were recorded the third week of May.

Claire coordinated the shipment to Sony and Microsoft for certification. Daniel supervised the recording of the DVDs. Alex uploaded the PC version to the NG Store servers. It was the most complex logistics NGS had handled: three platforms with three different versions coming out at the same time through three distribution channels.

George didn't participate in the logistics. Claire didn't let him.

"Your work is done," Claire said. "The game is finished. The bugs are fixed. The ports are ready. Now it's my turn. Go home. Sleep. Eat something that isn't a sandwich I left you in the fridge."

George went home. But he didn't sleep.

At three in the morning the day before the launch, George was sitting in his apartment with the PC version of Los Santos open on his monitor. He wasn't testing. He wasn't looking for bugs. He was driving.

He drove through Grove Street with Radio Los Santos playing. "Gin and Juice" by Snoop Dogg. The houses on the sides with the peeling paint and the dry yards. The streetlamps lit with their random delay. The mural of the dead young man visible as he passed, the eyes of the portrait looking at CJ as if it recognized him.

Then he drove to Downtown. The skyscrapers at night with the neons reflecting on the wet asphalt because the weather system had made it rain an hour earlier. He changed the radio to CSR. Al Green filled the car with the voice of a man who sang about love while CJ drove through the streets of a city that didn't know what love was but that knew what loss was.

Then he drove to Santa Monica. He parked on the beach. He turned off the engine. He turned off the radio. And he listened to the waves hit the sand with the rhythm of the Pacific Lena had recorded one Sunday in July sitting on the sand with Marcus beside her.

George stayed there. On the beach of a game he had built over two and a half years with forty people and fifteen million dollars. Looking at a digital sea that rippled with four sinusoidal functions. Listening to waves a woman from Sarajevo had recorded in California.

Tomorrow, the world was going to see Los Santos for the first time.

George closed his eyes. He listened to the waves. And for the first time in two and a half years, he didn't think about anything he had to do.

End of Chapter 115

Comments

No comments found for this post.