Lurker News

Comments (171) 33 threads

Earlier comments
_underfl0w_2 replies#
AFAIUI the legal gray area with PSX emulation (and many other consoles) wasn't limited to just the ROMs, but also the console BIOS. Most emulators would tell you to dump (or find) your own.

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.

hauxir#
The BIOS is loaded from the internet archive
quickthrowman1 reply#
PCSX is a PlayStation emulator with BIOS emulation (doesn’t require a BIOS bin dump) but you might as well just download SCPH1001.BIN and play games
AkelaA#
EPSXE also defaults to an emulated bios nowadays as well, which seams to work pretty well.
framp1 reply#
This is very neat but gamepad mapping can't be configured and the browser default "standard" mapping doesn't work very well (at least with my Xbox one controller).

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

Scaless2 replies#
>gamepad mapping can't be configured

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.

jokethrowaway#
I tried that but it's just returning GMB016 for whatever key I press
ArtWomb1 reply#
PS1 era fighting games are considered timeless. And fighting games in general are definitely the genre that has eluded easy portability to multiplayer web. If OG Soul Edge and Bushido Blade become viable again via PSX Party, it would indeed be an epic milestone in preservation!
busterarm#
I'm not so sure about this, as most people in the know were hunting down Saturn versions and 4MB/Action Replay carts.

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.

grishka2 replies#
So how does this work? Does the "host" run the emulator and stream the video feed of it and accept inputs, or do both players run the emulator in lockstep or something? The first approach would introduce a delay that's likely to be unacceptable for games. The second one would work better in terms of delay but would require some very tricky state synchronization.

edit: the first approach would also give the host an unfair advantage because they'll have no delay at all.

derefr1 reply#
> would require some very tricky state synchronization

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.

sktrdie1 reply#
Interesting so commands are sent to other players async? Doesn’t that mean that some players will see things different than others? I my friend A stabs a monster and my other friend B also stabs a monster but they come in different order I would see A killing monster, but others might see B killing it instead?

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.

derefr4 replies#
Input events don't need network linearization. Instead, every input event "happens" on an explicit frame. Each network-broadcast input-event message looks like "during frame N, player P {was/wasn't} holding down button B." Nodes can receive and apply such messages in any arbitrary order, and the result will be correct. It's the frame-counter in each message, not the order each message was received, that determines how history will be rewound and altered.

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!

Continue this thread — 4 replies

jbister#
I doubt it's what's being done in this case but an interesting take on this topic is "rollback netcode" which AFAIK was originally used for playing emulated arcade games over the internet.

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
https://en.wikipedia.org/wiki/Netcode#Rollback
https://github.com/pond3r/ggpo

Load more comments