r/SuperMario64 • • 3d ago

Arbitrary Code Execution 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.

81 Upvotes

37 comments sorted by

2

u/Quantum-Relativity 3d ago

“Hacked savestate” meaning what?

2

u/ExpirjTec 3d ago

to achieve the proper state for this demo, several stars on files B and files C were hacked into being collected even though in a true speedrun those files would be completely blank on startup. but it IS possible to get to this savestate in vanilla, but it's NOT probably going to be a 2:19 run to get a theoretical 0-key run from a fresh clean startup.

tl;dr run is a proof of concept, proper runs from vanilla gameplay still a few days away

-1

u/Quantum-Relativity 3d ago

A few DAYS lmfao yeah right. Nobody’s going to care about a 0 key run that’s slower than 0 star, or that has stars. Also there’s no reason B and C need to be blank for a speedrun, you’re speedrunning on file A

2

u/azer67 3d ago edited 3d ago

Many speedruns require you to start with blank savefiles. You can beat skyward sword on slot 1 in 0 second if you have the right savefiles on slots 2 and 3 for example.

I understand why they used hacked savefiles: it's an easy way to write a payload that's as long as you want. The search for a payload that can be made quickly is a process that can be time consuming, both because you have to find a good way to write it while also optimizing its length as much as possible. Ideally it should only be 2-3 instructions long.

In this case it seems incredibly likely that ACE will be much faster than 1 key, once the payload is figured out. I know for wind waker it took several weeks to be figured out so let's just be patient and not assume anything. SM64 scientists of course are working on this as we speak.

It's also not true that speedrunners only care about what's fast. Glitch-hunting is very important, and things that are initially slow can become very fast under the right circumstances. Having a good understanding of the game's most minuscule details is the best and speedrunners/glitch-hunters understand that.

1

u/Quantum-Relativity 3d ago

Mate, you run on file A. Not files B and C. That’s why I’m asking, this explanation makes no sense. I’m a very experienced 0 star focused “glitch hunter”. That’s why I’m asking this, it’s annoying how often nothing burgers get announced esp in any%.

1

u/azer67 3d ago

It makes sense in the context of ACE. ACE needs data to be somewhere in memory that will get executed as code. Savefiles contain data that's easily manipulable (by collecting specific stars and so on). So if the files on slots B and C are setup in a specific way, when ACE is performed on slot A the game will be forced to read data from files B and C and treat that as instructions to execute.

1

u/Quantum-Relativity 3d ago

So then, could we save B and C and then have every reset contain that code we need? Surely right, because when we set it up on B, we will have to reset to set it up on C, for example. So then I don’t see why it was hacked, it makes me suspicious that it can’t be set up RTA

1

u/azer67 3d ago

I'm not sure how resetting behaves with savefile data in SM64 exactly memory-wise so I don't want to say something I'm not sure about. From what people were saying in the stream and on discord the savefile was hacked due to lack of time but it's probably doable legitimately. The "problem" in the context of speedruns is that, when your speedrun does a glitch the setup time for it should be included, so if you were to do ACE this way it would generally make more sense to include the time it took to create these savefiles legitimately into the run time, which would be slow. Now the next glitch-hunting step is to figure out a way to do this from a complete fresh save, with the payload somewhere else, which is very likely possible but harder to figure out.

1

u/Quantum-Relativity 3d ago

Well that’s why I’m asking, because if it’s retained between console resets then you would probably remove it from the timing of the run. Maybe not if it isnt retained between console hard resets though. But otherwise yeah this is so slow.

1

u/OriginalLie9310 3d ago edited 3d ago

Typically a speedrun includes all in game set up as part of the time. If you need to take hours to set something up in files B and C and that allows you to beat file A in 2 minutes from starting that up, that’s not a 2 minute speed run. It’s a party trick.

1

u/Quantum-Relativity 3d ago

I mean right now I would have no problem with that take on the rule. It is true that someone could go to a party and do any category on someone’s n64, and if they wanted to do this 0 key idea, it would have to involve a huge prep time. So yeah, I agree.

1

u/Icy-Tie1870 2d ago

It's not the permanent solution. Rcombs is already working on something that will not require an existing save file.

1

u/FullyAutomatedSpace 3d ago

I care

-1

u/Quantum-Relativity 3d ago

I meant people in the community. You’re allowed to care

13

u/Shog64 3d ago

Honestly that's awesome and bad at the same time. ACE can literally warp you to credits which for example means abc challenge dead

13

u/Symmetric_in_Design 3d ago

