TASVideos

Tool-assisted game movies
When human skills are just not enough

Submission #2802: marzojr's Genesis Sonic 3 & Knuckles "newgame+" in 31:16.15

Console: Sega Genesis
Game name: Sonic 3 & Knuckles
Game version: any
ROM filename: Sonic and Knuckles & Sonic 3 (W) [!].bin
Branch: newgame+
Emulator: (unknown)
Movie length: 31:16.15
FrameCount: 112569
Re-record count: 23262
Author's real name: Marzo Junior
Author's nickname: marzojr
Submitter: marzojr
Submitted at: 2010-08-14 20:55:17
Text last edited at: 2012-03-28 15:54:33
Text last edited by: Nach
Download: Download (14491 bytes)
Status: published
Click to view the actual publication
Submission instructions
Discuss this submission (also rating / voting)
List all submissions by this submitter
List pages on this site that refer to this submission
View submission text history
Back to the submission list
Author's comments and explanations:

(Link to video)

Starting from SRAM giving all chaos and super emeralds, and with his game-wrecking sidekick tagging along, Sonic destroys the game utterly, shattering all speed records.

This movie starts from a savestate. Specifically, it is either this savestate (Gens 11a) or this savestate (Gens 11b).

WARNING: The awesomeness of Hyper Sonic may damage your eyes or trigger seizures in susceptible people.

Game objectives

  • Emulator used: Gens 11b (but synchronizes perfectly on Gens 11a) + S3KCamhack + SolidityViewer + (partial)HitboxDisplay + LUA HUD for Genesis Sonic games
  • Ignores delays caused by bonus effects
  • Aims for fastest (primarily in-game) time
  • Takes Damage to save time
  • Abuses death
  • Abuses programming errors
  • Counts time spent dying
  • One player controls two characters
  • Starts will all Chaos and Super emeralds

Generating the savestate anchor

First of all, lets start by linking in the verification movie. This movie plays through the game normally (a good deal of it in real time), gathering all Chaos and Super emeralds and finishing the game. The latter is required so that the present movie can begin from Angel Island zone. There is an innate arbitrariness on where exactly to generate the savestate anchor for a movie; depending on where exactly it is done, you can have a more favorable random number generator, for example.

To counteract this, I developed a procedure for doing such which eliminates this arbitrariness and allows consistent generation of the savestate anchor. It has several other advantages too, which I will explain after the generation procedure:

  1. Play the verification movie until the end; make sure to go until after the last input and stop the movie. This will generate SRAM. Note: This movie, particularly the first half of it, is terribly unoptimized since I played most of it in real time.
  2. Make sure that you do a soft reset and go to the starting menu to make sure that the SRAM has been properly generated (there should be a save with all emeralds).
  3. Close Gens so that SRAM is written to disk. Then go into the SRAM directory and make a backup copy of the S3&K SRAM. We will need this shortly.
  4. Reopen Gens and the S3&K ROM, and make sure to PAUSE the emulation.
  5. Start recording a new movie; do NOT check "Record from now and make a savestate". The movie name is irrelevant; if you paid attention to the above step, emulation will be paused.
  6. Make a savestate.
  7. Advance one frame.
  8. Load the savestate you just made. These last 3 steps ensure that the movie has an empty input list.
  9. Stop the movie.
  10. Go to the SRAM directory and replace the S3&K SRAM with the 'dirty' backup copy you made in step 3.
  11. Open the movie you created in step 5. Make sure that "Clear SRAM" is UNCHECKED, and that emulation is paused.
  12. Start recording a new movie; make sure that "Record from now and make a savestate" is CHECKED. The movie name is irrelevant.
  13. Gens will prompt for the state file name; select one you will remember: this is the anchor savestate.

Applying this procedure yields the savestate anchors linked to above: for Gens 11a, for Gens 11b. Warning: Gens 11b will complain about the Gens 11a savestate, but it works; Gens 11a will crash with the Gens 11b savestate.

Advantages of the method

  1. The generated savestate anchors are all consistent. There is some slight variation, probably due to the PSG, but it does not affect synchronization of the movie.
  2. By hex-editing the savestate dependency away (change byte 0x16 of the movie from 0x5f to 0x1f) and using the "dirty" SRAM from step 3, the movie will still synchronize -- if you make sure that "Clear SRAM" is UNCHECKED when you load the movie.

Comments

Due to the use of an anchor savestate, this movie should probably go into the Starts from a saved state or SRAM section if it gets published.

If there is a glitch in the game which makes it faster, I have used it; no silly restrictions of any kind. Several levels are identical to those of the latest S3&K run; some of these (virtually all improvements in the latest installment of that run) I actually discovered while I was working on this submission.

You will notice that Tails is almost always right there when I need him; that was very hard to pull off: Hyper Sonic is so fast that Tails can barely keep up. Still, I am happy about the results.

Time table

