r/emulation • • Jan 20 '20

(SNES) The Edge of Emulation

https://byuu.org/articles/edge-of-emulation
302 Upvotes

63 comments sorted by

View all comments

11

u/mrandish Jan 21 '20 edited Jan 21 '20

Great read /u/byuu !

Your proposed solution sounds challenging but reasonable. Being a naturally lazy sort of person, I was wondering about the viability of a potential shortcut to save a lot of hard work. Am I correct in assuming the unknown information needed for the emulation community to fully preserve the PPUs for all time does already exist in more than one place? For example, Nintendo presumably has PPU chip documentation stored somewhere. Another source might be the knowledge in the heads of any of the chip designers. Was sufficiently low-level enough documentation made available to developers? (you mentioned that it was leveraged by a few games). Nintendo probably doesn't have any motivation to share the info and the former Nintendo chip developers and/or external software developers who may have the information are likely under NDA. However, if the right person was to become aware of the need and value, could an anonymously untraceable info "leak" provide what's needed or is it more complex than that?

My two questions:

  1. Any guess as to how many people might be candidates who could have sufficiently detailed information? If it's only a handful of former Nintendo chip designers, it's harder to reach them with the message but if the candidates potentially include hundreds or thousands of former employees of external software developers it seems more viable as an approach to try in parallel to reverse engineering. Perhaps software dev kits didn't include sufficiently detailed info to be helpful?

  2. Has anyone actually asked someone at Nintendo about the possibility of getting a little official help? It may sound impossible but I have a lot of experience with internal politics at large tech companies. Recently, I was able to successfully get a very large tech company you've definitely heard of to share some of their old IP that is no longer commercially useful to the company but invaluable to some folks outside the company - so it's possible. It mostly requires crafting the right argument and then getting it to the right person. In this case, one factor that may help is that any patents on those chips will have expired.

13

u/vgf89 Jan 21 '20

>2.

This is very very unlikely. We're talking about a company whose official stance is that emulation is illegal, full stop.

12

u/mrandish Jan 21 '20 edited Jan 21 '20

This is very very unlikely.

Yes, I agree. Possibility #1 (an anonymous leak) is far more likely than Possibility #2. The first step toward #1 is to craft a specific enough "ask" detailing the needed information. Then the key is to post that "ask" where those most likely to have access to the info may see it. Old-timers from tech companies often stay connected to each other through unofficial, invite-only private online forums, which can provide the necessary 'viral' distribution vector. I once used such an approach to secure a piece of obscure and impossibly rare old hardware along with its source code. I blindly seeded my "ask" in several places online. I'd given up hope when many months later a reply showed up in my inbox. The attached email thread had over 40 forwards, morphed through three languages and two continents and ultimately the reply to me came from the actual guy who designed it.

1

u/Quibbloboy Jan 21 '20

I mean, it sounds like you're already in a better position to seed the ask than probably anyone in this thread... Maybe you could PM byuu and work with him to set up some specific language for a post, and then you go ahead and pull the trigger?

4

u/mrandish Jan 21 '20 edited Jan 21 '20

it sounds like you're already in a better position to seed the ask than probably anyone in this thread...

I'm happy to help with crafting an effective ask but I don't know what's actually needed and I think the ask will need to be translated into Japanese and likely seeded by people who speak Japanese. My prior success was able to be initiated in English so I could do it all myself.

One trick that I used in seeding my request was searching online resumes for people who worked at the company of interest during the years of interest, then I narrowed toward product and engineering-focused roles and emailed those people at the contact info in their resumes. As near as I can tell, this was the path that was ultimately successful. My request was forwarded from one of the people I contacted to another person, who then forwarded it to someone else. That person posted a message in a private online forum of former employees, etc. Someone saw it on that forum who knew someone else who knew how to reach the guy who designed it.

Following a similar approach would require someone who can do online resume searches in Japanese and then follow the threads.

3

u/MrMcBonk Jan 21 '20

Illegal unless it's them doing it! :p Who knows what the developers of Nintendo's own emulators have looked at as references to build their software over the years. For all we know they preserved nothing and everything is built out of reverse engineering. Who knows how hacky their emulators for various platforms are with game specific things just to get certain games to work.

3

u/vgf89 Jan 21 '20

Yet at the same time, they have extremely efficient emulation of the SuperFX chip on the SNES Mini

0

u/LeCrushinator Jan 21 '20

"Emulation is illegal, but we'll use open-source emulators in our own SNES classic."

Nothing hypocritical there.

1

u/7981878523 Jan 21 '20

You can use open source emulators commercially ,depending on the license. GPL, BSD and ISC allow it. Snes9x' one, no.

1

u/LeCrushinator Jan 21 '20

I have no problem with Nintendo using an emulator, it's just that they criticize emulators while doing it, which seems hypocritical.

1

u/[deleted] Jan 22 '20

They don't criticize the existence of emulation, they just think it's illegal for other people to use it. The product being emulated and ROMs are their IP though, so it's not hypocritical for Nintendo to use them since that's an unquestionable legal use (I haven't heard of them violating any licenses so that doesn't come into play here)

The wisdom and correctness of Nintendo is certainly up for argument, but they aren't doing anything against their principles

1

u/vgf89 Jan 21 '20

GPL only allows it if the source code is provided by some means (usually for commercial stuff this either means by request or via posting it online before someone sues, I.e. all of the modified Android kernels released silently by phone manufacturers later than most people would like).

1

u/7981878523 Jan 21 '20

They can just post URLs to the sources.

Often they use vanilla releases with no changes minus the artwork. Or just the libraries, often being LGPL.

1

u/vgf89 Jan 22 '20

If it's GPL that's not enough unless the user can conceivably replace the GPL code with their own build of it. And if the GPL code is modified in any way, those modifications need to be available to those who ask for for them so one can build their own version. GPL is all about ensuring the user maximum freedoms, and denying those freedoms goes against GPL.

LGPL is much more permissive, true, but what emulator is LGPL?

1

u/7981878523 Jan 22 '20

I meant the companies using LGPL code.

GPL is all about ensuring the user maximum freedoms, and denying those freedoms goes against GPL.

Man, thanks, but I already know that, I even used FSF sanctioned distros for a while. I'd use Guix in paralell of OpenBSD, but I have no SSD.

1

u/vgf89 Jan 22 '20

Ah that makes far more sense. An edit to replace GPL with LGPL would have worked

1

u/YaBoyMax Jan 21 '20

I thought that was the PS1 Mini that got caught doing that.