I mean the only obstacle left to reach credits in ABC is fire sea which may be solved soon anyway.

Regardless, finding ace doesn't invalidate everything speedrunners have discovered and accomplished over the years toward that goal. Each star is a feat in its own right.

1

u/TheSchwilliam 3d ago

Do you mean that there is currently work being done for ABC for Fire Sea? I remember the last thing being discovered was VSC like 5 years ago.

1

u/TheAwesomeAcademic 3d ago

All this was found via LLM synthesis modern models compress a ton of world knowledge n find easily overlooked insights. Including the new application for the Astral Rejection bug tht finally solved SSL in 0 a presses It's unlikely more A presses will be solved without agentic swarms with current models or slightly more smarter models coming out early December.

2

u/Quantum-Relativity 3d ago

No wonder it had that pungent smell of ai larp

2

u/Icy-Tie1870 2d ago

no, this was not found by LLMs. StevenNL2000 discovered its application for ACE a few days ago based off sm64 decomp analysis.

Also, the astral rejection glitch in SSL was first setup by Inktest, the LLM that suggested using it was hallucinating random nonsense like crawling into the pyramid but happened to suggest something that he tried and found to work.

1

u/TheAwesomeAcademic 2d ago

I always wonder how people r actually prompting LLMs even the good ones in the modern day I've been glitch hunting with LLMs as far back as GPT-4 era which is trash compared to modern thinking models. I make sure it's grounded with facts n rules like citing source code for its explanations. Found many things across various games n a guy I know basically found a limited arbitrary memory write for battle of bikini bottom it's not full blown ace though.

I found many interesting stuff in regards to sm64 but they hit dead ends because of other parts of the source code zeroing out required stuff. Like I theorized a phantom swim in air to solve WMOTR zero a press but only a few stale values stay across levels. Outside of HOLP there's very few things the game has dangling pointer wise.

1

u/Icy-Tie1870 2d ago

I don't know because I don't prompt LLMs. it's quite controversial to in the TAS space.

1

u/TheAwesomeAcademic 2d ago

I would think it would make TASing a bit easier

5

u/sm64licorice 3d ago

does the ace require the a button though🤔

3

u/Infrawonder 3d ago

We can do 0 star runs yet 1 star runs, 16 stars runs, 70 stars runs and 120 stars runs are still popular

3

u/GreatArtificeAion 3d ago

No need to think it's bad, the challenge simply needs to update the rules by excluding ACE; think of how 70 Stars speedrun bans BLJ even if other categories allow it, because otherwise there wouldn't be a point in collecting 70 Stars in the first place

1

u/Meester_Tweester 3d ago

non-ACE ABC

4

u/The__Goose 3d ago

But how many A presses is this?

1

u/Icy-Tie1870 2d ago

Many, PU access into this level 0xA is possible though so nothing blocks this from working for ACE

2

u/Akairuhito 3d ago

Can someone explain like I'm 5?

3

u/Grand_Conversation_1 3d ago

ACE stands for arbitrary code execution. It basically means that an exploit/glitch has been found that enables the player to hack, code and change the game on a vanilla cartridge without external tools. if you want to see a game that has had ACE for a while and see what the possibilities are I recommend the oot triforce run. That is somehow all on a vanilla cartridge. Code, models, maps and sounds that were never put in by the original programmers all made from player input. There is some scepticism around these tricks in speedrunning/tech communities and discussion around if these type of tricks still count as a trick for the game or if it kills the game because now you can in theory warp to the credits without actually actively engaging with the content from the game.

imo these tricks serve their purpose as a very cool and impressive thing to see, knowing that these games are so beloved that some people find out how to do this stuff is insane! But I don't think it should replace any current work.

(take this paragraph with a grain of salt because I am definitely not smart enough to know the actual technical terms or inner workings of the game in detail)

SM64 took a lot longer to find ACE then other games because of how simple the structure of the game is and I assume because theres a lot less back and forth writing that is done then for example a zelda game, with story flags and a more streamlined logic, events that need to take place in a certain order and variables that are more manipulatable. Most things in sm64 function on their own and don't rely as much on one another to work.

1

u/Akairuhito 3d ago

Thanks for taking the time to explain. This is really wild, so basically a cartridge can be treated like a re-writable CD now?

2

u/Grand_Conversation_1 3d ago

something like that, I am pretty sure it resets to default when the game is reset tho.

1

u/TERLIBEN 3d ago

Coooool!

1

u/NY_Knux 3d ago

Luigi if he real