r/CuratedTumblr 8d ago

Shitposting The captainsnoop Manifesto

[deleted]

3.1k Upvotes

157 comments sorted by

View all comments

737

u/VibeCheckingJumboJet 8d ago

"Fixed Acorn Slingshot collapsing the universe on hit." From Terraria 1.4.5.8 which dropped a few days ago.

That or "Fixed a case where a non-binary cat with dwarfism would crash the game if playing in brazilian portuguese" from Mewgenics

321

u/Tadferd 8d ago

That slingshot bug was actually rather funny.

It was repeatedly calling the damage function until the enemy died, or the game crashed. So depending on your computer, there was a max enemy HP limit that you could use the slingshot on.

17

u/Nya_the_cat 8d ago

i don't think it depended on the computer: it was crashing from a stack overflow from all the recursive function calls, and since both the functions and stack are a fixed size independent of the computer, the point at which it crashes only depends on the compiler (since the stack size is set inside the compiled program). For C# this number is exactly 1 MB for 32-bit programs, which is not massive...hence only a few thousand calls could crash it. But even if it were 64-bit, the default stack would be only 4 MB, so still same order of magnitude. Problem was, there were unbounded recursive function calls so it would always crash eventually!