r/AskReddit • • Feb 11 '16

Programmers of Reddit, what bug in your code later became a feature?

2.2k Upvotes

1.5k comments sorted by

221

u/PostPostModernism Feb 11 '16

I hope /u/xNotch shows up... :D

715

u/xNotch Feb 11 '16

Yo, hey, yeah, the creeper was supposed to be a pig, but I got Y and Z confused.

2

u/Alan250 Feb 12 '16

This is sometimes a very frustrating bug, Especially when they go boom! Thanks for this bug <3

55

u/ILIEKDEERS Feb 11 '16

"Fuck, we'll just paint it green."

→ More replies (1)

20

u/Cancler Feb 11 '16

I usually just guess XYZ and figure it out later, is that what happened to you?

→ More replies (6)

99

u/roflmaoshizmp Feb 11 '16

^ This guy is Notch, the guy who developed Minecraft, for those who don't know.

→ More replies (4)
→ More replies (10)
→ More replies (2)

14

u/Greibach Feb 11 '16

Back in college I took a game programming class. One of the more "real" ones, not one where you used a game creation tool, we actually programmed them fully. Anyway, for our final project I made "inverse mario", where you play as Bowser and are assaulted by hordes of marios, luigis, and toads. They had to jump on your head or hit you with fireballs to kill you, but they jumped a lot and had far better jumping and mobility than you. Anyway, I had messed something up in the logic and it caused all of the enemies to super accelerate their speed. I fixed it, but then later thought it would be a really cool way to do a death screen. When you died it would accelerate all the moving enemies across your screen, sort of like viewing the world continuing on in fast forward for a few seconds after death. Not a huge thing, but it was pretty fun =)

1

u/Alan250 Feb 12 '16

Thanks for sharing :)

727

u/Pyram66 Feb 11 '16

For a school project I was rewriting Duck Hunt. The only problem was the ducks would randomly disappear. After hours of bug hunting I gave up and created Ghost Duck Hunt.

396

u/Rammite Feb 11 '16

I love hearing about games that do stuff like this. For example, some devs wanted an organic way of making the player clear fog of war to clearly see what has already been done, and what results in progression. They also didn't want it to be tied to the UI and look really tacked on.

They settled on having the floor actually rise up to meet the player, as if the player was building the world as he walked on it. Then, the devs figured if the player's building the world, something had to have destroyed it. From that, they created Bastion.

113

u/whazzah Feb 11 '16

Holy shit Bastion is like one of my favourite games and I didn't know that... I wish Supergiant games would announce their next project already...

→ More replies (8)

48

u/kataskopo Feb 11 '16

And them they hired the best voiceover talent in the universe.

→ More replies (5)
→ More replies (6)

67

u/PacoTaco321 Feb 11 '16

I love the idea of changing the whole idea of the game just to meet one bug.

5

u/manawesome326 Feb 11 '16

"Ghost bug hunt"

4

u/PancakesAreGone Feb 12 '16

Similar thing happened to me in high school. Made a platformer, sometimes you'd fall through the ledges, or land on them and slide off... We also couldn't get coins to sit as they scrolled with the map...

So we stuck a 'loading' screen in at the beginning that basically said, "Be careful for icy and pitfall ledges. You won't be able to stay on them. Try to catch as many coins as they fly past for a maximum score too" and threw a spike ball in for kicks.

→ More replies (2)

2.2k

u/XIII1987 Feb 11 '16

Not my code but the developers of the wing commander games kept getting a bug where it gave an error code when exiting the game, they couldn't fix it so they hex edited it to say

'thanks for playing wing commander '

824

u/Stax493 Feb 11 '16

Games that close poorly is a pet peeve of mine. I love a game that I can just alt f4 and the fucker is gone instantly.

434

u/gonne Feb 11 '16 edited Feb 11 '16

Same. On battlefield 4 there's a loading screen when you close the game, even if you use alt + f4. WHY? WHYYYYY?

Disclaimer: guys, I know there's reasons for that. I'm just saying it feels super weird to have a loading screen to close something.

→ More replies (37)

143

u/redisforever Feb 11 '16

My favorite is Super Hexagon for that. When I get too mad at it, I can just beat the shit out of the ESC key and it goes away.

→ More replies (9)

18

u/XIII1987 Feb 11 '16

Me too but this was good old dos days, did all f4 work back then?

→ More replies (7)
→ More replies (23)

402

u/ProllyJustWantsKarma Feb 11 '16

That's actually pretty smart.

7

u/dconman2 Feb 11 '16

He teaches at my university! I just found that out on Tuesday.

→ More replies (7)

1.3k

u/MiserableLurker Feb 11 '16 edited Feb 11 '16

Once wrote an installer for an internally used program.

Just to see if anyone was paying attention, the icon was a black and red pentagram and, in place of EULA, it had various pieces of advice and admonishments ending in "And quit looking at so much porn!" [I Agree] [Disagree]

The company president called and laughed straight through the call.

"You know what? Leave it in there..."

176

u/[deleted] Feb 11 '16

Just to see if anyone was paying attention, the icon was a black and red pentagram

How would this go unnoticed?

163

u/jevans102 Feb 11 '16

Icons are normally 16x16 or 32x32 pixels. I'm assuming it was the icon in the top left of the window itself.

Very few people would ever pay attention to that especially since every program has a different one.

→ More replies (4)
→ More replies (2)

137

u/[deleted] Feb 11 '16

That ensuing is amazing

187

u/MiserableLurker Feb 11 '16 edited Feb 13 '16

Did things similar to the Netware network use agreement.

Every time someone logged in, there was a long, legalese paragraph with things like "You will mark your first born with symbol of Altruskus who is wise and whole" tucked somewhere in the middle or toward the end.

There was one engineer in a different state who would catch them. I think she started looking after she read the EULA.

→ More replies (5)

7

u/TractorOfTheDoom Feb 11 '16

I imagine some kind of man in a suit having a laugh over this.

16

u/MiserableLurker Feb 11 '16

He's cool as heck and not really a suit personality.

There was one instance where I was having an RTFM moment with the local accountant, having to teach him drag-n-drop on Win 3.1.

Pres comes in because he was waiting for the accountant to go to a meeting.

Pres: "So, can you do this?"

Me (high pitch scoff:) "Sure!!"

Pres: "Listen to him. 'Sure!!' I bet you wake up in the morning and think 'My gosh! I can't believe I'm going to work for these assholes!'"

Me: ( O_O) "... ... ... So, I was saying, Accountant, you have to hold down..."

We got along pretty well. I miss that guy.

→ More replies (4)
→ More replies (6)

1.7k

u/WienersBetweenUs Feb 11 '16 edited Feb 11 '16

Not a bug, but a joke feature. Was hanging around late on Friday night waiting for my friend to arrive so we could go to the pub. To kill some time I hard coded our gui to be hot pink whenever one of the other devs on my team was logged in. The next week one of the testers noticed and asked if I could add an option to make the colour configurable. They wanted to have multiple instances open and colour code them to easily tell which environment each was connected to.

Edit: misspelled bug as but.

400

u/pescador7 Feb 11 '16

That's pretty neat actually.

263

u/Bear_Taco Feb 11 '16

