Jump to content
  • Advertisement
Sign in to follow this  
Sik_the_hedgehog

When you realize how dumb a bug is...

This topic is 575 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Advertisement

Happened to me today. Ran a video export simulation using dummy images. Transferred to a different computer to eliminate unknown inter-dependencies, and moved all folders along.

Didn't work.

Debug log didn't specify anything meaningful.

Was stressed.

Spent an hour fixing it to no avail.

 

Then, looking at all files I had copied over, I realized that though I had moved the 'Frames' folder from which I drafted the dummy images, it was somehow empty..........

Share this post


Link to post
Share on other sites

Part 2

 

Composer was trying to test the WIP of one of the level themes and he complained that it played in the sound test but not in-game (!?). Then I checked myself and it worked on my end. Cue being completely clueless, especially since nothing at the code hinted at a possible bug. Some minutes later he makes a comment about the game and I realize he was making the theme for another level and because of that he was using the wrong filename (thereby the game of course not playing it).

Share this post


Link to post
Share on other sites

I just went through this.  Weird bug that could never happen.  There is it, right on QA's screen.  They were using an older version before the bug fix.  Never even crossed my mind.

I do that myself occasionally.

Tweak -> build -> run and view changes
Tweak -> build -> run and view changes
Tweak -> run previous build accidentally -> wondering why the changes didn't take place -> starting reading the code to make sure I wrote it correctly

Share this post


Link to post
Share on other sites

I lost the count of times I press build multiple times just to avoid that (I'd rather waste time building too many times than not build and go crazy figuring out what went wrong). Not really a big problem with C since Code::Blocks will just say it's already built, more of a thing with assemblers which will build the entire thing from scratch (but then again it's rather quick anyway).

 

EDIT: I suck at proofreading...

Edited by Sik_the_hedgehog

Share this post


Link to post
Share on other sites

Reference data does not match data from new code.

Checked again, again, again and again.

Did I forgot an offset?

 

Reference data comes from a different project. It's basically a for(...) <do stuff> and I'm interested in a certain loop iteration.

In a certain loop iteration. Not in two different loops iterations. Changed iteration to debug to same value. Realized there was no problem to fix. Called it an intense day.

Edited by Krohm

Share this post


Link to post
Share on other sites

I do stuff like this more often than I'd like to admit. I'm actually trying to train myself to suspect resources sooner, since they're generally easier to check.

 

I did it in my recent course project, where there was a problem with my map file that was obscuring an oversight with my pathfinder, and then I just did it a couple days ago when I was fixing a bug in a KSP mod, but no matter what changes I made the game behavior wouldn't change. It turned out that the dll I kept dropping in the KSP folder didn't have the same name as the original, so I wasn't actually overwriting the correct file. -.-

Share this post


Link to post
Share on other sites

Exporting a tree-structure as a visual output to another tool from a tool that doesnt provide positional data...

So yeah... Calculate them from the structure. Not that hard to do, right?

 

But i wasted like a shitton of time because the target tool had the undocumented feature to set everything with a x or y coordinate of 0 (totally valid value...) to 100 / 100. Searched for ages in my code and then just tried adding 1 to everything... and suddenly it worked.

Biggest derp in my recent programming carreer. :/

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

Participate in the game development conversation and more when you create an account on GameDev.net!

Sign me up!