16
Nobody clapped, nor did anyone express their stance.
It wasn't because they were convinced, but rather because they didn't quite understand how a free game could make money, whether anyone would be willing to spend money to buy speed-ups, and if anyone would really get addicted to card pulling.
They couldn't figure out these questions.
But no one raised any objections.
Ever since they started making game cheats until now, everything Chen Rui said turned out to be right in the end.
When he said v2.0 would sell for thirty yuan, everyone thought it was expensive, but it sold like crazy; when he said v3.0 would sell for fifty yuan, everyone thought he had gone crazy, and it sold even crazier.
When he said a large swath of competing products would die and only they would survive, the competitors actually died off.
Following this man's judgment was always the right choice.
"Alright," Wang Lei said, "We'll do whatever you say."
The meeting was over, and the work began.
That very night, Wang Lei started building the basic framework of the server.
Java, Tomcat, MySQL. The holy trinity.
He drew an architecture diagram on the whiteboard: front-end requests were sent to the Tomcat server via HTTP, Tomcat called the business logic layer to process data, the data was stored in MySQL, and after processing, an HTML page was returned to the browser.
Simple, direct, with nothing fancy.
"Build five core tables in the database first," Wang Lei told Lin Xiao, "The player table, city table, general table, troop table, and battle report table. I'll design the fields as soon as possible, and then you can start writing the data access layer."
"I'm not very familiar with Java..."
"You write C well. Java syntax is simpler than C, so you can get the hang of it by reading the documentation for two days. Start by writing the database CRUD operations—the most basic stuff, it's not hard."
Lin Xiao didn't say anything more, opened his computer, and began flipping through Java tutorials.
Zhao Xin wasn't idle either. He started drawing page prototypes using the simplest HTML table layout—web development in 2003 didn't have any CSS frameworks, no Bootstrap, no Vue; it was just tables nested within tables. It looked hopelessly tacky to write, but it worked.
A sketch of the main game interface came out: at the top was the resource bar, displaying the quantities of grain, wood, iron ore, and copper coins.
In the middle was a top-down view of the city, grid-shaped, where each grid could hold a building. On the left was the function menu, and on the right was the message bar.
Is it ugly?
A bit ugly.
But it wasn't a big problem. Online games in this era didn't have any aesthetic standards yet; wasn't legend ugly?
Zhou Ran was outputting frantically on his end.
His documentation speed was frighteningly fast, able to write seven to eight thousand words a day. The core general lists, attribute designs, skill descriptions, and backstories for the three factions of Wei, Shu, and Wu popped out one after another.
"Zhang Fei—Might 96, Intelligence 32, Leadership 78, Politics 15. Skill: Peerless, when entering battle, own side's morale increases by 20%. Background: Man of Yan, born a butcher, fiery temperament..."
"Zhuge Liang—Might 28, Intelligence 99, Leadership 92, Politics 95. Skill: Empty City Stratagem, during defense battles, enemy attack power is reduced by 30%..."
He wrote with total immersion. Sometimes he would laugh to himself while writing, or shake his head and sigh whenever he felt a general's attributes were wrong, overthrowing them and starting over.
"How much should Lü Bu's might be given?" he asked Chen Rui.
"100."
"Full score?"
"Full score. Lü Bu is the ceiling of might values; there's no dispute about this."
"What about Guan Yu?"
"97."
"Why not 98?"
"Close enough is fine; the stats can be adjusted later in the late game."
Zhou Ran thought about it, felt it made sense, and changed it.
At the end of July, Beijing was as hot as a steamer.
In the two rooms, there were six people, eight computers, and two electric fans. Every day from 2 PM to 4 PM was the most agonizing time, as the sun shone directly through the southern windows, unable to be blocked even with the curtains drawn.
Every afternoon, Zhang Peng would carry up a bag of popsicles—old-fashioned popsicles from the small store for one yuan each, mung bean flavored. They melted quickly, so you had to eat them in a hurry, otherwise water would drip all over the table.
Everyone just soaked in it like this.
Arriving at nine in the morning and leaving at ten at night, eating two takeouts in between, drinking a few bottles of water, gnawing on a few popsicles, the rest of the time was spent entirely working.
Wang Lei and Lin Xiao wrote the server side, Zhao Xin drew the pages, Zhou Ran handled the content, and Zhang Peng handled chores while maintaining customer service for the game cheats side.
Chen Rui didn't write anything or draw anything.
His job was to figure out how to balance the numbers: how many troops a level-5 barracks produced per minute, how long it took a player from founding a city to fighting their first battle, what the conversion ratio of acceleration props was, and how many daily resources a VIP monthly card should give so that people felt it was worth it without breaking the balance.
The relationships among these numbers affected the whole body with a single pull; adjusting one parameter could cause the entire economy to collapse.
Having worked as a numerical designer in game companies for over a decade in his past life, he understood this principle better than anyone else.
Numerical values were the core skeleton of the game, gameplay was the flesh and skin, and art was the clothes. If the skeleton was crooked, no matter what clothes you wore, it was useless.
Once the combat power values completely collapsed, the game was finished.
Every day, he sat in the small room with a stack of draft paper, a pen, and a calculator in front of him, calculating from morning till night.
In August, development entered the right track.
Wang Lei built the basic infrastructure of the server and ran through the first complete request chain.
The browser sent a "build granary" request. After receiving it, the server created a building record in the database, set a countdown, automatically updated the status when the time was up, and then returned a page telling you that the granary had been built.
Just this simplest process took a full ten days from getting hands-on to running successfully.
It wasn't that Wang Lei lacked ability; there were simply too many things to process.
How to authenticate requests, how to design the relationships between database tables, how to run countdown scheduled tasks, and whether data would conflict during concurrency.
Every link had to be thought through clearly before writing; you couldn't just chase speed. Once a pit was buried in the infrastructure, the cost of tearing it down and starting over later would be ten times what it was now.
Wang Lei was well aware of this point.
He had a habit when writing code: after finishing a module, he would test it repeatedly, run it himself, and then have Lin Xiao run it again, only moving forward after confirming there were no problems.
Sometimes he modified a piece of code three or four times. The function remained the same, but the code structure became more reasonable and the comments were completed.
"Aren't you being way too slow like this?" Lin Xiao asked him once.
"What's the use of being fast? Writing a bunch of bugs and spending three times as much time fixing them later?"
Lin Xiao didn't speak anymore.
Before coming to this team, what he wrote was game cheat code. Reverse engineering emphasized speed and accuracy—find the memory address and change it in one go, without needing to consider any code standards or maintainability.
After switching to the game server side, the first thing Wang Lei taught him was that the code he wrote wasn't for himself to look at, but for himself half a year later and others to look at.
Lin Xiao adapted faster than expected.
His underlying skills were truly top-notch. Pointers, memory, network protocols—these things were engraved in his brain; switching to another language was just changing a layer of skin.
He got the hang of Java's syntax in three days, started writing modules independently after a week, and two weeks later, Wang Lei dared to hand over some non-core functions for him to do alone.
The first module handed over to him was the resource system.
Four kinds of resources—grain, wood, iron ore, and copper coins. The output of each resource was linked to the resource field level: how much was produced per second, what the upper limit was, and how much was deducted when plundered, all of which were numerical calculations.
This kind of work wasn't hard for him, much like unpacking packets and calculating offsets in the past; it was just a change of scenery.
The difficult part was in the database.
"What on earth did you write in this SQL?" Wang Lei looked at his code and frowned. "You query the database every time you calculate resources? With 5,000 people on a server, four resources per person, producing every single second, if you write it like this, the database will be run to death directly."
"Then what should I do?"
"Caching. Load resource data into memory, periodically write it back to the database in batches, and don't query it every time. Read-write separation—this is basic training."
Lin Xiao modified it for two days, and after the modification, performance improved by more than a dozen times.
He began to understand why Wang Lei wanted him to switch to backend development. It wasn't because they couldn't find anyone else, but because his understanding of the underlying layer could help him write more efficient code.
When making game cheats, he dealt with memory every day; now making game servers, he still dealt with memory, except previously he was stealing other people's data, and now he was managing his own data.
All roads lead to the same destination.
Zhao Xin's frontend progress was very fast because his main style was execution without stubbornness.
When Chen Rui said to use a table layout for the interface first, he used a table. When he said to put the resource bar at the top, he put it at the top. When he said not to worry about colors yet and adjust them after the functions ran through, he used the default gray-white for everything.
In two weeks, the frameworks of five core pages—the main interface, building interface, barracks interface, general list interface, and map interface—all came out.
It was indescribably ugly.
Gray table borders, black Songti fonts, building icons found online as free materials of varying sizes and inconsistent styles—some cartoonish, some realistic—put together like a collage.
The map was even worse. The outline of the Divine Land of the Nine Provinces was pieced together by Zhao Xin using HTML div tags based on a three kingdoms world map. It was grid-shaped, with each grid representing a piece of land, and clicking into it allowed you to see ownership and coordinates.
"This map..." Zhou Ran took a look and stopped speaking mid-sentence.
"Just like this for now, as long as it works," Chen Rui said.
"It works, sure, but are you sure anyone would be willing to look at this thing while playing?"
"This isn't the viewing stage; it's the running-through stage. Once all the functions run through, the numbers are balanced, and the gameplay is verified, we'll find someone to do the art. A good-looking shell can be put on in a month, but a fun core takes half a year to polish. The order cannot be reversed."
Zhou Ran didn't speak anymore.
He worked with content and had a natural sensitivity to visuals; looking at these crude pages made him feel uncomfortable inside.