You can tell it's neat by the way that it is

→ More replies (16)
→ More replies (1)

79

u/moonyeti Feb 11 '16

Nice, we have a similar thing we stumbled across by accident, now we use it to color code the environments as well. Saved me giving myself extra work a few times by catching the fact I was looking at the production colors, not staging colors.

→ More replies (1)
→ More replies (19)

3.2k

u/[deleted] Feb 11 '16 edited Feb 13 '16

A classic one is Gandhi's overaggressive behaviour in the early Civ games - his aggression rating was set at the start of every game to be 0. However, when Democracy becomes available to a civilisation, their aggression rating drops by 2. Instead of staying at 0, the rating would cycle back through the max value of 255, to 254 and he would start being a dickhead and eventually dropping nukes on everyone. The developers thought it was funny so they kept it.

EDIT: Max value would be 255, not 256. Ghandi is spelt Gandhi.

888

u/bizitmap Feb 11 '16

I think original Civ actually was supposed to decide aggression by 0 to 10. So world-conquering douches would be a ten, the "max."

This means Ghandi became, by the game's rules, not just aggressive, but a vessel of untold fucking endless barefoot fury

108

u/Doodarazumas Feb 12 '16

Yeah. Genghis Khan started at 8, I think. 255 was basically skynet.

→ More replies (1)
→ More replies (21)

592

u/super_aardvark Feb 11 '16

Max would be 255, not 256.

207

u/hydrogenousmisuse Feb 11 '16

Is this because 0 counts as a value too?

→ More replies (21)
→ More replies (12)

99

u/G_Morgan Feb 11 '16

Not aggression but likelihood of using nukes in war.

0

u/[deleted] Feb 11 '16

[deleted]

→ More replies (8)

13

u/tunersharkbitten Feb 11 '16

i dont know if it is related, but weird al made a relevant video... https://www.youtube.com/watch?v=QfvLcozLwtE

→ More replies (1)

21

u/anothermuslim Feb 11 '16

"just byte the bullet and keep it"

→ More replies (20)

463

u/Bawhawmut Feb 11 '16

I'm not a programmer, I'm a QA tester. Everything is a feature.

421

u/Simon_Knight297 Feb 11 '16

Except when the text boxes don't line up

94

u/NO_TOUCHING__lol Feb 12 '16 edited Nov 14 '24

No gods, no masters

73

u/M1Glitch Feb 11 '16

If somebody is using said text box and doesn't complain, the company knows they're drunk. It's a test feature

21

u/[deleted] Feb 11 '16 edited Feb 11 '16

Gifted you gold for that.

/frontend developer that hates Q&A testers

→ More replies (4)
→ More replies (4)

243

u/Kamikizzle Feb 11 '16

Can we just take a moment and exalt the QA tester. The kicker of the tech team. Your job is literally impossible. Your job is to be perfect. To never, ever let a bug through. And for those 99 bugs you catch (30 of which we developers ignore), you get no praise, no thanks, no attention. But god forbid the day arise when a bug (especially a bad one) makes it to production. The day you miss a field goal.

You know business and management are getting their pitchforks and development is more than willing to blame it on you.

So here's to you QA, for taking it all in stride. I've got 99 problems and a bug in prod ain't one.

54

u/Bawhawmut Feb 11 '16

A bunch of us are out for drinks after work right now, and i read your comment aloud and everyone saluted as i read. Thank you, good sir.

→ More replies (1)
→ More replies (3)

78

u/[deleted] Feb 11 '16

QA here. You're absolutely wrong. Everything's a bug.

→ More replies (10)

9

u/lickthecowhappy Feb 11 '16

either waived or a feature. You can get around this area? feature. You can instantly kill enemies from this specific location? characters appear with oversized heads? feature. Vehicle appears 1/10 times with no wheels and can't move? waived.

→ More replies (14)

808

u/Goctionni Feb 11 '16

I'm a programmer, and this happens a ton. It happens mostly when trying to create some type of animation, and then you accidentally create something that looks a lot cooler than you originally intended.

That's only one example (archetype), but it's really common.

It reminds me the quote:

The most exciting phrase to hear in science, the one that heralds new discoveries, is not “Eureka” but “That’s funny...”

The same thing is often true in programming.

524

u/Gnome_Commander Feb 11 '16

Along with, "It's working! Wait... but why?..."

180

u/Goctionni Feb 11 '16

Oh but that one is often kind of terrifying- especially if it isn't your own project. If it's for a customer, they won't often want to pay you for debugging something that appears to be working perfectly fine.

→ More replies (14)

84

u/fireflash38 Feb 11 '16

Too frequently paired with: "How is this possibly working?" Followed by "How did it ever work?", usually followed by it not working from there on out.

→ More replies (9)
→ More replies (19)

20

u/[deleted] Feb 11 '16

"...huh."

15

u/Aperture_T Feb 11 '16 edited Feb 12 '16

I'm taking a shaders course, and he was telling us that at Pixar, they have a folder for shaders they've written that didn't do what they originally wanted, but still look cool. Then, when somebody asks them to write a new shader, they first look through the folder to see if they've already written it by accident.

EDIT: He being my professor, in case it wasn't clear.

→ More replies (5)

7

u/Screaming_Monkey Feb 11 '16

