jorio / OttoMatic

Pangea Software’s Otto Matic 🤖
https://pangeasoft.net/otto
Other
141 stars 13 forks source link

Modify the game for the Steam Deck? #22

Closed foote-darrell closed 1 year ago

foote-darrell commented 1 year ago

The Steam Deck has controller input. The remastered version of Otto Matic is integrated with controller support that works greatly. The Steam Deck however has lots of shoulder buttons and grip buttons that aren't used for anything in the game. How can the game be modified to take the input of those buttons for actions like the starting on any level dialog, or the full health cheat? How would you be able to find out what input codes those extra buttons have? Screenshot from 2022-08-03 23-14-41

foote-darrell commented 1 year ago

In particular, would there be a way to add the B-R-I cheat function on the gamepad configation? Thanks Mr. Dinosaur man.

jorio commented 1 year ago

@foote-darrell Regarding your first comment, do you mean the game doesn't recognize some of the Steam Deck's buttons when you try to assign a new button to an action?

foote-darrell commented 1 year ago

No, I mean to assign the B-R-I cheat to a gamepad button. To add this function to the gamepad interface.

philhzss commented 1 year ago

Hey @jorio or @foote-darrell , how did you get it to show "Steam virtual gamepad"? For me, it just says "no controller detected", and I have to use a Steam Input preset that just simulates keyboard + mouse, I can't use any gamepad presets. Can you help me? Thank you!

jorio commented 1 year ago

@philhzss I don't have a Steam Deck, but you can try this:

philhzss commented 1 year ago

@jorio Thank you for that, I tried the first option but I'm relatively new to the Steam Deck and to Linux and really had trouble finding the folders of Otto Matic's install... I used the "Discover Store" that comes with the deck, looks like it installs Otto Matic with Flatpak/flathub or something. I'm not sure. Anyway I think I found the file, replaced it but it didn't change anything. I might have done it wrong though haha

I will take look at the 2nd option soon, thanks!

jorio commented 1 year ago

@philhzss In case you're still interested, the flatpak apparently had broken gamepad support for all systems (see #24). I fixed that, so chances are it works on the Steam Deck now.

philhzss commented 1 year ago

@jorio
Just tried it, it works perfectly!!! Merci!!! A tip to anyone else having issues; I still had my Steam Deck controller config for Otto Matic set to emulate a keyboard and mouse, and it wasn't detecting the gamepad when I launched the new version... I had to select a "Gamepad" controller config, close Otto Matic, re-open it, and then everything worked! This shouldn't be an issue if you just downloaded Otto Matic of course, I had manually configured mine to emulate keyboard + mouse since the gamepad wasn't working initially, but this is no longer required.

I think you can close the issue

jorio commented 1 year ago

De rien ;)

As for the original inquiry in this issue, the level select screen is still accessible with a controller by pressing “Start” while holding down “Back” (I believe that would be pressing Menu while holding down View on the Steam Deck).

foote-darrell commented 1 year ago

But how can you set the B+R+I cheat to a gamepad button?

philhzss commented 1 year ago

@foote-darrell Couldn't you just choose any gamepad button that is not used, and then in the Steam input config go to add those 3 keyboard commands to the button?

foote-darrell commented 1 year ago

That would require the gamepad mapped as a keyboard. This is for an Xbox controller on desktop though. How can the full health and inventory cheat be mapped to a gamepad button?

philhzss commented 1 year ago

That would require the gamepad mapped as a keyboard. This is for an Xbox controller on desktop though. How can the full health and inventory cheat be mapped to a gamepad button?

Oh ok I thought you were on the Steam Deck. Ummm as far as I know you can use the same steam input stuff on desktop than on the deck though?

So, I haven't played Otto Matic for a whole but I'm sure theres at least 1 button on the gamepad that you're not using? Otto Matic doesn't have that many controls. Just for that specific button, you can set it to emulate the keyboard in steam input (just for that button). You can still have the rest of the gamepad as a regular gamepad