AtomFry / BigBoxAutoPlay

0 stars 1 forks source link

Feature Request #3

Open Doug-Bowen opened 7 months ago

Doug-Bowen commented 7 months ago

Would It be possible to alter this to:

  1. Not launch the game, just select it.
  2. Parameterize the input so that I can call this via an API locally.

My intention is that the player can receive a game recommendation via an AI and I could select that game on the screen for them.

AtomFry commented 7 months ago

Would It be possible to alter this to:

Not launch the game, just select it. Parameterize the input so that I can call this via an API locally. My intention is that the player can receive a game recommendation via an AI and I could select that game on the screen for them.

Not launching the game would be a simple code change. I can add an option in the settings that lets you toggle whether it launches or just selects the game.

Id need to understand a bit more about the idea for an API that lets the input be parameterized. This plugin only runs when BigBox starts. Are you looking to be able to call into it again and again while big box is running to have the system select a different game recommended by the AI? That would be a bigger change. Or are you just looking to call into it once to launch the specified game? That would be doable already, not via API but by writing to the settings file that the plugin uses to determine which game to launch.

AtomFry commented 7 months ago

For #2, I started messing around with creating a TCP listener where I listen for messages on a port. I think we can use this to send a little json message that has the parameters for what should launch so you could change games at any time remotely.

AtomFry commented 7 months ago

put out an update - check out release 1.0.6 and let me know if you have trouble making use of the TCP server.

AtomFry commented 7 months ago

I had some fun with this request. I didn't think I'd use something like this but now that I've played around with it, it's kind of neat. I may create a little companion app that you can run on your phone to select and launch games. I'm pretty curious about your idea having an AI suggest games and what the UI would be like for that.

I found several issues with what I'd initially put up and got them cleaned them up. I did a lot of testing and it seems stable but I'm going to mark it as a beta for now until I can get feedback from anyone who uses the new server features. There's a simple sample client application that you can run to send calls into the plug-in to select and/or launch games from a variety of parameters using the TCP client

beta release https://github.com/AtomFry/BigBoxAutoPlay/releases/tag/1.0.6

sample client https://github.com/AtomFry/BigBoxAutoPlaySampleClient