I'm a programmer, but I'm also a musician, and that's happened to me with composing! I'll make a mistake entering some notes (maybe they accidentally shift up or over, or they're simply not what I intended), play it back, and it sounds way better than the correct version would have.

→ More replies (4)

791

u/Baba_Fett Feb 11 '16 edited Feb 11 '16

My team made an app that helps two devices connect over wifi, and share data. after all the work we realized that the details of the client was visible with the server which we never intended to do (security reasons). We tried everything but couldn't correct it. one of the members suggested we use the information available to extend the wifi sharing to multiple devices rather than two, and even remove the need of the server if it is out of range. so now our app helps in connecting upto 4 devices and transfer data among themselves.
edit: grammar

645

u/JoeyJoJoJrShabado Feb 11 '16

And is still insecure...

441

u/Baba_Fett Feb 11 '16

it was a college project. added an auth later to avoid any insecure connections. so pretty safe now.

→ More replies (36)

1.4k

u/Darkblitz9 Feb 11 '16 edited Feb 12 '16

I'm working on making a game and when one boss dies, he starts to kind of list lazily to the left.

The thing is, with the way his eyes are drawn on the screen, anything that happens to him also applies to the eyes, but doubly so.

As a result, him listing off while dying makes his eyes spin around in his head and "roll back" into their sockets.

At first I found it hilarious and was like "okay, I have to fix that" but then I watched it again and just said. "No, it's too damn good. Leaving it."

Edit: Webm for those who wanted to see it

Warning: It's not great looking.

Edit #2: Damn Reddit, making me get emotional here. I didn't expect such a positive response from this. Thanks very much for the support!

Edit #3: MFW I get home from work and see my inbox.

Uhh, okay, so I see a lot of people asking about when this is coming out. I'm hoping to get a demo ready within six months. I don't really have a waiting list or a way to contact people about it, but I've seen some people using the "RemindMe" bot to keep track of it, that's probably the best way to do it! I guess you can just PM me at that time and I'll give the demo if it's available.

Also, if anyone wants to see more, I have a small album with some of the gifs I made as I progress.

Again, thanks so much for all the supportive comments, it helps out more than you think!

Edit #4: I forgot to include very relevant info,

The working title for the game is "Lux", and the venue for demo release will most likely be Steam Greenlight.

Edit #5: By suggestion, I created a twitter account so I can give updates to those who are curious about keeping a closer eye on the project @Lux_Devlog

Edit #6: Woke up to a gilding. Never thought I'd get this kind of response @__@

488

u/[deleted] Feb 11 '16

"Where did he go?"

"There he is, he's listing lazily to the left!"

"Boy, this guy knows some maneuvers!"

58

u/Burritosfordays Feb 11 '16

Isn't that the family guy episode covering star wars?

→ More replies (3)
→ More replies (5)

209

u/Rammite Feb 11 '16

Whoa dude, don't sell yourself short. This looks amazing!

→ More replies (1)

43

u/[deleted] Feb 11 '16

I kinda want to play this now...

20

u/[deleted] Feb 11 '16

Can you post a screenshot of that?

→ More replies (2)

8

u/omegatheory Feb 11 '16

So is this game like Master Blaster meets Mega Man?

→ More replies (2)

7

u/Coltons13 Feb 11 '16

That looks awesome man! What platform are you developing it for? I'd play it, it's got an old school megaman feel to it!

→ More replies (9)

5

u/Epicallytossed Feb 11 '16

POST STEAM GREENLIGHT ASAP

→ More replies (2)

4

u/misterjett Feb 11 '16

By the god that's perfect...

→ More replies (87)

249

u/PUREdiacetylmorphine Feb 11 '16

I coded asteroids in java a while back. I had this one glitch where the shot array would overflow and the screen would fill up with infinite shots and splitting asteroids. Kinda looked cool.

214

u/[deleted] Feb 11 '16

Requirements state that the game should "look cool".

Status: resolved.

50

u/M1Glitch Feb 11 '16

NEW REPLY TO INC-821. TICKET RE-OPENED. Ticket Comments: Thanks!!!

→ More replies (1)
→ More replies (1)

7

u/DevilXD Feb 11 '16

It's funny I just had a flashback.

I was on educational fair one day and I've met a guy. He promoted java programming and showed us his game that he put back quickly the day before. It was a small-flying-ship-shooting asteroids game. There was a bug in it where if you hold space (shoot key) for too long it would fill the screen with shoots.

→ More replies (1)

774

u/mykeuk Feb 11 '16

Obviously not mine, but in Space Invaders the ships increasing in speed as more of them are destroyed was unintentional and an accidental bug which was kept in as it made the game much more enjoyable.

115

u/Foamie Feb 11 '16

This phenomenon seems to be a common theme throughout gaming. Like in the first tribes game where skiing was a result of physics glitches in the game but became the preferred experience. Same as with the rocket jumping and strafe jumping in quake. It becomes such a defining feature of the game that developers purposely need to recreate the experience in later releases.

→ More replies (5)

61

u/[deleted] Feb 11 '16 edited Feb 11 '16

I don't know if it was a bug or not but I figured out that in Galaga, play the first screen however you want (don't die of course) and then on the second screen if you didn't kill the bottom left guy, but instead just let him keep shooting arrows at you for about 10 minutes or so, dodging the arrows, eventually he stops shooting arrows. Then kill him. The rest of the game, no arrows. Makes it so much easier to get high scores, especially on the "bonus" rounds where things are really moving quickly and with no arrows you can get into an optimal place to start the killing spree.

Edit: I googled this and sure enough it seems to be at least somewhat known. It's been decades since I did this. It's the two left hand bees on stage 1 that you need to avoid shooting. It takes literally about 15 minutes of dodging their arrows before they stop shooting. Wait for them to do several passes and then kill them and no more arrows the rest of the game. Ever.

I remember it being the second screen but it's very early in the game you need to do this. And it's boring until you finally see they aren't shooting anymore.

41

u/juxtaposition21 Feb 11 '16

Someone beat my high score on the machine at work, is this real??? I'll test it and let you know but holy shit I may get it baaaaack!!!

→ More replies (1)
→ More replies (1)

457

u/randomkontot Feb 11 '16

It was due to the game lagging when all of them were on the screen. Killing aliens freed up resources for the rest of the game. So not really a bug in that regard.

36

u/[deleted] Feb 11 '16

But now if you were to recreate that game, you'd manually have to put in that game mechanic, where the developers of the original game didn't.

→ More replies (3)

200

u/StuckAtWork123 Feb 11 '16

Pretty sure it was a bug, I seem to recall hearing that they were supposed to be stupidly fast, the unintended bit was the lag at the start, not the speeding up at the end, which ends up more fun

→ More replies (30)
→ More replies (37)

6

u/koghrun Feb 11 '16

There was a similar bug in the original Pong. The top and bottom pixels of the screen were not accessible to the paddle. They wanted to fix it at first, but left it since two really skilled players could play indefinitely. By having the 1-pixel gap on each end that the "ball" could fit through it made infinite games impossible.

→ More replies (4)

115

u/professorMaDLib Feb 11 '16

many features in Dwarf Fortress start off as bugs.

examples:

Dwarven Atom smasher

zombie clam shells and skin

quantum stockpiles

minecart shotguns

merpeople bones

102

u/Mythid Feb 11 '16

I was under the assumption that Dwarf Fortress is a bunch of bugs congealed together into one.

76

u/professorMaDLib Feb 11 '16

Dwarf Fortress is simulated madness masquerading as a game. Every game ends in an inevitable death spiral and the developer is very aware of its brutality. The most recent update added the ability to customize the images your dwarves can carve onto crafts and among the options were:

X is being flayed

X is being tortured

X is screaming

X is being smeared out into a spiral (my personal favorite)

→ More replies (12)

5

u/Shophaune Feb 11 '16

I wish they'd kept the Shaft of Enlightenment though...

→ More replies (2)

5

u/Daniel_The_Thinker Feb 11 '16

Zombie carp going across land I think

→ More replies (4)

545

u/lalimace Feb 11 '16

The police cars going crazy in the first GTA was a bug at first...

120

u/GameDOW Feb 11 '16

This is why GTA was made. It was originally not intended for it to be a sort of Cops and Robbers game but this is the reason it is today

→ More replies (3)
→ More replies (31)

427

u/WillDrawYouNaked Feb 11 '16

In pac-man, every ghost has a different behavior, for instance the red ghost tries to get directly to pac-man as fast as possible. The pink ghost is supposed to target the tile 4 squares in front of pacman, but in the original arcade game, when pacman is facing up, an overflow error causes him to actually target 4 squares up and 4 to the left. The blue ghost suffers from a similar bug.

I'm pretty sure that in most ports of the game this behavior was kept

321

u/[deleted] Feb 11 '16 edited Feb 12 '16

In the original Pacman, my brother and would go to the convenience store three blocks from our house and play for hours on one or two quarters. Together we developed a pattern that was simply unbeatable. As long as you executed the pattern, without pause, you could play indefinitely. There was an upcoming Pacman competition (it was a big deal back in 1980 or so) and first prize was $500, and the first five places paid out pretty good too. We were going to win that.

