r/speedrun • • 2d ago

Arbitrary Code Execution in Super Mario 64 has been successfully demonstrated!

https://www.twitch.tv/rcombs/clip/FaithfulBlueArugulaNomNom-vsDsygnVd5IrAs9S

This was accomplished with a hacked savestate, but this shows that ACE is possible (with a low success rate) on a console.

630 Upvotes

64 comments sorted by

117

u/AnUglyScooter 2d ago

Nice, when does the pannenkoek vid come out

75

u/roof_pizza_ 2d ago

Actually, I wonder if the A-Button Challenge will adopt ACE to clear out the remaining A-presses.

57

u/asandwichvsafish 2d ago

The consensus among ABC TASers is that ACE will be a separate category for ABC.

33

u/Prexot 2d ago

as i understand it that tends to be the consensus among every kind of runner in every game where ace is discovered

26

u/greiskul 2d ago

Yes, because ACE is just about the ACE setup.

The moment after it is achieved, all categories and challenges become meaningless.

Tradicional glitches useful in speed runs normally either make you go faster, or allow you to sequence break. Faster makes a route shorter, which can make the game less boring to watch. Sequence break ends up being really fun cause it throws previous routes old the window, and then there is a new cycle of routing after, and with the glitch maybe even being applicable to multiple points.

ACE doesn't have that, because after you do it, your payload is whatever you want, you are now a god, you are not playing the game anymore, you are programming it.

A tradicional glitch might allow you to skip getting all keys or stars or even fighting the final boss. Ace allows you to beat Ocarina of time playing as Luigi.

24

u/Xirema 2d ago

Only if the amount of A-presses is lower than what is currently required to beat the game.

If not, the challenge won't use it.

8

u/Raeve_Noir 1d ago

ACE into using dpad-left for jump. Complete 120 star as normal. No more pressing A!

7

u/larrytheaverage 2d ago

man he just had to put one out, they saved a couple getting into pyramid like a week ago

4

u/AnUglyScooter 2d ago

Im sure he’ll be fine. It’s been like, what, years since the last A press save discoveries? Lol

2

u/Notladub 1d ago

nope, as the previous commenter said it's been a week since the last discovery.

the SSL pyramid A presses got saved because they found a way to make spawning displacement work for that level transition. 2 A presses saved at once!

5

u/AnUglyScooter 1d ago

Yes… I meant the previous discovery before that, sorry lol

0

u/[deleted] 2d ago

[deleted] — view deleted comment

19

u/ExpirjTec 2d ago

no? he'll probably ignore ACE when trying to solve any future A presses (including fire sea). treating it as its own separate category and moving on.

he was in a vc watching the stream but didn't offer any comment. doubt he'll leave the community over this

4

u/Splax77 2d ago

Me when I make shit up

40

u/ByDarwinsBeard 2d ago

With everything that's been possible in Mario 64 I'm surprised it's taken this long to get ACE.

26

u/BeingofUniverse The Simpsons: Hit & Run 2d ago

How does it work?

65

u/gammaFn Distance, Celeste | SM64 TAS fan 2d ago edited 2d ago

Here's the opening from a write-up you can find in the TAS Discord, before the glitch was fully realized:

It makes use of an up-to-now undocumented variant of audio glitch in headset mode to corrupt the state of the audio coprocessor. It should work in both JP and US (but not the other versions). This is not a proof of concept, just a concept.

Overview:

  1. Trigger the PU audio glitch in headset mode with a chosen note to read an array out of bounds
  2. The game tells the audio coprocessor to use the out-of-bounds value in its commands
  3. The audio coprocessor corrupts its own state due to the extreme value and starts showing chaotic behavior
  4. Sometime during the chaotic behavior, the audio coprocessor reads a specifically prepared list of commands from a region of memory that we have easy control over (framebuffers, Mario state, object pool, etc.)
  5. The prepared commands tell the audio coprocessor to write a bootstrap program to memory and to overwrite the state of the audio thread, which is currently waiting for the next audio frame
  6. On the next audio frame, the audio thread starts executing our custom program

