Why the bug I wrote became a core gameplay mechanic?! -
Chapter 132: "Xia Mi Perfect Operation AI Archive" Uploaded!
Chapter 132: Chapter 132: "Xia Mi Perfect Operation AI Archive" Uploaded!
As Gu Fan anxiously hurried to his computer to look for the bug, the situation in the live stream room began spiraling out of control.
Gan Di’s training of Xia Mi’s AI was becoming more and more successful!
In the beginning, Xia Mi’s AI would often encounter small problems when dealing with complex issues.
Moreover, since the game wouldn’t directly show Xia Mi’s methods for handling various affairs or the immediate numerical changes triggered by each decision, it was somewhat troublesome to figure out Xia Mi’s specific strategies and benefits.
But Gan Di was a tough one!
After Xia Mi dealt with an issue, he would immediately pause the game, then compare the changes in various data to reverse-engineer whether Xia Mi’s decisions aligned with his thoughts.
If they aligned, he would type some words of encouragement; if not, he would repeatedly educate and correct.
And Xia Mi was really listening and learning seriously. At first, she might question a little, but as time went on, she became more compliant, and eventually, it was as if she was completely brainwashed. Whatever Gan Di said, she believed!
Thus, Xia Mi became the perfect assistant for Gan Di!
One session of training, benefits for a lifetime.
Gan Di took about a few years to completely harmonize Xia Mi’s AI with his own. After that, he didn’t need to deal with the various affairs of the city frequently; he left them all to Xia Mi.
He could handle only the more important affairs, such as adjusting the resource output and troop deployment in the city ahead of time, knowing the composition of the next wave of enemies.
Besides that, he could devote himself completely to battle preparations!
Even though Gan Di hadn’t sought Demonic Power this time, it was enough to break through the original 12-year limit.
Because Xia Mi wasn’t causing trouble anymore!
Previously, Xia Mi’s meddling meant that regardless of how carefully the player calculated, there were only two paths: either squander resources following Xia Mi until resources ran out, or reject Xia Mi, leading to a family rift and being overthrown by righteousness.
But now, after Xia Mi stopped causing trouble, the player could calculate carefully without being overthrown by righteousness, and even receive a lot of help from Xia Mi.
The game suddenly became playable, and the production and consumption of various resources suddenly made sense!
Gan Di couldn’t help but marvel, "So that’s how it is, this is the correct way to play the game?"
"But now, things have gotten more complicated.
"Aren’t there more factors affecting game time?"
"Turning Xia Mi into a Fallen Angel surely allows for a simple and brainless way to enjoy the game for over forty years, but upon closer consideration, this method still has great risks.
"Because fully siding with demons allows for summoning a large number of demon reinforcements from the Demon Ruins, obtaining great combat strength in the short term. But with the City of Demons’ notorious reputation, the number of refugees coming to seek refuge later on drastically decreases. Combined with the attrition of soldiers in the city, the number of human units in the City Forsaken by Gods is actually decreasing.
"In the later stages, there are more and more holy units among the enemy forces, and Angels will appear. The Angels’ Holy Spells have a distinct restraining effect on demons.
"If Xia Mi does not turn into a Fallen Angel, she can efficiently handle city affairs and also serve as a medic in the battle process. The later the stage, the more apparent this advantage is!
"In other words, Fallen Angel Xia Mi has advantages in the early and mid-game, while regular Xia Mi will have advantages in the endgame.
"Moreover, regular Xia Mi retains the possibility of ’transforming into a Fallen Angel,’ and if she’s turned into a Fallen Angel under extreme circumstances, it might even be possible to extend the game by a few more years.
"Plus, countering enemy types, handling affairs, and various detailed operations during battle...
"If you want to achieve the ’Longest Endurance Time’ in this game, it actually requires a lot of technical content!"
Gan Di couldn’t help but show his respect.
He had originally thought that there weren’t many factors to study in the game City of the Abandoned Gods, as Xia Mi’s presence imposed too many limitations on the game. As long as he understood the mechanism related to Xia Mi, he could quickly find the ’optimal solution’ for the game.
But now he had to admit that the game was much more complex than he had imagined!
Gan Di refreshed his spirits and began to study again!
However, before that, he hadn’t forgotten something very important.
That was to share his findings on the official forum!
Gan Di was always someone who enjoyed sharing; he played games mainly for pure fun. He wasn’t at all worried that sharing the core mechanics of the game would lead others to snatch his gold trophy because the name ’Gan Di’ was his greatest confidence.
Soon, Gan Di had edited his post.
"The strongest hidden mechanism in City of the Abandoned Gods! Flexibly adjust Xia Mi’s AI! Personal ’Perfect Xia Mi Operation AI Save File’ uploaded, free for those interested!"
Save files for single-player games are always easy to find, and, except for the few that encrypt saves and require the save to be compatible with the username, most games on the official platform have no such restrictions.
City of the Abandoned Gods is no exception; players can directly download existing save files from the internet to play.
However, playing a game with a downloaded archive midway is not included in the official scores, it’s only for personal amusement.
Gan Di succinctly described the method he used to trigger this mechanism, as well as the general idea behind it, and then closed the webpage, obscuring his identity and accomplishments.
He wasn’t particularly concerned with the number of views or replies to his post, he merely wanted to share his joy with everyone.
Afterward, he returned to the City Forsaken by Gods, to work on the perfect operation plan.
...
At this moment, Lilith was nearly furious.
Because she could see that the positive emotions being generated from Gan Di had clearly surpassed the negative ones!
After Xia Mi had been "turned" by the players, she essentially became an AI assistant for the players, and once she stopped interfering, the players could act freely, naturally resulting in a significant increase in positive emotions!
Currently, it was only Gan Di who was in this situation, but soon, the content of that forum post would spread, and other players would also be able to customize Xia Mi’s AI according to their preferences!
This was something Lilith absolutely could not accept!
This was a million times worse than the "Xia Mi turns into a Fallen Angel" bug last night!
"Gu Fan! Haven’t you found the problem yet!!"
Lilith stared angrily at the code on Gu Fan’s computer screen, but unfortunately, she couldn’t understand it.
Gu Fan quickly said, "I’ve found it! I had a rough idea of what caused this bug from the start, but it took some time to confirm because the related mechanisms are quite complex.
"The bug mainly stems from the fact that at the beginning of each game round, the program clears the AI’s memory and resets its Good-Evil Value, but it doesn’t clear the AI’s behavior logic..."
Lilith’s eyes widened instantly, "Why doesn’t it clear the AI’s behavior logic?"
Gu Fan said as a matter of course, "Because there’s absolutely no need! According to your design, Xia Mi’s AI behavior logic is determined by her Good-Evil Value, and Xia Mi’s Good-Evil Value will not change significantly, the highest being just 20 points.
"This Good-Evil Value ensures Xia Mi’s AI is very stable, handling everything in the most Holy Mother manner, regardless of what the player says, unable to change that fact.
"Just resetting the Good-Evil Value and wiping Xia Mi’s memory with each game round can fully achieve the functionality you require!"
Lilith was irritated, "Then what’s the problem with adding a program to clear the AI’s behavior logic? Surely there’s no benefit in not adding that, right?"
Gu Fan nodded, "Indeed there is a benefit."
Lilith: "What?"
Gu Fan patiently explained, "Our game Nitiandang’s purpose is to collect as much of the players’ negative emotions as possible, right?
"So, when considering game mechanics, if two approaches meet the design requirements, I should write the code in the direction that collects more of the players’ negative emotions.
"You’ve said those exact words before, haven’t I quoted you correctly?"
Lilith frowned and thought for a moment, "Hmm... I did say something like that."
Gu Fan nodded, "Exactly! I wrote the code based on that requirement!
"Since you already said that Xia Mi’s Good-Evil Value won’t exceed 20 points, not clearing the AI logic is even more advantageous for collecting players’ negative emotions, isn’t it?
"Because with each new round the players start, Xia Mi’s ’Holy Mother attribute’ in her behavior logic will be further reinforced, leading players to mistakenly believe that conversation might change Xia Mi’s AI logic. They’ll try repeatedly, fail repeatedly, thus generating more negative emotions as a result."
Lilith was stunned, "How much more could that be?"
Gu Fan stated confidently, "Don’t worry about how much, it’s just more! Do you understand the concept of small amounts adding up? Even if each player generates only 1 extra point of negative emotion, with hundreds of thousands of copies sold, we can have a total of hundreds of thousands more!"
Lilith’s brain temporarily short-circuited, "Wait a minute, let me sort this out. It seems there’s no issue with this design, but why has Xia Mi’s AI changed this time?"
Gu Fan sighed, "Isn’t it because of that bug from yesterday?
"Since Xia Mi’s Good-Evil Value turned into 255, which would directly determine the AI’s behavior logic, her behavior logic underwent a radical transformation in the last game round!
"And in the new round, although the Good-Evil Value was reset and memory wiped, some of the original behavior logic was retained, leading to contradictions in Xia Mi’s AI, to the point of logical confusion.
"For example, she might think ’refugees are humans, but also a resource.’
"If Gan Di hadn’t discovered it, as the game progressed, Xia Mi would’ve gradually corrected this behavior logic under the influence of a 20-point Good-Evil Value, and the game would return to normal.
"But Gan Di did discover it. He deliberately attacked vulnerabilities in Xia Mi’s AI logic, and by continuously questioning, unearthed the bug. We had set up firewall protections for the fake-AI, but they collapsed, and Xia Mi began to think about problems along the lines the player suggested, just like any ordinary fake-AI program...
"And then... it turned into the situation we have now."
Search the lightnovelworld.cc website on Google to access chapters of novels early and in the highest quality.
If you find any errors (non-standard content, ads redirect, broken links, etc..), Please let us know so we can fix it as soon as possible.
Report