Author Topic: Mode 7 research  (Read 2805 times)

Mauron

  • Guru of Reason
  • Errare Explorer (+1500)
  • *
  • Posts: 1539
  • Nu-chan
    • View Profile
    • Maurtopia
Mode 7 research
« on: November 25, 2019, 05:17:01 pm »
Current Notes

So far I've determined 0-1F are unique scenes, and 80 and 20 are options flags. 40 is likely an option as well, but I haven't seen it used so far.

A packet at C31313 is decompressed into RAM at 7E3000, which contains most of the mode 7 code and game credits.

Mauron

  • Guru of Reason
  • Errare Explorer (+1500)
  • *
  • Posts: 1539
  • Nu-chan
    • View Profile
    • Maurtopia
Re: Mode 7 research
« Reply #1 on: November 27, 2019, 03:17:52 am »
0-F are unique scenes. 10 is not cleared before the jump, but there aren't pointers to 10-1f, so things will crash.

I've seen 40 set in a few mode 7 sequences on the title screen, but haven't gotten that far in the code yet.

Zakyrus

  • Architect of Kajar
  • Dimension Crosser (+1000)
  • *
  • Posts: 1247
    • View Profile
Re: Mode 7 research
« Reply #2 on: November 30, 2019, 09:59:48 pm »
Is the possibility that a "Credits Editor" as an early working plugin a reality?

~Z

Mauron

  • Guru of Reason
  • Errare Explorer (+1500)
  • *
  • Posts: 1539
  • Nu-chan
    • View Profile
    • Maurtopia
Re: Mode 7 research
« Reply #3 on: November 30, 2019, 10:35:50 pm »
Most likely yes. Data storage for the credits is fairly straight forward, but there are few parts that need to be clarified first.

Zakyrus

  • Architect of Kajar
  • Dimension Crosser (+1000)
  • *
  • Posts: 1247
    • View Profile
Re: Mode 7 research
« Reply #4 on: November 30, 2019, 11:12:44 pm »
Most likely yes. Data storage for the credits is fairly straight forward, but there are few parts that need to be clarified first.

Most likely {delay XX} seconds, line break and others (OR some kind of simulairity variant of the EVENT Commands are used). ...?

~Z

Mauron

  • Guru of Reason
  • Errare Explorer (+1500)
  • *
  • Posts: 1539
  • Nu-chan
    • View Profile
    • Maurtopia
Re: Mode 7 research
« Reply #5 on: November 30, 2019, 11:23:36 pm »
A lot of Mode 7 stuff is in a single compressed packet, including credits. I'm mapping out as much of the packet as I can before I start playing with it.

Mauron

  • Guru of Reason
  • Errare Explorer (+1500)
  • *
  • Posts: 1539
  • Nu-chan
    • View Profile
    • Maurtopia
Re: Mode 7 research
« Reply #6 on: December 09, 2019, 02:46:50 pm »
Credit data: Mostly ASCII, somewhat redundant. Three control codes, plus special routines for 0x20 (space character).

Mode 7 event command:
00-7F: Opens Mode 7 packet at 0x031313
80-8F: Wormhole scenes. 80, 81, 82, and 83 are definitely unique. 84-8F are duplicates of 83.
90-A3: Special purpose commands. Partial list in Temporal Flux. A0-A3 trigger the Color Crash event command.
A4-FF: Invalid, will likely crash.

Mode 7 Scenes (from packet):
80: Unknown Flag, can't be set normally. If set in the event command, will open a wormhole instead.
40: Unknown Flag, mostly seen in load screen events. Definitely seems responsible for the Jet Bike race's demo mode.
20: Unknown Flag.
10: Unused flag. Setting will cause the command to crash.

00: Jet Bike Race with boosts.
...
09: Jet Bike Race with rotation.
0A: Fireworks.
0B: Fireworks. Specific settings change based on which one is loaded.
0C: Ending Credits
0D: Ending Credits (fast)
0E: Fireworks, invalid. Will crash.
0F: Fireworks, invalid. Will crash.

I haven't confirmed 1-8 yet, but at this point I'm assuming Zakyrus's notes are accurate, except for a value of 00.

Edit: Found a couple more details.
« Last Edit: December 10, 2019, 12:11:11 am by Mauron »

Zakyrus

  • Architect of Kajar
  • Dimension Crosser (+1000)
  • *
  • Posts: 1247
    • View Profile
Re: Mode 7 research
« Reply #7 on: December 12, 2019, 11:44:08 am »
This is excellent news, great work Mauron!

~Z

Zinx

  • Iokan (+1)
  • *
  • Posts: 4
    • View Profile
Re: Mode 7 research
« Reply #8 on: February 10, 2020, 10:13:38 am »
Is there any info on how the DS version did "Mode 7"?.
It's not using the 3D engine of the DS for that but the 2D engine instead which is curious.
Also I noticed that they messed it up a little at the bike race comapred to the SNES version.
« Last Edit: February 10, 2020, 10:15:55 am by Zinx »

Mauron

  • Guru of Reason
  • Errare Explorer (+1500)
  • *
  • Posts: 1539
  • Nu-chan
    • View Profile
    • Maurtopia
Re: Mode 7 research
« Reply #9 on: February 10, 2020, 01:17:08 pm »
I'm not sure exactly, but some of the DS version is emulating the original SNES code. The data format in a few areas is identical.