Thing was, all that practice we did, we never thought about the spectators that would inevitably watch us. The day of the contest finally arrived. There were only a few machines, and about 50 contestants, so we drew numbers. My brother and I drew numbers that put us about in the middle of the group.

One of the kids that always watched us play was able to start playing at 8:00 AM and was using our pattern! Oh fuck. Oh, and so was some other people we didn't even know. By the time my brother and I got to play, it was far too late to beat those guys. My brother ended up in 5th and won a little money, I was 6th and got zero. That kid lied and said that he got the pattern from the book that just came out on Pacman cheats. I didn't even know this book existed. Went to the mall bookstore, found this book (it was brand new) but their "secret winning pattern" wasn't ours. Not exactly. It was close, about 80% of ours, but they had at least two places where you had to pause. Ours did not. Another feature of ours is that at two different points you would go right through a non-blinking ghost. So, no kid, you stole our pattern but we were stupid for letting you watch, you little shithead.

Edit: For those wondering about screen 256, I never remember getting to that. We didn't know about it and apparently it takes over 6 hours of continuous play to get there. We'd have long before that set a new high score, and just assumed that you could play indefinitely. I remember the kids that beat us played for a really long time, longer than we could possibly play once we were allowed to start. It could be one or more were actually killed by this screen and got basically the maximum score in Pacman. Like I mentioned, this was about 35 years ago.

Edit 2: /u/occupythekremlin has provided information that likely identifies him as the kid that stole the pattern. Small world. Also it was normal for kids from our neighborhood to watch me and my brother play. As a matter of fact, when we would show up to practice, if someone was playing the game they'd just kill off the remaining Pacmans so we could get right on the machine. But a few times there were a couple of kids I didn't know, and they were really quiet and would just watch from several feet away. Turns out they were from a nearby town.

168

u/359359 Feb 11 '16

My brother ended up in 5th and won a little money, I was 6th and got zero.

Obviously your fault for revealing your secret but you got to give him credit for beating you. Not only did he learn your secret by watching you but he executed it better than you did with all that practice.

→ More replies (27)
→ More replies (9)

29

u/CaptainHarlocke Feb 11 '16

Slightly dumb AI is often a benefit in games. If the AI gets too smart, no human can beat it. The ghost's suboptimal behavior probably makes the game less punishing and more enjoyable for most players.

→ More replies (2)
→ More replies (3)

49

u/[deleted] Feb 11 '16

I programmed Tetris in highschool. It was half game, half kludge.

Back in highschool I was still pretty new at programming. Included in my naivety was a complete disregard for any standard procedure.

  • I didn't know how to draw graphics at the time, so I created a 10x20 array of 64x64 jlabels, and had each display a solid-colour. These operated as my "pixels" that I could use to display the game board.

  • I would use this same procedure to draw long, 1 pixel wide boxes to use as lines to delineate the screen.

  • I didn't know how to read any keyboard input either, so I set up a textbox that would read whatever key was pressed and send it off (as a char, which the move() function would interpret). Then I hid the box, had it auto clear, and made it impossible to move your cursor anywhere else.

  • I noticed that when you opened the help box (handily pre-programmed in to the default window in Swing) it would pause the game. So I had the game open up this box when you pressed 'p' and display "Game Paused"

I'm still proud of writing it. Especially the part that rotates pieces, which looks completely incomprehensible and was hard to write, but works perfectly well.

(For the record, I never got much better so sorry if the preceding doesn't sound right. It's how teenage-me remembered it).

10

u/[deleted] Feb 11 '16

Upload this, please

→ More replies (8)

1.2k

u/FalstaffsMind Feb 11 '16

Thinking about it, what you are describing is a sort of evolution by natural selection. You introduce bugs in your code, most are fixed, but one is beneficial, and is retained by selection.

It's very rare, but it does happen. So it could be I am creating a new species.

496

u/794613825 Feb 11 '16

And here we see the OBO error attempting to court the programmer...

135

u/LuciferianAntichrist Feb 11 '16

But instead the OBO fails and makes a sound like a dying duck.

→ More replies (2)
→ More replies (2)

53

u/Mattman7319 Feb 11 '16

Life... Uh, finds a way

48

u/FalstaffsMind Feb 11 '16

I have actually wondered, and I am completely spit-balling here, if the key to developing an AI is too ignore higher level function, and instead create a sort of self-replicating synapse of sorts that is deliberately very simple yet able to store a memory and/or specialize and network together with other synapses to form an artificial neural network.

