Lurker News

Comments (171) 33 threads

Show all comments

Showing thread 1 of 33

sktrdie4 replies#
This is by far the best engineering hack of the year:

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!

apkallum2 replies#
Could you expand on the ROM game commands bit? Does it mean that all actions are serialized?
tantalor1 reply#
It's a networked game... how else could it work?
jldugger3 replies#
I just don't know what a 'ROM game command' is. Seems more likely it would be controller inputs to one person's emulator? Or perhaps everyone has an emulator and the inputs are simply shared.

Continue this thread — 3 replies

Vel0cityX1 reply#
> ROM game commands

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).

danbolt7 replies#
I’d be curious to see how feasible a rollback-based implementation would be for emulating the game.

Continue this thread — 7 replies

avlewis#
This was such a kick ass idea
the_only_law3 replies#
My understanding was that WebRTC wasn't specifically designed for video and voice applications exclusively, but rather as a generic real time, peer to peer communication framework that included capabilities for voice and video. Not trying to take away from your comment or anything, but maybe I misunderstand WebRTC.
monocasa#
Yeah. It's specifically designed for both AV, and for generic datagrams. You have to choose one or the other during initialization of a stream (but can have multiple streams between clients).
lewispollard1 reply#
I recently implemented a WebRTC multiplayer game in Godot, and yeah, it has very little to do with chat, and isn't really "off the shelf", it took a hell of a lot of configuration, plus running and maintaining a STUN/TURN server and backend lobby/matchmaking system. It's no more a chat protocol than HTTP really when you're doing that kind of programming with it, just has some nifty tricks for getting around routers and making a direct connection where it can.

That said, it was better than NAT punch-through and/or UPNP which are not very reliable these days.

0df8dkdf2 replies#
Correct me if I'm wrong. STUN/TURN is the one that is doing the UDP punching. And in the event that fails, all the data are being passed through the STUN/TURN server, which makes it just like client/server setup where the server became the bottle neck again.

Continue this thread — 2 replies

aroman1 reply#
tl;dr using WebRTC just for realtime client<->server data sucks, but WebTransport[1] is coming soon to serve that exact usecase with an easy API

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).
https://github.com/w3c/webtransport

Sean-Der1 reply#
What do you find hard about setting up a WebRTC server? I hear from users they are able to spin up a Pion DataChannel server in 5 mins (including installing Go)

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.
[0] https://github.com/w3c/webtransport/issues/168
[1] https://github.com/quicwg/datagram

Continue this thread — 1 reply

joshxyz#
Holy fucking shit

300 IQ!