The write-up goes through the decomp'd code in more detail.

10

u/MrPopoGod MechWarrior 2 2d ago

up-to-now undocumented variant of audio glitch in headset mode

Changing the audio type enabling a glitch is definitely a new one for me.

3

u/JackpotThePimp 1d ago

Is the write-up published outside of Discord, or are there plans to so publish it?

9

u/fluidpepsiman 2d ago

Audio glitch exploit

204

u/Ok-Instruction4862 2d ago

This is awesome, but if it gets rta viable I kind of want it to be a category extension.

I love how clean sm64 leaderboards are. Just 5 categories, with the only divisions beyond that being console. No random patches or different glitches banned. Having ACE in every category like OOT would kind of ruin that imo.

86

u/sychotix 2d ago

A lot of the categories were originally the fastest way to beat the game until a new thing was found. I'm guessing there will just be a new category and ACE forbidden in the existing ones. Doing 70 stars with ACE would be... Very arbitrary. But hey, maybe it's the most fun route ever.

14

u/Ok-Instruction4862 2d ago

Yea imo similar to what is done for stuff like the nonstop mod, the best solution is to just make it a category extension with sub categories for all the main categories

25

u/Savac0 SA2B 2d ago

In fairness, 70 star currently bans the strats that make 0/1 star and 16 star possible, those being BLJ and Mips clip

4

u/Udub 2d ago

Is mips clip even faster? For routing

6

u/Savac0 SA2B 2d ago

It’s not faster if you’re still collecting 70 stars. Its usefulness is to bypass the star requirements to get to fire sea and it’s not used in 120 despite being allowed

Edit: I’ll add that the correct lens to use when thinking about 70 star is to view it as the intended way to beat the game.

5

u/Ok-Instruction4862 2d ago

There not being a category split for it still gives the boards that “clean” feeling though

20

u/ZenkaiZ 2d ago

"I kind of want it to be a category extension."

has that ever NOT happened?

10

u/Myriachan 2d ago

That’s definitely what will happen. Another example of this from earlier this year was when a bug was found in Mega Man X2 to skip to the final boss. The old any% became “any% all stages”. It’s still the most popular category, because the true any% is only worth watching a few times.

5

u/sirgog 2d ago

Yeah Super Metroid's "any% no major glitches" is a fun category, the all glitches allowed one is just a spectacle to watch once.

4

u/zsdrfty 2d ago

Or the Mario 3 TAS, which is better measured in frames than seconds lol

6

u/real_dubblebrick the Room Three guy 2d ago

Thankfully that one isn't remotely close to ever being RTA viable

0

u/c0rruptioN 2d ago

Why wouldn’t they just call it “any% glitched” instead of changing the original?

9

u/cuervamellori 2d ago

I think it makes sense for "any%" to mean "beat the game as fast as possible."

2

u/Notladub 1d ago