Perhaps as part of the replication process, you allow duplication errors, and those duplication errors either render the synapse useless (in which case it's disposed of), or the duplication error is beneficial in which case the trait is passed on.

Then skynet.

→ More replies (20)

63

u/GARBLED_COMM Feb 11 '16

Your post reminds me of this neat article I read about an experiment with evolutionary programming. just randomly programmed chips with a computer picking the ones best at recognizing a signal.

Eventually they got it to the point they were satisfied with the end result, but the chips were relying on the minuscule manufacturing differences in the composition of the chips. They couldn't just copy the programs, it just flat wouldn't work on another chip. Super interesting.

41

u/ezKleber Feb 11 '16

I read something like that for an FGPA, based on genetic algorithm to select the best approach for the problem. In the end the amount of gates used was minimal, but upon inspection they were not able to "understand" what exactly was going on, because of what you say.

It was amazing as hell.

→ More replies (3)

27

u/arcanemachined Feb 11 '16

Wow, you just reminded me that Damn Interesting exists. That's an old gem for sure.

On the Origin of Circuits

Five individual logic cells were functionally disconnected from the rest— with no pathways that would allow them to influence the output— yet when the researcher disabled any one of them the chip lost its ability to discriminate the tones. Furthermore, the final program did not work reliably when it was loaded onto other FPGAs of the same type.

It seems that evolution had not merely selected the best code for the task, it had also advocated those programs which took advantage of the electromagnetic quirks of that specific microchip environment. The five separate logic cells were clearly crucial to the chip’s operation, but they were interacting with the main circuitry through some unorthodox method— most likely via the subtle magnetic fields that are created when electrons flow through circuitry, an effect known as magnetic flux. There was also evidence that the circuit was not relying solely on the transistors’ absolute ON and OFF positions like a typical chip; it was capitalizing upon analogue shades of gray along with the digital black and white.

→ More replies (1)
→ More replies (9)

4

u/[deleted] Feb 11 '16

Hubert J Farnsworth, I presume?

→ More replies (24)

127

u/stmuxa Feb 11 '16

I coded a function 'median3(x, y, z)' which intended to return a median value out of 3. But at some combination of input values the function fails to return correct result. Once I found a bug and fix it, the overall program quality (video processing) becomes worse. So, we decided to keep this bug.

To owners of AMD Radeons: it's in your driver.

18

u/justuscops Feb 11 '16

At least it is working, fucking realtek still can't get their shit together!

8

u/jevans102 Feb 11 '16

"What's in your driver?"

→ More replies (1)

6

u/[deleted] Feb 12 '16

If you are knowledgeable I've always wondered, why does AMD get the short end of the stick when it comes to game optimizations? Is it the drivers or the game devs?

12

u/Osga21 Feb 12 '16

Nvidia has more money to throw at devs. Super Bunny Hop made a nice video about this recently

→ More replies (3)
→ More replies (7)

222

u/noodle-face Feb 11 '16

In Dark Souls 1 and 2, the programmers tied weapon durability to frame rate. In DS1 at least, they locked the frame rate to 30. Some individuals found a way to increase this to 60, and then found out weapons were breaking extremely fast.

152

u/[deleted] Feb 11 '16

That's a really unusual way to handle durability. I wonder what the reason was.

157

u/skdeimos Feb 11 '16

My guess is that the more obvious ways of handling durability didn't work with their existing code, so they decided they could just have weapons break after x amount of frames, then locked the framerate.

That way you don't have to deal with fixing your old code to work with what you want to implement, which is a common programmer cop-out.

→ More replies (9)

46

u/Ono-Sendai_Cbsp_7 Feb 11 '16 edited Feb 11 '16

Indie game dev here- I think a lot of things are tied to frame rate because it can be a better measure of 'ticks' (or units of time) than seconds in a game. Issues like this occur when the frame rate isn't locked. From what I understand, this is now considered poor design practice and most places don't use the frame rate for that nowadays.

To clarify more, here's a simple example. Imagine we're building Pac Man. In Pac Man, you have your event functions (eating a pellet makes it disappear and gives you X amount of points, getting hit by a ghost triggers death, etc). You also have an update function, which will read your input command and trigger you/other objects to animate. Depending on the dev language and platform, each 'update' tick might be at a frame update (Dark Souls), a CPU cycle (The Space Invaders bug mentioned above). More modern game engines will use something like deltaTime, which is based on time-per-frame, and not frame alone.

→ More replies (6)
→ More replies (11)

23

u/TimDaEnchanter Feb 11 '16

Also, physics was also tied to the framerate, so 60 FPS can cause other problems too. Some common jumps that can be easily made at 30 FPS cannot be made at 60 FPS. And, with a couple of the ladders, if you slide down the ladder at 60 FPS instead of getting off at the ground, you go through the ground.

31

u/[deleted] Feb 11 '16

"Kill two tasks with one variable" or "A variable saved is a variable earned".

7

u/Kirboid Feb 11 '16

I didn't know that applied to DS1. DS2 weapons have much less durability so I got annoyed at that more, especially since the frame rate is supposed to be unlocked.

→ More replies (1)

4

u/Vague_Intentions Feb 11 '16

A lot of games have similar issues. I remember Mass Effect 3's shield recharge rates fluctuated with FPS as well.

→ More replies (1)

4

u/Hypocritical_Oath Feb 11 '16

That's not really true, in DS1 weapon durability was a non-issue unless using a weapon with a special attack that drained tons of durability. DS1 at 60 FPS is fine in that regard, the jumps are the bad part.

In DS2, however, it's ENTIRELY different as durability is much smaller for balance reasons. At 60 FPS using a big two hander is basically impossible as it'll break on you within minutes as every frame it spends in a dead enemy or in the environment it loses durability.

→ More replies (4)

70

u/mattmu13 Feb 11 '16

Not necessarily a bug, but when coding a website for a library I worked for I designed a blueprint of the library that would allow you to search for books and it would flash the shelf it could be found on.

As I worked the late shift I became friends with the cleaner (Jan). I coded into the system that if you were on that page between 5pm and 6pm you had a 1 in 5 chance of my "vac-jan" function activating after about 5 minutes (all to stop the management from seeing it). You could also type "vac-jan" in the search engine to activate it.

When it ran a little icon of her and her Henry Hoover would come in and vac random points on the blueprint. It would activate the doors, move between the shelves and desks, and even clean the study rooms.

She and the students loved it.

11

u/Skullkid9 Feb 12 '16

See, that's not a bug that became a feature, thats just a feature

→ More replies (1)
→ More replies (2)

30

u/mrMalloc Feb 11 '16

Actually we have abused a bug in ActionScript2 to be able to debug the code and unit test the application during runtime.

In AS2 all functions is registered to a global function pointer. that function pointer is accessible thus you could reroute calls for a particular function and replace it with another function.

thus private functions is no longer private. You can reach a private value in a function check it and even change it during runtime.

Practical !

→ More replies (1)

283

u/Zediac Feb 11 '16 edited Feb 11 '16

Not a program, but the idea fits.

Harley Davidson motorcycles have that well known "potato-potato" idle sound. It came about due to poor engineering. It's actually detrimental to performance and a mistake. But it gave the bikes a unique sound so it was left in for future engines to establish a signature sound to the brand.

82

u/iamtehstig Feb 11 '16

And now some other bike manufacturers purposely tune their models to run"poorly"at idle to replicate the sound.

69

u/Zediac Feb 11 '16

It's a shame to see hear. A bike with a good sound from unique design is better than replicating someone else's mistake.

A 3 cylinder (like a Speed Triple) or the rare V4 are genuinely cool sounding engines.

→ More replies (8)
→ More replies (5)

122

u/WooHooBar Feb 11 '16

potato-potato

72

u/Zediac Feb 11 '16

Yes. That's the most common expression for Harley's signature idle.

→ More replies (21)
→ More replies (1)

17

u/EngineerThis21 Feb 11 '16

This is similar to "boxer rumble" on Subarus. It's due to unequal headers which are less efficient. The new WRX corrected this and does not have the rumble anymore.

→ More replies (18)
→ More replies (4)

29

u/CyborgJunkie Feb 11 '16

Block update detectors in Minecraft.

Although they never became an official feature, they were still widely used and never removed by the devs.

29

u/[deleted] Feb 11 '16

I work for an online retailer with a custom-built storefront. In our database, each product has a field for the instruction manual URL. Our staff was supposed to upload manuals to our own file server and put in its URL there, but in actual use, we realized they were just getting lazy and hot-linking directly to manufacturer PDFs, and sometimes even accidentally linking to our competitors. This meant that we had no control over the links, which would often change and break over time.

Instead of limiting what our staff could put into that field, we facilitated this behavior. Now if they put in an external URL, the system will automatically transfer that file to our own server, give it an appropriate name based on the product, and give it a unique ID based on its hash. This has the side benefit of file deduplication, such that if multiple products share the same file, they can all have different filenames but still only occupy one file on disk (URL rewrites based on the file id).

This isn't as exciting as game bugs, I know, but it's a case of us looking at our product in actual usage and evolving it to fit the reality of how it's used, even if we didn't design it that way.

Another instance was us noticing that our staff were searching for product ids directly in our Google custom search, which really only worked because their "buy" buttons just happened to have it labeled and Google was haphazardly crawling them. People complained about some products not showing up because Google didn't happen to crawl that one id number.

Based on that behavior, we implemented a smarter search, before Google does its thing, so that any search looking like a product ID will bring up a small pop-up "Did you mean to look for Product X?" Much faster and more consistent that way.

We never expected our staff to start memorizing product ids and searching for them instead of product names, but evolved our search function to accommodate.

In our line of work, the user is wrong more often that not. Our job is to rewrite the software so they become right.

434

u/2T2T Feb 11 '16

All of them

190

u/[deleted] Feb 11 '16

-Bethesda Game Studios

→ More replies (4)

0

u/[deleted] Feb 11 '16

[deleted]

149

u/grimreaperx2 Feb 11 '16 edited Oct 17 '16

[deleted]

→ More replies (68)
→ More replies (6)

26

u/Empty_Allocution Feb 11 '16

I wanted to see how lazy and bored our users were, so I wrote a little something into the .net program I had written for the staff.

The program itself was a little window at the bottom right hand-corner of the desktop. It had buttons to log support requests or choose printers etc. There was a little picture / silhouette of a person at the top of the box to make it look pretty. If you clicked the picture, your machine name, username, date and time got dumped into a log on the server.

I was surprised at how many people clicked on the little guy.

91

u/[deleted] Feb 11 '16

Oh you have no idea, I'm a pretty poor developer (not as bad as some though, I've used some truly awful systems where the end user was clearly never considered).

