Month-long Apex Legends bugs caused by just a single line of code



Respawn Entertainment has recently revealed that the cause of Apex Legends’ months-long bugs was actually caused by a single line of code.

Just like standard program coding, when one line of code has an error, the rest of the program breaks. The hard part is looking for the bug in all that mess of programming code that could be over 100 lines long. This also happened in Apex Legends and it took months for Respawn Entertainment to figure out which one was at fault.

According to the developers, the only faulty line of code was tied to an assault rifle. This problematic line of code was responsible for several audio and graphical errors that occurred during Season 16.

a post on Reddit explained how the missing sounds and effects occurred during the time the fault code was not yet found. It seems to be related to the servers ability to send up to 128 effect inputs for each and every frame of the game. Now if one of those codes were defective and then reached the frame limit of 128 entries, it would be dropped.

The team members worked very hard to find the problematic code, but each new season would introduce a new set of asset tweaks that could number in the thousands. This was literally looking for a needle in a haystack.

Fortunately, one of the team members finally found the problem and quickly fixed it. It was a code tied to the Ridged Nemesis that was introduced in Season 16. Without the fault code, everything was back to normal. Well, most of it. There may still be some unresolved FX issues, the developers said, so stay tuned.

Apex Legends is out now for PC, PS4, PS5, Xbox One, and Xbox Series X/S.



Please enter your comment!
Please enter your name here