And also, the regular any% run of SM64 already uses glitches. (though they don't actually call any of their categories any%, so they can just avoid this whole debacle by having ACE as a completely seperate category just called "ACE")

6

u/dannyb21892 OoT twitch.tv/dannyb 1d ago

ACE is currently allowed in exactly one main category for OoT, just Any%. And it's not even used because it isn't the fastest way to do it. So zero categories on the main leaderboards have ACE. 

3

u/NepetaLast 2d ago

how likely is it to be RTA viable?

2

u/Icy-Tie1870 1d ago

Extremely unlikely. Most likely will never happen.

2

u/milkwithspaghetti 2d ago

Yeah I recently caught up to whatever is going on in oot and the any % in that is an awful watch now. No shade to whoever can execute whatever the heck is going on there but watching a glitchless playthrough of it now which is more enjoyable. I'm just a casual but I love the mario categories as well. They all have to showcase incredible gameplay.

15

u/azer67 2d ago edited 2d ago

There's more than just any% and any% glitchless in OoT. Categories like GSR, all dungeons, defeat ganon or MST are all very interesting too.

OoT has one super powerful glitch that is called SRM. The consequence is that all the categories exist under several forms: SRM allowed, SRM banned, glitchless. If you're interested in glitches that don't trivialize the game like SRM tends to do, I recommend checking out the no SRM variants which tend to be the more popular categories anyway.

The commenter is wrong by the way. ACE is only allowed in any% in OoT and nowhere else. SRM is not ACE, but to someone watching it might look similar. If you don't like ACE and SRM, I recommend only watching no SRM runs.

There's really absolutely nothing to worry about with ACE. ACE is simply too powerful no matter what to be allowed anywhere other than any%, and even in any% there will always be a category split. So expect the leaderboards to stay intact with a newly created fastest category soon if it becomes RTA-viable.

1

u/milkwithspaghetti 2d ago

Thanks for the heads up I will check those non SRM runs in that case.

17

u/ProjectRevolutionTPP 2d ago

Note this is a proof of concept via a hacked save to demonstrate the ACE mechanic itself in the code. They are looking at making it work without the hacked save.

8

u/bonecrusher1022 Paper Mario 2d ago

I doubt it will take too long. We did the same thing with Paper Mario and it only took ~3 days for it to be confirmed legitimately and the SM64 community is much bigger than ours is lol

5

u/pizzamosh 2d ago

Why is Mario green?

24

u/ydsaydsa 2d ago

L is real

6

u/Downtown-Push6535 2d ago

A neat visual indicator showing what the ACE changed (and what it can change)

5

u/Razbyte 2d ago

Now you can play as Luigi

3

u/qqwref 1d ago

Because it's not just a credit warp, it's *arbitrary code* execution. Mario could have been Hatsune Miku.

4

u/the_sir_z 1d ago

Imagine. With ACE we can beat the entire game in a matter of minutes with no stars at all!

Wait...

2

u/scrombillius 2d ago

Only a matter of time.

2

u/Meester_Tweester Mario Kart/Webgames 2d ago

I'm surprised this happened at all, I've heard it wouldn't be possible before

9

u/Joshduman 2d ago

The honest truth is that something like ACE- is very hard to disprove, and very likely to exist but never be found. I find it interesting that ACE has gradually moved from NES/SNES->N64 now I wonder if we'll see a similar move to Gamecube.

8

u/Stv13579 2d ago

IIRC they did find ACE in Mario Sunshine, so there has been work done on ACE for Gamecube games.

7

u/azer67 1d ago

Wind Waker also has ACE. Actually it even has 2 different ways to do it now lol

1

u/kralebalot1654 2d ago

Omg I've been wanting to see ACE in Mario 64 for a while now, shocking how it has taken so long given how the game's code and mechanics have been torn apart over and over. Credits warp might be the game's final frontier.

1

u/D_Winds 1d ago

My body is ready.

0

u/Mendoza2909 1d ago

I read this as ACE in Mariokart 64 and I was incredibly confused for a while

-3

u/spinsby 1d ago

That's cool but release the Epstein files

-75

u/Highfivesghost 2d ago

About time. This is what I love about AI

46

u/Murinshin 2d ago

Interestingly enough the underlying methodology was actually not discovered through AI according to the author

23

u/Icy-Tie1870 2d ago

people put their blood sweat and tears into making things work and then ai bros credit everything to AI when it did 1% of the work

6

u/xenonnsmb 2d ago

They've lost the ability to have conscious thought and assume everyone else has done the same, so logically all accomplishments must have been made by an llm

4

u/vulpinesuplex 2d ago

Strangely I've also seen the reverse, if anything looks slightly off then it's the fault of LLMs or genAI.

6

u/kdskdskinreddit 2d ago

even more interestingly, ACE was discovered by 3 people independently of each other in the same month (early-to-mid november)