Anything which breaks is usually just "Validation to ensure you to enter the data correctly"

42

u/[deleted] Feb 11 '16

lol reminds me of a co-worker I had. Everytime someone complained about about the application breaking when they did something, he'd look so frustrated and say "well, why are you trying to do that!?" I think he truly believe the bug was always with the user, and not his shitty code.

33

u/[deleted] Feb 11 '16

In all fairness users do some fucking stupid things but that's part of decelopment, plan for ut

→ More replies (1)
→ More replies (3)
→ More replies (1)

45

u/PandasAreLegit Feb 11 '16 edited Feb 11 '16

Although maybe not quite a bug, combo hits in "fighting" games were not originally intended. Once figured out, it became almost a basis of most fighting games!

9

u/[deleted] Feb 11 '16

Specifically, this was in Street Fighter II.

→ More replies (1)

91

u/stan3221 Feb 11 '16

In the original GTA, this happened where the cops suddenly started behaving very aggressively due to a bug. Turns out, the cops were actually trying to drive THROUGH the player due to a problem with the route finding. This caused the cops to ram the player repeatedly which the players found to be more fun.

20

u/BlackenBlueShit Feb 11 '16 edited Feb 11 '16

I created a tiny game as a project for a class when I was just first learning C++, I don't exactly remember the details of it as I have shit memory, though I think it was an rpg with a dice roll type mechanic in it, but there was a bug where in if the player rolls a certain value, they lose all their money (I honestly don't remember why there was a currency system, maybe it was a board game type thing?). Our professor always reviews our code and asks us to defend it and answer whatever questions he had in front of the class (he projected our submitted code on to a screen).

Thing is though, I totally didn't even realize that bug existed, as I pretty much only ran it like twice or thrice before submitting it, I don't even think I forced the conditions to check if they actually worked lol. So he ran it on the screen (it was text based btw) and when he rolled the dice, it landed on the value that makes you lose all your cash. I was puzzled for a few seconds, as I don't remember putting anything like that in the program. He asked me what happened, assuming correctly that it was a bug. I on the other hand responded with something to the tune of

"Oh if you roll x value, you lose all your money"

and made up some excuse about how I merely forgot to put that in the ruleset at the top/start, and how I forgot to put an indicator on screen when it happens. Bugs in code (especially ones that pretty much end your game like this) had a larger deduction to your work's grade than simple moments forgetfulness, and he was pretty forgiving with a student making a mistake as long as he can see that they had the right idea. Granted even if I didn't pass that project at all it wouldn't have failed me in the class, but it's still better to get a higher mark. I wonder if he smelt through my bullshit at the time though, and accepted my excuse cause I came out with it so quick.

→ More replies (1)

117

u/[deleted] Feb 11 '16

Only one I can think of is the Camp stacking in dota. If I remember correctly it was originally a bug but it was used by so many people that it would harm how the game works if they removed it. It is even advised now with the new compendium challenges.

18

u/SosX Feb 11 '16

How did camp hitboxes work in wc Dota? I always thought it was intended.

22

u/ISw3arItWasntM3 Feb 11 '16

Camps didn't respawn in classic wc3 ladder iirc. That was a feature unique to Dota and other custom games that added it themselves.

→ More replies (1)

39

u/BritishAgnostic Feb 11 '16

Denying your own creeps was also originally a bug, but it made laning far more interesting so they kept it in.

13

u/zbromination Feb 11 '16

That wasn't a bug, it's been a feature since WC3

10

u/Liies Feb 11 '16

No, in the WC3 editor they couldn't make it so you could only attack enemy creeps and not your own.

→ More replies (6)
→ More replies (1)

14

u/Delegacy Feb 11 '16

It was that way in Dota 1. If there were no monsters in the spawn area at the spawn time, another group would spawn. It was a limitation in the WC3 Map Editor and there is no reason to remove one of the main mechanics in the game from Dota 2.

→ More replies (11)

6

u/Jewboi41 Feb 11 '16

Dota is pretty much the first thing that comes to my mind when someone mentions bugs into features.

Though some stuff Icefrog's been lately experimenting with may as well be called a tequila bottle into features. Still, change is good, I still have PTSD from 6.83.

Here's a list about bugs into features in gaming btw: http://tvtropes.org/pmwiki/pmwiki.php/Main/AscendedGlitch

→ More replies (2)

363

u/[deleted] Feb 11 '16

ITT: People who aren't programmers talking about glitches in their favorite games.

→ More replies (17)

46

u/jewdai Feb 11 '16

As with most bugs, often they aren't funny and not really interesting.

I work as a software dev for a CMS system taking over this fairly outdated or old-ish site that displayed information about various users through data dumps exported from sharepoint.

Every user has a "user type" field like "full-time" or "part time" etc which was manually typed in.

My content editors (people who edit that information to display on the site) wanted to prevent these users from appearing on the site, however there was no "inactive" or "disabled" flag that could be set on them.

The content editors eventually figured out that if they left that field blank they could those users NOT to appear on the others site. That bug gave them their feature.

More details:

The system was horrendous and incredibly fragile that I'd get calls about once a week it not working (the page for that data would be blank)

  1. Users enter in a series of 3-4 lists in sharepoint the various bits of information about the users.

  2. these lists would then be exported by a periodic powershell script on the sharepoint server.

  3. the powershell script (windows) will dump the exported files into a network share drive

  4. the network share drive was mounted by a linux VM

  5. the linux vm would periodically FTP the files to an off site web server that hosted the site

It was one of those "it was here when i got here" kind of systems and would break at least 2-3 times a week.

Fast forward 6 months later, I completely scrapped that system and replaced it with a custom single page application that took me a little under a month to whip together.

  1. The site has had nearly 100% uptime.

  2. the data is easier to enter (no "magic keying" dropdown fields instead)

  3. No more calls. (Ok that's a lie, it's mostly explaining how do I enter XYZ)

  4. New web dev skills for my resume (I wrote it in angular not having worked with it before)

  5. there is now an Inactive checkbox that now gives them their desired feature (instead of bug)

→ More replies (3)

31

u/BurningTheAltar Feb 11 '16 edited Feb 11 '16

