RetroArch 1.4.1 Netplay
-
In my experience it just depends on the core. Git is just a way to show it came from github I believe. The newest PCengine Core does not use the git prefix while something like fceumm does. I will tell you that cores that are downloaded by default from an install on a PC are the same (if done at the same time (for the most part!))as what is found on a RetroPi
-
@Swagman89 said in RetroArch 1.4.1 Netplay:
(if done at the same time (for the most part!)
I hope so, but the smallest discrepancy in version numbering makes all the difference between matching and not and I've seen quite a few examples this evening that didn't line up. I just spent a good bit of additional time testing on multiple cores and I've found that after the recent changes referenced above, launching with netplay enabled from the runcommand now works with both manual and quick play methods of netplay connection without any additional settings beyond configuring the 'RetroArch Netplay' in the RetroPie menu of Emulation Station.
Also, anyone who hardcoded their nickname earlier, no longer has to. -
Well, I've finally got the quick connect netplay lobby feature to work and it really is pretty keen.
launching with netplay enabled from the runcommand now works with both manual and quick play methods of netplay connection
Turns out that three quarters of that statement was correct. Launching netplay using the current runcommand option in RetroPie will cover manual host, manual client and even automatic host. However, getting it to work as an auto client for the quick connect matching feature requires that a RetroArch session be aware of the following:
- Core location
- Core information
- Rom location
- Rom Information
It then uses all that to pair a netplay session. The problem is that after RetroPie launches a RetroArch session from the command line, it doesn't have a record of even where the currently running core is located, let alone what it is and what it is capable of running. The same is mostly true with the currently running ROM. Once the user selects a potential match from the lobby, RetroArch needs to reset the environment, but is at a loss as to the location of the necessary components to make it happen.
When it's all said and done, the RetroPie team will have a streamlined way to handle this, but for anyone who wants to jump into some quick netplay action right away, I have a working solution that should suffice until this can be officially implemented in a more elegant way.
First, add the following to
/opt/retropie/configs/all/runcommand-onstart.sh
if [[ "$2" = "lr-"* ]] then mkdir /tmp/lr-core ln -sf /opt/retropie/libretrocores/$2/*.so /tmp/lr-core/ fi
Then, add the following to
/opt/retropie/configs/all/runcommand-onend.sh
if [[ "$2" = "lr-"* ]] then rm -r /tmp/lr-core fi
Next, add the following two lines to
/opt/retropie/configs/all/retroarch.cfg
libretro_directory = "/tmp/lr-core" netplay_nickname = "YourNicknameHere"
The rest will be done inside RetroArch itself, so now launch any game that you have set to open in RetroArch and invoke the RetroArch menu 'Select+X'. From there, navigate to 'Online Updater' and select 'Update Core Info Files', followed by 'Update Databases'. Once that is complete you'll want to navigate back to the root menu and then to 'Import Content' and then 'Scan Directory'. This can take A LOT OF TIME, so you may just want to do a single system at first. Even then, it can take quite a while. When it's complete, anything you just scanned is ready to be hosted and paired to automatically.
I know this seems like a lot of effort on it's face, but once it's going, you can just launch the game you want from Emulation Station, navigate to 'Netplay Rooms', hit 'Refresh' and pick a hosted game to connect to. Of course this is all still contingent on using the same core/core version and ROM as the host, but when it all comes together, it really is an improvement and I think it'll have a massive impact here on the forums for those who want to connect and play painlessly without having to post their IP address openly.
-
Very excited about all of this! Thanks for all of your work testing this out! I tried to get this working a year ago long before the RetroArch update, and nothing we tried seemed to work.
-
followed by 'Update Databases'. Once that is complete you'll want to navigate back to the root menu and then to 'Import Content' and then 'Scan Directory'. This can take A LOT OF TIME, so you may just want to do a single system at first.
So this database scan only needs to be done the first time (only once)?
Unless you have added new ROMs, you shouldn't need to run it everytime you want to use the Netplay Rooms?
-
That's correct. The two main pieces of information it keeps afterward for each game is the location of the ROM file and its CRC32 identification.
-
To avoid the lengthy scanning process for any systems that aren't currently working with netplay, you can reference this page from the netplay author himself, detailing his own findings on the current state of compatibility.
-
I just tested out spectator mode and it worked as well. I joined someone's SNES 'Secret of Mana' game and it was a little bit choppy. I probably slowed the player's game down as well while I was connected. There are frame-related settings to fix that, but I don't want to wreck a bunch of people's games trying to figure it out.
-
@mediamogul thank you for posting this detailed walkthrough for configuring Netplay in Retropie.
Hopefully @BuZz has plans for integrating/automating these required steps to get Netplay working.
I haven't yet tried this method, but haven't had any luck with the default Retropie Netplay configuration.
-
Sorry for resurrecting this thread. Are there any news on the integration of this feature in Retropie? I wrote a post asking for directions here. It seems that I can host games just fine, but I am unable to join games from the room list, as I always get that "Failed to locate matching content by either CRC or filename." I downloaded the databases and scanned the content, but it seems that retroarch is still unable to find any cores and games from my collection.
PS: I tried following the instructions by @mediamogul , but the scripts
/opt/retropie/configs/all/runcommand-onstart.sh
and/opt/retropie/configs/all/runcommand-onendsh
are not there anymore in the last version... Any ideas?
Contributions to the project are always appreciated, so if you would like to support us with a donation you can do so here.
Hosting provided by Mythic-Beasts. See the Hosting Information page for more information.