676 points · by hauxir · 5y ago · 171 comments
Use off-shelf-chatrooms-software to create rooms but instead of chatting you send ROM game commands to each other and allow for multiplayer gaming!
That said, it was better than NAT punch-through and/or UPNP which are not very reliable these days.
WebRTC has data channels, which are currently the only way to achieve unreliable and unordered real-time communication (UDP-style) between the browser and other browsers or a server. This is pretty essential for any networked application where latency is critical, like voice and video and fast-paced multiplayer games.
As other commenters have noted, it's a royal pain in the ass to set up WebRTC if all you want is UDP-style communication between a server and browser, since you need to wrangle half a dozen other protocols in the process.
However! A new API, WebTransport[1], is actively being developed that will offer a WebSockets-like (read: super simple to set up) API for UDP-style communication. I am extremely excited about it and its potential for real-time browser-based multiplayer games (which I'm working on).
WebTransport isn’t going to be here soon though, I would be cautious in investing. Stuff like Congestion Control is still a big unknown [0] and we don’t have Datagrams everywhere.
This phrase doesn't mean anything.
The game list includes games that do not support PlayStation Link Cable, so this has to implement netplay the same way other emulators do:
Both host and client emulate the game in sync, exchanging controller input
Edit: Seems like I was wrong about the latter, it runs the emulator on the host only, who sends video/audio from clients (and they send inputs).
300 IQ!
No one really talks about it but the first iPod had the same approach to letting people play their thousands of mp3 files (which I imagine 99% of were obtained illegally). Apple was eventually able to create a legal marketplace for mp3s but early days it was all napster/limewire/kazaa/etc
Obviously Playstation/Nintendo roms are not as prevalent but its an interesting thought?
Apple had a marketing campaign to encourage that.
The funny thing is, this is one of the current top recommended ways for DJs to acquire music in 2020, and the most affordable.
1. Buy DVD on ebay
2. Rip DVD with handbrake
3. Add rip to Plex library
4. Archive DVD in disc folder
Works great for "classics" that can't get much better than DVD quality anyway (i.e. any movie made before, say, 2005)
Consult this video, for example: https://youtu.be/sCv-dIFGcd0
Personally I find that even BD-rips made in SD resolution look better than DVD—if only for contrast enhancements made for reissues, and due to better compression formats.
Moreover, if the source was shot on 70mm film then people might still keep re-digitizing it in the 22nd century into fresh HD formats of the day.
If a movie isn't issued in better than dvd quality is because nobody has cared about remastering them to better formats.
I guess there maybe super budget, made for tv films that were filmed on tape and those certainly have reached their digital quality maximum.
I remember a time when we digitised our DVD collection just swapping them one by one into handbrake.
Never would have dreamed that was illegal...
I don't know how it works or how to do it, but I know that it is possible to rip music from the Deezer music streaming service in lossless quality.
It's crazy that this hasn't been patched yet because it has been a thing now for a couple of years.
https://www.digitalmusicnews.com/2020/10/26/deezer-pirate-ap...
The album is fairly recent but still old enough to not be in stock anywhere.
But, I did manage to find a used CD on Discogs' marketplace.
EDIT: It seems the thing you need is a "Public performance license"
It doesn't, though.
It sources roms from the Internet Archive: https://i.imgur.com/4bX7Oow.png
Legally dubious.
But as far as UX, it was incredibly easy get us both into a 2 player game, complete with chat, voice, and video feeds. Their buttons are mapped to keyboard inputs, so Windows users can get a gamepad working with a program like JoyToKey[1].
For that reason it’s pretty amazing the (lack of) input delay you see with Stadia, which I believe is also built on WebRTC — although with one peer (Google) always hosting the video and the other (the user) providing input I’m wondering if there’s some clever way to improve upon this...
Which browser and version did you use?
I used to work at a video rental store so I had access to two TVs, two PS1s, this cable, and the space to set it up. It's a lot of setup when you could just play the game normally on one screen. Still neat.
That aside, Bushido Blade to me is still the best fighting game. If they revamped the location damage detection, and redid the graphics, I would rebuy it in a heartbeat. Most people favour the sequel, but to me it lost a lot of the charm and simplicity the first one had.
One hit kills really spice up fighting games for me. Positioning and timing are even more crucial then in other games.
The "juggling" and ten button combos really take the fun out of the genre for me. (nothing against the other games, just not my cup of tea)
I haven't found another like it. HMU with recommendations if I missed a game!
- Another PSX
- Another copy of Bushido Blade
- A spare TV that they could bring over
- A room big enough to have two TVs and consoles setup within a few feet of each other so that the cable could reach.
After taking the time to set all that up, simply playing the game in POV mode felt like a disappointment.
But I agree, Bushido Blade 1 was the superior entry. BB2 fell into the common trap of "fix up the kinks and 'polish' the sequel, but lose what made the original feel special along the way". The other thing that most people don't know is that while each character can technically wield any of the weapons, everyone has a preferred weapon, and wielding it unlocks unique moves for that character. This wasn't mentioned in the manual, nor in any of the online FAQs back in the day, so unless you had shelled out for the Strategy Guide, that whole dimension of combat was unknown to most people.
The original developer behind Bushido Blade went on to make the "Kengo: Master of Bushido" series, which was something of a spiritual successor, but IMO all of them were garbage. The closest thing it ever got in my mind was the original Way of the Samurai for the PS2 (another game which got a bunch of sequels, all significantly worse than the original).
Which was good, because there was a critical bug in the split-screen mode (one player had no radar).
And yes, I miss Bushido Blade. Even back in the 90s I was annoyed how much emphasis fighting games put on combos and complicated inputs.
Is that still the case, or are there free/libre reimplementations of these consoles' BIOS images out there now?
Seems like they offload the responsibility of ROMs to the user (good) but no mention of the BIOS part.
If you visit chrome://flags you can enable "Restrict gamepad access" which will disable the default controller's mapping.
Incidentally, I recently wrote a small crossplatform gamepad mapper you can use: https://github.com/framp/joystick-mapper/releases/tag/0.3.0
Configuration for psxparty here: https://github.com/framp/joystick-mapper/blob/master/example...
Click the wrench next to controller 1/2, click in each of the input boxes and press the button on the controller to map it. I had no issues setting up my XB1 controller.
There were a few games where the PSX version was ideal, such as Rival Schools, Battle Arena Toshinden and the mentioned Soul Edge, but that was because the ZiNc/System11 arcade hardware that they ran on was literally derived from the Playstation hardware.
edit: the first approach would also give the host an unfair advantage because they'll have no delay at all.
Games for these older consoles — any generation while games were either still unikernels, or still ran on RTOSes — are already 100% deterministic in terms of what the game will do on a given frame, given a fixed history of per-frame inputs. (That might be surprising, but devs would strive to keep this property, as it makes reproducing bugs far easier.) So you don’t have to do much, other than execute the game faithfully and ship button-presses back and forth, to ensure synchronization.
Of course, shipping these button-presses around to achieve state-consensus synchronously would be slow — but there’s no need to do it synchronously. All modern emulators are built not in terms of a single mutable virtual-machine state, but rather in terms of a functional-persistent chain of VM states (think a HAMT.) This is what enables “rewind” support in emulators — and more recently, “run-ahead” latency reduction (basically a type of speculative execution of VM states.)
Thus, with any emulator constructed this way, it’s actually very easy to ship+receive+resolve network inputs asynchronously: i.e. to receive inputs “about” frame N while rendering frame N+M, and then to go back and re-compute the correct VM state for frames N..N+M, such that frame N+M+1 will inherit from the recomputed frame N+M. (Remember, you don’t need to run any of the IO-emulation logic for the recomputed frames, so they’re actually quite cheap to recompute!)
It’s actually oddly similar to what blockchain nodes do to “reorg” when they discover a fork — just done in real-time, between 16.7ms frames.
Edit: probably the order of commands is kept in order via the chat room server no? But then what is it using WebRTC for? Perhaps the “host” is e source of truth for the order... meaning that all the commands speed and delay depend on the host network bandwidth.
Keep in mind, every node is running the same deterministic simulation. As long as nodes achieve eventual consistency in their "input movie" somehow (a gossip protocol, say), then every node will end up on the same VM state. You don't need a leader to declare what the consensus state is; presuming trustworthy peers(!), there is a single "objectively-correct" consensus state that every node will converge upon once all nodes have all messages.
Every time an input-event message is received from the network, the receiving node just rewinds to frame N, and recomputes it (and all frames after it) with an input-movie where player P {is/isn't} holding button B. (And then, only if that explicit message wasn't already what was predicted during run-ahead.)
Note that this is also exactly what happens when the local node produces an input-event message — that's what run-ahead is!
The idea is that the host guesses what the other player's inputs are on a certain frame, and when the actual input then arrives the host emulator will roll back its state to that frame and then re-emulate the frames after it, if it guessed wrong. If it guessed right the game continues as usual.
It's a good fit for emulation since "rolling back" in an emulator is usually easier than rolling back the state in a game that wasn't built with this type of netcode in mind, but it has also become a popular type of netcode for modern fighting games.
If you're interested in reading more about it:
https://en.wikipedia.org/wiki/GGPO
(Windows 10, Chrome, i7-7700, GTX 1050.)
What emulator did you use for this? (I would suggest using DuckStation, it's a million times faster than any other and more compatible than most of them, only Mednafen may work better in a few games.)
For anyone else interested, it definitely looks like it's using MAME, which is unfortunate, since it's one of the slowest and less accurate PSX emulators out there.
In any case, I'm sure the author will soon release the source code of all the GPL parts, if any ;)
Hopefully the author open sources this so that the community can contribute things like a more polished UI and save state management system. Seems like the kind of project that makes sense to be open-sourced.
Also, aside from the obvious AV chat systems (eg: Jitsi. Zoom, etc.) 'cloud-gaming' platforms such as Google Stadia and Shadow use it.
I've been monitoring and experimenting with webRTC for a few years now and one of the most exciting recent developments has been more or less full support in desktop and mobile browsers (even Safari, which dragged its heels for years)
Fwiw, WebRTC doesn't imply p2p/serverless.
WebRTC is fundamentally peer-to-peer. But scaling up to larger calls, and doing things like recording, generally requires routing the audio/video through media servers that selectively forward, process, or transcode the media streams.
<shameless-plug> I cofounded a company that makes it easy to get started with and scale WebRTC-based applications and features. [0] </shameless-plug> In addition to basic video calls, we're seeing rapid growth of online classes, games, fitness applications, live collaboration in productivity apps, e-commerce and customer support, and IoT and robotics streaming video.
Zoom doesn't use webrtc (unless you count the browser fallback version which nobody uses), they use their own video codec - which notably uses a lot of cpu but requires little bandwidth. From my experience, zoom is the only solution where I don't experience bandwidth problems all the times.
Yes and it works well
For example, Jitsi delegates authentication of users to Prosody. Prosody already has a bunch of authentication backends ( https://modules.prosody.im/type_auth ) and Jitsi benefits from these without needing to reinvent the wheel.
I've seen the Jitsi+Prosody combo integrated into many kinds of platforms. People also implement things like custom access control, logging, notifications and provisioning at this layer. These things would generally be harder to customize in a monolithic off-the-shelf system.
Meanwhile a simple self-hosted setup is still easy enough to pull off in a spare afternoon ( https://jitsi.github.io/handbook/docs/devops-guide/devops-gu... ).
At least in my experience, WebRTC even when using UDP was a lot slower than custom protocols, mostly because it responds badly to packet loss.
If I use plain UDP in c++, I can layer on forward error correction like Solomon Reed and just ignore lost packets up to a percentage. That, alongside with low level control of the transmission timings seems to be the difference between 60ms peak latency with WebRTC and 5-8ms in C++. Or noticeable input lag @60fps vs. exactly one frame.
Dolphin has had a similar (non-browser) feature called Netplay for many years, and it works incredibly well.
I love whoever made this!