I have a large legacy application. When deploying in production, we forgot to turn on custom errors so when one occurs, rather than seeing the nice friendly error page with correlation ID, contextual info that can be dropped into a support request, support contact info, etc that I spent time carefully creating, it just shows the YSoD and stack trace like its amateur hour. My bosses liked the convenience of not having to take 5 seconds to pull up the error out of the logs so much they just left it like that and we look like scrubs.

Similarly, the app has some MVC endpoints. In the web.config we have GZIP compression forced on. Well, when an exception occurs in the middle of executing a response, the headers never get cleared (which in this case would include the Content-Encoding: gzip header) but the YSoD is rendered as plain text. This results in garbled YSoD in your browser (the browser sees the encoding and thus tries to gzip inflate, hence the gibberish). The fix is to just clear the header on exception, but I left it in because the unexpected benefit is that it trolls said managers who hate looking up the log entry.

→ More replies (3)

36

u/rough_bread Feb 11 '16

On the original nazi zombies map, nacht der untoten, zombies could walk and attack without their heads. This was buffed out and then featured

→ More replies (3)

37

u/StanleyDarsh22 Feb 11 '16

i think this idea is in bethesda's business model

something that come's to mind is the giant's space program from skyrim...

9

u/Slothy22 Feb 11 '16

You can actually pretty much do that with a console command and your fists. Set your unarmed damage to a ridiculous amount and just punch people.

It happens because how much someone goes flying when they die is tied to overkill damage.

17

u/blaghart Feb 11 '16

Yes the game converts overflow damage to physics force, so the harder you hit someone over their hitpoints the further they fly.

Also I love all the people bitching about something that people asked to be left in the game because they found it so funny.

→ More replies (1)

8

u/SnipeCity73 Feb 11 '16

Originally, Rockstar Games wanted to make a Cops and Robbers type game but a bug with the police cars made them kamikaze the player instead of arresting them. Playtesters liked this "feature" and thus the Grand Theft Auto series was born

56

u/befron Feb 11 '16

It never really ended becoming considered a feature by the devs, but wavedashing in super smash bros melee is pretty much the reason why the game is such a good spectator sport and why the melee community thrives to this day.

29

u/skdeimos Feb 11 '16

Wavedashing isn't really the singular reason that Melee is such a good game. It's one of them, sure, but it's definitely overhyped. It's not even one of the first three techs that new players need to learn, but for some reason it's considered by a lot of scrubs to be the flagship tech of Melee and so new players end up learning it first.

→ More replies (8)

12

u/[deleted] Feb 11 '16

I'd say melee is still popular for three completely unrelated reasons:

  • Intuitivity, no other game manages to provide so many different attacks without resorting to complicated combinations.

  • Blistering pace, when played with even only a moderate level of skill you can literally blink and be combod in the interval before opening your eyes.

  • The uniqe damage system which gives gameplay a feel almost like an anime superfight without cheapening it down to cheesey 'super attacks' or making the game feel overly dramatic.

6

u/Flash_Johnson Feb 11 '16

Nintendo was aware of this. Though melee is a great example.

→ More replies (1)

4

u/andrewia Feb 11 '16

Same with bhopping in Source/ID engine games. An amazing mechanic from an oddly implemented movement equation.

→ More replies (1)

7

u/RemnantHelmet Feb 11 '16

This is exactly how GTA became a thing

7

u/LeRadioactiveNarwhal Feb 11 '16 edited Feb 12 '16

B-Hopping in the soure engine was a bug that they eventually removed it from TF2 but it is still possible in CS:S, GMOD, and somewhat in CS:GO

→ More replies (3)

24

u/-ChewbaccaThe3rd- Feb 11 '16

Not a programmer, but I'm going to go ahead and guess that joining skyrims space program when giants kill you was not intended.

15

u/Tiny5th Feb 11 '16

Nope, if i remember right the way the coding was that any hp done to something that is above their remaining hp, I.E. overkill, would basically translate into "physics" instead, it's why if you got a pretty impressive power attack in you could send people flying backwards.

A giant of course, hitting a low level player with his club using what is essentially his power attack, translates all that leftover hp into motion and voila, space program.

→ More replies (2)
→ More replies (1)

13

u/StrawberryViolence Feb 11 '16

Going to school for game design and programming right now.

My class had a project in Unity 3D, and if you have ever used it to make a game you know that things can go a little weird if you don't do it correctly.

In my game, I had a navmesh set up and a simple script attached to each of the "enemies" the player was supposed to kill that was pretty much just how fast they go, how close the player object can be before they run away, and when the player's weapon hits the "enemies", they are automatically destroyed. This script talked to the navmesh, because if it didn't the flee behaviour did not work as well as I wanted.

Anyways, I did a test run of the game and I noticed one "enemy" was not acting like the others. He would start to run like he's supposed to, but it was like his gravity just shut off and ended up floating above everyone else. I looked everywhere for the issue because sometimes it's just a small mistake made in the engine.

