EmuLua Netplay Core (Test 1)
Loading...
657
views
Loading...
Uploader Comments (Xkeeper0)
see all
All Comments (14)
-
please give link to this lua script i need it to netplaying with my friend
-
0:46 You even managed to get them to die at the same time! Brilliant!
-
I subscribe only because I saw what you done with lua on a Mario game but with your last Zelda video and now this I really getting into what you are doing at the current moment. I normally don't randomly subscribe even to videos that I like (I normally just fav) but in this case I glad that I did.
-
@Xkeeper0 I see...
-
@Snip3rNife because you could add any sort of functionality you wanted to a lua netplay core as opposed to a closed source netplay library.
Loading...
Is it me or does this not seem like netplay at all? Just looks like hes controlling player 1 and 2.
Snoop221 1 year ago
@Snoop221 That's because that's what it is. The "second player" in this test is just repeating the first player's input. The only real thing that would have to be changed would be having another human as the other player instead of a client that simply repeats the input.
Xkeeper0 1 year ago
On question though. why not just use Kailera or something for multiplayer, rather than code an entire multiplayer function in Lua?
Snip3rNife 1 year ago
@Snip3rNife a) I hate Kailera; b) that would probably require re-implementation in every emulator. Lua is already in several emulators and (as a bonus) has the nice feature of being mostly separate from emulation, so I can do what I want with it. Want to make it so that, instead of 2P simul, you get coins in Mario if a friend playing Zelda gets a rupee? You can do that. Theoretically.
This will also have functions seperate to what Kalwahtever does, like a "broadcast only" function for 1P.
Xkeeper0 1 year ago
That's pretty amazing. I remember one of the FCEUX devs saying he'd add anything needed if someone were to implement netplay purely in lua. Maybe you can get your raw bytestreams that way (if it isn't already supported).
miaumiaumiau 1 year ago
@miaumiaumiau Yeah, I'll have to check at some point. I'd imagine they should be pretty portable. Worst case I can just do some stupid file bullshit and get it that way, haha.
I actually ended up writing string.toraw() and string.fromraw() that takes an integer and returns a 4-byte big-endian number (and vice-versa), simply to speed up the process a bit. Could probably do something similar with the savestate file, I'd imagine.
Xkeeper0 1 year ago