News: 11 March 2016 - Forum Rules
Current Moderators - DarkSol, KingMike, MathOnNapkins, Azkadellia, Danke

Author Topic: Super Mario Land 2 (GB) level format  (Read 1185 times)

tigrou

  • Jr. Member
  • **
  • Posts: 22
    • View Profile
Super Mario Land 2 (GB) level format
« on: October 11, 2015, 10:10:01 am »
Does anyone have information about internal level format used in this game (which is similar to SML3)

I remember there was some information on that page  (in german) but unfortunately it seems to be gone :
http://magicstone.de/rhwiki/article/Super_Mario_Land_2

I checked with wayback machine but no luck.

All I found is this :
http://raccoonsam.byethost8.com/?ckattempt=1

(which we should probably put on data crystal until it's gone forever as well)

Drenn

  • Jr. Member
  • **
  • Posts: 94
    • View Profile
Re: Super Mario Land 2 (GB) level format
« Reply #1 on: October 11, 2015, 07:09:57 pm »
Moojelly is on google code, though I'm not sure if its entire source code is there: https://code.google.com/p/moojelly/

Although I have no first-hand experience, I believe its format is also similar to Wario Land 3 which I worked with. That game stores its maps as horizontal strips of tiles compressed with Run-Length Encoding.

I'm also 99% sure its level data is stored in SRAM while playing the game, so that's a decent place to poke around in with a debugger.
Zeldahacking.net: The hub for Zelda: Oracle of Ages and Seasons hacking. We have a discord!

tigrou

  • Jr. Member
  • **
  • Posts: 22
    • View Profile
Re: Super Mario Land 2 (GB) level format
« Reply #2 on: October 13, 2015, 03:08:14 am »
Quote
I'm also 99% sure its level data is stored in SRAM while playing the game, so that's a decent place to poke around in with a debugger.

Good idea. All blocks are dumped around C000-DFFF, as stated here : http://datacrystal.romhacking.net/wiki/Wario_Land:_Super_Mario_Land_3:RAM_map (that table was written by me some years ago btw  :))

I took a look at moojelly code, and it is really a mess (although some interesting stuff can be found)

I was expecting someone to give a copy of the german document, but maybe it is forever lost.

EDIT : Found something interesting on this topic. I wish i would have found this before starting hacking WL / SML3.
« Last Edit: November 02, 2015, 07:00:15 am by tigrou »