Nope, it was my code. The distance I had input into his script was wrong and he ended up colliding with the other "enemies" making him float. I lovingly named him Drunk Bob because of his odd behaviour, but I unfortunately had to fix him since my project was due :(

→ More replies (1)

6

u/shiroboi Feb 12 '16

Not a bug but sort of an in-joke. We made a tank game released for PC in '04 and it had a variety of weapons. One of the missles was black in color. We started calling it the "Black Missile". One of our co-workers who helped us test the game said that wasn't politically correct and that we should call it the African-American Missile. We abbreviated it to AFRAMM. The name stuck and made it to final release.

→ More replies (2)

5

u/mattmu13 Feb 11 '16

One of the BA's couldn't decide on whether she wanted the text on the left or the right of the checkboxes so I coded it that everyone would see it one way and when she logged in it would show the other way (she was pissing me off constantly changing her mind).

This led to quite a few "but it works fine on my machine" moments

...she was the bug and I made a feature out of her ;-D

5

u/[deleted] Feb 11 '16

Back when I made my first game Chomp'd for the iOS, at a certain level, an orange piranha would slowly appear and move across the screen to make it difficult.

Well, I forgot to disable the action after a while so about a few seconds later while playing the game, the orange piranha appeared again... Every 30 seconds (the action would respawned it when the object moved off screen). I realized it was a bit hard with it like that but kept it so its more challenging.

22

u/K-Mark Feb 11 '16

Not a programmer, but all of Goat Simulator.

17

u/Baggy2000 Feb 11 '16

Implying goat sim wasn't deliberate

10

u/K-Mark Feb 11 '16

At first it wasn't, but when he found out that people enjoyed the bugs, he kept them.

9

u/doodah360 Feb 11 '16

not my game, but bhopping in source games was originally unintended, but the community support for it meant valve devs kept it in the game. sadly they toned it down in global offensive, however it was necessary to make exports more viable

→ More replies (12)

4

u/[deleted] Feb 11 '16

DEV: 'Every bug is a feature'

QA: 'Every feature is a bug'

And so is the cicle.

→ More replies (1)

4

u/flibbidygibbit Feb 11 '16

We employed a "stock on hand" buffer.

If you have 12 stock on hand, and you set the buffer to 5, the website acted like you had 7 stock on hand. This acted independently of the inventory control system.

This was because a couple of directors designed the fix so the inventory team could spend their lunches drinking, or whatever it is they did. I'd rather have the inventory team control inventory (single source of truth) and treat the web as a simple storefront, we had enough hacky shit in there to fix anyways.

But no. We have to do it because stores are complaining the web is overselling inventory. Well, they can't sell anything when the server crashes. So maybe we should plug up the memory leaks? Hmm?

Well, support finds a bug about a week after it goes live: they entered a negative number and discovered they could reverse the buffer and oversell during rush periods. Stores love it.

Some stores complain they oversell. Some stores love that they can oversell. We now have to accomodate both.

Support asks for it to be more granular. Down to the sku level.

Again, I point out that inventory control should be left up to the inventory control system and their team so there's a single source of truth for that kind of data.

A month of meetings go by and the business has a plan set up and ready to go for making this granular.

My initial build wouldn't allow negative values. That failed QA. It had to accept negative values.

FML.

→ More replies (1)

4

u/Opheltes Feb 12 '16

Some buddies of mine used to work for Adaptec. As a joke, Bob checked into their code

#define VIKTOR_IS_A_HUGE_DICK

(Bob was a friend of Viktor's). Viktor saw it and changed it to:

#define VIKTOR_HAS_A_HUGE_DICK 

They forgot to remove it, so it get sent to the German team for code review. The Germans, being completely humorless, flagged the line for deletion because it wasn't used anywhere.

So a third person (not sure who) decided to address the German team's concerns by putting it into use. e.g.:

if (VIKTOR_HAS_A_HUGE_DICK){
  <useful code>
}

And that's how a joke about Viktor's dick got used in production code.

→ More replies (3)

6

u/prjindigo Feb 11 '16

I re-built a sorting routine using multiple sub-categorized sorting routines to rapidly sort things by a calculated value and it had a bug where it would resort out-of-block, thus randomly selecting segments of the data to sort. It often worked faster than intended and definitely looked like it was working faster when you watched it. Was definitely a crowd pleaser. I left it in and saw it used in other people's programs for more than a decade after XD

→ More replies (1)

3

u/yuriluzr Feb 11 '16

All bugs are features, until proven otherwise.

→ More replies (2)

3

u/IICVX Feb 11 '16 edited Feb 11 '16

I was working on a web based, graphical PDF editing app. In the app, you could select individual pages and do stuff to them, like rotate or drag and drop.

I was adding a multi-select feature, so you could do stuff to multiple pages at the same time. When I was implementing multi drag and drop, I decided to reuse the thumbnails - instead of deleting them and recreating them at the drop target, I would just pull them out, have them invisibly follow the cursor alongside the drop object the library created, and then reinsert them at the drop target.

Well, instead of invisibly stacking them under the floating drag element, I accidentally put them all under it - and, for some reason, with an offset Y component.

The net effect was that when you selected a bunch of pages and dragged them around, you would see a sheaf of pages following your mouse cursor waiting to be dropped. It was pretty cool, so I showed it to the PM and we kept it (with some refinements, to make it look nicer and be sure it didn't go nuts for a ton of pages).

3

u/shoopdahoop22 Feb 11 '16 edited Feb 11 '16

It's not really programming, but I'm working on a mod for Half-Life 2 right now. I tried to do some stuff with the animation files for Alyx, and this happened to her:

http://steamcommunity.com/sharedfiles/filedetails/?id=483169046

It was COMPLETELY unintentional, and to this day I still have no idea what caused it.

Bonus Video

→ More replies (2)

3

u/[deleted] Feb 11 '16

So, we have vending machines in a game I run. The vending machines dispense specific in-game products, in our case, it's where the players go at the start of the game to get their weapons. Well, because it's a very detailed RPG, you can open the access-panel on the vending machines to adjust the wiring (such as, rig it to shoot the guns out at people, or electrocute them) but also to "load" stuff back in.

Someone noticed, that if you loaded empty magazines into it, they'd get re-filled and added back to the general supply of the machine.

We've decided to refine this unintentional bug into a feature, but adding some game mechanics around it.

→ More replies (5)

3

u/[deleted] Feb 11 '16

I'm working on a people simulator. Right now there's two different versions: The one I hope to sell off and make money, and the one where toddlers get lucky and men give birth. It's a glorious world where people live to the ripe old age of 69, weighing in at 900lbs~ and are taller than a sky scraper.

→ More replies (2)

3

u/Nix-geek Feb 11 '16

I didn't want to waste time merging two fields together, so I made the user entry page have the two fields separately (username and domain). Then, 2 months after launch, we began migrating all our users to a new domain in a rollout so that some users were in one domain and others were in another.

I played it off like I meant to do that.

3

u/Mr_GoodBud Feb 12 '16

My dad worked on half life 2. If anyone remembers the helicopter that drops all the bombs that you take on in the airboat, it starts dropping 3 bombs at once instead of just 1. That was a bug and they decided it was cool so they kept it.

→ More replies (2)

3

u/19shirki Feb 12 '16

I am attempting to make a platformer where the character can attack, but I discovered that if you attack while mid-air, you stay in the air a bit longer. Instead of fixing it, I am thinking about making jump puzzles around it.

3

u/tightastic Feb 12 '16

A few years ago for a game programming class my buddy and I decided to try and recreate 2048 - this was actually pretty ambitious considering it was our first programming class and we had 2 weeks to make our game. So in 2048 when you push right for example, any pairs of numbers will merge, but in our game, only the outermost pair(the one the farthest in the opposite direction of the arrow key pushed) will merge. We couldn't figure out how to fix it so we just told the professor we changed the rules to make it more of a challenge.

3

u/riotpopper Feb 12 '16

Late to the party.

Anyways, I was making an arena shooter with heavy influences from geometry wars, binding of Isaac, diablo and magicka, it was a bullethell zombie arena combat game with random (but fair and logically constructed) terrain/buildings.

At one point there was a problem with the mages rainbow fireball machine gun spell, the rainbow fireballs transferred their color to the enemies they hit but didn't kill, something with color blending and applying the fireballs movement/property's to the zombies.

I.mad eit a feature and had each color have different effects, blue froze enemies, red burns, yellow zaps, orange made magma on a kill, green poisoned.

It worked pretty well except I had to redo some things. So a glitch made me hard-code it as a feature

7

u/klarinette Feb 11 '16

If someone moves the character to the right of the screen at a certain angle, he levitates up for reasons unknown. So I drew wings on him.

6

u/[deleted] Feb 11 '16

Recursive AJAX calls.

→ More replies (1)

4

u/[deleted] Feb 11 '16

The wolves in League of Legends, when dragged on the other half of the map and then be killed by a summer spell called Smite, would instead of going back in it's own section, would travel all the way to the ennemy wolves. It's a light that follows ennemies around when they are in that specific jungle section, it was a bug since in esports a team was banned by using it. Earlier today they added a description to the toolbox stating that the travelling light will go on the side it was killed.

→ More replies (2)

4

u/HingleMcCringle_ Feb 11 '16

The creepers in Minecraft was supposed to be a pig but was bugged. Developers liked it and keeped it

→ More replies (1)

6

u/ziggyzack1234 Feb 11 '16

Where is that one guy who screwed up Gandhi in the Original Civ game. The Gandhi Nuke rush is legendary in the gaming world.