Super Mario Bros.

Discussion in 'Technical Discussion' started by LocalH, Jul 2, 2010.

  1. LocalH

    LocalH

    roxoring your soxors Tech Member
    3,277
    3
    18
    wouldn't you like to know
    Super Guitar Hero II
    Some of you may remember that I expressed interest in wanting to do something like this in the past, but was unable to due to lack of time. Well, <a href="http://devster.proboards.com/index.cgi?board=dev&action=display&thread=613" target="_blank">someone's done it</a>. It doesn't work on hardware ATM (Tiido did test it), but other than that it's fucking brilliant (world 36 seems to crash the game, as seen in the YouTube video).

    <!--id1--><object width="425" height="350"><param name="movie" value="http://www.youtube.com/v/Nz8s9xCYguA&"></param><param name="wmode" value="transparent"></param><embed src="http://www.youtube.com/v/Nz8s9xCYguA&" type="application/x-shockwave-flash" wmode="transparent" width="425" height="350"></embed></object><!--id2-->
     
  2. Lodmot

    Lodmot

    Member
    51
    0
    6
    USA
    Xtremely Sonic Engine
    That's amazing man. :D
    Lol, "World -1".
     
  3. ICEknight

    ICEknight

    Researcher Researcher
    Awesome.

    <!--quoteo--><div class='quotetop'>QUOTE </div><div class='quotemain'><!--quotec-->the amazing of this port in particular is the fact that I used an automatic conversor to "translate" from the 6502 asm (NES processor) into the M68K asm<!--QuoteEnd--></div><!--QuoteEEnd-->
    So it would be possible to directly port all the mapper-less NES games to the MD?
     
  4. amphobius

    amphobius

    doing more important things with my life Member
    2,120
    0
    16
    life
    <a href="http://forums.sonicretro.org/index.php?showuser=2445" target="_blank">Shouldn't the guy who made this be posting it? </a> ;)

    Either way, this is fucking incredible and should be worshipped.
     
  5. nineko

    nineko

    I am the Holy Cat Tech Member
    It's not surprising that world -1 crashes the game, after all, in the original game, all it did was to read garbage data from the ROM. I am willing to bet that all the regular levels work.
     
  6. LocalH

    LocalH

    roxoring your soxors Tech Member
    3,277
    3
    18
    wouldn't you like to know
    Super Guitar Hero II
    <!--quoteo(post=474528:date=Jul 2 2010, 01:10 PM:name=DalekSam)--><div class='quotetop'>QUOTE (DalekSam @ Jul 2 2010, 01:10 PM) <a href="index.php?act=findpost&pid=474528"><img src="public/style_images/retro/snapback.png"></a></div><div class='quotemain'><!--quotec--><a href="http://forums.sonicretro.org/index.php?showuser=2445" target="_blank">Shouldn't the guy who made this be posting it? </a> ;)

    Either way, this is fucking incredible and should be worshipped.<!--QuoteEnd--></div><!--QuoteEEnd-->
    I wasn't aware he was registered here, so I figured I'd post about it.
     
  7. ICEknight

    ICEknight

    Researcher Researcher
    That was such an odd choice for controls, by the way.
     
  8. LocalH

    LocalH

    roxoring your soxors Tech Member
    3,277
    3
    18
    wouldn't you like to know
    Super Guitar Hero II
    I know. Intuitive in regards to button labeling, non-intuitive in terms of actual play. I was able to adjust fairly easily, however.
     
  9. MarkeyJester

    MarkeyJester

    ♡ ! Resident Jester
    Oh hell yes, very impressive, now all we need is a (good) SNES version of Sonic The Hedgehog and we're set =P

    How the hell long did this take to make man?!?
     
  10. NeKit

    NeKit

    Member
    57
    0
    0
    Russia
    Sonic SCANF
    Wait, didn't Super 1998 Mario 2 and <a href="http://info.sonicretro.org/Sonic_Jam_6" target="_blank">Sonic Jam 6</a> already do it, except Sonic instead of Mario sprite?
    Though sorry, didn't notice about translator.
     
  11. LocalH

    LocalH

    roxoring your soxors Tech Member
    3,277
    3
    18
    wouldn't you like to know
    Super Guitar Hero II
    Yeah, except those "ports" suck BIG PENIS. Play control is shitty, collision detection is horrible, and not all secrets are present. This is a true port, made from a disassembly of the original NES code. So far, the only thing I've seen that doesn't work properly is world 36 (I.e., the minus world), and that makes complete sense, since it was a bug in the original that relied on reading out-of-bounds data (the FDS version of SMB1 also behaves differently, giving you -1, -2, and -3, which when beaten acts like 8-4 was beaten and returns to the title screen with the world select active). For world 36 to work on the Genesis port, it would have to be special-cased.
     
  12. Sik

    Sik

    Sik is pronounced as "seek", not as "sick". Tech Member
    6,719
    0
    0
    being an asshole =P
    <!--quoteo(post=474549:date=Jul 2 2010, 03:30 PM:name=ICEknight)--><div class='quotetop'>QUOTE (ICEknight @ Jul 2 2010, 03:30 PM) <a href="index.php?act=findpost&pid=474549"><img src="public/style_images/retro/snapback.png"></a></div><div class='quotemain'><!--quotec-->That was such an odd choice for controls, by the way.<!--QuoteEnd--></div><!--QuoteEEnd-->Yeah, but it isn't the first person who thought that NES A and B should map to Mega Drive A and B, I know somebody else who did that very same thing =| Honestly, I'd make the title screen use the D-pad instead of C (so he can get rid of Select) and map A and C to the same button.
     
  13. LocalH

    LocalH

    roxoring your soxors Tech Member
    3,277
    3
    18
    wouldn't you like to know
    Super Guitar Hero II
    Noticed a few more small issues - as everyone has probably already noticed, the palette is way off, black is too gray and reds are a little purplish. Also, due to the way it seems he's assigning each 8x8 NES sprite to a single Genesis sprite, you run into the sprite limit quite a bit (see 6-4 near the powerup block, and also the later X-4 levels where Bowser throws hammers - if you shoot fireballs at him with lots of hammers on-screen, the fireballs are invisible, but still there - they do damage as expected).
     
  14. Sik

    Sik

    Sik is pronounced as "seek", not as "sick". Tech Member
    6,719
    0
    0
    being an asshole =P
    Except that the sprite limits for the NES are 8 sprites per line, 64 overall, if I recall correctly... so any sprite limit issue on the MD port should also appear on the NES. I think the issue is somewhere else.
     
  15. LocalH

    LocalH

    roxoring your soxors Tech Member
    3,277
    3
    18
    wouldn't you like to know
    Super Guitar Hero II
    <!--quoteo(post=474602:date=Jul 2 2010, 04:57 PM:name=Sik)--><div class='quotetop'>QUOTE (Sik @ Jul 2 2010, 04:57 PM) <a href="index.php?act=findpost&pid=474602"><img src="public/style_images/retro/snapback.png"></a></div><div class='quotemain'><!--quotec-->Except that the sprite limits for the NES are 8 sprites per line, 64 overall, if I recall correctly... so any sprite limit issue on the MD port should also appear on the NES. I think the issue is somewhere else.<!--QuoteEnd--></div><!--QuoteEEnd-->
    NES has no overall sprite limit for the entire screen that I know of, MD does. That's where the issue comes into play, I believe. Let me do a bit of research and I'll get back to you on this.

    Edit: Hm. I was wrong. NES OAM can hold data for up to 64 sprites. H32 mode can support 64 sprites. Have no idea if SMB reloads the OAM data midframe, most likely not (AFAIK, the only code that runs at a specific mid-frame point is the sprite 0 hit below the status bar). AFAIK, he's more or less emulating the PPU behavior, so I can't imagine that the status bar is taking up any sprites (except for the aforementioned sprite 0 hit).
     
  16. Overlord

    Overlord

    Aros gartref, diogelu'r GIG, achub bywydau Moderator
    17,777
    124
    43
    Berkshire, England
    Learning Cymraeg
    The Mega Drive can do Mario music much better than that, as some of the SMPS guys here have shown.


    Other than that, very impressive! Certainly the best copy of Mario I've seen on the Mega Drive.
     
  17. stormislandgal

    stormislandgal

    It's not a phase! Tech Member
    4,526
    8
    18
    Married life <3
    While it may not be pretty, it's probably the NES's soundwave format being fed directly through the Genesis' sound system. If I read the topic correctly, this is pretty much just an NES rom packaged in with an on-the-fly converter. I could be wrong though and probably am since I didn't pay special attention to the technical details.
     
  18. LocalH

    LocalH

    roxoring your soxors Tech Member
    3,277
    3
    18
    wouldn't you like to know
    Super Guitar Hero II
    <!--quoteo(post=474719:date=Jul 2 2010, 09:17 PM:name=Katelynn)--><div class='quotetop'>QUOTE (Katelynn @ Jul 2 2010, 09:17 PM) <a href="index.php?act=findpost&pid=474719"><img src="public/style_images/retro/snapback.png"></a></div><div class='quotemain'><!--quotec-->While it may not be pretty, it's probably the NES's soundwave format being fed directly through the Genesis' sound system. If I read the topic correctly, this is pretty much just an NES rom packaged in with an on-the-fly converter. I could be wrong though and probably am since I didn't pay special attention to the technical details.<!--QuoteEnd--></div><!--QuoteEEnd-->
    Well, you're not 100% exactly right, but you're really close. The code is translated to 68k (mostly automatic, but a few small things had to be done manually), he does emulate the NES PPU and I/O, but he only simulates the APU interface, as sort of a "bridge" to his custom music engine (which uses data converted from the original NES data). Otherwise, the game data is stored exactly as found in the NES ROM. I'm sure his sound engine could be replaced with another one, or better instruments could be used with the existing data (it seems that rather than exactly simulating the 5 channels of the NES, he put the music on the 2612 and the sound effects on the PSG, because it doesn't seem like music notes drop out when sound effects hit, as would happen on the NES).
     
  19. LordOfSquad

    LordOfSquad

    tails is still a girl Member
    4,806
    7
    18
    Winnipeg, MB
    making cool music no one gives a shit about
    So, if this is just ran through a converter, would it be possible to port other NES games too?
     
  20. Sik

    Sik

    Sik is pronounced as "seek", not as "sick". Tech Member
    6,719
    0
    0
    being an asshole =P
    He was unable to emulate the sound hardware properly which is why he recreated the sound effects. Also, if I recall correctly, he ran the 6502 disassembly through a 6502-to-68k converter, so it isn't done on-the-fly.