March 9th, 2019
Q&A: Weirdest bug you guys fixed
https://www.youtube.com/watch?v=ybgZUbANGrM
Suggested Wiki Refrence Code
Topics
Transcription
Jace
What is the weirdest bug you guys
Snutt
fixed?
Yeah, Jace,
Jace
you have
Snutt
a good
Jace
one.
Okay, so I had a bug.
It's going to take me a while to explain it, so I'm going to focus on that.
How many times are you going to do that, Simon?
Honestly.
You know, you're the reason I died before.
No, what?
No, no, no, no, no, no,
Snutt
no.
It was me.
Okay, well, you're the
Jace
reason.
I was disconnecting, and then you hit me, and I died and disconnected at the same time.
Okay, so the weirdest
bug.
Jace
So we have a vehicle called a tractor, which is a little square, just a little tractor, right?
And we have like a test level that we have with like a bunch of random objects that we drive on or whatever.
And on that test level, there is also a thing, it's a teleporter.
Not saying there are teleporters, not saying there will be, right?
We at one point meddled with the idea of teleporters.
And so that teleporter is like really old and dodgy.
It was just on the other side of the map.
And one of our guys found that...
It was Simon.
Simon realized that if you drive up onto this ramp on this level with the tractor, stopped, got out, the tractor just disappeared and then drove out of the teleporter.
And we're like, wait, what?
Like, what the hell is going on?
And so we kept testing it, and we found if you had to go up, stop at a specific point, get out, and then it would just drive out of the teleporter.
Or if you stayed in, you would just die.
And we're like, what is going on?
That week, when I was programming the vehicles, I added a new feature called camber, which is like, if these are the wheels, it makes them turn in and out like that.
I added that and then in the code there was unfortunately a divide by zero error, which means you could have a number divided by zero and then it becomes infinity.
Then that value was then used as force on the vehicle.
The vehicle got infinite forces applied to it, so it grew to be infinitely big.
When it grew to be infinitely big, it hit the teleporter's trigger box,
Then it got reset back down to there, all the forces were clamped again, and it just drove out of the teleporter.
Classic old Saturday night.
Speaking of crashes!
Did you crash?
No.
No, no, no, no.
He didn't.
Snutt
He's just
Jace
joking.
Nah, he's just kidding around, you know?
That's what you get when you...
When you hold a nut for too long, apparently the game doesn't... Did you get a fun call stack, though?
Snutt
Did
Jace
you remember to fill in the
Snutt
comment
Jace
field?
Yeah, I just did it now.
And explain what you did.
Snutt
Something about... And your
Jace
comment field is like, I was telling a funny story.
I was just standing there, in all caps, I was just standing there as Snoop was building Foundation Simi.
Snutt
Thank Malone's Gaming.
Really appreciate
it.
Jace
It was something to do with skeletal mesh, skinned mesh component.
Refresh bone transform.
OK. Do you guys write automated tests?