How do I target my games to the Steam Deck
Asked Answered
O

6

1

Hi everyone! In a couple of months, I'm going to be releasing my first game on Steam. I'm targeting Windows, Linux and SteamOS/Steam deck.

Currently, I'm trying to add localization support for Xbox and PS4 controllers so button prompts update properly. I think I have a gist of how to do so on Xbox and PS4 controllers connected to PC devices, but how would I do this for Steam deck? As in, how do I detect that the game is running on Steam deck? I believe it is some sort of Linux OS so it feels like there is going to be complications on detecting the correct device.

I also heard that the Steam deck uses a 1280x800 resolution, so does this mean I have to update my GUI so that it fits to this screen size?

Octagonal answered 2/11, 2023 at 12:55 Comment(0)
H
0

Octagonal Just check out Valve's Steamworx site. They give pretty good support for developers.
https://partner.steamgames.com/doc/steamdeck

Hexapla answered 2/11, 2023 at 15:20 Comment(0)
P
0

Octagonal I also heard that the Steam deck uses a 1280x800 resolution, so does this mean I have to update my GUI so that it fits to this screen size?

If you really want to properly target and support the device, you should probably invest in getting one of your own. It can act as the devkit as well, no need to get a separate, dedicated device for that like with xbox or playstation. Also, as Shanel said, info specifically pertaining to steam on linux and the SteamDeck/SteamOS 3('HoloOS') is best gotten from valves sources.

... I do however have a hunch that the simplest('dumbest'?) solution might be to implement a application launch/command argument so the game can be launched with an argument that instantly sets the in-game settings to SteamDeck optimized configuration, like some of the other games already do. This doesn't have to just mean graphics settings it can also mean controls and even the UI prompts and hints to what buttons to use, etc.

With all of that said tho, you might also want to explore the OS class, it should have a method for calling external executables. This should help you inquire the system for some info, including distro name and kernel version, etc.

Prisage answered 2/11, 2023 at 16:33 Comment(0)
O
0

Prisage I assume Godot doesn't detect Steam Deck as a controller? Because it isn't a controller of course. I guess I'll have to use the OS class to get some information then. What information is different from a Linux compared to a Steam Deck?

I do have a friend with a Steam Deck, so they could do the testing for me, but I still want a sure way of getting Steam Deck info.

Octagonal answered 3/11, 2023 at 11:10 Comment(0)
P
0

Octagonal The following website lists multiple different ways to query for information about the system/OS distro:
https://www.tecmint.com/check-linux-os-version/

The best way to determine a Linux distribution name and release version information is by using the cat /etc/os-release command, which works on almost all Linux systems.


I use manjaro, for me the command gives:

~ cat /etc/os-release ✔ 
NAME="Manjaro Linux"
PRETTY_NAME="Manjaro Linux"
ID=manjaro
ID_LIKE=arch
BUILD_ID=rolling
ANSI_COLOR="32;1;24;144;200"
HOME_URL="https://manjaro.org/"
DOCUMENTATION_URL="https://wiki.manjaro.org/"
SUPPORT_URL="https://forum.manjaro.org/"
BUG_REPORT_URL="https://docs.manjaro.org/reporting-bugs/"
PRIVACY_POLICY_URL="https://manjaro.org/privacy-policy/"
LOGO=manjarolinux

You can also try installing SteamOS 3/HoloOS via HoloISO, though from what I understand it needs specifically an AMD APU to work, so not sure if it would work in a VM. OS name should be reported as SteamOS Holo or such far as I can tell.

Prisage answered 3/11, 2023 at 13:37 Comment(0)
O
0

Prisage Is the information for Steam Deck OS always the same? No difference in models or anything like that? Looking at Steam Decks, they use a CPU called ''amd custom apu 0405''. Is this true for all Steam Deck models?

Octagonal answered 3/11, 2023 at 13:45 Comment(0)
P
0

Octagonal Far as I can tell, yes, should be the same. I had just edited the above post before noticing your reply, as I said at the end there the steam OS should report it's name as SteamOS Holo. HW wise the only real difference between the models is storage capacity and a better screen for the top model.

Prisage answered 3/11, 2023 at 14:1 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.