News for hackers. Stuff that matters.
Re:SNES – Super Mario World Widescreen by crazygringo on Friday June 18, 2021 @05:48PM (#27555373)
This is nuts. I didn't even know this would be possible.

I can't remember -- does Super Mario World have any "single-room" fixed-width gameplay areas? I mean, it must, right?

I'm wondering how they addressed those, since making any room wider would change gameplay. I also can't help but wonder if being able to see a little bit further to the right would ever make anything easier? Or is the distance forward (to the right) fixed to the same value, so you're mostly just getting more visibility into where you've already passed?

The video and GitHub repo don't seem to explain it. But I'm now super curious...

Re:SNES – Super Mario World Widescreen by stochaztic on Friday June 18, 2021 @05:57PM (#27555460)
Look through the past couple hundred or so of Vitor's tweets; he's been one-by-one reprogramming all the troublesome rooms and screens for a couple weeks.

https://twitter.com/HackerVilela/

Re:SNES – Super Mario World Widescreen by 29athrowaway on Friday June 18, 2021 @10:10PM (#27557147)
That guy is certifiably insane. He patched Contra III, Gradius III, Super Mario World, Super R-Type and Race Drivin' to use the SA-1 chip. Which means now those games have a higher/consistent framerate. Kudos to that guy.

Hopefully Nintendo learns to appreciate these contributions and doesn't try to seek legal action against him.

Re:SNES – Super Mario World Widescreen by gogopuppygogo on Saturday June 19, 2021 @02:53AM (#27558385)
If history is any indicator Nintendo will release these improvements on future virtual consoles as paid upgrades. They’ll credit the open source contributions they didn’t have to pay for to make this possible.
Re:SNES – Super Mario World Widescreen by bennysomething on Saturday June 19, 2021 @03:31AM (#27558565)
Genuine question: when did this happen before?
Re:SNES – Super Mario World Widescreen by hyperhopper on Saturday June 19, 2021 @04:12AM (#27558775)
I recall a few times, googling found me one result quickly

https://www.eurogamer.net/articles/2017-01-18-did-nintendo-d...

As far as I know they have repeatedly packaged open source emulation code in their work without notice. Guessing it hasn't become a big deal since nobody in the scene wants to anger Nintendo

Re:SNES – Super Mario World Widescreen by Wowfunhappy on Saturday June 19, 2021 @08:24AM (#27559869)
The article you linked is about something quite different—Nintendo used a straight dump of their game from the internet. I'm guessing some engineer who didn't know about iNES headers thought they'd save time using the internet versus going through Nintendo's archive.

Newer VC releases haven’t had these headers, by the way. I guess if you were being conspiratorial you could presume Nintendo deleted the headers specifically, but we know it’s not like Nintendo doesn’t save these files. (See things like Star Fox 2; the complete version on the SNES classic was newer than any of the leaked versions.)

I’m really not aware of a time Nintendo has ever used code from a rom hack or emulator.

Re:SNES – Super Mario World Widescreen by ChickeNES on Sunday June 20, 2021 @12:31AM (#27567080)
This has come up before and I recommend reading this comment: https://news.ycombinator.com/item?id=22756156
Re:SNES – Super Mario World Widescreen by Wowfunhappy on Sunday June 20, 2021 @04:25AM (#27568204)
Oh! Yes, thank you, that does make more sense!
Re:SNES – Super Mario World Widescreen by wjnc on Saturday June 19, 2021 @05:35AM (#27559138)
Do you find this troublesome? I’d personally think this hits a sweet spot but am curious.
Re:SNES – Super Mario World Widescreen by dwrodri on Saturday June 19, 2021 @06:20AM (#27559324)
From a Nintendo fan’s PoV, this probably one of the highest possible honors. The bigger concern would be never being made aware that it ever happened.
Re:SNES – Super Mario World Widescreen by easytiger on Friday June 18, 2021 @11:38PM (#27557534)
If we take everything since Masters of Doom hence, it's obvious they don't like being offered help and don't need it either.
Re:SNES – Super Mario World Widescreen by modeless on Friday June 18, 2021 @07:28PM (#27556177)
More than that; every level will be affected by this. It affects the timing of enemy and platform spawning which means the enemies and moving platforms will be in a different position when the player typically reaches them. In many cases that timing is an intentional part of the level design.
Re:SNES – Super Mario World Widescreen by derefr on Friday June 18, 2021 @08:19PM (#27556578)
I don't expect that the developer did anything that would require players experienced with SMW to change their memorized routing. (If I were them, I'd be using 100%-playthrough TAS .smv files from the unmodified SMW as conformance tests, to ensure none of my changes "desynced" existing strategies for the game.)

What might be different, on the other hand, are subtle things about un-loading. I bet an .smv of the SMW credits warp wouldn't work on this patched ROM. (Not least because, IIRC, this patched ROM is based on an older set of SMW patches by the same author, that — among other features — has a sprite-limit removal patch, that improves the game's OAM memory-management algorithm.)

-----

But also, IIRC, the enemy/platform spawning (really, the loading seam) in SMW occurs far-enough outside of the viewport normally, that it might still be outside of (or just at the edge of) the expanded 16:9 viewport.

Recall that in SMW, you can explicitly scroll the viewport in the game (by pressing L/R). The game engine was necessarily designed around the assumption that, at any time you're in a free-camera scene (most of the time when you're not in an autoscroll area or small room), your viewport has an arbitrary horizontal scroll offset within some defined range. For gameplay to be deterministic/testable under such an assumption, the loading seam must be programmed to occur outside of that manually-scrollable region.

I'm guessing that the basic "insight" of this widescreen patch, is that in most areas of the game, the screen can be made exactly as wide as the entirety of the coverage-area of the camera's player-controlled scroll region, with no effects on gameplay; because the game was already designed to work "the same" within any sub-region of that area, and "all of it" happens to be such a sub-region. Presumably, this patch makes the screen exactly that wide, and then removes your ability to scroll the camera any further using L/R. (Without that last bit, you'd be very likely able to see pop-in by scrolling the screen even slightly.)

This would also mean that any area that was designed for a fixed or restricted camera (e.g. autoscroll areas; boss rooms; etc), may have been optimized by the original level designers under that assumption, and so "packed" with stuff that might load at the wrong time, or in the wrong order, if the loading seam were expanded (as it likely would have to be to make these areas look good.) Not having looked yet at the developer's progress reports for this patch on Twitter, I would pre-register a guess that fixing these types of rooms is where the majority of the work in making this patch went (beyond just adding more border tiles to small rooms.)

Re:SNES – Super Mario World Widescreen by stormbrew on Saturday June 19, 2021 @02:36AM (#27558316)
There are two different seams at play here. One is a 'loading seam' which is really just the vertically and horizontally mirrored area of the tile map. The rendered tile map is (simplifying a bit) basically 2x as tall and 2x as wide as the screen you see. The screen's position in it is effectively modulo the width and height of the tile map. If you move right 30px, it loads tiles and objects into the area 30px off the the right edge of what it already had loaded, wrapping back around to the left if necessary, then moves the viewport 30px to the right (again, simplifying).

So yes, there's always area that is kind of 'ready' outside the current viewport. It has tile data and probably objects loaded into it, ready to be seen. That's why you don't see 'pop-in' or whatever. Things are loaded before you get there.

But the game logic isn't activating all those things as soon as they're loaded into tile memory. You can probably actually view this in some emulator or another and what you'll see is things loaded up some time before they're actually on screen, but just sitting there until they're basically on the edge of the screen when they'll start moving.

How games do that will obviously vary quite a bit, but in SMW's case it "loads" sprites some specific distance off screen (which is not a full screen away), and then "activates" them pretty close to the edge of the screen. You can see this for yourself by like, going and finding a shell-kicking koopa or something and playing with the screen scroll. You will be able to get it to do it over and over again with only a little scrolling.

A lot of kaizo games were made quite a bit easier thanks to this, to the point where most of them now disable screen scrolling to prevent you from controlling spawns so easily.

Re:SNES – Super Mario World Widescreen by a_t48 on Friday June 18, 2021 @09:50PM (#27557045)
Scrolling with L/R does affect (at least some) spawns. It’s completely possible to use it to scroll enemies on/off screen.
Re:SNES – Super Mario World Widescreen by manwe150 on Friday June 18, 2021 @09:53PM (#27557059)
I vaguely recall using the L/R scroll to intentionally alter event timing, and needing to be aware of viewport variations from my usual run as I got faster, to avoid something being in the wrong place. But it has been many years now since I last played. I don’t recall SMW having much that needed to trigger in any particular order or speed, outside of the autoscroll levels. But since some levels already have too many sprites to keep up performance, I don’t think they would have been as worried about time precision as much as stopping extra work as soon as objects are hidden off-screen.
Re:SNES – Super Mario World Widescreen by tinus_hn on Tuesday June 22, 2021 @11:26AM (#27592866)
If all the extra room is to the left of the player it won’t affect gameplay much
Re:SNES – Super Mario World Widescreen by gtonioli on Friday June 18, 2021 @05:56PM (#27555443)
Re:SNES – Super Mario World Widescreen by goalieca on Friday June 18, 2021 @05:52PM (#27555402)
> does Super Mario World have any "single-room" fixed-width gameplay areas? I mean, it must, right?

Yes. The have the bonus room after you get 100 endpoint stars. They also have vertical segments like a bonus room and a special world map.

Re:SNES – Super Mario World Widescreen by thaumasiotes on Friday June 18, 2021 @06:22PM (#27555637)
Most obvious of all would be the Top Secret Area, or Yoshi's House.
Re:SNES – Super Mario World Widescreen by rytill on Friday June 18, 2021 @08:18PM (#27556573)
I love this game, have played at least a hundred hours of it in my childhood, and this seems … nice? What in particular makes this so amazing?
Re:SNES – Super Mario World Widescreen by rogerdb on Friday June 18, 2021 @08:39PM (#27556688)
It's mostly impressive from a technical standpoint, since the programming of games from this era would be strongly tied to the display resolution, eg. a programmer could know which background tiles or entities could be shown in the viewport at any time, and dynamically load/unload them for performance reasons. All of these optimizations now need to be tweaked or removed in the widescreen version so things outside the original 4:3 viewport don't disappear at the edge of your 16:9 display.

More recent games use flexible approaches to allow for different aspect ratios, which would behave similar to eg. fluid design on the web.

Jon Burton of TT Games has an interesting Youtube channel where he goes over some of these old school development techniques, if you wanted to learn more; eg. https://www.youtube.com/watch?v=96DO4V8qrR0 uses a lot of techniques that would be difficult to extend to a 16:9 display.

Re:SNES – Super Mario World Widescreen by yesco on Friday June 18, 2021 @08:23PM (#27556599)
The gameplay and design heavily lean on there being a fixed aspect ratio so one would assume that expanding it would be a fairly challenging project.
Re:SNES – Super Mario World Widescreen by kevinventullo on Friday June 18, 2021 @06:13PM (#27555565)
Looking at the sibling vod, it appears as though they must have “extended” the fixed-width rooms, either with walls or more lava or whatever.

Looking at the second room of the first castle, widescreen seems to give you more actual room to move around in auto-scrolling levels, which offers a significant advantage beyond just information on what’s coming ahead.

Re:SNES – Super Mario World Widescreen by SwiftyBug on Friday June 18, 2021 @06:59PM (#27555932)
The final boss room (Bowser in that weird balloon) is something I would love to see in a wide-screen arrangement. Part of the challenge of that room is to deal with many enemies in a very tight space.
Re:SNES – Super Mario World Widescreen by omoikane on Friday June 18, 2021 @08:22PM (#27556595)
Re:SNES – Super Mario World Widescreen by SwiftyBug on Wednesday June 23, 2021 @11:10AM (#27605432)
Exactly It seems that being widescreen doesn't change anything in this particular room, considering that the wall surface remains in the original size. Maybe if you're wearing the cape, the extra horizontal space can help avoid Bowser.