Why is a games source code being leaked a bad thing? Doesn’t all that code exist in the games files?

2.04K views

I do know that that code obviously then inst available, since that’s why the recent leaks are significant…but why is it significant? Obviously cheaters will use that to more easily make hacks, but why is that code not part of the game? How does that code not exist in the game files? Is it hidden in some way or is some of that engine code or what exactly is it?

In: Technology

10 Answers

Anonymous 0 Comments

The source code is written to be mostly read by humans. It is the job of the compiler to rewrite the code for machines. The first thing it does is to ignore any variable names and comments as those are to make it easy for humans to read and are of no value to machines. So in the machine code there is no easy way to say what a piece of code is for or what a value represent without going through and analyzing it carefully. But the compiler will also take the high level code with compact informative statements and expand it into low level code where each statement is very trivial operations for the machine to do. And where a programmer will write the code in logical sequence where the code is directly related to the surrounding code a compiler might find this inefficient and will write the machine code in the way that is faster for the machine to execute. And the compiler will often find that the code written by the human is very inefficient and find much smarter ways of achieving the same result but which are very hard for a human to understand. So the machine code that gets released for people to download and use is almost impossible for humans to understand. And that is of course that the code in question was actually part of the game code that runs on the users computer and not part of the code that only runs on the servers.

You are viewing 1 out of 10 answers, click here to view all answers.