If a game has the same lines of code across all players, then why do some bugs only affect certain players?

734 viewsOtherTechnology

I was playing a game earlier when a friend was experiencing a bug. Wouldn’t it make sense for me to be experiencing the same bug since were playing the same game that’s coded with the same lines of code?

In: Technology

24 Answers

Anonymous 0 Comments

Maybe not ELI5, but I think you can handle it

Imagine the code has something like dividing by x or taking the square root of x. You might play and everything will go well, but then your friend does something and suddenly x=0 and 1/x crashes, or x<0 and sqrt(x) crashes

The bug is there for everyone, and if you do the same thing with the same computer at the same time and reproduce everything revenant, you’ll see it too. This is why when you report a bug is important not only to screenshot the glitched out screen, but also describe what you did to get that problem and what computer you have. There are many many variables that interact in many many ways, and bugs might be difficult to get (which is why they weren’t fixed before the game was released. The devs didn’t know the bug existed)

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