×

Jim Dunne's video: ALTTP multiplayer demo part 4

@ALTTP multiplayer demo part 4
This is a work-in-progress demo where two players (using my modified fork of the bsnes emulator) can connect to each other over a network and see the other player's Link avatar in their game as he moves around the Hyrule world. See previous Part 3 at https://www.youtube.com/watch?v=M8b6UaFWD2Y Download nightly builds: https://cirrus-ci.com/github/JamesDunne/bsnes-angelscript NOTE: Game ROMs will never be provided! In this video I demonstrate the synchronization of room state such as slashed bushes and picked up stones. The room changes are synchronized between both players and will be kept until both players leave that particular room. Currently this works best on the overworld where gravestones can be moved and large/small stones picked up and bushes cut down. I haven't tested all possibilities. More complex room state found in dungeons like doors opened, keys used, orange/blue blocks are not synchronized yet. I do intend to try to synchronize these kinds of things so that co-operative multiplayer is possible so that players can perhaps divide and conquer a dungeon together if the design of the dungeon allows for it. I have not tested connectivity over the public Internet yet, only local networks. I see no reason it shouldn't work over the public Internet, provided UDP ports are forwarded properly through NAT devices (home routers) and the IPv4 addresses are known on each end. WHERE TO FIND IT: This is all accomplished using my own fork of byuu's fantastic bsnes emulator. You can find my fork at https://github.com/JamesDunne/bsnes-angelscript . My bsnes fork integrates a scripting language called AngelScript ( https://www.angelcode.com/angelscript/ ) with the emulator and exposes some very basic functions and properties for scripts to access memory and state with. Scripts also define well-known functions pre_frame and post_frame which are called before a frame is rendered and after a frame is rendered, respectively. This demo video was rendered using the code from this specific git commit https://github.com/JamesDunne/bsnes-angelscript/commit/0bb0f5092494f4035dee801557dc798adac0f5fa HOW TO RUN IT: Run `sudo ifconfig lo0 alias 127.0.0.2 up` to create a loopback alias for 127.0.0.2. This part is necessary otherwise you will encounter errors attempting to run the second instance. This only needs to be done once per boot. Run `./test.sh` script in a Terminal tab to open instance 1 Run `./test.sh` script in a new Terminal tab to open instance 2 (or in Finder, right-click the app bundle and shift-option-left-click on Open to open a new instance) The IP address in instance 1 should work as-is so just click Start there. In instance 2 you'll want to swap the two values so the Server IP is 127.0.0.2 and the client IP is 127.0.0.1. Click the "Swap" button to do this. Click Start on both instances and load a saved state or play through the game on both emulators to see both Link avatars on both screens.

3

3
Jim Dunne
Subscribers
2.4K
Total Post
65
Total Views
1.1M
Avg. Views
21.6K
View Profile
This video was published on 2019-09-26 01:58:48 GMT by @jsd1982 on Youtube. Jim Dunne has total 2.4K subscribers on Youtube and has a total of 65 video.This video has received 3 Likes which are lower than the average likes that Jim Dunne gets . @jsd1982 receives an average views of 21.6K per video on Youtube.This video has received 3 comments which are lower than the average comments that Jim Dunne gets . Overall the views for this video was lower than the average for the profile.

Other post by @jsd1982