Level Time
Angel Island 1 0:35::33
Angel Island 2 1:06::09
Hydrocity 1 0:32::26
Hydrocity 2 pre-death 0:05::21
Hydrocity 2 post-death 0:25::24
Marble Garden 1 0:25::53
Marble Garden 2 0:35::36
Carnival Night 1 0:34::50
Carnival Night 2 0:40::24
IceCap 1 0:59::57
IceCap 2 0:00::00
Launch Base 1 0:32::18
Launch Base 2 0:26::58
Launch Base 2 cutscene 0:18::06
Mushroom Hill 1 0:36::15
Mushroom Hill 2 0:30::50
Flying Battery 1 0:56::16
Flying Battery 2 1:11::21
Sandopolis 1 1:27::51
Sandopolis 2 0:48::52
Lava Reef 1 0:52::41
Lava Reef 2 0:21::42
Hidden Palace 0:18::26
Sky Sanctuary 0:52::25
Death Egg 1 0:53::16
Death Egg 2 1:59::23
Doomsday 1:34::30[1]
Total 19:42::43[2]

The table shows the in-game timer values. The value after the final colon pair indicates the in-game frame counter, and is restricted to the 0-59 range. It is updated every frame (except during lag frames), and increments the in-game second when resetting to zero.

[1] The Doomsday timer stops at this value; the last hit (i.e., the point where the movie ends) is at time 1:30::36. Moreover, the last time visible on-screen is 1:33::50.

[2] This is total in-game time. Which means that there are over 11 minutes (!) of level loading times, score tallies and cutscenes in the movie.

Stage by stage comments

Hydrocity 1

The extended zip on this level causes Sonic to be far ahead of the camera; this causes the game to delete the walk-on-water object. By avoiding the creation of new objects, the mini-boss gets loaded in that same slot. On transition to Hydrocity 2 (when the score tally starts), Hydrocity 2 deletes the mini-boss, replacing it again with Hydrocity 2's walk-on-water object. Since the last function of the mini-boss was to unlock the camera, it stays locked and causes Sonic to die much faster than in the latest S3&K run. I literally stumbled into this trick, and HHS later explained it; it seems impossible to replicate it with regular Sonic.

Hydrocity 2, Marble Garden 2, Flying Battery 1, Flying Battery 2, Lava Reef 2

All those levels are identical to the latest S3&K run. I had actually found those improvements while working on the present run and back-ported those improvements.

Carnival Night 1, Sky Sanctuary, final Death Egg 2 boss

The only levels with wholesale lifting of input from the latest S3&K run. Credit goes to Nitsuja for them.

Launch Base 2

A few minutes after the submission had been accepted for publication, Mr_Sweed sent me a video showing an improvement of 10 seconds for Launch Base 2 over the submission, and about 32 seconds faster than the latest S3&K run; that improvement turned out to be suboptimal by about 5 seconds. Splicing the improvement made the following cutscene longer by 15 frames, and nothing I did made any difference. The resulting luck differences also ended up costing me 2 frames until the last hit in Doomsday, although the level timer still stops at the same value.

Sandopolis 1

Annoying timed objects force me to go topside. Without losing time, only Hyper Sonic can get there, and only with the help of Tails. The way I do it, I actually gain time from it.

Hidden Palace

This features a 44-improvement on the fight versus Knuckles. I only had the idea for this improvement after the latest S3&K run was already published, sadly. I managed to land 15 hits on Robotnik in this level too, and needed every last one to get Tails in the right spot.

Death Egg 1

This level features a slightly different route than the 100% S3&K Sonic run; this is because I gain enough frames from Tails and improved precision that there is a light bridge closing the 100% S3&K Sonic run route. If I wait for the bridge to disappear, I lose almost everything I gained this far; the new route allows me to keep most of it.

Doomsday

It is actually possible to collect all rings in this level. This ends up being 22 frames slower, because the level is not a fixed-length autoscroller.

Other comments

Thanks goes to Nitsuja and Upthorn for their Sonic runs, Orkal for his glitch videos, HHS for his explanation of the Hydrocity transition glitch and you for watching. Also, thanks to Mr_Sweed for the Launch Base 2 improvement.

Suggested screenshot: frame 2064.


Flygon: Added YouTube module, note that when MisterEpic's HD encode is made, the module should probably be replaced.

Truncated: Submission file has been replaced with an improved version, 13 frames faster. Marzojr will update the submission text to describe the changes.

marzojr: Updated text with the new times

OmnipotentEntity: A little update, Mister Epic had some issues with encoding this in HD, so I'm doing a little experiment, :) I'll be handling publication of this movie if it is accepted.

Nach: I'm accepting this with the same remarks as #2812: MUGG's GB Super Mario Land "hard mode" in 12:14.77. Publishers please remember to mark the game as 'impure', and copy the note from [1607] GB Super Mario Land (World v1.1) "hard mode" by MUGG in 12:14.77.

OmnipotentEntity: Setting to publication underway.

FractalFusion: Setting to delayed as the author is made aware of an improvement in one of the stages.

Truncated: Submission file has again been replaced with an updated version. This one is just above 15 seconds faster, thanks to the suggestion of a yet unnamed contributor. marzojr to spill the beans.

marzojr: Updated text explaining new improvement

adelikat: Accepting for publication.

Nahoc: replaced removed YT module by a new one.


Similar submissions (by title and categories where applicable):