Sportsfriends

Sportsfriends

Sigmagamma May 7, 2021 @ 8:44am
JS Joust on Macbook Pro 2018 Big Sur [Solution]
In case anyone's looking for this - here's how I did this for my setup, hopefully this will help others. Using the game's built in process did not work for me.
As in the Linux post, I've used psmoveapi . Compiling from source wasn't necessary,

1. Get the latest release here:
https://github.com/thp/psmoveapi/releases/tag/4.0.12
2. Once you extract the file notice that you have a bin and a lib folder.
3. Connect the move controller - I needed an adapter to fit the USB cable to the mac USB-C port
https://www.apple.com/shop/product/MJ1M2AM/A/usb-c-to-usb-adapter
4. You'll proabably have to sudo to do the following commands.
5. There might be some dependencies to resolve - you can see them by running "./psmove pair" from the bin folder
In my case I had to run

export DYLD_LIBRARY_PATH=/path_where_you_extracted_this/psmoveapi-4.0.12-macos/lib

I've also had to install libusb-compat, which I did using brew:

brew install libusb-compat

(for that to work, you're going to have to install brew first: https://brew.sh/index_he)
6. Once "./psmove pair" runs, it will fail, but give you the mac address you need to continue.
Generally follow the process as described here:
https://psmoveapi.readthedocs.io/en/latest/pairing.html#mac-os-x
That is:
a. Note the mac address (which looks like this: aa:bb:cc:dd:ee:ff )
b. Turn off bluetooth in the system settings
c. Run the following, replacing the address, and replacing the colons in the address with hyphens:

sudo defaults write /Library/Preferences/com.apple.Bluetooth HIDDevices -array-add "aa-bb-cc-dd-ee-ff"

d. Enable bluetooth and press the PS button on the controller. It should now appear in the list of bluetooth devices and the game will detect is as well.

Surprisingly this did not work for the second controller until I logged out and logged back in again. The docs for psmoveapi says this would not work for more than 2 controllers, but I only have 2 so I didn't try that :)

- Shai
< >
Showing 1-6 of 6 comments
playfulsystems Jan 23, 2022 @ 9:53am 
This worked for me (thanks Shai!), but took a while. You can also do the pairing part within Sportsfriends.

A few notes:
- There were a few times I had to turn off bluetooth and try the "sudo defaults write" command again for a device to connect.
- You should also be able to see the mac address within bluetooth preferences after pairing it.
- It does seem as though my Mac only wanted two devices connected. I was able to connect more if pressed the PS button on all of the devices simultaneously (or close to it). I got 5 connected.
Sigmagamma Jan 28, 2022 @ 1:49pm 
That's awesome, playfulsystems!
Now I just need to get more move controllers :)
76561199203535918 Dec 3, 2022 @ 12:30pm 
Hi Shai, sorry I'm a bit late. I'm trying to play JS Joust on my M1 Macbook Air on macOS Ventura, but I've been struggling to get it to work. I followed all of your directions, but just no matter what I do I just can not get the controller to pair. Everything is happening according to what your guide says, except for when I type:

sudo defaults write /Library/Preferences/com.apple.Bluetooth HIDDevices -array-add "04-76-6e-0f-0a-18"

The controller doesn't get added to my bluetooth section in settings. It does get added to my com.apple.bluettoth.plist file, but none of my other bluetooth devices are there though.

<key>HIDDevices</key> <array> <string>04-76-6e-0f-0a-18</string> </array>

If you have any insight at all on what could be happening here, I would greatly appreciate it.

-Bryce
Sigmagamma Dec 3, 2022 @ 12:46pm 
Hi Bryce!
It's been a while and I don't remember any of this by now, sorry. Hope you get it to work.

Looks like there might be an issue with psmove on Ventura:
https://github.com/thp/psmoveapi/issues/450
Ah, that's fine, I appreciate the help. Thanks for the quick reply too! That's actually really funny because I was just looking through those issues as well, skimmed though that one, decided that we had different problems, and then moved on 🤦‍♂️. Looking at it again now, they're clearly the same issue.

Hopefully it can be figured out soon from their side, for now I'm going to try a USB install of Monterey to see if I can get it to work there. I've just been getting into developing things recently, so this all looks like a fun little project that I can work on for a while. Thanks for the help, it really means a lot!
Hello I think I did all what you said but it's still doesn't pair. I have a MacOs Big Sur 11.6.1.

When I do :
user@MacBook-Air-de-User ~ % ./psmove pair
zsh: no such file or directory: ./psmove

And when I do with enabled Bluetooth :
user@MacBook-Air-de-User ~ % sudo defaults write /Library/Preferences/com.apple.Bluetooth HIDDevices -array-add "<00:07:04:99:bc:61>"
2024-09-24 18:46:52.955 defaults[17785:108417] Could not parse: <00:07:04:99:bc:61>. Try single-quoting it.
OR
user@MacBook-Air-de-User ~ % sudo defaults write /Library/Preferences/com.apple.Bluetooth HIDDevices -array-add "<00-07-04-99-bc-61>"
2024-09-24 18:47:30.664 defaults[17791:108720] Could not parse: <00-07-04-99-bc-61>. Try single-quoting it.

I am kind of lost...
< >
Showing 1-6 of 6 comments
Per page: 1530 50