Allow setting an IP address for the intiface server
Phones have in my experience more reliable Bluetooth support then many laptops/desktops. With intiface being available on Android, it would make sense to point to a intiface server with the ip-address of a phone in the same network.
This could be done via command line like the existing add to command. Currently the mod hardcodes that it must be the IP of the machine runnning minecraft.
Does the current architecture use the client side or the server side to connect to intiface? This distinction is important for remote play.
Currently, this plugin only allows for local play within a LAN network. However, updating this to work with remote servers is something I'm keen to look into, I just haven't had the time lately.
All which would be required was to change this line to access an user supplied string or use the default currently present.
A different (client-side) buttplug.io mod does that this way.
Since Minegasm is a client side mod they ca store user configs pretty easily, locally. We would have to store them remotely and configure them via some sort of command interface.
That said, what you have suggested doesn't sound like it would take too much work. Like I mentioned, I don't really have time to set up the dev env for this project, but if you want to try hacking around with this you can try the following:
- Updating lines 33 and 40 here to allow passing a specific address through
getClient, toconnectButtplugClient - Adding a command which simply calls
getClientwith the player supplied IP. - Optionally, you could add a
HashMapwhich associates the player with their last given IP address, for ease of reconnection.
PRs are welcome! :)