Unexpected "Good glitches"

Discuss technical or other issues relating to programming the Nintendo Entertainment System, Famicom, or compatible systems.

Moderator: Moderators

User avatar
Vectrex2809
Posts: 97
Joined: Mon Jul 14, 2014 6:05 am
Location: Tokyo, Japan

Unexpected "Good glitches"

Post by Vectrex2809 »

I was reprogramming the starfield at the beginning of Brony Blaster, and I had an unexpected "Good Glitch" happen to me. The starfield that was supposed to go straight started rotating, which looks really cool.
I'm just wondering, do such "good glitches" happen to you more experienced programmers? Let me know :)

https://www.youtube.com/watch?v=ypDz1nNhCxI - Video
User avatar
tokumaru
Posts: 12106
Joined: Sat Feb 12, 2005 9:43 pm
Location: Rio de Janeiro - Brazil

Re: Unexpected "Good glitches"

Post by tokumaru »

The starfield does look pretty cool!
Vectrex2809 wrote:do such "good glitches" happen to you more experienced programmers?
I've had things working normally when they shouldn't, but I can't recall something working BETTER than it should by accident. Either way, I wouldn't simply accept the new behavior without figuring out what actually happened and declaring it safe.
User avatar
Kasumi
Posts: 1293
Joined: Wed Apr 02, 2008 2:09 pm

Re: Unexpected "Good glitches"

Post by Kasumi »

There's a topic on TIGsource that focuses on things like this. Beautiful Fails. They're not always better, but some glitches definitely produce some cool stuff.
ccovell
Posts: 1041
Joined: Sun Mar 19, 2006 9:44 pm
Location: Japan
Contact:

Re: Unexpected "Good glitches"

Post by ccovell »

It's not really rotating, just "shearing" vertically. The stars that start out vertical at the centre of the screen aren't rotating anywhere.

But it is a nicer effect.
Sik
Posts: 1589
Joined: Thu Aug 12, 2010 3:43 am

Re: Unexpected "Good glitches"

Post by Sik »

tokumaru wrote:I've had things working normally when they shouldn't, but I can't recall something working BETTER than it should by accident.
I've had it happen with the last level in Sol. When you beat the final boss the whole place starts exploding, and I made the explosion effects by taking the normal ones and disabling the damage code... except it seems I only disabled the code that damages the player. Which means that if you move around you can literally see the level itself falling apart, derbis and all o_o (needless to say, it stayed)
tepples
Posts: 22345
Joined: Sun Sep 19, 2004 11:12 pm
Location: NE Indiana, USA (NTSC)
Contact:

Re: Unexpected "Good glitches"

Post by tepples »

In fact, you could have taken this "load-bearing boss" concept one step further to make an additional puzzle of navigating the destructing terrain.
Sik
Posts: 1589
Joined: Thu Aug 12, 2010 3:43 am

Re: Unexpected "Good glitches"

Post by Sik »

But that's supposed to be the point where you can finally start resting! =P (you can move around just because the score tally is still going on)
psycopathicteen
Posts: 3001
Joined: Wed May 19, 2010 6:12 pm

Re: Unexpected "Good glitches"

Post by psycopathicteen »

The green leaf monster in my game doing cartwheels when hit was a mistake. If you pay close attention, he is actually just moving his arms and legs in the same way he is while walking, but it looks like he is actually lifting himself off the ground and flipping.
Drag
Posts: 1350
Joined: Mon Sep 27, 2004 2:57 pm
Contact:

Re: Unexpected "Good glitches"

Post by Drag »

Yeah, there's plenty of instances where a mistake turns into inspiration. In my case, it's when I'm composing and put a note in the wrong spot in the piano roll, or I miscount or something, and the resulting "wrong" melody turns out sounding better than the one I meant to put in. It hasn't happened to me in programming yet because I'm a perfect programmer because I usually lose interest before I get to the gameplay. :P
tepples
Posts: 22345
Joined: Sun Sep 19, 2004 11:12 pm
Location: NE Indiana, USA (NTSC)
Contact:

Re: Unexpected "Good glitches"

Post by tepples »

Drag wrote:I usually lose interest before I get to the gameplay. :P
At that point, it's time to learn a high-level language or experiment with an existing engine (The Games Factory was good for this) in order to skip some of the programming drudgery. Then backport after you've figured out gameplay.
psycopathicteen
Posts: 3001
Joined: Wed May 19, 2010 6:12 pm

Re: Unexpected "Good glitches"

Post by psycopathicteen »

Drag wrote:Yeah, there's plenty of instances where a mistake turns into inspiration. In my case, it's when I'm composing and put a note in the wrong spot in the piano roll, or I miscount or something, and the resulting "wrong" melody turns out sounding better than the one I meant to put in. It hasn't happened to me in programming yet because I'm a perfect programmer because I usually lose interest before I get to the gameplay. :P
...and every time you need to implement a gameplay element, you need an animation to go along with it. :roll:
tepples
Posts: 22345
Joined: Sun Sep 19, 2004 11:12 pm
Location: NE Indiana, USA (NTSC)
Contact:

Re: Unexpected "Good glitches"

Post by tepples »

You could just draw extremely rough, as was done in Braid and Vision by Proxy before the artists did their job. Kirby was prototyped as just a circle, but perhaps that's a bad example because it ended up inspiring the entire game's art style.
Drag
Posts: 1350
Joined: Mon Sep 27, 2004 2:57 pm
Contact:

Re: Unexpected "Good glitches"

Post by Drag »

That's another example of something unintentional inspiring the final product, even if it technically wasn't a mistake.
User avatar
ShaneM
Posts: 353
Joined: Wed Apr 04, 2012 4:15 pm
Location: United States of America (USA)
Contact:

Re: Unexpected "Good glitches"

Post by ShaneM »

Vectrex2809 wrote: I'm just wondering, do such "good glitches" happen to you more experienced programmers? Let me know :)
Though I've never done homebrews, I do hack and I can only recall one time when this has happened to me. Back when I was turning Pokemon Blue into Green (now found in the GBdev section; similar to a homebrew in that I've recoded many aspects to match Green), I had to recode a large portion of the way sprites were hardcoded and compressed. While doing so I repointed a large portion of internal ID codes to free space (I recall it being MBC3, so I had expanded the ROM to its 2MB potential). Well, turns out that doing so made Missingno. appear at $FC000 (free space) in ROM which caused it to not occur but freeze the game. This was good because it gave me a window of opportunity to actually code and make it into a real Pokemon. --ShaneM, the Master of ASM

EDIT: Though I've fixed what actually caused Missingno. to appear (tile collision error with garbage data being loaded from WRAM1 since the water coast tile was treated as a grass one when surfing and Cinnabar has no grass data), it can still be accessed by GS codes in my game. I've assigned it proper sprites (in a newer compressed form using Wood) and real attacks and its own beta cry. I remember that RAM $CFD8 is where the upcoming wild Pokemon value is stored. IIRC, $34 would cause this Easter Egg to appear on my game (no irony intended since today is Mr. Bunny's day :P ).
psycopathicteen
Posts: 3001
Joined: Wed May 19, 2010 6:12 pm

Re: Unexpected "Good glitches"

Post by psycopathicteen »

This morning I noticed that I forgot to apply impact freeze to jumping enemies. I fixed the mistake, but then I relied I liked the flow of the gameplay more with the mistake, so I reverted it back.
Post Reply