Curious as to how it works...??

Want to play with a friend over the net? Find out all the info you need on how to configure your PC, network and of course ZSNES. Also the correct place to find people to play with and what software they use.

Moderator: ZSNES Mods

Post Reply
azz1844

Curious as to how it works...??

Post by azz1844 »

Hi there!

Sorry if this has been answered somewhere before...
But I was curious as to how the online play on ZSNES is actually achieved (I have been speculating with a friend).

Do you actually need to change the coding of the original game ROM, or do you simply get the software to "trick" the ROM into thinking another computer somewhere else on a network is "Controller Port 2"?

(I have been guessing the latter option up until now, but I have a very limited knowledge of how software programming works!)

Thanks for any info you can give me!!
Deathlike2
ZSNES Developer
ZSNES Developer
Posts: 6747
Joined: Tue Dec 28, 2004 6:47 am

Post by Deathlike2 »

This is very much the latter.
Continuing [url=http://slickproductions.org/forum/index.php?board=13.0]FF4[/url] Research...
creaothceann
Seen it all
Posts: 2302
Joined: Mon Jan 03, 2005 5:04 pm
Location: Germany
Contact:

Post by creaothceann »

When the game requests the controller status, ZSNES supplies the keyboard status of the PC it's running on (local gameplay) or from a connected PC (netplay).
vSNES | Delphi 10 BPLs
bsnes launcher with recent files list
AntoineWG
Trooper
Posts: 530
Joined: Thu Jul 29, 2004 6:59 pm
Location: 127.0.0.1
Contact:

Post by AntoineWG »

More accurately, ZSNES is constantly sending controller information and other data back and forth between the computers, giving controller input timings to both ROMs simultaneously, all while trying (with varying degrees of success) to keep the games in sync.
[i]"It is better to have tried and failed than to have failed to try, but the result's the same." - Mike Dennison[/i]
azz1844

Post by azz1844 »

Thanks very much!!!

I guessed something along those lines, but like I said, limited background knowledge!

Another of the reasons I was wondering this, is because in a lot of Nintendo Wii forums people have been speculating about adding online gaming to Virtual Console games. Some people have been saying its very unlikely because it requires altering the original ROMs, which would pose the added difficultly of getting third parties to do this.
But I use ZSNES as a comparison and suggested that they could just "trick" the ROMs into thinking another Wii was another controller port, just as Netplay does.

Obviously ZSNES is pretty unofficial as far as the games on it are concerned, but what do people here think about online Virtual Console games using that method (via an official software download from Nintendo, of course)? Sound viable?
creaothceann
Seen it all
Posts: 2302
Joined: Mon Jan 03, 2005 5:04 pm
Location: Germany
Contact:

Post by creaothceann »

That should also be possible.

SNES games get the controller status by repeatedly reading two memory addresses (which happen to be mapped to the controller ports). Emulators check all memory "reads" and "writes" for special addresses, and act accordingly (e.g. returning the keyboard status upon a "read"). When they're connected via Netplay they can just use the other PC's keyboard status.
vSNES | Delphi 10 BPLs
bsnes launcher with recent files list
Post Reply